Exemplo n.º 1
0
			<?php 
        gabfire_media(array('name' => 'post-sidebar', 'imgtag' => 1, 'link' => 1, 'enable_video' => 1, 'video_id' => 'postfull', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 700, 'media_height' => 380, 'thumb_align' => 'aligncenter', 'enable_default' => 0));
        ?>
				<p><?php 
        echo string_limit_words(get_the_excerpt(), 30);
        ?>
&hellip;</p>
		</article>

		<?php 
        if ($count % 3 == 0) {
            echo '<div class="clearfix"></div>';
        }
        ?>

	<?php 
        $count++;
    }
} else {
}
?>

	<?php 
gabfire_archivepagination();
?>

	<div class="clearfix"></div>

</div><!-- articles-wrapper -->
Exemplo n.º 2
0
    function gabfire_grid_cat_layout()
    {
        // Design archive template based on variables below
        if (get_option('sharp_2col') != '' && is_category(explode(',', get_option('sharp_2col')))) {
            $section_class = 'archive-2col';
            $main_class = 'col-xs-12 col-md-8 archive-withsidebar';
            $sidebar = 1;
        } elseif (get_option('sharp_2col_full') != '' && is_category(explode(',', get_option('sharp_2col_full')))) {
            $section_class = 'archive-2col';
            $main_class = 'col-md-12 archive-full';
            $sidebar = 0;
        } elseif (get_option('sharp_4col') != '' && is_category(explode(',', get_option('sharp_4col')))) {
            $section_class = 'archive-4col';
            $main_class = 'col-xs-12 col-md-8 archive-withsidebar';
            $sidebar = 1;
        } elseif (get_option('sharp_4col_full') != '' && is_category(explode(',', get_option('sharp_4col_full')))) {
            $section_class = 'archive-4col';
            $main_class = 'col-md-12 archive-full';
            $sidebar = 0;
        } elseif (get_option('sharp_3col') != '' && is_category(explode(',', get_option('sharp_3col')))) {
            $section_class = 'archive-3col';
            $main_class = 'col-xs-12 col-md-8 archive-withsidebar';
            $sidebar = 1;
        } else {
            //fallback -> 3 column no sidebar template
            $section_class = 'archive-3col';
            $main_class = 'col-md-12 archive-full';
            $sidebar = 0;
        }
        ?>

				<section class="row <?php 
        echo $section_class;
        ?>
 archive-template">

					<main class="<?php 
        echo $main_class;
        ?>
" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog">
						<div class="entries-wrapper">
							<?php 
        get_template_part('loops/archive/loop-grid');
        ?>
						</div>
						<?php 
        gabfire_archivepagination();
        ?>
					</main>

					<?php 
        if ($sidebar == 1) {
            get_sidebar();
        }
        ?>

				</section>
			<?php 
    }