Ejemplo n.º 1
0
/**
 * Determine the main content area class for layout
 */
function franz_main_content_classes($classes = array())
{
    $column_mode = franz_column_mode();
    if (stripos($column_mode, 'left-sidebar') !== false) {
        $classes[] = 'col-md-push-3';
    }
    if (stripos($column_mode, 'one-column') !== false) {
        $classes[] = 'col-md-12';
        $classes = array_diff($classes, array('col-md-9'));
    }
    echo implode(' ', $classes);
}
Ejemplo n.º 2
0
/**
 * Get the content width based on the theme's design and stylesheet.
 *
 * Used to set the width of images and content. Should be equal to the width the theme
 * is designed for, generally via the style.css stylesheet.
 */
function franz_get_content_width()
{
    global $franz_settings, $franz_defaults, $content_width;
    $column_mode = franz_column_mode();
    if ($column_mode == 'one-column') {
        $content_width = 1140;
        set_post_thumbnail_size($content_width, 450, true);
    }
    return apply_filters('franz_content_width', $content_width);
}
Ejemplo n.º 3
0
<?php

$column_mode = franz_column_mode();
if (stripos($column_mode, 'one-column') !== false) {
    return;
}
$classes = array('sidebar', 'col-md-3', 'flip');
if (stripos($column_mode, 'left-sidebar') !== false) {
    $classes[] = 'col-md-pull-9';
}
?>
<div class="<?php 
echo join(' ', $classes);
?>
">
	<?php 
do_action('franz_sidebar_top');
?>
    <?php 
global $franz_settings;
if (!$franz_settings['disable_search_widget']) {
    $sidebar_widgets = get_option('sidebars_widgets');
    if ($sidebar_widgets['sidebar']) {
        if (!preg_grep('/^search-\\d+/', $sidebar_widgets['sidebar'])) {
            the_widget('WP_Widget_Search');
        }
    }
}
?>
    
    <?php