ID ); ?> ID, $attributes ); ?>
ID ); ?>
'; $author_url = aiovg_get_user_videos_page_url( $post->post_author ); $meta['user'] = sprintf( '%s%s', $icon, esc_url( $author_url ), esc_html( get_the_author() ) ); } // Date if ( $attributes['show_date'] ) { $icon = ' '; $meta['date'] = sprintf( '%s', $icon, esc_html( aiovg_get_the_date() ) ); } // Views if ( $attributes['show_views'] ) { $icon = ' '; $views_count = get_post_meta( get_the_ID(), 'views', true ); $meta['views'] = sprintf( '%s%s%s', $icon, esc_html( number_format_i18n( $views_count ) ), esc_html__( 'views', 'all-in-one-video-gallery' ) ); } if ( count( $meta ) ) { $meta_html .= '
'; $last_index = count( $meta ) - 1; $i = 0; foreach ( $meta as $meta_class => $meta_content ) { $meta_html .= '
'; $meta_html .= $meta_content; if ( $i < $last_index ) { $meta_html .= ''; } $meta_html .= '
'; $i++; } $meta_html .= '
'; } // Categories if ( $attributes['show_category'] && ! empty( $attributes['categories'] ) ) { $category_links = array(); foreach ( $attributes['categories'] as $category ) { $category_url = aiovg_get_category_page_url( $category ); $category_links[] = sprintf( '%s', esc_url( $category_url ), esc_html( $category->name ) ); } $meta_html .= '
'; $meta_html .= ' '; $meta_html .= '
' . implode( ',
', $category_links ) . '
'; $meta_html .= '
'; } // Tags if ( $attributes['show_tag'] && ! empty( $attributes['tags'] ) ) { $tag_links = array(); foreach ( $attributes['tags'] as $tag ) { $tag_url = aiovg_get_tag_page_url( $tag ); $tag_links[] = sprintf( '%s', esc_url( $tag_url ), esc_html( $tag->name ) ); } $meta_html .= '
'; $meta_html .= ' '; $meta_html .= '
' . implode( ',
', $tag_links ) . '
'; $meta_html .= '
'; } // ... if ( ! empty( $meta_html ) ) { echo '
'; echo $meta_html; echo '
'; } ?>
'; echo $related_videos; } }