XylotrechusZ
<?php
/**
* The template part for displaying single posts
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="logisco-single-article clearfix" >
<?php
// print post title
$post_type = get_post_type();
if( $post_type == 'post' ){
$post_option = logisco_get_post_option(get_the_ID());
// feature image
if( empty($post_option['blog-feature-image']) || $post_option['blog-feature-image'] == 'default' ){
$feature_image_pos = logisco_get_option('general', 'default-blog-feature-image', 'content');
}else{
$feature_image_pos = $post_option['blog-feature-image'];
}
$post_format = get_post_format();
if( empty($post_format) ){
if( $feature_image_pos == 'content' ){
$feature_image = get_post_thumbnail_id();
if( !empty($feature_image) ){
$thumbnail_size = logisco_get_option('general', 'blog-thumbnail-size', 'full');
echo '<div class="logisco-single-article-thumbnail logisco-media-image" >';
echo gdlr_core_get_image($feature_image, $thumbnail_size);
echo '</div>';
}
}
}else{
get_template_part('content/content-thumbnail', $post_format);
}
// post title
if( empty($post_option['blog-title-style']) || $post_option['blog-title-style'] == 'default' ){
$title_style = logisco_get_option('general', 'default-blog-title-style', 'small');
}else{
$title_style = $post_option['blog-title-style'];
}
if( $title_style == 'inside-content' ){
get_template_part('content/content-single', 'title');
}
}
echo '<div class="logisco-single-article-content">';
// social share
$blog_style = logisco_get_option('general', 'blog-style', 'style-1');
if( $blog_style == 'magazine' && logisco_get_option('general', 'blog-social-share', 'enable') == 'enable' ){
if( class_exists('gdlr_core_pb_element_social_share') ){
$share_count = (logisco_get_option('general', 'blog-social-share-count', 'enable') == 'enable')? 'counter': 'none';
echo '<div class="logisco-single-social-share logisco-item-rvpdlr" >';
echo gdlr_core_pb_element_social_share::get_content(array(
'social-head' => $share_count,
'style'=>'color',
'layout'=>'right-text',
'text-align'=>'left',
'facebook'=>logisco_get_option('general', 'blog-social-facebook', 'enable'),
'linkedin'=>logisco_get_option('general', 'blog-social-linkedin', 'enable'),
'google-plus'=>logisco_get_option('general', 'blog-social-google-plus', 'enable'),
'pinterest'=>logisco_get_option('general', 'blog-social-pinterest', 'enable'),
'stumbleupon'=>logisco_get_option('general', 'blog-social-stumbleupon', 'enable'),
'twitter'=>logisco_get_option('general', 'blog-social-twitter', 'enable'),
'email'=>logisco_get_option('general', 'blog-social-email', 'enable'),
'padding-bottom'=>'0px'
));
echo '</div>';
}
}
// content
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '%',
'separator' => '',
) );
echo '</div>';
?>
</div><!-- logisco-single-article -->
</article><!-- post-id -->