Sindbad~EG File Manager
<?php
/**
* Template part for displaying posts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.2
*/
?>
<pre><?php echo __FILE__ ?></pre>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
if ( is_single() ) {
?>
<div class="container">
<?php
empirika_first_category();
the_title( '<h1 class="entry-title">', '</h1>' );
?>
<div class="description-author--block">
<?php empirika_author();
$description_author = get_field('description_author');
if ($description_author != '') : ?>
<div class="description-author">
<?php echo $description_author; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php
}
/*
* If a regular post or page, and not the front page, show the featured image.
* Using get_queried_object_id() here since the $post global may not be set before a call to the_post().
*/
$hide_main_image = get_field('hide_main_image');
if ( ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() ) && ($hide_main_image !== true) ) :
echo '<div class="image-header-caption">';
echo '<div class="single-featured-image-header">';
echo get_the_post_thumbnail( get_queried_object_id(), 'twentyseventeen-featured-image' );
echo '</div><!-- .single-featured-image-header -->';
if (get_the_post_thumbnail_caption() != '') : ?>
<div class="thumbnail-caption">
<div class="container">
<p><?php echo get_the_post_thumbnail_caption(); ?></p>
</div>
</div>
<?php endif; ?>
</div>
<?php endif;
if ( is_sticky() && is_home() ) :
echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
endif;
empirika_share_buttons(get_permalink(), get_the_title());
?>
<header class="entry-header">
<div class="container">
<?php
if ( 'post' === get_post_type() ) {
echo '<div class="entry-meta">';
if ( is_single() ) {
empirika_posted_on();
} else {
echo twentyseventeen_time_link();
twentyseventeen_edit_link();
};
echo '</div><!-- .entry-meta -->';
};
if ( is_front_page() && is_home() ) {
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
} elseif(!is_single()){
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
}
?>
</div>
</header><!-- .entry-header -->
<?php if ( '' !== get_the_post_thumbnail() && ! is_single() ) : ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail( 'twentyseventeen-featured-image' ); ?>
</a>
</div><!-- .post-thumbnail -->
<?php endif; ?>
<div class="entry-content">
<div class="container">
<?php
/* translators: %s: Name of current post */
the_content( sprintf(
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
get_the_title()
) );
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ),
'after' => '</div>',
'link_before' => '<span class="page-number">',
'link_after' => '</span>',
) );
?>
</div>
</div><!-- .entry-content -->
<?php
if ( is_single() ) {
//twentyseventeen_entry_footer();
}
?>
</article><!-- #post-## -->
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists