Example #1
0
/** 
 * Future Featured Image
 *
 * Usage: For BLOG Featued Image ONLY
 *
 * @param string $size Featued Image Size.
 * @param string $wrapper_class Featued Image Wrapper to make it Responsive.
 */
function future_featured_image($args = array())
{
    /** Defaults */
    $defaults = array('size' => 'future-image-featured', 'wrapper_class' => 'entry-featured-image-wrapper');
    /** Theme Settings */
    $future_options = future_get_settings();
    /** Should we proceed? */
    if ($future_options['future_featured_image_control'] == 'no') {
        return;
    }
    /** Featured Image according to Layout */
    if (future_cs_layout(array('cs_layout_bone' => 'cs_layout', 'echo' => false)) == 'content') {
        $args['size'] = 'future-image-featured-onecol';
        $args['wrapper_class'] = 'entry-featured-image-onecol-wrapper';
    }
    /** Parse Arguments */
    $args = wp_parse_args($args, $defaults);
    extract($args, EXTR_SKIP);
    $img = future_get_image(array('format' => 'html', 'size' => $size, 'mode' => $future_options['future_featured_image_control'], 'attr' => array('class' => 'entry-featured-image img-responsive')));
    if (empty($img)) {
        return;
    }
    printf('<div class="%1$s"><a href="%2$s" title="%3$s">%4$s</a></div>', $wrapper_class, esc_url(get_permalink()), the_title_attribute('echo=0'), $img);
}
Example #2
0

<?php 
get_template_part('loop-meta');
?>


<div class="<?php 
future_cs_layout(array('cs_layout_bone' => 'content_sidebar_wrapper_class'));
?>
">
  <div class="container">
    <div class="row">
  
      <div class="<?php 
future_cs_layout(array('cs_layout_bone' => 'content_column_class'));
?>
">
        <main class="content" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog">	  
  	  
  	      <?php 
if (have_posts()) {
    ?>

        
            <?php 
    while (have_posts()) {
        the_post();
        ?>

          
<?php

if (future_cs_layout(array('cs_layout_bone' => 'cs_layout', 'echo' => false)) == 'content') {
    return;
}
?>
<div class="<?php 
future_cs_layout(array('cs_layout_bone' => 'sidebar_column_class'));
?>
">
  <aside class="sidebar sidebar-primary widget-area" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">  
	<?php 
if (!dynamic_sidebar('future-primary-sidebar')) {
    $future_theme_data = future_theme_data();
    ?>
	<section class="widget widget_search">
		<div class="widget-inside">
			<?php 
    get_search_form();
    ?>
		</div>
	</section>
	<section class="widget widget_recent_entries">
		<div class="widget-inside">
			<h3 class="widget-title"><?php 
    _e('Recent Posts', 'future');
    ?>
</h3>
			<ul><?php 
    wp_get_archives('type=postbypost&limit=5');
    ?>