| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/blog/wp-content/themes/orsay-child/ |
Upload File : |
<?php
/**
*
* The template used for displaying articles & search results
*
* @package Orsay
*/
$orsay_options = get_theme_mods();
$orsay_excerpt = array_key_exists('orsay_excerpt', $orsay_options) ? $orsay_options['orsay_excerpt'] : '';
$orsay_hide_author = array_key_exists('orsay_hide_author', $orsay_options) ? $orsay_options['orsay_hide_author'] : false;
$orsay_hide_comments = array_key_exists('orsay_hide_comments', $orsay_options) ? $orsay_options['orsay_hide_comments'] : false;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-header">
<span class="cat"><?php the_category( ' | ' ); ?></span>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<span class="date"><?php
if ($orsay_hide_author == false) {
esc_html_e( 'By', 'orsay' ); ?> <?php the_author_posts_link(); ?> <?php esc_html_e( 'on', 'orsay' );
} ?>
<?php the_date(); ?></span>
</div>
<div class="post-image">
<?php if ( has_post_thumbnail() ) :
$orsay_thumb_size = get_theme_mod( 'orsay_sidebar_position' );
if ((isset($orsay_thumb_size)) && ($orsay_thumb_size == 'mz-full-width')) $orsay_thumbnail = 'orsay-large-thumbnail';
else $orsay_thumbnail = 'orsay-middle-thumbnail';
?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php echo get_the_post_thumbnail( get_the_ID(), $orsay_thumbnail ); ?>
</a>
<?php endif; ?>
</div>
<div class="post-entry">
<?php if ( is_search() ) : // Only display Excerpts for Search
the_excerpt();
else :
if ( $orsay_excerpt == '' ) {
the_content( '' );
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'orsay' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'orsay' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
} else {
the_excerpt();
}
endif; // endif is_search
?>
<p class="read-more"><a href="<?php the_permalink(); ?>"><?php esc_html_e( 'Continue Reading', 'orsay' ); ?></a></p>
</div>
<div class="post-meta">
<div class="meta-info">
<?php
if ($orsay_hide_comments == false) {
if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span><?php comments_popup_link( esc_html__( 'Leave a comment', 'orsay' ), esc_html__( '1 Comment', 'orsay' ), esc_html__( '% Comments', 'orsay' ) ); ?></span>
<?php endif;
}
?>
</div>
</div>
</article>