| Server IP : 85.155.190.233 / Your IP : 216.73.216.103 Web Server : nginx/1.24.0 System : Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : wp-moonbloom ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/moonbloom/wp-content/themes/kadence/template-parts/content/ |
Upload File : |
<?php
/**
* Template part for displaying a post's summary
*
* @package kadence
*/
namespace Kadence;
use function get_post_type;
use function the_content;
use function the_excerpt;
$slug = ( is_search() ? 'search' : get_post_type() );
$excerpt_element = kadence()->option( $slug . '_archive_element_excerpt' );
if ( isset( $excerpt_element ) && is_array( $excerpt_element ) && true === $excerpt_element['enabled'] ) {
?>
<div class="entry-summary">
<?php
if ( true === kadence()->sub_option( $slug . '_archive_element_excerpt', 'fullContent' ) ) {
global $more; $more = 0;
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Read More<span class="screen-reader-text"> "%s"</span>', 'kadence' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
)
);
} else {
the_excerpt();
}
?>
</div><!-- .entry-summary -->
<?php
}