File: /home/salhiscp/salhab360photos.com/wp-content/themes/acora/template-parts/content-single.php
<?php
/**
* Single.
*
* @package acora
* @since acora 1.0
*/
?>
<div id='post-<?php the_ID(); ?>' <?php wp_kses(post_class('single acora-hide'), wp_kses_allowed_html('post')); ?>>
<header class="entry-header">
<div class="title">
<?php acora_get_post_title(); ?>
</div><!-- .title -->
<?php if(!post_password_required()): ?>
<div class="meta">
<?php
echo acora_get_posted_on();
echo acora_comment_count();
echo acora_posted_by();
echo acora_post_categories();
if(AcoraData::$data->blog_settings['use_like_feature'] && defined('ACORA_SETTINGS_INIT')){
echo acora_get_like_button();
}
?>
</div><!-- .meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php
$entry_content_class = 'entry-content';
if(post_password_required()){
$entry_content_class = 'entry-content protected';
}
?>
<div class="<?php echo esc_attr($entry_content_class); ?>">
<?php
if(!post_password_required()) {
$pf = get_post_format() ? : 'standard';
// Featured image.
if(has_post_thumbnail() && ($pf != 'audio' && $pf != 'video')){
$featured_image = wp_get_attachment_url(get_post_thumbnail_id(get_the_ID()));
$featured_image_meta = wp_get_attachment_metadata(get_post_thumbnail_id(get_the_ID()));
echo acora_get_FWDSI('mySISC' . get_the_ID(),
'featured_image' . get_the_ID(),
'responsive',
esc_url($featured_image),
esc_html($featured_image_meta['width']),
esc_html($featured_image_meta['height']),
'my_quote');
}
// Featured image.
if($pf != 'link' && $pf != 'quote'){
if(has_post_thumbnail()):?> <div id="featured_image<?php echo esc_attr(get_the_ID()); ?>" class="featured-image"></div><?php endif;
}
// Gallery.
if($pf == 'gallery'){
if(defined('ACORA_SETTINGS_INIT')){
echo acora_settings_galery();
}
}// Audio.
else if($pf == 'audio'){
?>
<div class="audio">
<?php
if(defined('ACORA_SETTINGS_INIT')){
acora_settings_audio();
}
?>
</div>
<?php
}// Video.
else if($pf == 'video'){
if(defined('ACORA_SETTINGS_INIT')){
acora_settings_video();
}
}// Link.
else if($pf == 'link'){
$link_class = 'link-format acora-16-3';
if(!defined('ACORA_SETTINGS_INIT')){
$link_class = '';
}
if(has_post_thumbnail()){
$link_class = 'link-format has-featured-image';
}
if(defined('ACORA_SETTINGS_INIT') && !acora_settings_has_link()){
$link_class = '';
}
?><div class="<?php echo esc_attr($link_class); ?>"><?php
if(has_post_thumbnail()):?>
<div id="featured_image<?php echo esc_attr(get_the_ID());?>" class="featured-image">
<?php endif;
?>
<div class="background"></div>
<?php
if(defined('ACORA_SETTINGS_INIT')){
acora_settings_link();
}
if(has_post_thumbnail()): ?></div><?php endif;
?></div><?php
}// Quote.
else if($pf == 'quote'){
if(has_post_thumbnail()):?><div id="featured_image<?php echo esc_attr(get_the_ID()); ?>" class="featured-image">
<div class="background"></div>
<?php
if(defined('ACORA_SETTINGS_INIT')){
acora_settings_quote();
}
?></div>
<?php
else:
if(defined('ACORA_SETTINGS_INIT')){
acora_settings_quote();
}
endif;
}
}
the_content();
acora_get_post_pagination();
?>
</div>
<div class="clear"></div>
<?php
$class ='entry-footer';
if(acora_blog_has_navigation() && !acora_has_tags_or_share()){
$class .=' has-navigation';
}
if(!acora_has_tags_or_share() && !acora_blog_has_navigation()){
$class ='entry-footer no-meta' . acora_rl_active_comments();
if(current_user_can('administrator')){
$class .= ' only-can-edit';
}
}
if(!post_password_required()):
?>
<footer class="<?php echo esc_attr($class); ?>">
<?php
echo acora_get_tags();
if(function_exists('acora_settings_get_share_buttons')){
echo acora_settings_get_share_buttons();
}
?>
</footer><!-- .entry-footer -->
<?php endif; ?>
</div>