| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/uxhactp/www/wp-content/themes/applica/template-parts/ |
Upload File : |
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Applica
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
if (is_single()) {
global $post;
$applica_post_layout = esc_html(get_post_meta($post->ID, 'applica_post_layout', true));
if (empty($applica_post_layout)) {
$applica_post_layout = 'layout-1';
}
if ($applica_post_layout == "layout-1") { ?>
<header class="entry-header mb-24">
<?php
if (is_singular()):
the_title('<h1 class="entry-title font-size-large">', '</h1>');
else:
the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
endif;
if ('post' === get_post_type()):
?>
<div class="entry-meta">
<?php
applica_posted_on();
applica_posted_by();
?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php applica_post_thumbnail(); ?>
<?php } ?>
<?php } else { ?>
<header class="entry-header">
<?php
if (is_singular()):
the_title('<h1 class="entry-title font-size-large">', '</h1>');
else:
the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
endif;
if ('post' === get_post_type()):
?>
<div class="entry-meta">
<?php
applica_posted_on();
applica_posted_by();
?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php applica_post_thumbnail(); ?>
<?php } ?>
<div class="entry-content">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__('Continue reading<span class="screen-reader-text"> "%s"</span>', 'applica'),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post(get_the_title())
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__('Pages:', 'applica'),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php applica_entry_footer_all(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->