Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : content-excerpt.php
<?php
/**
 * The default template to display the content
 *
 * Used for index/archive/search.
 *
 * @package SPIN
 * @since SPIN 1.0
 */

$spin_template_args = get_query_var( 'spin_template_args' );
$spin_columns = 1;
if ( is_array( $spin_template_args ) ) {
	$spin_columns    = empty( $spin_template_args['columns'] ) ? 1 : max( 1, $spin_template_args['columns'] );
	$spin_blog_style = array( $spin_template_args['type'], $spin_columns );
	if ( ! empty( $spin_template_args['slider'] ) ) {
		?><div class="slider-slide swiper-slide">
		<?php
	} elseif ( $spin_columns > 1 ) {
	    $spin_columns_class = spin_get_column_class( 1, $spin_columns, ! empty( $spin_template_args['columns_tablet']) ? $spin_template_args['columns_tablet'] : '', ! empty($spin_template_args['columns_mobile']) ? $spin_template_args['columns_mobile'] : '' );
		?>
		<div class="<?php echo esc_attr( $spin_columns_class ); ?>">
		<?php
	}
} else {
	$spin_template_args = array();
}
$spin_expanded    = ! spin_sidebar_present() && spin_get_theme_option( 'expand_content' ) == 'expand';
$spin_post_format = get_post_format();
$spin_post_format = empty( $spin_post_format ) ? 'standard' : str_replace( 'post-format-', '', $spin_post_format );
?>
<article id="post-<?php the_ID(); ?>" data-post-id="<?php the_ID(); ?>"
	<?php
	post_class( 'post_item post_item_container post_layout_excerpt post_format_' . esc_attr( $spin_post_format ) );
	spin_add_blog_animation( $spin_template_args );
	?>
>
	<?php

	// Sticky label
	if ( is_sticky() && ! is_paged() ) {
		?>
		<span class="post_label label_sticky"></span>
		<?php
	}

	// Featured image
	$spin_hover      = ! empty( $spin_template_args['hover'] ) && ! spin_is_inherit( $spin_template_args['hover'] )
							? $spin_template_args['hover']
							: spin_get_theme_option( 'image_hover' );
	$spin_components = ! empty( $spin_template_args['meta_parts'] )
							? ( is_array( $spin_template_args['meta_parts'] )
								? $spin_template_args['meta_parts']
								: array_map( 'trim', explode( ',', $spin_template_args['meta_parts'] ) )
								)
							: spin_array_get_keys_by_value( spin_get_theme_option( 'meta_parts' ) );
	spin_show_post_featured( apply_filters( 'spin_filter_args_featured',
		array(
			'no_links'   => ! empty( $spin_template_args['no_links'] ),
			'hover'      => $spin_hover,
			'meta_parts' => $spin_components,
			'thumb_size' => ! empty( $spin_template_args['thumb_size'] )
							? $spin_template_args['thumb_size']
							: spin_get_thumb_size( strpos( spin_get_theme_option( 'body_style' ), 'full' ) !== false
								? 'full'
								: ( $spin_expanded 
									? 'huge' 
									: 'big' 
									)
								),
		),
		'content-excerpt',
		$spin_template_args
	) );

	// Title and post meta
	$spin_show_title = get_the_title() != '';
	$spin_show_meta  = count( $spin_components ) > 0 && ! in_array( $spin_hover, array( 'border', 'pull', 'slide', 'fade', 'info' ) );

	if ( $spin_show_title ) {
		?>
		<div class="post_header entry-header">
			<?php
			// Post title
			if ( apply_filters( 'spin_filter_show_blog_title', true, 'excerpt' ) ) {
				do_action( 'spin_action_before_post_title' );
				if ( empty( $spin_template_args['no_links'] ) ) {
					the_title( sprintf( '<h3 class="post_title entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' );
				} else {
					the_title( '<h3 class="post_title entry-title">', '</h3>' );
				}
				do_action( 'spin_action_after_post_title' );
			}
			?>
		</div><!-- .post_header -->
		<?php
	}

	// Post content
	if ( apply_filters( 'spin_filter_show_blog_excerpt', empty( $spin_template_args['hide_excerpt'] ) && spin_get_theme_option( 'excerpt_length' ) > 0, 'excerpt' ) ) {
		?>
		<div class="post_content entry-content">
			<?php

			// Post meta
			if ( apply_filters( 'spin_filter_show_blog_meta', $spin_show_meta, $spin_components, 'excerpt' ) ) {
				if ( count( $spin_components ) > 0 ) {
					do_action( 'spin_action_before_post_meta' );
					spin_show_post_meta(
						apply_filters(
							'spin_filter_post_meta_args', array(
								'components' => join( ',', $spin_components ),
								'seo'        => false,
								'echo'       => true,
							), 'excerpt', 1
						)
					);
					do_action( 'spin_action_after_post_meta' );
				}
			}

			if ( spin_get_theme_option( 'blog_content' ) == 'fullpost' ) {
				// Post content area
				?>
				<div class="post_content_inner">
					<?php
					do_action( 'spin_action_before_full_post_content' );
					the_content( '' );
					do_action( 'spin_action_after_full_post_content' );
					?>
				</div>
				<?php
				// Inner pages
				wp_link_pages(
					array(
						'before'      => '<div class="page_links"><span class="page_links_title">' . esc_html__( 'Pages:', 'spin' ) . '</span>',
						'after'       => '</div>',
						'link_before' => '<span>',
						'link_after'  => '</span>',
						'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'spin' ) . ' </span>%',
						'separator'   => '<span class="screen-reader-text">, </span>',
					)
				);
			} else {
				// Post content area
				spin_show_post_content( $spin_template_args, '<div class="post_content_inner">', '</div>' );
			}

			// More button
			if ( apply_filters( 'spin_filter_show_blog_readmore',  ! isset( $spin_template_args['more_button'] ) || ! empty( $spin_template_args['more_button'] ), 'excerpt' ) ) {
				if ( empty( $spin_template_args['no_links'] ) ) {
					do_action( 'spin_action_before_post_readmore' );
					if ( spin_get_theme_option( 'blog_content' ) != 'fullpost' ) {
						spin_show_post_more_link( $spin_template_args, '<p>', '</p>' );
					} else {
						spin_show_post_comments_link( $spin_template_args, '<p>', '</p>' );
					}
					do_action( 'spin_action_after_post_readmore' );
				}
			}

			?>
		</div><!-- .entry-content -->
		<?php
	}
	?>
</article>
<?php

if ( is_array( $spin_template_args ) ) {
	if ( ! empty( $spin_template_args['slider'] ) || $spin_columns > 1 ) {
		?>
		</div>
		<?php
	}
}
© 2026 GrazzMean-Shell