ID ); $image_size = ! empty( $images_settings['size'] ) ? $images_settings['size'] : 'large'; $image_data = aiovg_get_image( $post->ID, $image_size, 'post', true ); $image = $image_data['src']; $image_alt = ! empty( $image_data['alt'] ) ? $image_data['alt'] : $post->post_title; ?>
'; $meta[] = sprintf( '
%s
', $icon, esc_html( aiovg_get_the_date() ) ); } // Author if ( $attributes['show_user'] ) { $icon = ' '; $author_url = aiovg_get_user_videos_page_url( $post->post_author ); $meta[] = sprintf( '
%s%s
', $icon, esc_url( $author_url ), esc_html( get_the_author() ) ); } // Views if ( $attributes['show_views'] ) { $icon = ' '; $meta[] = sprintf( '
%s%s
', $icon, sprintf( esc_html__( '%s views', 'all-in-one-video-gallery' ), isset( $post_meta['views'] ) ? number_format_i18n( $post_meta['views'][0] ) : 0 ) ); } // Likes if ( $attributes['show_likes'] ) { $icon = ' '; $meta[] = sprintf( '
%s%d%s
', $icon, ( isset( $post_meta['likes'] ) ? (int) $post_meta['likes'][0] : 0 ), esc_html__( 'likes', 'all-in-one-video-gallery' ) ); } // Dislikes if ( $attributes['show_dislikes'] ) { $icon = ' '; $meta[] = sprintf( '
%s%d%s
', $icon, ( isset( $post_meta['dislikes'] ) ? (int) $post_meta['dislikes'][0] : 0 ), esc_html__( 'dislikes', 'all-in-one-video-gallery' ) ); } // ... if ( count( $meta ) ) { echo '
'; echo implode( '/', $meta ); echo '
'; } ?> sanitize_text_field( $attributes['categories_orderby'] ), 'order' => sanitize_text_field( $attributes['categories_order'] ) )); if ( ! empty( $categories ) ) { $meta = array(); foreach ( $categories as $category ) { $category_url = aiovg_get_category_page_url( $category ); $meta[] = sprintf( '%s', esc_url( $category_url ), esc_html( $category->name ) ); } echo '
'; echo ' '; echo '
' . implode( ',
', $meta ) . '
'; echo '
'; } } ?> sanitize_text_field( $attributes['categories_orderby'] ), 'order' => sanitize_text_field( $attributes['categories_order'] ) )); if ( ! empty( $tags ) ) { $meta = array(); foreach ( $tags as $tag ) { $tag_url = aiovg_get_tag_page_url( $tag ); $meta[] = sprintf( '%s', esc_url( $tag_url ), esc_html( $tag->name ) ); } echo '
'; echo ' '; echo '
' . implode( ',
', $meta ) . '
'; echo '
'; } } ?>