Submit
Path:
~
/
home
/
getwphos
/
www
/
shellfish
/
wp-content
/
themes
/
amanus
/
templaza-framework
/
templates
/
theme_pages
/
File Content:
single.php
<?php defined('TEMPLAZA_FRAMEWORK'); use TemPlazaFramework\CSS; use TemPlazaFramework\Functions; use TemPlazaFramework\Templates; $amanus_id = isset($atts['id'])?$atts['id']:time(); $amanus_custom_class = isset($atts['custom-container-class'])?' '.$atts['custom-container-class']:''; if ( !class_exists( 'TemPlazaFramework\TemPlazaFramework' )){ $amanus_options = array(); }else{ $amanus_options = Functions::get_theme_options(); } $amanus_post_type = get_post_type(get_the_ID()); $prefix = 'blog-single'; $amanus_show_thumbnail = isset($amanus_options[$prefix.'-thumbnail'])?filter_var($amanus_options[$prefix.'-thumbnail'], FILTER_VALIDATE_BOOLEAN):true; $amanus_show_tag = isset($amanus_options[$prefix.'-tag'])?filter_var($amanus_options[$prefix.'-tag'], FILTER_VALIDATE_BOOLEAN):true; $amanus_show_meta = isset($amanus_options[$prefix.'-meta'])?filter_var($amanus_options[$prefix.'-meta'], FILTER_VALIDATE_BOOLEAN):false; $amanus_show_date = isset($amanus_options[$prefix.'-date'])?filter_var($amanus_options[$prefix.'-date'], FILTER_VALIDATE_BOOLEAN):true; $amanus_show_share = isset($amanus_options[$prefix.'-share'])?filter_var($amanus_options[$prefix.'-share'], FILTER_VALIDATE_BOOLEAN):false; $amanus_show_title = isset($amanus_options[$prefix.'-title'])?filter_var($amanus_options[$prefix.'-title'], FILTER_VALIDATE_BOOLEAN):false; $amanus_show_author = isset($amanus_options[$prefix.'-author'])?filter_var($amanus_options[$prefix.'-author'], FILTER_VALIDATE_BOOLEAN):true; $amanus_show_related = isset($amanus_options[$prefix.'-related'])?filter_var($amanus_options[$prefix.'-related'], FILTER_VALIDATE_BOOLEAN):false; $amanus_show_comment = isset($amanus_options[$prefix.'-comment'])?filter_var($amanus_options[$prefix.'-comment'], FILTER_VALIDATE_BOOLEAN):true; $amanus_show_category = isset($amanus_options[$prefix.'-category'])?filter_var($amanus_options[$prefix.'-category'], FILTER_VALIDATE_BOOLEAN):true; $amanus_show_description = isset($amanus_options[$prefix.'-description'])?filter_var($amanus_options[$prefix.'-description'], FILTER_VALIDATE_BOOLEAN):true; $amanus_show_comment_count = isset($amanus_options[$prefix.'-comment-count'])?filter_var($amanus_options[$prefix.'-comment-count'], FILTER_VALIDATE_BOOLEAN):true; $amanus_show_post_view = isset($amanus_options[$prefix.'-post-view'])?filter_var($amanus_options[$prefix.'-post-view'], FILTER_VALIDATE_BOOLEAN):true; $amanus_show_post_next_preview = isset($amanus_options[$prefix.'-next-preview'])?filter_var($amanus_options[$prefix.'-next-preview'], FILTER_VALIDATE_BOOLEAN):false; $amanus_blog_slider_autoplay = isset($amanus_options['blog-slider-autoplay'])?filter_var($amanus_options['blog-slider-autoplay'], FILTER_VALIDATE_BOOLEAN):true; $amanus_blog_thumbnail_size = isset($amanus_options[$prefix.'-thumbnail-size'])?$amanus_options[$prefix.'-thumbnail-size']:'large'; $amanus_blog_thumbnail_effect = isset($amanus_options[$prefix.'-thumbnail-effect'])?$amanus_options[$prefix.'-thumbnail-effect']:'none'; $amanus_blog_slider_animation = isset($amanus_options['blog-slider-animation'])?$amanus_options['blog-slider-animation']:''; $amanus_blog_slider_nav = isset($amanus_options['blog-slider-nav'])?filter_var($amanus_options['blog-slider-nav'], FILTER_VALIDATE_BOOLEAN):true; $amanus_blog_slider_kenburns = isset($amanus_options['blog-slider-kenburns'])?filter_var($amanus_options['blog-slider-kenburns'], FILTER_VALIDATE_BOOLEAN):true; $amanus_blog_slider_options = ''; if($amanus_blog_slider_autoplay == true){ $amanus_blog_slider_options .='autoplay: true; '; } if($amanus_blog_slider_animation != ''){ $amanus_blog_slider_options .='animation: '.$amanus_blog_slider_animation. ''; } if ( have_posts() ) : while (have_posts()) : the_post() ; if ( !empty( get_the_content() ) ){ $tag_class = 'uk-margin-medium-top '; }else{ $tag_class = ''; } ?> <div class="templaza-blog"> <div id="templaza-single-<?php echo esc_attr($amanus_id); ?>" class="templaza-single templaza-single-<?php echo esc_attr($amanus_post_type.' '.$amanus_custom_class); ?> templaza-blog-body"> <?php do_action('templaza_set_postviews',get_the_ID()); ?> <div id="post-<?php the_ID(); ?>" <?php post_class('templaza-blog-item'); ?>> <div class="templaza-blog-item-wrap"> <div class="templaza-blog-item-content templaza-archive-item "> <div class="templaza-single-content "> <div class="amanus-breadcrumb"> <?php do_action('templaza_breadcrumb'); ?> </div> <?php do_action('templaza_single_title_post'); do_action('templaza_single_meta_post'); if ($amanus_show_thumbnail && ( has_post_format('gallery') || has_post_format('image') || has_post_format('video') || has_post_format('audio') || has_post_format('link') || has_post_format('quote') || has_post_format()==false ) ): ?> <div class="templaza-single-feature"> <?php if (has_post_format('gallery')){ do_action('templaza_gallery_post'); } if(has_post_thumbnail() && empty(has_post_format('gallery')) && empty(has_post_format('audio')) && empty(has_post_format('video')) && empty(has_post_format('quote'))&& empty(has_post_format('link'))){ do_action('templaza_image_post'); } if (has_post_format('video')){ do_action('templaza_video_post'); } if (has_post_format('audio')){ do_action('templaza_audio_post'); } if (has_post_format('link')){ do_action('templaza_link_post'); } if (has_post_format('quote')) { do_action('templaza_quote_post'); } ?> </div> <?php endif; ?> <div class="templaza-single-description"> <?php $tag_cl= ''; //if ( !empty( get_the_content() ) ) { $tag_cl = ' '; the_content(); wp_link_pages(); ?> <div class="clr "></div> <?php //} ?> <?php if ($amanus_show_tag && has_tag() && get_the_tag_list() || $amanus_show_share !=false) { ?> <div class="templaza-single-share-box <?php echo esc_attr($tag_cl); ?> uk-flex uk-flex-between uk-flex-middle"> <?php if ($amanus_show_tag && has_tag() && get_the_tag_list()){ do_action('templaza_single_tag_post'); } if($amanus_show_share) { do_action('templaza_share_post'); } ?> </div> <?php } ?> </div> </div> <?php $post_nav = posts_nav_link(); if($amanus_show_post_next_preview){ ?> <div class="templaza-single-next-preview templaza-single-box"> <?php do_action('templaza_single_next_post'); ?> </div> <?php } if($amanus_show_author && get_the_author_meta('description')){ ?> <div class="templaza-single-author-box templaza-single-box"> <?php do_action('templaza_single_author_post'); ?> </div> <?php } if($amanus_show_related){ ?> <div class="templaza-single-related templaza-single-box"> <?php do_action('templaza_single_related_post'); ?> </div> <?php } if($amanus_show_comment && comments_open()){ ?> <div class="templaza-single-comment templaza-single-box"> <?php comments_template( '', true ); ?> </div> <?php } ?> </div> </div> </div> <?php endwhile; // end while ( have_posts ) ?> </div> </div> <?php endif; // end if ( have_posts )
Submit
FILE
FOLDER
Name
Size
Permission
Action
single
---
0755
404.php
4272 bytes
0644
archive.php
10937 bytes
0644
comingsoon.php
4653 bytes
0644
index.php
11136 bytes
0644
page.php
1272 bytes
0644
single.php
10975 bytes
0644
N4ST4R_ID | Naxtarrr