Current File : /home/mdkeenpw/www/wp-content/themes/globallogistics/skins/default/templates/content-custom.php
<?php
/**
 * The custom template to display the content
 *
 * Used for index/archive/search.
 *
 * @package GLOBALLOGISTICS
 * @since GLOBALLOGISTICS 1.0.50
 */

$globallogistics_template_args = get_query_var( 'globallogistics_template_args' );
if ( is_array( $globallogistics_template_args ) ) {
	$globallogistics_columns    = empty( $globallogistics_template_args['columns'] ) ? 2 : max( 1, $globallogistics_template_args['columns'] );
	$globallogistics_blog_style = array( $globallogistics_template_args['type'], $globallogistics_columns );
} else {
	$globallogistics_template_args = array();
	$globallogistics_blog_style = explode( '_', globallogistics_get_theme_option( 'blog_style' ) );
	$globallogistics_columns    = empty( $globallogistics_blog_style[1] ) ? 2 : max( 1, $globallogistics_blog_style[1] );
}
$globallogistics_blog_id       = globallogistics_get_custom_blog_id( join( '_', $globallogistics_blog_style ) );
$globallogistics_blog_style[0] = str_replace( 'blog-custom-', '', $globallogistics_blog_style[0] );
$globallogistics_expanded      = ! globallogistics_sidebar_present() && globallogistics_get_theme_option( 'expand_content' ) == 'expand';
$globallogistics_components    = ! empty( $globallogistics_template_args['meta_parts'] )
							? ( is_array( $globallogistics_template_args['meta_parts'] )
								? join( ',', $globallogistics_template_args['meta_parts'] )
								: $globallogistics_template_args['meta_parts']
								)
							: globallogistics_array_get_keys_by_value( globallogistics_get_theme_option( 'meta_parts' ) );
$globallogistics_post_format   = get_post_format();
$globallogistics_post_format   = empty( $globallogistics_post_format ) ? 'standard' : str_replace( 'post-format-', '', $globallogistics_post_format );

$globallogistics_blog_meta     = globallogistics_get_custom_layout_meta( $globallogistics_blog_id );
$globallogistics_custom_style  = ! empty( $globallogistics_blog_meta['scripts_required'] ) ? $globallogistics_blog_meta['scripts_required'] : 'none';

if ( ! empty( $globallogistics_template_args['slider'] ) || $globallogistics_columns > 1 || ! globallogistics_is_off( $globallogistics_custom_style ) ) {
	?><div class="
		<?php
		if ( ! empty( $globallogistics_template_args['slider'] ) ) {
			echo 'slider-slide swiper-slide';
		} else {
			echo esc_attr( ( globallogistics_is_off( $globallogistics_custom_style ) ? 'column' : sprintf( '%1$s_item %1$s_item', $globallogistics_custom_style ) ) . "-1_{$globallogistics_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( $globallogistics_post_format )
					. ' post_layout_custom post_layout_custom_' . esc_attr( $globallogistics_columns )
					. ' post_layout_' . esc_attr( $globallogistics_blog_style[0] )
					. ' post_layout_' . esc_attr( $globallogistics_blog_style[0] ) . '_' . esc_attr( $globallogistics_columns )
					. ( ! globallogistics_is_off( $globallogistics_custom_style )
						? ' post_layout_' . esc_attr( $globallogistics_custom_style )
							. ' post_layout_' . esc_attr( $globallogistics_custom_style ) . '_' . esc_attr( $globallogistics_columns )
						: ''
						)
		);
	globallogistics_add_blog_animation( $globallogistics_template_args );
	?>
>
	<?php
	// Sticky label
	if ( is_sticky() && ! is_paged() ) {
		?>
		<span class="post_label label_sticky"></span>
		<?php
	}
	// Custom layout
	do_action( 'globallogistics_action_show_layout', $globallogistics_blog_id, get_the_ID() );
	?>
</article><?php
if ( ! empty( $globallogistics_template_args['slider'] ) || $globallogistics_columns > 1 || ! globallogistics_is_off( $globallogistics_custom_style ) ) {
	?></div><?php
	// Need opening PHP-tag above just after </div>, because <div> is a inline-block element (used as column)!
}