Viewing File: /home/maglabs/2vsa/wp-content/themes/cargohub/parts/content.php
<?php
/**
* @package CargoHub
*/
$size = 'cargohub-blog-thumb';
$css_class = 'blog-wrapper';
$col = cargohub_get_option( 'blog_grid_columns' );
if ( 'grid' == cargohub_get_option( 'blog_layout' ) ) {
$css_class .= ' col-xs-12 col-sm-6 col-md-' . 12 / $col . ' col-' . $col;
if ( '2' == $col ) {
$size = 'cargohub-blog-grid-thumb';
} elseif ( '3' == $col ) {
$size = 'cargohub-blog-grid-thumb-2';
} else {
$size = 'cargohub-blog-grid-thumb-3';
if ( 'no-sidebar' != cargohub_get_layout() ) {
$css_class = 'blog-wrapper col-xs-12 col-sm-6 col-md-4 col-4';
}
}
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $css_class ); ?>>
<div class="wrapper">
<div class="entry-thumbnail">
<a href="<?php the_permalink() ?>"><?php the_post_thumbnail( $size ) ?></a>
<div class="entry-time">
<span class="day"><?php echo get_the_date( 'd' ) ?></span>
<span class="month"><?php echo get_the_date( 'M' ) ?></span>
</div>
</div>
<header class="entry-header">
<div class="entry-meta clearfix">
<?php cargohub_entry_meta() ?>
</div><!-- .entry-meta -->
<h2 class="entry-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_excerpt(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'cargohub' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer clearfix">
<a href="<?php the_permalink() ?>"><?php echo apply_filters( 'gh_read_more', esc_html__( 'Read More...', 'cargohub' ) ) ?></a>
</footer>
</div>
</article><!-- #post-## -->
Back to Directory
File Manager