Viewing File: /home/maglabs/multicerame/wp-content/themes/dom/skins/default/templates/content-custom.php

<?php
/**
 * The custom template to display the content
 *
 * Used for index/archive/search.
 *
 * @package DOM
 * @since DOM 1.0.50
 */

$dom_template_args = get_query_var( 'dom_template_args' );
if ( is_array( $dom_template_args ) ) {
	$dom_columns    = empty( $dom_template_args['columns'] ) ? 2 : max( 1, $dom_template_args['columns'] );
	$dom_blog_style = array( $dom_template_args['type'], $dom_columns );
} else {
	$dom_template_args = array();
	$dom_blog_style = explode( '_', dom_get_theme_option( 'blog_style' ) );
	$dom_columns    = empty( $dom_blog_style[1] ) ? 2 : max( 1, $dom_blog_style[1] );
}
$dom_blog_id       = dom_get_custom_blog_id( join( '_', $dom_blog_style ) );
$dom_blog_style[0] = str_replace( 'blog-custom-', '', $dom_blog_style[0] );
$dom_expanded      = ! dom_sidebar_present() && dom_get_theme_option( 'expand_content' ) == 'expand';
$dom_components    = ! empty( $dom_template_args['meta_parts'] )
							? ( is_array( $dom_template_args['meta_parts'] )
								? join( ',', $dom_template_args['meta_parts'] )
								: $dom_template_args['meta_parts']
								)
							: dom_array_get_keys_by_value( dom_get_theme_option( 'meta_parts' ) );
$dom_post_format   = get_post_format();
$dom_post_format   = empty( $dom_post_format ) ? 'standard' : str_replace( 'post-format-', '', $dom_post_format );

$dom_blog_meta     = dom_get_custom_layout_meta( $dom_blog_id );
$dom_custom_style  = ! empty( $dom_blog_meta['scripts_required'] ) ? $dom_blog_meta['scripts_required'] : 'none';

if ( ! empty( $dom_template_args['slider'] ) || $dom_columns > 1 || ! dom_is_off( $dom_custom_style ) ) {
	?><div class="
		<?php
		if ( ! empty( $dom_template_args['slider'] ) ) {
			echo 'slider-slide swiper-slide';
		} else {
			echo esc_attr( ( dom_is_off( $dom_custom_style ) ? 'column' : sprintf( '%1$s_item %1$s_item', $dom_custom_style ) ) . "-1_{$dom_columns}" );
		}
		?>
	">
	<?php
}
?>
<article id="post-<?php the_ID(); ?>" data-post-id="<?php the_ID(); ?>"
	<?php
	post_class(
			'post_item post_item_container post_format_' . esc_attr( $dom_post_format )
					. ' post_layout_custom post_layout_custom_' . esc_attr( $dom_columns )
					. ' post_layout_' . esc_attr( $dom_blog_style[0] )
					. ' post_layout_' . esc_attr( $dom_blog_style[0] ) . '_' . esc_attr( $dom_columns )
					. ( ! dom_is_off( $dom_custom_style )
						? ' post_layout_' . esc_attr( $dom_custom_style )
							. ' post_layout_' . esc_attr( $dom_custom_style ) . '_' . esc_attr( $dom_columns )
						: ''
						)
		);
	dom_add_blog_animation( $dom_template_args );
	?>
>
	<?php
	// Sticky label
	if ( is_sticky() && ! is_paged() ) {
		?>
		<span class="post_label label_sticky"></span>
		<?php
	}
	// Custom layout
	do_action( 'dom_action_show_layout', $dom_blog_id, get_the_ID() );
	?>
</article><?php
if ( ! empty( $dom_template_args['slider'] ) || $dom_columns > 1 || ! dom_is_off( $dom_custom_style ) ) {
	?></div><?php
	// Need opening PHP-tag above just after </div>, because <div> is a inline-block element (used as column)!
}
Back to Directory File Manager