function shoestrap_content_width_px($echo = false)
 {
     global $redux;
     $layout = shoestrap_getLayout();
     $container = filter_var(shoestrap_getVariable('screen_large_desktop'), FILTER_SANITIZE_NUMBER_INT);
     $gutter = filter_var(shoestrap_getVariable('layout_gutter'), FILTER_SANITIZE_NUMBER_INT);
     $main_span = filter_var(shoestrap_section_class('main', false), FILTER_SANITIZE_NUMBER_INT);
     $main_span = str_replace('-', '', $main_span);
     $width = $container * ($main_span / 12) - $gutter;
     // Width should be an integer since we're talking pixels, round up!.
     $width = round($width);
     if ($echo) {
         echo $width;
     } else {
         return $width;
     }
 }
Exemplo n.º 2
0
    ?>
	            </div>
	          </div>
	        <?php 
}
?>
	
	        <?php 
if (ac_get_right_sidebar()) {
    ?>
 
	          <aside class="sidebar secondary <?php 
    echo esc_attr(ac_get_sidebar_class());
    ?>
 <?php 
    echo esc_attr(shoestrap_section_class('secondary'));
    ?>
 <?php 
    echo esc_attr(ac_get_hide_until_fade_class());
    ?>
" role="complementary">
	            <?php 
    include new Roots_Wrapping('templates/sidebar-secondary.php');
    ?>
	          </aside><!-- /.sidebar -->
	        <?php 
}
?>
	      </div>
	    </div><!-- /.content -->
	    <?php 
Exemplo n.º 3
0
function shoestrap_mp_wrap_div_toggler()
{
    $wrapper = shoestrap_section_class('wrapper');
    if (!is_null($wrapper) && !empty($wrapper)) {
        add_action('shoestrap_pre_main', 'shoestrap_mp_wrap_div_open', 999);
        add_action('shoestrap_post_main', 'shoestrap_mp_wrap_div_close', 999);
    }
}
Exemplo n.º 4
0
    }
    ?>
					</aside><!-- /.sidebar -->
				<?php 
}
?>

				<?php 
do_action('shoestrap_post_main');
?>

				<?php 
if (shoestrap_display_secondary_sidebar()) {
    ?>
					<aside id="sidebar-secondary" class="sidebar secondary <?php 
    shoestrap_section_class('secondary', true);
    ?>
" role="complementary">
						<?php 
    dynamic_sidebar('sidebar-secondary');
    ?>
					</aside><!-- /.sidebar -->
				<?php 
}
?>
				<?php 
echo $ss_framework->clearfix();
?>
			<?php 
echo $ss_framework->close_row('div');
?>