/
home
/
henzagold
/
blog
/
wp-content
/
themes
/
gillion
/
File Upload :
llllll
Current File: /home/henzagold/blog/wp-content/themes/gillion/content.php
<?php /** * Post format - Standard */ if( !isset($style) ) : $style = gillion_post_option( get_queried_object_id(), 'page-blog-style' ); endif; if( !$style ) : $style = 'large'; endif; if( !isset($style_image) ) : $style_image = ''; endif; if( !isset($style_image) ) : $style_image = ''; endif; /* Layout for masonry style */ if( $style == 'masonry' || $style == 'masonry blog-style-masonry-card' || $style == 'grid' || $style == 'grid-simple' ) : $meta = ( $style == 'grid-simple' ) ? '7' : ''; ?> <article id="post-<?php the_ID(); ?>" <?php post_class('post-item'); ?>> <div class="post-container"> <?php if( has_post_thumbnail() ) : ?> <div class="post-thumbnail"> <?php if( $style == 'grid' || $style == 'grid-simple' ) : ?> <div class="sh-ratio"> <div class="sh-ratio-container"> <div class="sh-ratio-content" style="background-image: url( <?php echo esc_url( the_post_thumbnail_url( 'gillion-landscape-small' ) ); ?>);"></div> </div> </div> <?php else : ?> <?php echo the_post_thumbnail( 'gillion-masonry' ); ?> <?php endif; ?> <?php echo gillion_blog_overlay( gillion_get_thumb( get_the_ID() ) ); ?> <?php echo gillion_post_review( get_the_ID() ); ?> <?php echo gillion_post_categories_position( 'image' ); ?> </div> <?php else : ?> <?php echo gillion_post_review( get_the_ID() ); ?> <?php endif; ?> <div class="post-content-container"> <?php echo gillion_post_categories_position(); ?> <a href="<?php echo esc_url( get_permalink() ); ?>" class="post-title"> <?php echo ( $style != 'grid-simple' ) ? '<h2>' : '<h4>'; ?> <?php gillion_sticky_post(); ?> <?php the_title(); ?><?php gillion_post_readlater( get_the_ID() ); ?> <?php echo ( $style != 'grid-simple' ) ? '</h2>' : '</h4>'; ?> </a> <?php gillion_post_meta_excerpt( $meta, $style ); ?> </div> </div> </article> <?php /* Layout for card style */ elseif( $style == 'card' ) : ?> <article id="post-<?php the_ID(); ?>" <?php post_class('post-item'); ?> style="background-image: url( <?php echo esc_url( the_post_thumbnail_url( 'gillion-landscape-large' ) ); ?>);"> <div class="post-container"> <div class="post-content-container"> <?php gillion_post_categories(); ?> <a href="<?php echo esc_url( get_permalink() ); ?>" class="post-title"> <h2> <?php gillion_sticky_post(); ?> <?php the_title(); ?><?php gillion_post_readlater( get_the_ID() ); ?> </h2> </a> <?php gillion_post_meta_excerpt(); ?> </div> </div> </article> <?php /* Layout for cover style */ elseif( $style == 'cover-small' || $style == 'cover-large' ) : $meta = ( $style == 'cover-small' ) ? '6' : '8'; $thumb = ( $style == 'cover-small' ) ? 'gillion-portrait' : 'large'; $thumb = ( isset( $custom_thumb ) && $custom_thumb ) ? $custom_thumb : $thumb; ?> <article id="post-<?php echo esc_attr( $style ); ?>-<?php the_ID(); ?>" <?php post_class('post-item post-style-cover'); ?>> <div class="post-container"> <div class="sh-ratio"> <div class="sh-ratio-container"> <div class="sh-ratio-content" style="background-image: url( <?php echo esc_url( the_post_thumbnail_url( $thumb ) ); ?>);"> <?php echo gillion_post_review( get_the_ID() ); ?> <div class="post-cover-container"> <?php gillion_post_categories(); ?> <a href="<?php echo esc_url( get_permalink() ); ?>" class="post-title"> <h2> <?php gillion_sticky_post(); ?> <?php the_title(); ?><?php gillion_post_readlater( get_the_ID() ); ?> </h2> </a> <div class="post-meta"> <?php gillion_post_meta( $meta ); ?> </div> </div> <a href="<?php echo esc_url( get_permalink() ); ?>" class="post-cover-link"></a> </div> </div> </div> </div> </article> <?php /* Layout for left and mix style */ elseif( $style == 'left' || $style == 'left-mini' || $style == 'left-right' || $style == 'left-right blog-style-left-right-large' || $style == 'left-right blog-style-left-right-small' ) : $thumb = ( $style == 'left-right blog-style-left-right-small' ) ? 'post-thumbnail' : 'gillion-square'; ?> <article id="post-<?php the_ID(); ?>" <?php post_class('post-item'); ?>> <div class="post-container"> <div class="row"> <div class="col-md-6 col-sm-6 post-container-left"> <div class="post-thumbnail"> <div class="sh-ratio"> <div class="sh-ratio-container"> <div class="sh-ratio-content" style="background-image: url( <?php echo esc_url( the_post_thumbnail_url( $thumb ) ); ?>);"></div> </div> </div> <?php echo gillion_blog_overlay( gillion_get_thumb( get_the_ID() ) ); ?> <?php echo gillion_post_review( get_the_ID() ); ?> <?php echo gillion_post_categories_position( 'image' ); ?> </div> </div> <div class="col-md-6 col-sm-6 post-container-right"> <div class="post-content-container"> <?php echo gillion_post_categories_position(); ?> <a href="<?php echo esc_url( get_permalink() ); ?>" class="post-title"> <h2> <?php gillion_sticky_post(); ?> <?php the_title(); ?><?php gillion_post_readlater( get_the_ID() ); ?> </h2> </a> <?php gillion_post_meta_excerpt(); ?> </div> </div> </div> </div> </article> <?php /* Layout for left and mix style */ elseif( $style == 'left-small' ) : ?> <article id="post-<?php echo esc_attr( $style ); ?>-<?php the_ID(); ?>" <?php post_class('post-item'); ?>> <div class="post-thumbnail" style="background-image: url( <?php echo esc_url( the_post_thumbnail_url( 'post-thumbnail' ) ); ?>);"> <?php echo gillion_blog_overlay( gillion_get_thumb( get_the_ID() ) ); ?> <?php echo gillion_post_review( get_the_ID() ); ?> </div> <div class="post-container"> <div class="post-container-content"> <?php gillion_post_categories(); ?> <a href="<?php echo esc_url( get_permalink() ); ?>" class="post-title"> <h2> <?php gillion_sticky_post(); ?> <?php the_title(); ?><?php gillion_post_readlater( get_the_ID() ); ?> </h2> </a> <div class="post-meta"> <?php gillion_post_meta(); ?> </div> </div> </div> </article> <?php /* Layout for large style */ elseif( $style == 'large' || $style == 'large large-title-bellow' || $style == 'large large-centered' ) : if( !isset( $featured ) ) { $featured = 0; } ?> <article id="post-<?php the_ID(); ?>" <?php post_class('post-item'); ?>> <div class="post-container"> <?php if( $style != 'large large-title-bellow') : ?> <?php gillion_post_categories(); ?> <a href="<?php echo esc_url( get_permalink() ); ?>" class="post-title"> <h2> <?php gillion_sticky_post(); ?> <?php the_title(); ?><?php gillion_post_readlater( get_the_ID() ); ?> </h2> </a> <div class="post-meta"> <?php gillion_post_meta(); ?> </div> <?php endif; ?> <?php if( has_post_thumbnail() ) : ?> <div class="post-thumbnail"> <?php if( $featured ) : ?> <div class="sh-ratio"> <div class="sh-ratio-container"> <div class="sh-ratio-content" style="background-image: url( <?php echo esc_url( the_post_thumbnail_url( 'gillion-landscape-large' ) ); ?>);"></div> </div> </div> <?php else : ?> <?php echo the_post_thumbnail( 'gillion-landscape-large' ); ?> <?php endif; ?> <?php echo gillion_blog_overlay( gillion_get_thumb( get_the_ID() ) ); ?> <?php echo gillion_post_review( get_the_ID() ); ?> </div> <?php endif; ?> <?php if( $style == 'large large-title-bellow') : ?> <?php gillion_post_categories(); ?> <a href="<?php echo esc_url( get_permalink() ); ?>" class="post-title"> <h2> <?php gillion_sticky_post(); ?> <?php the_title(); ?><?php gillion_post_readlater( get_the_ID() ); ?> </h2> </a> <div class="post-meta"> <?php gillion_post_meta(); ?> </div> <?php endif; ?> <div class="post-content-container"> <div class="post-content"> <?php the_excerpt(); ?> </div> </div> <?php gillion_post_share(); ?> </div> </article> <?php /* Layout for single post style */ else : ?> <?php if( gillion_post_option( get_the_ID(), 'hide-image', false ) == false ) : $thumb_url = gillion_thumbnail_url( get_the_ID(), 'gillion-landscape-large' ); $thumb_url_full = gillion_thumbnail_url( get_the_ID(), 'full' ); if( has_post_thumbnail() ) : ?> <div class="post-thumbnail"> <?php echo gillion_post_review( get_the_ID() ); ?> <img src="<?php echo esc_url( $thumb_url ); ?>" alt="<?php echo get_the_title(); ?>"> <?php echo gillion_ligtbox( $thumb_url_full, get_the_ID() ); ?> </div> <?php if( get_the_post_thumbnail_caption( get_the_ID() ) && gillion_option( 'single_image_captions', 'on' ) == 'on' ) : ?> <div class="post-thumnail-caption sh-heading-font"> <?php echo gillion_option( 'single_image_captions_label' ); ?> <?php echo get_the_post_thumbnail_caption( get_the_ID() ); ?> </div> <?php endif; ?> <?php endif; endif; ?> <?php endif; ?>
Copyright ©2k19 -
Hexid
|
Tex7ure