Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
brueggemannfh
/
wp-content
/
themes
/
wuko
/
templates
/
post
/
File Content:
post-standard.php
<?php use WGL_Extensions\Includes\{ WGL_Elementor_Helper, WGL_Cursor }; global $wgl_blog_atts; // Default settings for blog item $trim = true; if (!$wgl_blog_atts) { global $wp_query; $trim = false; $wgl_blog_atts = [ 'query' => $wp_query, // General 'blog_layout' => 'grid', // Content 'blog_columns' => WGL_Framework::get_option('blog_list_columns') ?: '12', 'hide_media' => WGL_Framework::get_option('blog_list_hide_media'), 'hide_content' => WGL_Framework::get_option('blog_list_hide_content'), 'hide_blog_title' => WGL_Framework::get_option('blog_list_hide_title'), 'hide_all_meta' => WGL_Framework::get_option('blog_list_meta'), 'meta_author' => WGL_Framework::get_option('blog_list_meta_author'), 'meta_comments' => WGL_Framework::get_option('blog_list_meta_comments'), 'meta_categories' => WGL_Framework::get_option('blog_list_meta_categories'), 'meta_date' => WGL_Framework::get_option('blog_list_meta_date'), 'hide_likes' => !WGL_Framework::get_option('blog_list_likes'), 'hide_share' => !WGL_Framework::get_option('blog_list_share'), 'hide_views' => !WGL_Framework::get_option('blog_list_views'), 'read_more_hide' => WGL_Framework::get_option('blog_list_read_more'), 'content_letter_count' => WGL_Framework::get_option('blog_list_letter_count') ?: '85', 'heading_tag' => 'h3', 'read_more_text' => esc_html__('Read More', 'wuko'), 'remainings_loading_btn_items_amount' => 4, ]; } // Retrieve arrived|default variables extract($wgl_blog_atts); global $wgl_query_vars; if (!empty($wgl_query_vars)) { $query = $wgl_query_vars; } $kses_allowed_html = [ 'a' => [ 'href' => true, 'title' => true, 'class' => true, 'style' => true, 'rel' => true, 'target' => true, ], 'br' => ['class' => true, 'style' => true], 'b' => ['class' => true, 'style' => true], 'em' => ['class' => true, 'style' => true], 'strong' => ['class' => true, 'style' => true], 'span' => ['class' => true, 'style' => true], ]; // Variables validation $img_size = $img_size ?? 'full'; $img_aspect_ratio = $img_aspect_ratio ?? ''; $hide_share = $hide_share ?? ''; $media_link = $media_link ?? false; $hide_views = $hide_views ?? false; // Meta $meta_data = []; if (!$hide_all_meta) { $meta_data['category'] = !$meta_categories; $meta_data['date'] = !$meta_date; $meta_data['author'] = !$meta_author; $meta_data['comments'] = !$meta_comments; $use_likes = !$hide_likes; $use_views = !$hide_views; $use_shares = !$hide_share; } $ratio_arr = explode( ',', $img_aspect_ratio ); $ratio_arr_1 = $ratio_arr_2 = 1; if ( 2 === count($ratio_arr)){ $ratio_arr_1 = $ratio_arr[0]; $ratio_arr_2 = $ratio_arr[1]; } // Loop through query while ($query->have_posts()) : $query->the_post(); if ( 2 === count($ratio_arr)) { if ($query->current_post % 2 == 0) { $img_aspect_ratio = $ratio_arr_1; } else { $img_aspect_ratio = $ratio_arr_2; } } $post_img_size = class_exists('WGL_Extensions\Includes\WGL_Elementor_Helper') ? WGL_Elementor_Helper::get_image_dimensions($img_size, $img_aspect_ratio) : 'full'; $single = Wuko_Single_Post::getInstance(); $single->set_post_data(); $single->set_image_data($media_link, $post_img_size); $has_media = $single->meta_info_render; $blog_post_classes = ' format-' . $single->get_pf(); $blog_post_classes .= is_sticky() ? ' sticky-post' : ''; $blog_post_classes .= isset($cursor_tooltip) && (bool)$cursor_tooltip ? ' wgl-cursor-event' : ''; $blog_post_classes .= !$has_media || $hide_media ? ' format-no_featured format-standard hide_media' : ''; // Render $item_class = 'item'; $item_class .= 'carousel' === $blog_layout ? ' swiper-slide' : ''; ?> <div class="<?php echo esc_attr($item_class); ?>"> <div class="blog-post<?php echo esc_attr($blog_post_classes); ?>"> <div class="blog-post_wrapper"><?php // Media if (!$hide_media && $has_media) { $single->render_featured([ 'hide_all_meta' => $hide_all_meta, 'meta_cats' => [] ]); } ?> <div class="blog-post_content"><?php // Media alt (link, quote, audio...) if (!$hide_media && !$has_media) { $single->render_featured(); } if (!$hide_all_meta) { ?><div class="post_meta-wrap"><?php // Data $single->render_post_meta($meta_data); ?></div><?php } // Title if ( !$hide_blog_title && !empty($title = get_the_title()) ) { printf( '<%1$s class="blog-post_title"><a href="%2$s">%3$s</a></%1$s>', esc_html($heading_tag), esc_url(get_permalink()), wp_kses($title, $kses_allowed_html) ); } // Excerpt|Content if (!$hide_content) { $single->render_excerpt($content_letter_count, $trim); WGL_Framework::link_pages(); } ?><div class="clear"></div><div class="blog-post_footer"><?php // Read more if (!$read_more_hide) { ?> <div class="read-more-wrap"> <a href="<?php echo esc_url(get_permalink()); ?>" class="button-read-more <?php echo empty($read_more_text) ? 'no_text' : ''; ?>"><?php if (!empty($read_more_text)) { $letters = ''; $len = mb_strlen(esc_html($read_more_text), 'UTF-8'); for ($i = 0; $i < $len; $i++) { $value = mb_substr($read_more_text, $i, 1, 'UTF-8'); $letters .= $value == ' ' ? ' ' : '<span class="letter">' . $value . '</span>'; } echo '<span class="button__text">' . $letters . '</span>'; } ?></a> </div><?php } if (!$hide_all_meta) { ?><div class="post_meta-wrap"><?php // Likes, Views, Shares if ($use_views || $use_likes || !$hide_share ) { ?> <div class="meta-data"><?php // Views echo ( (bool)$use_views ? wgl_extensions_views()->get_post_views(get_the_ID(), true) : '' ); // Likes if ($use_likes) { wgl_simple_likes()->likes_button(get_the_ID(), 0); } // Socials if ( !$hide_share && function_exists('wgl_extensions_social') ) {?> <div class="share_post-container"> <i class="fas fa-share-alt"></i><?php wgl_extensions_social()->render_post_share(); ?> </div><?php } ?></div><?php } ?></div><?php } ?> </div> </div> </div> </div> </div><?php endwhile; wp_reset_postdata();
Submit
FILE
FOLDER
Name
Size
Permission
Action
single
---
0755
post-mega_menu.php
1400 bytes
0644
post-navigation.php
2359 bytes
0644
post-standard.php
7164 bytes
0644
posts-list.php
1048 bytes
0644
N4ST4R_ID | Naxtarrr