Files
Roman Pyrih c2e100a763 first commit
2023-07-24 08:30:51 +02:00

58 lines
1.8 KiB
PHP

<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background ' ); ?>>
<?php solarify_post_thumbnail(); ?>
<div class="item-content">
<?php if ( is_sticky() && is_home() && ! is_paged() ) {
echo '<div class="featured-post grey"><i class="rt-icon2-clip highlight"></i>' . esc_html__( ' Sticky: ', 'solarify' ) . '</div>';
} ?>
<header class="entry-header">
<?php
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
?>
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) ) : ?>
<div class="categories-links highlightlinks"><?php echo get_the_category_list( esc_html_x( ' ', 'Used between list items, there is a space after the comma.', 'solarify' ) ); ?></div>
<?php endif; ?>
</header><!-- .entry-header -->
<?php if ( !empty( $post->post_content ) ) : ?>
<?php if ( is_search() ) : ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php
//hidding "more link" in content
the_content( esc_html__( 'Read More', 'solarify' ) );
wp_link_pages( array(
'before' => '<div class="page-links highlightlinks topmargin_30"><span class="page-links-title">' . esc_html__( 'Pages:', 'solarify' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
?>
</div><!-- .entry-content -->
<?php endif; //is_search
endif; // content check
?>
</div><!-- eof .item-content -->
</article><!-- #post-## -->