function block($instance)
    {
        extract($instance);
        // Fix for pagination
        if (is_front_page()) {
            $paged = get_query_var('page') ? get_query_var('page') : 1;
        } else {
            $paged = get_query_var('paged') ? get_query_var('paged') : 1;
        }
        /**
         * Setup post query
         */
        $query_args = array('post_type' => 'post', 'posts_per_page' => $pppage, 'paged' => $paged);
        /**
         * Set up category query if needed
         */
        if (!($filter == 'all')) {
            if (function_exists('icl_object_id')) {
                $filter = (int) icl_object_id($filter, 'category', true);
            }
            $query_args['tax_query'] = array(array('taxonomy' => 'category', 'field' => 'id', 'terms' => $filter));
        }
        $blog_query = new WP_Query($query_args);
        ?>
	
		<?php 
        if ($type == 'blogsidebar') {
            ?>
		
			<?php 
            /**
             * ebor_open_wrapper hook
             * All actions contained in /ebor_framework/theme_actions.php
             *
             * @hooked ebor_open_wrapper_markup - 10
             */
            do_action('ebor_open_wrapper');
            ?>
			  
				<div class="row blog">
				  <div class="span8 posts">
				  
				      <?php 
            if ($blog_query->have_posts()) {
                while ($blog_query->have_posts()) {
                    $blog_query->the_post();
                    ?>
				      
				        <div <?php 
                    post_class();
                    ?>
>
				          <?php 
                    /**
                     * ebor_post_title hook
                     * All actions contained in /ebor_framework/theme_actions.php
                     *
                     * @hooked ebor_post_title_markup - 10
                     */
                    do_action('ebor_post_title');
                    /**
                     * ebor_post_format hook
                     * All actions contained in /ebor_framework/theme_actions.php
                     *
                     * @hooked ebor_post_format_markup - 10
                     */
                    do_action('ebor_post_format');
                    the_content(get_option('blog_continue', 'Continue Reading &rarr;'));
                    ?>
				        </div>
				        <hr />
				        <div class="divide60"></div>
				          
				        <?php 
                }
            } else {
                get_template_part('loop/loop', 'none');
            }
            echo function_exists('kriesi_pagination') ? kriesi_pagination($blog_query->max_num_pages) : posts_nav_link();
            ?>
				    
				  </div>
				  
				  <?php 
            get_sidebar();
            ?>
				
				</div>
			
			<?php 
            /**
             * ebor_close_wrapper hook
             * All actions contained in /ebor_framework/theme_actions.php
             *
             * @hooked ebor_close_wrapper_markup - 10
             */
            do_action('ebor_close_wrapper');
            ?>
		
		<?php 
        } elseif ($type == 'blognosidebar') {
            ?>
		
			<div class="blog no-sidebar">
			  
			<?php 
            $i = 0;
            if ($blog_query->have_posts()) {
                while ($blog_query->have_posts()) {
                    $blog_query->the_post();
                    $i++;
                    echo !($i % 2 == 0) ? '<div class="dark-wrapper">' : '<div class="light-wrapper">';
                    /**
                     * ebor_open_wrapper hook
                     * All actions contained in /ebor_framework/theme_actions.php
                     *
                     * @hooked ebor_open_wrapper_markup - 10
                     */
                    do_action('ebor_open_wrapper');
                    ?>
			      
			    <div <?php 
                    post_class();
                    ?>
>
			      
			      <?php 
                    /**
                     * ebor_post_title hook
                     * All actions contained in /ebor_framework/theme_actions.php
                     *
                     * @hooked ebor_post_title_markup - 10
                     */
                    do_action('ebor_post_title');
                    /**
                     * ebor_post_format hook
                     * All actions contained in /ebor_framework/theme_actions.php
                     *
                     * @hooked ebor_post_format_markup - 10
                     */
                    do_action('ebor_post_format');
                    the_content(get_option('blog_continue', 'Continue Reading &rarr;'));
                    ?>
			      
			    </div>
			
			<?php 
                    /**
                     * ebor_close_wrapper hook
                     * All actions contained in /ebor_framework/theme_actions.php
                     *
                     * @hooked ebor_close_wrapper_markup - 10
                     */
                    do_action('ebor_close_wrapper');
                    if (!($i % 2 == 0)) {
                        echo '</div>';
                    }
                }
            } else {
                get_template_part('loop/loop', 'none');
            }
            if (kriesi_pagination()) {
                ?>
			
			    <div class="dark-wrapper">
			      <?php 
                /**
                 * ebor_open_wrapper hook
                 * All actions contained in /ebor_framework/theme_actions.php
                 *
                 * @hooked ebor_open_wrapper_markup - 10
                 */
                do_action('ebor_open_wrapper');
                echo function_exists('kriesi_pagination') ? kriesi_pagination($blog_query->max_num_pages) : posts_nav_link();
                /**
                 * ebor_close_wrapper hook
                 * All actions contained in /ebor_framework/theme_actions.php
                 *
                 * @hooked ebor_close_wrapper_markup - 10
                 */
                do_action('ebor_close_wrapper');
                ?>
			    </div>
				    
			<?php 
            }
            ?>
			    
			</div>
			
		<?php 
        } elseif ($type == 'blogshowcase') {
            ?>
			
			<div class="full-portfolio">
			
				<ul class="items">
				    
				    <?php 
            if ($blog_query->have_posts()) {
                while ($blog_query->have_posts()) {
                    $blog_query->the_post();
                    ?>
				    
				      <li <?php 
                    post_class('item overlay thumb ' . ebor_the_isotope_terms());
                    ?>
>
				          <a href="<?php 
                    the_permalink();
                    ?>
">
				          	<?php 
                    the_post_thumbnail('portfolio-index');
                    ?>
				          	<div><h5><?php 
                    the_title();
                    ?>
</h5></div>
				          </a>
				      </li>
				      
				    <?php 
                }
            } else {
                get_template_part('loop/loop', 'none');
            }
            ?>
				
				</ul>
				
				<?php 
            ebor_blog_load_more();
            ?>
			
			</div>
			
		<?php 
        }
        ?>
			
	<?php 
    }
        post_class('item overlay thumb ' . ebor_the_isotope_terms());
        ?>
>
	          <a href="<?php 
        the_permalink();
        ?>
">
	          	<?php 
        the_post_thumbnail('portfolio-index');
        ?>
	          	<div><h5><?php 
        the_title();
        ?>
</h5></div>
	          </a>
	      </li>
	      
	    <?php 
    }
} else {
    get_template_part('loop/loop', 'none');
}
?>
	
	</ul>
	
	<?php 
ebor_blog_load_more('', 2, $cat);
?>

</div>