function shoestrap_icons()
    {
        $favicon_item = shoestrap_getVariable('favicon');
        $apple_icon_item = shoestrap_getVariable('apple_icon');
        // Add the favicon
        if (!empty($favicon_item['url']) && $favicon_item['url'] != '') {
            $favicon = matthewruddy_image_resize($favicon_item['url'], 64, 64, true, false);
            echo '<link rel="shortcut icon" href="' . $favicon['url'] . '" type="image/x-icon" />';
        }
        // Add the apple icons
        if (!empty($apple_icon_item['url'])) {
            $iphone_icon = matthewruddy_image_resize($apple_icon_item['url'], 57, 57, true, false);
            $iphone_icon_retina = matthewruddy_image_resize($apple_icon_item['url'], 57, 57, true, true);
            $ipad_icon = matthewruddy_image_resize($apple_icon_item['url'], 72, 72, true, false);
            $ipad_icon_retina = matthewruddy_image_resize($apple_icon_item['url'], 72, 72, true, true);
            ?>
    <!-- For iPhone --><link rel="apple-touch-icon-precomposed" href="<?php 
            echo $iphone_icon['url'];
            ?>
">
    <!-- For iPhone 4 Retina display --><link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php 
            echo $iphone_icon_retina['url'];
            ?>
">
    <!-- For iPad --><link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php 
            echo $ipad_icon['url'];
            ?>
">
    <!-- For iPad Retina display --><link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php 
            echo $ipad_icon_retina['url'];
            ?>
">
    <?php 
        }
    }
Example #2
0
 function shoestrap_core_blog_comments_toggle()
 {
     if (shoestrap_getVariable('blog_comments_toggle') == 1) {
         remove_post_type_support('post', 'comments');
         remove_post_type_support('post', 'trackbacks');
         add_filter('get_comments_number', '__return_false', 10, 3);
     }
 }
 function ac_woocommerce_loop_shop_columns()
 {
     // Get CP value
     $cols = shoestrap_getVariable('wc_shop_cols');
     if (!$cols) {
         $cols = 4;
     }
     return $cols;
 }
 function shoestrap_branding_class($echo = true)
 {
     $logo = shoestrap_getVariable('logo');
     // apply the proper class
     $class = !empty($logo['url']) ? 'logo' : 'text';
     // echo or return the value
     if ($echo) {
         echo $class;
     } else {
         return $class;
     }
 }
Example #5
0
 function shoestrap_module_layout_options($sections)
 {
     // AC - Get a helper object
     $ac_redux = new AC_Redux();
     // Layout Settings
     $section = array('title' => __('Layout', 'shoestrap'), 'icon' => 'el-icon-screen icon-large', 'description' => '<p>In this area you can select your site\'s layout, the width of your sidebars, as well as other, more advanced options.</p>');
     $fields[] = array('title' => __('Site Style', 'shoestrap'), 'desc' => __('Select the default site layout. <br>Wide - Headers and footers stretch to the edges.  The content fits inside a box<br>Boxed - Headers, footers and the content fit inside a single box', 'shoestrap'), 'id' => 'site_style', 'default' => 'wide', 'type' => 'image_select', 'customizer' => array(), 'options' => array('wide' => AC_TEMPLATE_URI . '/assets/img/fw.png', 'boxed' => AC_TEMPLATE_URI . '/assets/img/boxed.png'), 'compiler' => true);
     $fields[] = array('title' => __('Layout', 'shoestrap'), 'desc' => __('Select main content and sidebar arrangement. Choose between 1, 2 or 3 column layout.', 'shoestrap'), 'id' => 'layout', 'default' => 0, 'type' => 'image_select', 'customizer' => array(), 'options' => array(0 => ReduxFramework::$_url . '/assets/img/1c.png', 1 => ReduxFramework::$_url . '/assets/img/2cr.png', 2 => ReduxFramework::$_url . '/assets/img/2cl.png', 3 => ReduxFramework::$_url . '/assets/img/3cl.png', 4 => ReduxFramework::$_url . '/assets/img/3cr.png', 5 => ReduxFramework::$_url . '/assets/img/3cm.png'));
     // AC - Super sidebars
     $fields[] = array('title' => __('Left Sidebar', 'shoestrap'), 'desc' => __('Select the Left sidebar', 'shoestrap'), 'id' => 'layout_left_sidebar', 'default' => 'Sidebar-secondary', 'type' => 'select', 'required' => array('layout', '=', array('2', '3', '4', '5')), 'customizer' => array(), 'options' => $ac_redux->get_sidebar_options());
     $fields[] = array('title' => __('Right Sidebar', 'shoestrap'), 'desc' => __('Select the Right sidebar', 'shoestrap'), 'id' => 'layout_right_sidebar', 'default' => 'Sidebar-primary', 'type' => 'select', 'required' => array('layout', '=', array('1', '3', '4', '5')), 'customizer' => array(), 'options' => $ac_redux->get_sidebar_options());
     // Homepage layout
     $fields[] = array('title' => __('Custom Layout for Homepage', 'shoestrap'), 'desc' => __('Set the layout for the homepage.', 'shoestrap'), 'id' => 'cpt_home_layout_toggle', 'default' => 0, 'type' => 'switch', 'customizer' => array());
     $fields[] = array('title' => __('Homepage Layout', 'shoestrap'), 'desc' => __('Select the content and sidebar arrangement. Choose between 1, 2 or 3 column layout.', 'shoestrap'), 'id' => 'home_layout', 'default' => 0, 'type' => 'image_select', 'customizer' => array(), 'required' => array('cpt_home_layout_toggle', '=', array('1')), 'options' => array(0 => ReduxFramework::$_url . '/assets/img/1c.png', 1 => ReduxFramework::$_url . '/assets/img/2cr.png', 2 => ReduxFramework::$_url . '/assets/img/2cl.png', 3 => ReduxFramework::$_url . '/assets/img/3cl.png', 4 => ReduxFramework::$_url . '/assets/img/3cr.png', 5 => ReduxFramework::$_url . '/assets/img/3cm.png'));
     $fields[] = array('title' => __('Homepage Left Sidebar', 'shoestrap'), 'desc' => __('Select the Left sidebar', 'shoestrap'), 'id' => 'home_layout_left_sidebar', 'default' => 'Sidebar-page', 'type' => 'select', 'required' => array('home_layout', '=', array('2', '3', '4', '5')), 'customizer' => array(), 'options' => $ac_redux->get_sidebar_options());
     $fields[] = array('title' => __('Homepage Right Sidebar', 'shoestrap'), 'desc' => __('Select the Right sidebar', 'shoestrap'), 'id' => 'home_layout_right_sidebar', 'default' => 'Sidebar-page', 'type' => 'select', 'required' => array('home_layout', '=', array('1', '3', '4', '5')), 'customizer' => array(), 'options' => $ac_redux->get_sidebar_options());
     // Archive layout
     $fields[] = array('title' => __('Custom Layout for Archives (categories, tags, authors, dates)', 'shoestrap'), 'desc' => __('Set the layout for Archives.  Note: This does not affect the blog page, as you can set the sidebars on the blog page itself.', 'shoestrap'), 'id' => 'cpt_archive_layout_toggle', 'default' => 1, 'type' => 'switch', 'customizer' => array());
     $fields[] = array('title' => __('Archive Layout', 'shoestrap'), 'desc' => __('Select the content and sidebar arrangement. Choose between 1, 2 or 3 column layout.', 'shoestrap'), 'id' => 'archive_layout', 'default' => 1, 'type' => 'image_select', 'customizer' => array(), 'required' => array('cpt_archive_layout_toggle', '=', array('1')), 'options' => array(0 => ReduxFramework::$_url . '/assets/img/1c.png', 1 => ReduxFramework::$_url . '/assets/img/2cr.png', 2 => ReduxFramework::$_url . '/assets/img/2cl.png', 3 => ReduxFramework::$_url . '/assets/img/3cl.png', 4 => ReduxFramework::$_url . '/assets/img/3cr.png', 5 => ReduxFramework::$_url . '/assets/img/3cm.png'));
     $fields[] = array('title' => __('Archive Left Sidebar', 'shoestrap'), 'desc' => __('Select the Left sidebar', 'shoestrap'), 'id' => 'archive_layout_left_sidebar', 'type' => 'select', 'required' => array('archive_layout', '=', array('2', '3', '4', '5')), 'customizer' => array(), 'options' => $ac_redux->get_sidebar_options());
     $fields[] = array('title' => __('Archive Right Sidebar', 'shoestrap'), 'desc' => __('Select the Right sidebar', 'shoestrap'), 'id' => 'archive_layout_right_sidebar', 'type' => 'select', 'required' => array('archive_layout', '=', array('1', '3', '4', '5')), 'customizer' => array(), 'options' => $ac_redux->get_sidebar_options());
     // Archive post layout
     $fields[] = array('title' => __('Archive Post Style', 'shoestrap'), 'desc' => __('Select the style to use for Archive pages.', 'shoestrap'), 'id' => 'archive_post_style', 'default' => 'grid', 'type' => 'select', 'customizer' => array(), 'options' => array('posts' => __('Standard', 'shoestrap'), 'grid' => __('Grid', 'shoestrap'), 'masonry' => __('Masonry', 'shoestrap')));
     $fields[] = array('title' => __('Archive Grid Columns', 'shoestrap'), 'desc' => __('Select the number of columns for Grid and Masonry post styles.', 'shoestrap'), 'id' => 'archive_grid_cols', 'default' => '3', 'type' => 'select', 'customizer' => array(), 'required' => array('archive_post_style', '=', array('grid', 'masonry', 'tile')), 'options' => array('2' => __('2', 'shoestrap'), '3' => __('3', 'shoestrap'), '4' => __('4', 'shoestrap')));
     // Post type layout
     $fields[] = array('title' => __('Custom Layouts per Post Type', 'shoestrap'), 'desc' => __('Set a default layout for each post type.', 'shoestrap'), 'id' => 'cpt_layout_toggle', 'default' => 0, 'type' => 'switch', 'customizer' => array());
     $post_types = get_post_types(array('public' => true), 'objects');
     // AC objects is better
     foreach ($post_types as $post_type) {
         // AC Super sidebars
         // Only include types that support sidebars
         if (ac_post_type_has_sidebar($post_type->name)) {
             $fields[] = array('title' => __($post_type->labels->name . ' Layout', 'shoestrap'), 'desc' => __('Override the default layout.', 'shoestrap'), 'id' => $post_type->name . '_layout', 'default' => shoestrap_getVariable('layout'), 'type' => 'image_select', 'required' => array('cpt_layout_toggle', '=', array('1')), 'options' => array(0 => ReduxFramework::$_url . '/assets/img/1c.png', 1 => ReduxFramework::$_url . '/assets/img/2cr.png', 2 => ReduxFramework::$_url . '/assets/img/2cl.png', 3 => ReduxFramework::$_url . '/assets/img/3cl.png', 4 => ReduxFramework::$_url . '/assets/img/3cr.png', 5 => ReduxFramework::$_url . '/assets/img/3cm.png'));
             $fields[] = array('title' => __($post_type->labels->name . ' Left Sidebar', 'shoestrap'), 'desc' => __('Select the Left sidebar to show on ' . $post_type->labels->name, 'shoestrap'), 'id' => $post_type->name . '_layout_left_sidebar', 'type' => 'select', 'required' => array($post_type->name . '_layout', '=', array('2', '3', '4', '5')), 'customizer' => array(), 'options' => $ac_redux->get_sidebar_options());
             $fields[] = array('title' => __($post_type->labels->name . ' Right Sidebar', 'shoestrap'), 'desc' => __('Select the Right sidebar to show on ' . $post_type->labels->name, 'shoestrap'), 'id' => $post_type->name . '_layout_right_sidebar', 'type' => 'select', 'required' => array($post_type->name . '_layout', '=', array('1', '3', '4', '5')), 'customizer' => array(), 'options' => $ac_redux->get_sidebar_options());
         }
     }
     $fields[] = array('title' => __('Left Sidebar Width', 'shoestrap'), 'desc' => __('Select the number of columns for the Left Sidebar. The page is 12 columns wide.', 'shoestrap'), 'id' => 'layout_primary_width', 'type' => 'button_set', 'options' => array('1' => '1 Column', '2' => '2 Columns', '3' => '3 Columns', '4' => '4 Columns', '5' => '5 Columns'), 'default' => '3');
     $fields[] = array('title' => __('Right Sidebar Width', 'shoestrap'), 'desc' => __('Select the number of columns for the Right Sidebar. The page is 12 columns wide.', 'shoestrap'), 'id' => 'layout_secondary_width', 'type' => 'button_set', 'options' => array('1' => '1 Column', '2' => '2 Columns', '3' => '3 Columns', '4' => '4 Columns', '5' => '5 Columns'), 'default' => '3');
     // AC addition
     $fields[] = array('title' => __('Subtle sidebars', 'shoestrap'), 'desc' => __('Should the sidebars be slightly fainter than the content until hovered over?', 'shoestrap'), 'id' => 'ac_sidebar_faint', 'default' => 1, 'type' => 'switch', 'customizer' => array());
     $fields[] = array('title' => __('Custom Grid', 'shoestrap'), 'desc' => __('Activate to customise grid sizes for mobile, tablet and desktop.  For advanced users only.', 'shoestrap'), 'id' => 'custom_grid', 'default' => 0, 'type' => 'switch');
     $fields[] = array('title' => __('Small Screen / Tablet view', 'shoestrap'), 'desc' => __('The width of Tablet screens. Default: 768px', 'shoestrap'), 'id' => 'screen_tablet', 'required' => array('custom_grid', '=', array('1')), 'default' => 768, 'min' => 620, 'step' => 2, 'max' => 2100, 'advanced' => true, 'compiler' => true, 'type' => 'slider');
     $fields[] = array('title' => __('Desktop Container Width', 'shoestrap'), 'desc' => __('The width of normal screens. Default: 992px', 'shoestrap'), 'id' => 'screen_desktop', 'required' => array('custom_grid', '=', array('1')), 'default' => 992, 'min' => 620, 'step' => 2, 'max' => 2100, 'advanced' => true, 'compiler' => true, 'type' => 'slider');
     $fields[] = array('title' => __('Large Desktop Container Width', 'shoestrap'), 'desc' => __('The width of Large Desktop screens. Default: 1200px', 'shoestrap'), 'id' => 'screen_large_desktop', 'required' => array('custom_grid', '=', array('1')), 'default' => 1200, 'min' => 620, 'step' => 2, 'max' => 2100, 'advanced' => true, 'compiler' => true, 'type' => 'slider');
     $fields[] = array('title' => __('Columns Gutter', 'shoestrap'), 'desc' => __('The space between the columns in your grid. Default: 30px', 'shoestrap'), 'id' => 'layout_gutter', 'required' => array('custom_grid', '=', array('1')), 'default' => 30, 'min' => 2, 'step' => 2, 'max' => 100, 'advanced' => true, 'compiler' => true, 'type' => 'slider');
     $section['fields'] = $fields;
     do_action('shoestrap_module_layout_options_modifier');
     $sections[] = $section;
     return $sections;
 }
Example #6
0
/**
 * Add and remove body_class() classes
 */
function roots_body_class($classes)
{
    // Always add ac-theme
    $classes[] = 'ac-theme';
    // Add 'top-navbar' or 'bottom-navabr' class if using Bootstrap's Navbar
    // Used to add styling to account for the WordPress admin bar
    if (current_theme_supports('bootstrap-top-navbar') && shoestrap_getVariable('navbar_fixed') == 1 && shoestrap_getVariable('navbar_fixed_position') != 1) {
        $classes[] = 'top-navbar';
    } elseif (current_theme_supports('bootstrap-top-navbar') && shoestrap_getVariable('navbar_fixed') == 1 && shoestrap_getVariable('navbar_fixed_position') == 1) {
        $classes[] = 'bottom-navbar';
    }
    if (ac_navbar_start_transparent()) {
        $classes[] = ' ac-transparent-navbar-body ';
    }
    return $classes;
}
function ac_prepare_bg_colour_for_less($colour)
{
    if ($colour) {
        // Ensure we have a colour #
        return '#' . str_replace('#', '', $colour);
    } else {
        // Dont use inherit as mixins fall over
        // Get the page bg colour
        $page_bg = shoestrap_getVariable('html_color_bg');
        // Backup, just in case
        if (!$page_bg) {
            $page_bg = '#ffffff';
        }
        return $page_bg;
    }
}
Example #8
0
function roots_google_analytics()
{
    $aid = trim(shoestrap_getVariable('analytics_id'));
    // Only show if we have GA and this is not an admin user
    if ($aid && !current_user_can('manage_options')) {
        ?>
		<script>
		  (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
		  function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
		  e=o.createElement(i);r=o.getElementsByTagName(i)[0];
		  e.src='//www.google-analytics.com/analytics.js';
		  r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
		  ga('create','<?php 
        echo $aid;
        ?>
');ga('send','pageview');
		</script>
	<?php 
    }
}
Example #9
0
 /**
  * Register sidebars and widgets
  */
 function shoestrap_widgets_init()
 {
     $widgets_mode = shoestrap_getVariable('widgets_mode');
     // AC - Force 'none' widgets as option removed
     $widgets_mode = 3;
     if ($widgets_mode == 0) {
         $class = 'panel panel-default';
         $before_title = '<div class="panel-heading">';
         $after_title = '</div><div class="panel-body">';
     } elseif ($widgets_mode == 1) {
         $class = 'well';
         $before_title = '<h3 class="widget-title">';
         $after_title = '</h3>';
     } else {
         $class = '';
         $before_title = '<h3 class="widget-title">';
         $after_title = '</h3>';
     }
     // Sidebars
     register_sidebar(array('name' => __('Primary Sidebar', 'shoestrap'), 'id' => 'sidebar-primary', 'description' => 'Primary sidebar - Set sidebar layout in Theme Options.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Secondary Sidebar', 'shoestrap'), 'id' => 'sidebar-secondary', 'description' => 'Secondary sidebar - Set sidebar layout in Theme Options.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     // AC sidebars
     register_sidebar(array('name' => __('Blog Sidebar', 'shoestrap'), 'id' => 'sidebar-blog', 'description' => 'Optional sidebar for use on blog pages.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Pages Sidebar', 'shoestrap'), 'id' => 'sidebar-page', 'description' => 'Optional sidebar for use on pages.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Portfolio Sidebar', 'shoestrap'), 'id' => 'sidebar-portfolio', 'description' => 'Optional sidebar for use on portfolio pages.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
         register_sidebar(array('name' => __('WooCommerce Sidebar', 'shoestrap'), 'id' => 'sidebar-woocommerce', 'description' => 'Optional sidebar for use on WooCommerce pages.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     }
     register_sidebar(array('name' => __('Sidebar 1', 'shoestrap'), 'id' => 'sidebar-one', 'description' => 'Optional sidebar for use on pages.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Sidebar 2', 'shoestrap'), 'id' => 'sidebar-two', 'description' => 'Optional sidebar for use on pages.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Sidebar 3', 'shoestrap'), 'id' => 'sidebar-three', 'description' => 'Optional sidebar for use on pages.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Sidebar 4', 'shoestrap'), 'id' => 'sidebar-four', 'description' => 'Optional sidebar for use on pages.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Footer Widget Area 1', 'shoestrap'), 'id' => 'sidebar-footer-1', 'description' => 'Appears in the footer section of the site.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Footer Widget Area 2', 'shoestrap'), 'id' => 'sidebar-footer-2', 'description' => 'Appears in the footer section of the site.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Footer Widget Area 3', 'shoestrap'), 'id' => 'sidebar-footer-3', 'description' => 'Appears in the footer section of the site.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
     register_sidebar(array('name' => __('Footer Widget Area 4', 'shoestrap'), 'id' => 'sidebar-footer-4', 'description' => 'Appears in the footer section of the site.', 'before_widget' => '<section id="%1$s" class="' . $class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => $before_title, 'after_title' => $after_title));
 }
function alleycat_compiler()
{
    $minimize_css = shoestrap_getVariable('minimize_css', true);
    $options = $minimize_css == 1 ? array('compress' => true) : array('compress' => false);
    $bootstrap_location = get_template_directory() . '/assets/less/';
    $bootstrap_uri = '';
    try {
        $parser = new Less_Parser($options);
        // AC LESS file
        $parser->parseFile($bootstrap_location . 'alleycat.less', $bootstrap_uri);
        // Our custom variables
        $parser->parse(shoestrap_variables());
        // Add a filter to the compiler
        $parser->parse(apply_filters('shoestrap_compiler', ''));
        $css = $parser->getCss();
    } catch (Exception $e) {
        $error_message = $e->getMessage();
        error_log($error_message);
    }
    // Below is just an ugly hack
    $css = str_replace('bootstrap/fonts/', '', $css);
    $css = str_replace(get_template_directory_uri() . '/assets/', '../', $css);
    return apply_filters('shoestrap_compiler_output', $css);
}
function ac_sidetab_render()
{
    $active = shoestrap_getVariable('side_tab_active');
    if ($active) {
        $text = shoestrap_getVariable('side_tab_text');
        $url = shoestrap_getVariable('side_tab_url');
        $new_window = shoestrap_getVariable('side_tab_new_window');
        $position = 'left';
        //shoestrap_getVariable( 'side_tab_position' );
        $class = " ac_side_tab_{$position} ";
        $new_window_out = '';
        if ($new_window == '1') {
            $new_window_out = ' target="_blank" ';
        }
        // Check we have everything
        if ($text && $url) {
            ?>
			<div class='ac_side_tab <?php 
            echo esc_attr($class);
            ?>
'>
		  	<a href="<?php 
            echo esc_url($url);
            ?>
" <?php 
            echo $new_window_out;
            ?>
 class='' ><?php 
            echo esc_html($text);
            ?>
</a>
			</div>
			<?php 
        }
    }
}
 protected function content($atts, $content = null)
 {
     $this->content_has_container = false;
     extract(shortcode_atts(array('title' => '', 'href' => '', 'target' => '', 'color_type' => '', 'font_size' => '', 'button_color' => '', 'button_text_color' => '', 'knockout_color' => '', 'color' => '', 'el_class' => '', 'icon' => '', 'icon_position' => '', 'icon_color_type' => '', 'icon_color' => '', 'css_animation' => '', 'css' => '', 'css_extra_class' => ''), $atts));
     $btn_style = '';
     // Add a link if required
     $link_start = $this->get_link_start($href);
     $link_end = $this->get_link_end($href);
     // Build the CSS
     $css_class = $this->build_outer_css($atts, $content);
     // Colours
     if ($color_type == '') {
         // default
         $css_class .= ' btn btn-default ';
     } else {
         if ($color_type == 'button') {
             $css_class .= ' btn btn-primary ';
         } else {
             if ($color_type == 'primary') {
                 $css_class .= ' btn ';
                 $btn_style = ' background-color:' . shoestrap_getVariable('color_brand_primary');
             } else {
                 if ($color_type == 'knockout') {
                     $css_class .= ' btn btn-knockout ';
                     if ($knockout_color) {
                         $btn_style = 'border-color:' . $knockout_color . '; color:' . $knockout_color . ';';
                     }
                 } else {
                     if ($color_type == 'knockout-light') {
                         $css_class .= ' btn btn-knockout-light ';
                     } else {
                         if ($color_type == 'knockout-dark') {
                             $css_class .= ' btn btn-knockout-dark ';
                         } else {
                             if ($color_type == 'custom') {
                                 $css_class .= ' btn btn-custom';
                                 if ($button_color) {
                                     $btn_style = ' background-color:' . $button_color . ';';
                                 }
                                 if ($button_text_color) {
                                     $btn_style .= ' color:' . $button_text_color . ';';
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     // Font si
     if ($font_size) {
         $btn_style = 'font-size:' . $font_size . 'px;';
     }
     // Extra CSS
     $css_class .= ' ' . $css_extra_class . ' ';
     // Prepare the style
     if ($btn_style) {
         $btn_style = " style='{$btn_style}' ";
     }
     // -- Icon --
     $icon_style = '';
     $icon_class = '';
     if ($icon) {
         $icon_class = 'fa fa-' . $icon . ' ';
     }
     // Colour
     if ($icon_color_type == 'primary') {
         // Get theme primary colour
         $icon_style = ' color:' . shoestrap_getVariable('color_brand_primary') . ';';
     } else {
         $icon_style = ' color:' . $icon_color . ';';
     }
     $icon_align = 'align' . $icon_position;
     $icon_html = '<i class=" smicon-box-icon ' . $icon_class . ' ' . $icon_align . '" style="' . $icon_style . '"></i>';
     // Build the output
     $output = '';
     // Different output with anchor for HTML5 compliance
     if ($link_start == '') {
         $output .= '<button class="' . $css_class . '" ' . $btn_style . '>' . __($title, 'alleycat') . $icon_html . '</button>';
     } else {
         $output .= '<span class="' . $css_class . '" ' . $btn_style . '>' . __($title, 'alleycat') . $icon_html . '</span>';
         $output = $link_start . $output . $link_end;
     }
     return $output;
 }
Example #13
0
        $fields[] = array('title' => __('Use Transparent Header', 'shoestrap'), 'desc' => __('The Header will automatically become transparent when you have a slider at the top of the page, no page title, or a custom title.  You can also override this on pages and posts.', 'shoestrap'), 'id' => 'navbar_transparent', 'default' => 1, 'customizer' => array(), 'type' => 'switch');
        $fields[] = array('title' => __('Header Starting Logo', 'shoestrap'), 'desc' => __('This logo will fade to the regular logo when the header is transparent.  Upload a logo 2x the original size for retina devices.', 'shoestrap'), 'id' => 'navbar_transparent_starting_logo', 'default' => '', 'type' => 'media', 'customizer' => array(), 'required' => array('navbar_transparent', '=', array('1')));
        $fields[] = array('title' => __('Header Starting Text Color', 'shoestrap'), 'id' => 'navbar_transparent_starting_text_colour', 'desc' => __('Select the starting color for the NavBar text.', 'shoestrap'), 'default' => '#252525', 'compiler' => true, 'customizer' => array(), 'transparent' => false, 'type' => 'color', 'required' => array('navbar_transparent', '=', array('1')));
        $fields[] = array('title' => __('NavBar Background Color', 'shoestrap'), 'id' => 'navbar_bg', 'default' => '#ffffff', 'compiler' => true, 'customizer' => array(), 'transparent' => false, 'type' => 'color');
        $fields[] = array('title' => __('NavBar Background Opacity', 'shoestrap'), 'id' => 'navbar_bg_opacity', 'default' => 100, 'min' => 0, 'step' => 1, 'max' => 100, 'type' => 'slider');
        $fields[] = array('title' => __('Display Branding ( Sitename or Logo ) on the NavBar', 'shoestrap'), 'id' => 'navbar_brand', 'default' => 1, 'customizer' => array(), 'type' => 'switch');
        $fields[] = array('title' => __('NavBar Positioning', 'shoestrap'), 'desc' => __('Set the menu to be always be fixed at the top (or bottom), or to scroll with the page.', 'shoestrap'), 'id' => 'navbar_fixed', 'default' => 1, 'on' => __('Fixed', 'shoestrap'), 'off' => __('Scroll', 'shoestrap'), 'type' => 'switch', 'outer_class' => 'ac_double_colour_switch');
        $fields[] = array('title' => __('Fixed NavBar Position', 'shoestrap'), 'desc' => __('Set the NavBar to be fixed at the top or bottom of the page.', 'shoestrap'), 'id' => 'navbar_fixed_position', 'required' => array('navbar_fixed', '=', array('1')), 'default' => 0, 'on' => __('Bottom', 'shoestrap'), 'off' => __('Top', 'shoestrap'), 'type' => 'switch', 'outer_class' => 'ac_double_colour_switch');
        $fields[] = array('title' => __('NavBar Height', 'shoestrap'), 'desc' => __('Set the height of the NavBar in pixels.  Your logo will resize to fit the height automatically.', 'shoestrap'), 'id' => 'navbar_height', 'default' => 90, 'min' => 38, 'step' => 1, 'max' => 200, 'compiler' => true, 'type' => 'slider');
        $fields[] = array('title' => __('Navbar Font', 'shoestrap'), 'id' => 'font_navbar', 'compiler' => true, 'default' => array('font-family' => 'Raleway', 'font-style' => 400, 'font-size' => 12, 'line-height' => 13, 'color' => '#eeeeee', 'google' => 'false'), 'preview' => array('text' => __('This is my preview text!', 'shoestrap'), 'size' => 30), 'type' => 'typography');
        $fields[] = array('title' => __('Branding Font', 'shoestrap'), 'desc' => __('The branding font for your site.', 'shoestrap'), 'id' => 'font_brand', 'compiler' => true, 'default' => array('font-family' => 'Raleway', 'font-style' => 700, 'font-size' => 24, 'line-height' => 24, 'google' => 'false', 'color' => '#333333'), 'preview' => array('text' => __('This is my preview text!', 'shoestrap'), 'size' => 30), 'type' => 'typography');
        $fields[] = array('title' => __('NavBar Margin', 'shoestrap'), 'desc' => __('Select the top and bottom margin of the NavBar in pixels. Only applies to Scroll NavBar Position.', 'shoestrap'), 'id' => 'navbar_margin', 'default' => 0, 'min' => 0, 'step' => 1, 'max' => 200, 'type' => 'slider');
        $fields[] = array('title' => __('Navigation type', 'shoestrap'), 'id' => 'navbar_desktop_type', 'type' => 'select', 'customizer' => array(), 'options' => array('navbar' => __('Menu in the Navbar', 'shoestrap'), 'overlay' => __('Overlay menu', 'shoestrap')), 'default' => 'overlay');
        $fields[] = array('title' => __('Search form on the Navbar', 'shoestrap'), 'desc' => __('Display a search form in the NavBar.', 'shoestrap'), 'id' => 'navbar_search', 'customizer' => array(), 'default' => 1, 'type' => 'switch', 'required' => array('navbar_desktop_type', '=', array('navbar')));
        $fields[] = array('title' => __('Float NavBar menu to the right', 'shoestrap'), 'id' => 'navbar_nav_right', 'default' => 1, 'customizer' => array(), 'type' => 'switch', 'required' => array('navbar_desktop_type', '=', array('navbar')));
        $fields[] = array('title' => __('Display social networks in the Navbar', 'shoestrap'), 'desc' => __('Enable this option to display your social networks as a dropdown menu on the seondary navbar.', 'shoestrap'), 'id' => 'navbar_secondary_social', 'required' => array('secondary_navbar_toggle', '=', array('1')), 'default' => 0, 'type' => 'switch');
        $fields[] = array('title' => __('Secondary NavBar Margin', 'shoestrap'), 'desc' => __('Select the top and bottom margin of header in pixels. Default: 0px.', 'shoestrap'), 'id' => 'secondary_navbar_margin', 'default' => 0, 'min' => 0, 'max' => 200, 'type' => 'slider', 'required' => array('secondary_navbar_toggle', '=', array('1')));
        $section['fields'] = $fields;
        $section = apply_filters('shoestrap_module_menus_options_modifier', $section);
        $sections[] = $section;
        return $sections;
    }
}
add_filter('redux/options/' . REDUX_OPT_NAME . '/sections', 'shoestrap_module_menus_options', 65);
include_once dirname(__FILE__) . '/functions.navbar.php';
include_once dirname(__FILE__) . '/functions.secondary.navbar.php';
include_once dirname(__FILE__) . '/functions.slide-down.php';
include_once dirname(__FILE__) . '/wp_bootstrap_navlist_walker.php';
if (shoestrap_getVariable('navbar_toggle') == 'alt') {
    include_once dirname(__FILE__) . '/functions.navwalker.php';
}
 /**
  * Shortcode based output of meta information for current post: categories, tags, permalink, author, and date.
  * Create your own shoestrap_meta_custom_render() to override in a child theme.
  */
 function shoestrap_meta_custom_render()
 {
     // get config and data
     $metas = shoestrap_getVariable('shoestrap_entry_meta_config');
     $categories_list = get_the_category_list(__(', ', 'shoestrap'));
     $tag_list = get_the_tag_list('', __(', ', 'shoestrap'));
     $i = 0;
     foreach ($metas as $meta => $value) {
         if ($meta == 'sticky' && is_sticky()) {
             $i++;
         }
         if ($meta == 'date' && !empty($value)) {
             $i++;
         }
         if ($meta == 'category' && !empty($value)) {
             $i++;
         }
         if ($meta == 'tags' && !empty($value)) {
             $i++;
         }
         if ($meta == 'author' && !empty($value)) {
             $i++;
         }
     }
     $col = $i >= 2 ? round(12 / $i, 0) : 12;
     $colclass = 'col-md-' . $col;
     // AC no need for columns
     $colclass = '';
     $content = '';
     foreach ($metas as $meta => $value) {
         // output sticky element
         if ($meta == 'sticky' && is_sticky()) {
             $content .= '<span class="featured-post ' . $colclass . '"><i class="el-icon-flag icon"></i> ' . __('Sticky', 'shoestrap') . '</span>';
         }
         // output date element
         if ($meta == 'date' && !empty($value)) {
             if (!has_post_format('link')) {
                 $format_prefix = has_post_format('chat') || has_post_format('status') ? _x('%1$s on %2$s', '1: post format name. 2: date', 'shoestrap') : '%2$s';
                 $content .= sprintf('<span class="date ' . $colclass . '"><i class="el-icon-time icon"></i> <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span>', esc_url(get_permalink()), esc_attr(sprintf(__('Permalink to %s', 'shoestrap'), the_title_attribute('echo=0'))), esc_attr(get_the_date('c')), esc_html(sprintf($format_prefix, get_post_format_string(get_post_format()), get_the_date())));
             }
         }
         // output category element
         if ($meta == 'category' && !empty($value)) {
             if ($categories_list) {
                 $content .= '<span class="categories-links ' . $colclass . '"><i class="el-icon-folder-open icon"></i> ' . $categories_list . '</span>';
             }
         }
         // output tag element
         if ($meta == 'tags' && !empty($value)) {
             if ($tag_list) {
                 $content .= '<span class="tags-links ' . $colclass . '"><i class="el-icon-tags icon"></i> ' . $tag_list . '</span>';
             }
         }
         // output author element
         if ($meta == 'author' && !empty($value)) {
             $content .= sprintf('<span class="author vcard ' . $colclass . '"><i class="el-icon-user icon"></i> <a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'shoestrap'), get_the_author())), get_the_author());
         }
     }
     if (!empty($content)) {
         echo '<div class="row row-meta">' . $content . '</div>';
     }
 }
function ac_get_page_width_px()
{
    $container = filter_var(shoestrap_getVariable('screen_large_desktop'), FILTER_SANITIZE_NUMBER_INT);
    return $container;
}
Example #16
0
<?php

/***********************/
/**** Base Template ****/
/***********************/
// Determines the HTML page stucture
$site_style = shoestrap_getVariable('site_style');
$navbar_toggle = shoestrap_getVariable('navbar_toggle');
get_template_part('templates/head');
?>
<body <?php 
body_class();
?>
 <?php 
ac_body_data();
?>
>
	
	    <?php 
get_template_part('templates/overlay_nav');
?>
	
	
	<div id="outer-wrap">	
		
	  <?php 
do_action('get_header');
?>
	
	  <?php 
do_action('shoestrap_pre_navbar');
function shoestrap_excerpt_length($length)
{
    return shoestrap_getVariable('post_excerpt_length');
}
Example #18
0
<?php

/**************************/
/**** Archive Template ****/
/**************************/
// Used for all archive views
global $wp_query;
// Show the posts based on the format specified
$archive_post_style = shoestrap_getVariable('archive_post_style');
// Check for Grid or Masonry layout
if (in_array($archive_post_style, array('grid', 'masonry'))) {
    if (have_posts()) {
        // Col number
        $archive_grid_cols = shoestrap_getVariable('archive_grid_cols');
        switch ($archive_post_style) {
            case 'grid':
            case 'masonry':
                // We need the category for the post type for the grid filter to work
                $post_category = '';
                // Get them all
                $taxonomy_names = array();
                if (isset($wp_query->query['post_type'])) {
                    $taxonomy_names = get_object_taxonomies($wp_query->query['post_type']);
                }
                if (count($taxonomy_names) > 0) {
                    $post_category = $taxonomy_names[0];
                }
                // Build the args for the grid
                $args = array('layout' => $archive_post_style, 'post_category' => $post_category, 'show_cat_filter' => true, 'column_count' => $archive_grid_cols);
                echo ac_posts_grid($args, $wp_query->posts);
                break;
    function shoestrap_variables()
    {
        $site_style = shoestrap_getVariable('site_style');
        $html_color_bg = ac_prepare_bg_colour_for_less(shoestrap_getVariable('html_color_bg', true));
        //	$body_bg_raw = ac_prepare_bg_colour_for_less(shoestrap_getVariable( 'color_body_bg', true ) );
        $body_bg_raw = $html_color_bg;
        // Content bg is body bg for Bloc
        // We need a value for other purposes, even if set to blank
        if ($body_bg_raw) {
            // We have a value so use for both
            $body_bg = $body_bg_raw;
            $body_bg_actual = $body_bg;
        } else {
            // No value
            $body_bg = '#ffffff';
            $body_bg_actual = '#ffffff';
        }
        //  $content_opacity  = shoestrap_getVariable( 'color_body_bg_opacity' );
        $content_opacity = 100;
        // 100 for Bloc
        $brand_primary = ac_prepare_text_colour_for_less(shoestrap_getVariable('color_brand_primary', true));
        $brand_success = '#5cb85c';
        //'#' . str_replace( '#', '', shoestrap_getVariable( 'color_brand_success', true ) );
        $brand_warning = '#f0ad4e';
        //'#' . str_replace( '#', '', shoestrap_getVariable( 'color_brand_warning', true ) );
        $brand_danger = '#d9534f';
        //'#' . str_replace( '#', '', shoestrap_getVariable( 'color_brand_danger', true ) );
        $brand_info = '#09040a';
        //'#' . str_replace( '#', '', shoestrap_getVariable( 'color_brand_info', true ) );
        $font_base = shoestrap_process_font(shoestrap_getVariable('font_base', true));
        $font_navbar = shoestrap_process_font(shoestrap_getVariable('font_navbar', true));
        $font_brand = shoestrap_process_font(shoestrap_getVariable('font_brand', true));
        $font_jumbotron = shoestrap_process_font(shoestrap_getVariable('font_jumbotron', true));
        $font_heading = shoestrap_process_font(shoestrap_getVariable('font_heading', true));
        $font_h1 = shoestrap_process_font(shoestrap_getVariable('font_h1', true));
        $font_h2 = shoestrap_process_font(shoestrap_getVariable('font_h2', true));
        $font_h3 = shoestrap_process_font(shoestrap_getVariable('font_h3', true));
        $font_h4 = shoestrap_process_font(shoestrap_getVariable('font_h4', true));
        $font_h5 = shoestrap_process_font(shoestrap_getVariable('font_h5', true));
        $font_h6 = shoestrap_process_font(shoestrap_getVariable('font_h6', true));
        $font_h1_face = $font_h1['font-family'];
        $font_h1_size = filter_var($font_h1['font-size'], FILTER_SANITIZE_NUMBER_INT) / 100;
        $font_h1_weight = $font_h1['font-weight'];
        $font_h1_style = $font_h1['font-style'];
        $font_h1_height = $font_h1['line-height'];
        $font_h1_color = ac_prepare_text_colour_for_less($font_h1['color']);
        $font_h2_face = $font_h2['font-family'];
        $font_h2_size = filter_var($font_h2['font-size'], FILTER_SANITIZE_NUMBER_INT) / 100;
        $font_h2_weight = $font_h2['font-weight'];
        $font_h2_style = $font_h2['font-style'];
        $font_h2_height = $font_h2['line-height'];
        $font_h2_color = ac_prepare_text_colour_for_less($font_h2['color']);
        $font_h3_face = $font_h3['font-family'];
        $font_h3_size = filter_var($font_h3['font-size'], FILTER_SANITIZE_NUMBER_INT) / 100;
        $font_h3_weight = $font_h3['font-weight'];
        $font_h3_style = $font_h3['font-style'];
        $font_h3_height = $font_h3['line-height'];
        $font_h3_color = ac_prepare_text_colour_for_less($font_h3['color']);
        $font_h4_face = $font_h4['font-family'];
        $font_h4_size = filter_var($font_h4['font-size'], FILTER_SANITIZE_NUMBER_INT) / 100;
        $font_h4_weight = $font_h4['font-weight'];
        $font_h4_style = $font_h4['font-style'];
        $font_h4_height = $font_h4['line-height'];
        $font_h4_color = ac_prepare_text_colour_for_less($font_h4['color']);
        $font_h5_face = $font_h5['font-family'];
        $font_h5_size = filter_var($font_h5['font-size'], FILTER_SANITIZE_NUMBER_INT) / 100;
        $font_h5_weight = $font_h5['font-weight'];
        $font_h5_style = $font_h5['font-style'];
        $font_h5_height = $font_h5['line-height'];
        $font_h5_color = ac_prepare_text_colour_for_less($font_h5['color']);
        $font_h6_face = $font_h6['font-family'];
        $font_h6_size = filter_var($font_h6['font-size'], FILTER_SANITIZE_NUMBER_INT) / 100;
        $font_h6_weight = $font_h6['font-weight'];
        $font_h6_style = $font_h6['font-style'];
        $font_h6_height = $font_h6['line-height'];
        $font_h6_color = ac_prepare_text_colour_for_less($font_h6['color']);
        // If set to not use seperate heading values, use the default variables
        if (shoestrap_getVariable('font_heading_custom', true) != 1) {
            $font_h1_face = '@font-family-base';
            $font_h1_weight = '@headings-font-weight';
            $font_h1_style = 'inherit';
            $font_h2_height = '@heading-h1-height';
            $font_h1_color = '@headings-color';
            $font_h2_face = '@font-family-base';
            $font_h2_weight = '@headings-font-weight';
            $font_h2_style = 'inherit';
            $font_h2_height = '@heading-h2-height';
            $font_h2_color = '@headings-color';
            $font_h3_face = '@font-family-base';
            $font_h3_weight = '@headings-font-weight';
            $font_h3_style = 'inherit';
            $font_h2_height = '@heading-h3-height';
            $font_h3_color = '@headings-color';
            $font_h4_face = '@font-family-base';
            $font_h4_weight = '@headings-font-weight';
            $font_h4_style = 'inherit';
            $font_h2_height = '@heading-h4-height';
            $font_h4_color = '@headings-color';
            $font_h5_face = '@font-family-base';
            $font_h5_weight = '@headings-font-weight';
            $font_h5_style = 'inherit';
            $font_h2_height = '@heading-h5-height';
            $font_h5_color = '@headings-color';
            $font_h6_face = '@font-family-base';
            $font_h6_weight = '@headings-font-weight';
            $font_h6_style = 'inherit';
            $font_h2_height = '@heading-h6-height';
            $font_h6_color = '@headings-color';
        }
        $text_color = ac_prepare_text_colour_for_less($font_base['color']);
        $font_size_base = $font_base['font-size'];
        $font_line_height_base = $font_base['line-height'];
        $font_style_base = $font_base['font-style'];
        $font_weight_base = $font_base['font-weight'];
        $sans_serif = $font_base['font-family'];
        $border_radius = filter_var(shoestrap_getVariable('general_border_radius', true), FILTER_SANITIZE_NUMBER_INT);
        $border_radius = strlen($border_radius) < 1 ? 0 : $border_radius;
        $padding_base = intval(shoestrap_getVariable('padding_base', true));
        $navbar_bg = ac_prepare_bg_colour_for_less(shoestrap_getVariable('navbar_bg', true));
        $jumbotron_bg = ac_prepare_bg_colour_for_less(shoestrap_getVariable('jumbotron_bg', true));
        $screen_sm = filter_var(shoestrap_getVariable('screen_tablet', true), FILTER_SANITIZE_NUMBER_INT);
        $screen_md = filter_var(shoestrap_getVariable('screen_desktop', true), FILTER_SANITIZE_NUMBER_INT);
        $screen_lg = filter_var(shoestrap_getVariable('screen_large_desktop', true), FILTER_SANITIZE_NUMBER_INT);
        $gutter = filter_var(shoestrap_getVariable('layout_gutter', true), FILTER_SANITIZE_NUMBER_INT);
        $gutter = $gutter < 2 ? 2 : $gutter;
        $screen_xs = $site_style == 'static' ? '50px' : '480px';
        $screen_sm = $site_style == 'static' ? '50px' : $screen_sm;
        $screen_md = $site_style == 'static' ? '50px' : $screen_md;
        $navbar_height = filter_var(shoestrap_getVariable('navbar_height', true), FILTER_SANITIZE_NUMBER_INT);
        $navbar_text_color = ac_prepare_text_colour_for_less($font_navbar['color']);
        $navbar_transparent_starting_text_colour = ac_prepare_text_colour_for_less(shoestrap_getVariable('navbar_transparent_starting_text_colour'));
        // Fallback to navbar colour
        if (!$navbar_transparent_starting_text_colour) {
            $navbar_transparent_starting_text_colour = $navbar_text_color;
        }
        $brand_text_color = ac_prepare_text_colour_for_less($font_brand['color']);
        $jumbotron_text_color = 'inherit';
        //'#' . str_replace( '#', '', $font_jumbotron['color'] );
        // AC set some jumbo values to allow LESS compiling
        $font_jumbotron_headers['font-family'] = 'inherit';
        $font_jumbotron_headers['font-weight'] = 'inherit';
        $font_jumbotron_headers['font-style'] = 'inherit';
        $font_jumbotron_headers['font-size'] = 'inherit';
        $font_jumbotron['font-family'] = 'inherit';
        $font_jumbotron['font-weight'] = 'inherit';
        $font_jumbotron['font-style'] = 'inherit';
        $font_jumbotron['font-size'] = 'inherit';
        $jumbotron_bg = 'inherit';
        $jumbotron_text_color = 'inherit';
        if (shoestrap_getVariable('font_jumbotron_heading_custom', true) == 1) {
            $font_jumbotron_headers = shoestrap_process_font(shoestrap_getVariable('font_jumbotron_headers', true));
            $font_jumbotron_headers_face = $font_jumbotron_headers['font-family'];
            $font_jumbotron_headers_weight = $font_jumbotron_headers['font-weight'];
            $font_jumbotron_headers_style = $font_jumbotron_headers['font-style'];
            $jumbotron_headers_text_color = ac_prepare_text_colour_for_less($font_jumbotron_headers['color']);
        } else {
            $font_jumbotron_headers_face = $font_jumbotron['font-family'];
            $font_jumbotron_headers_weight = $font_jumbotron['font-weight'];
            $font_jumbotron_headers_style = $font_jumbotron['font-style'];
            $jumbotron_headers_text_color = $jumbotron_text_color;
        }
        // Calculate the gray shadows based on the body background.
        // We basically create 2 "presets": light and dark.
        if (shoestrap_get_brightness($body_bg) > 80) {
            $gray_darker = 'lighten(#000, 13.5%)';
            $gray_dark = 'lighten(#000, 20%)';
            $gray = 'lighten(#000, 33.5%)';
            $gray_light = 'lighten(#000, 60%)';
            $gray_lighter = 'lighten(#000, 93.5%)';
        } else {
            $gray_darker = 'darken(#fff, 13.5%)';
            $gray_dark = 'darken(#fff, 20%)';
            $gray = 'darken(#fff, 33.5%)';
            $gray_light = 'darken(#fff, 60%)';
            $gray_lighter = 'darken(#fff, 93.5%)';
        }
        $link_hover_color = shoestrap_get_brightness($brand_primary) > 50 ? 'darken(@link-color, 15%)' : 'lighten(@link-color, 15%)';
        if (shoestrap_get_brightness($brand_primary) > 50) {
            $table_bg_accent = 'darken(@body-bg, 2.5%)';
            $table_bg_hover = 'darken(@body-bg, 4%)';
            $table_border_color = 'darken(@body-bg, 13.35%)';
            $input_border = 'darken(@body-bg, 20%)';
            $dropdown_divider_top = 'darken(@body-bg, 10.2%)';
        } else {
            $table_bg_accent = 'lighten(@body-bg, 2.5%)';
            $table_bg_hover = 'lighten(@body-bg, 4%)';
            $table_border_color = 'lighten(@body-bg, 13.35%)';
            $input_border = 'lighten(@body-bg, 20%)';
            $dropdown_divider_top = 'lighten(@body-bg, 10.2%)';
        }
        if (shoestrap_get_brightness($navbar_bg) > 80) {
            $navbar_link_hover_color = 'darken(@navbar-default-color, 26.5%)';
            $navbar_link_active_bg = 'darken(@navbar-default-bg, 6.5%)';
            $navbar_link_disabled_color = 'darken(@navbar-default-bg, 6.5%)';
            $navbar_brand_hover_color = 'darken(@navbar-default-brand-color, 10%)';
        } else {
            $navbar_link_hover_color = 'lighten(@navbar-default-color, 26.5%)';
            $navbar_link_active_bg = 'lighten(@navbar-default-bg, 6.5%)';
            $navbar_link_disabled_color = 'lighten(@navbar-default-bg, 6.5%)';
            $navbar_brand_hover_color = 'lighten(@navbar-default-brand-color, 10%)';
        }
        if (shoestrap_get_brightness($brand_primary) > 80) {
            $btn_primary_color = '#fff';
            $btn_primary_border = 'darken(@btn-primary-bg, 5%)';
        } else {
            $btn_primary_color = '#333';
            $btn_primary_border = 'lighten(@btn-primary-bg, 5%)';
        }
        if (shoestrap_get_brightness($brand_success) > 80) {
            $btn_success_color = '#fff';
            $btn_success_border = 'darken(@btn-success-bg, 5%)';
        } else {
            $btn_success_color = '#333';
            $btn_success_border = 'lighten(@btn-success-bg, 5%)';
        }
        if (shoestrap_get_brightness($brand_warning) > 80) {
            $btn_warning_color = '#fff';
            $btn_warning_border = 'darken(@btn-warning-bg, 5%)';
        } else {
            $btn_warning_color = '#333';
            $btn_warning_border = 'lighten(@btn-warning-bg, 5%)';
        }
        if (shoestrap_get_brightness($brand_danger) > 80) {
            $btn_danger_color = '#fff';
            $btn_danger_border = 'darken(@btn-danger-bg, 5%)';
        } else {
            $btn_danger_color = '#333';
            $btn_danger_border = 'lighten(@btn-danger-bg, 5%)';
        }
        if (shoestrap_get_brightness($brand_info) > 80) {
            $btn_info_color = '#fff';
            $btn_info_border = 'darken(@btn-info-bg, 5%)';
        } else {
            $btn_info_color = '#333';
            $btn_info_border = 'lighten(@btn-info-bg, 5%)';
        }
        $input_border_focus = shoestrap_get_brightness($brand_primary) < 100 ? 'lighten(@brand-primary, 10%);' : 'darken(@brand-primary, 10%);';
        $navbar_border = shoestrap_get_brightness($brand_primary) < 50 ? 'lighten(@navbar-default-bg, 6.5%)' : 'darken(@navbar-default-bg, 6.5%)';
        // AC Variables
        $page_title_bg_color = ac_prepare_bg_colour_for_less(shoestrap_getVariable('page_title_bg_color', true));
        $page_title_padding = filter_var(shoestrap_getVariable('page_title_padding', true), FILTER_SANITIZE_NUMBER_INT);
        $custom_page_title_padding = filter_var(shoestrap_getVariable('custom_page_title_padding', true), FILTER_SANITIZE_NUMBER_INT);
        $button_bg_color = ac_prepare_bg_colour_for_less(shoestrap_getVariable('color_button', true));
        $footer_color = ac_prepare_text_colour_for_less(shoestrap_getVariable('footer_color', true));
        $footer_background = ac_prepare_bg_colour_for_less(shoestrap_getVariable('footer_background', true));
        $aeis_slideshow_height = shoestrap_getVariable('aeis_slideshow_height');
        $post_excerpt_link_text = shoestrap_getVariable('post_excerpt_link_text');
        // AC Side Tab
        $side_tab_top = shoestrap_getVariable('side_tab_top');
        // Ensure we have a values
        if (!$side_tab_top) {
            $side_tab_top = 0;
        }
        $side_tab_bg_colour = ac_prepare_bg_colour_for_less(shoestrap_getVariable('side_tab_bg_colour', true));
        $side_tab_text_colour = ac_prepare_bg_colour_for_less(shoestrap_getVariable('side_tab_text_colour', true));
        $variables = '
//
// Variables
// --------------------------------------------------

// Global values
// --------------------------------------------------

// Grays
// -------------------------

@gray-darker:            ' . $gray_darker . ';
@gray-dark:              ' . $gray_dark . ';
@gray:                   ' . $gray . ';
@gray-light:             ' . $gray_light . ';
@gray-lighter:           ' . $gray_lighter . ';
@ccc: mix(@gray-light, @gray-lighter);

// Brand colors
// -------------------------

@brand-primary:         ' . $brand_primary . ';
@brand-success:         ' . $brand_success . ';
@brand-warning:         ' . $brand_warning . ';
@brand-danger:         	' . $brand_danger . ';
@brand-info:            ' . $brand_info . ';

// Scaffolding
// -------------------------


@html_color_bg: ' . $html_color_bg . ';
@body-bg: ' . $body_bg . ';
@body-bg-actual: ' . $body_bg_actual . ';
@text-color: ' . $text_color . ';

// Links
// -------------------------

@link-color:            @brand-primary;
@link-hover-color:      ' . $link_hover_color . ';

// Typography
// -------------------------

@font-family-sans-serif:  ' . $sans_serif . ';
@font-family-serif:       Palatino, "Times New Roman", Times, serif;
@font-family-monospace:   Monaco, Menlo, Consolas, "Courier New", monospace;
@font-family-base:        @font-family-sans-serif;

@font-size-base:          ' . $font_size_base . 'px;
@font-line-height-base:   ' . $font_line_height_base . ';
@font-size-large:         ceil(@font-size-base * 1.25); // ~18px
@font-size-small:         ceil(@font-size-base * 0.85); // ~12px

@font-weight-base:				' . $font_base['font-weight'] . ';

@line-height-base:        1.428571429; // 20/14
@line-height-computed:    floor(@font-size-base * @line-height-base); // ~20px

@headings-font-family:    @font-family-base;
@headings-font-weight:    500;
@headings-line-height:    1.1;
@headings-color:          inherit;

// Iconography
// -------------------------

@icon-font-path:          "../fonts/";
@icon-font-name:          "glyphicons-halflings-regular";

// Components
// -------------------------
// Based on 14px font-size and 1.428 line-height (~20px to start)

@padding-base-vertical:          ' . round($padding_base * 1.33) . 'px;
@padding-base-horizontal:        ' . round($padding_base * 1.5) . 'px;

@padding-large-vertical:         ' . round($padding_base * 1.25) . 'px;
@padding-large-horizontal:       ' . $padding_base * 2 . 'px;

@padding-small-vertical:         ' . round($padding_base * 0.625) . 'px;
@padding-small-horizontal:       @padding-large-vertical;

@padding-xs-vertical:            ' . round($padding_base * 0.125) . 'px;
@padding-xs-horizontal:          @padding-small-vertical;

@line-height-large:              1.33;
@line-height-small:              1.5;

@border-radius-base:             ' . $border_radius . 'px;
@border-radius-large:            ceil(@border-radius-base * 1.5);
@border-radius-small:            floor(@border-radius-base * 0.75);

@component-active-color:         @body-bg;
@component-active-bg:            @brand-primary;

@caret-width-base:               ceil(@font-size-small / 3 ); // ~4px
@caret-width-large:              ceil(@caret-width-base * (5/4) ); // ~5px

// Tables
// -------------------------

@table-cell-padding:                 ceil((@font-size-small * 2) / 3 ); // ~8px;
@table-condensed-cell-padding:       ceil(((@font-size-small / 3 ) * 5) / 4); // ~5px

@table-bg:                           transparent; // overall background-color
@table-bg-accent:                    ' . $table_bg_accent . '; // for striping
@table-bg-hover:                     ' . $table_bg_hover . '; // for hover
@table-bg-active:                    @table-bg-hover;

@table-border-color:                 ' . $table_border_color . '; // table and cell border


// Buttons
// -------------------------

@btn-font-weight:                normal;

@btn-default-color:              @gray-dark;
@btn-default-bg:                 @body-bg;
@btn-default-border:             @ccc;

@btn-primary-color:              ' . $btn_primary_color . ';
@btn-primary-bg:                 @brand-primary;
@btn-primary-border:             ' . $btn_primary_border . ';

@btn-success-color:              ' . $btn_success_color . ';
@btn-success-bg:                 @brand-success;
@btn-success-border:             ' . $btn_success_border . ';

@btn-warning-color:              ' . $btn_warning_color . ';
@btn-warning-bg:                 @brand-warning;
@btn-warning-border:             ' . $btn_warning_border . ';

@btn-danger-color:               ' . $btn_danger_color . ';
@btn-danger-bg:                  @brand-danger;
@btn-danger-border:              ' . $btn_danger_border . ';

@btn-info-color:                 ' . $btn_info_color . ';
@btn-info-bg:                    @brand-info;
@btn-info-border:                ' . $btn_info_border . ';

@btn-link-disabled-color:        @gray-light;


// Forms
// -------------------------

@input-bg:                       @body-bg;
@input-bg-disabled:              @gray-lighter;

@input-color:                    @gray;
@input-border:                   @ccc;
@input-border-radius:            @border-radius-base;
@input-border-focus:             ' . $input_border_focus . ';

@input-color-placeholder:        @gray-light;

@input-height-base:              (@line-height-computed + (@padding-base-vertical * 2) + 2);
@input-height-large:             (floor(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
@input-height-small:             (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);

@legend-color:                   @gray-dark;
@legend-border-color:            @gray-lighter;

@input-group-addon-bg:           @gray-lighter;
@input-group-addon-border-color: @input-border;


// Dropdowns
// -------------------------

@dropdown-bg:                    ' . $body_bg . ';
@dropdown-border:                rgba(0,0,0,.15);
@dropdown-fallback-border:       @input-border;
@dropdown-divider-bg:            @legend-border-color;

@dropdown-link-color:            @gray-dark;
@dropdown-link-hover-color:      darken(@gray-dark, 5%);
@dropdown-link-hover-bg:         @table-bg-hover;

@dropdown-link-active-color:     @component-active-color;
@dropdown-link-active-bg:        @component-active-bg;

@dropdown-link-disabled-color:   @gray-light;

@dropdown-header-color:          @gray-light;


// COMPONENT VARIABLES
// --------------------------------------------------


// Z-index master list
// -------------------------
// Used for a birds eye view of components dependent on the z-axis
// Try to avoid customizing these :)

@zindex-navbar:            1000;
@zindex-dropdown:          1000;
@zindex-popover:           1010;
@zindex-tooltip:           1030;
@zindex-navbar-fixed:      1030;
@zindex-modal-background:  1040;
@zindex-modal:             1050;

// Media queries breakpoints
// --------------------------------------------------

// Extra small screen / phone
// Note: Deprecated @screen-xs and @screen-phone as of v3.0.1
@screen-xs:                  480px;
@screen-xs-min:              @screen-xs;
@screen-phone:               @screen-xs-min;

// Small screen / tablet
// Note: Deprecated @screen-sm and @screen-tablet as of v3.0.1
@screen-sm:                  ' . $screen_sm . 'px;
@screen-sm-min:              @screen-sm;
@screen-tablet:              @screen-sm-min;

// Medium screen / desktop
// Note: Deprecated @screen-md and @screen-desktop as of v3.0.1
@screen-md:                  ' . $screen_md . 'px;
@screen-md-min:              @screen-md;
@screen-desktop:             @screen-md-min;

// Large screen / wide desktop
// Note: Deprecated @screen-lg and @screen-lg-desktop as of v3.0.1
@screen-lg:                  ' . $screen_lg . 'px;
@screen-lg-min:              @screen-lg;
@screen-lg-desktop:          @screen-lg-min;

// So media queries dont overlap when required, provide a maximum
@screen-xs-max:              (@screen-sm-min - 1);
@screen-sm-max:              (@screen-md-min - 1);
@screen-md-max:              (@screen-lg-min - 1);


// Grid system
// --------------------------------------------------

// Number of columns in the grid system
@grid-columns:              12;
// Padding, to be divided by two and applied to the left and right of all columns
@grid-gutter-width:         ' . $gutter . 'px;

// Navbar collapse

// Point at which the navbar becomes uncollapsed
@grid-float-breakpoint:     @screen-md-min;
// Point at which the navbar begins collapsing
@grid-float-breakpoint-max: (@grid-float-breakpoint - 1); // AC Fix


// Navbar
// -------------------------

// Basics of a navbar
@navbar-height:                    ' . $navbar_height . 'px;
@navbar-margin-bottom:             @line-height-computed;
@navbar-border-radius:             @border-radius-base;
@navbar-padding-horizontal:        floor(@grid-gutter-width / 2);
@navbar-padding-vertical:          ((@navbar-height - @line-height-computed) / 2);

@navbar-default-color:             ' . $navbar_text_color . ';
@navbar-default-bg:                ' . $navbar_bg . ';
@navbar-default-border:            ' . $navbar_border . ';

@navbar-transparent-starting-text-colour: ' . $navbar_transparent_starting_text_colour . ';

// Navbar links
@navbar-default-link-color:                @navbar-default-color;
@navbar-default-link-hover-color:          ' . $navbar_link_hover_color . ';
@navbar-default-link-hover-bg:             transparent;
@navbar-default-link-active-color:         mix(@navbar-default-color, @navbar-default-link-hover-color, 50%);
@navbar-default-link-active-bg:            ' . $navbar_link_active_bg . ';
@navbar-default-link-disabled-color:       ' . $navbar_link_disabled_color . ';
@navbar-default-link-disabled-bg:          transparent;

// Navbar brand label
@navbar-default-brand-color:               @navbar-default-link-color;
@navbar-default-brand-hover-color:         ' . $navbar_brand_hover_color . ';
@navbar-default-brand-hover-bg:            transparent;

// Navbar toggle
@navbar-default-toggle-hover-bg:           @table-border-color;
@navbar-default-toggle-icon-bar-bg:        @ccc;
@navbar-default-toggle-border-color:       @table-border-color;


// Inverted navbar
//
// Reset inverted navbar basics
@navbar-inverse-color:                      @gray-light;
@navbar-inverse-bg:                         #222;
@navbar-inverse-border:                     darken(@navbar-inverse-bg, 10%);

// Inverted navbar links
@navbar-inverse-link-color:                 @gray-light;
@navbar-inverse-link-hover-color:           #fff;
@navbar-inverse-link-hover-bg:              transparent;
@navbar-inverse-link-active-color:          @navbar-inverse-link-hover-color;
@navbar-inverse-link-active-bg:             darken(@navbar-inverse-bg, 10%);
@navbar-inverse-link-disabled-color:        #444;
@navbar-inverse-link-disabled-bg:           transparent;

// Inverted navbar brand label
@navbar-inverse-brand-color:                @navbar-inverse-link-color;
@navbar-inverse-brand-hover-color:          #fff;
@navbar-inverse-brand-hover-bg:             transparent;

// Inverted navbar toggle
@navbar-inverse-toggle-hover-bg:            #333;
@navbar-inverse-toggle-icon-bar-bg:         #fff;
@navbar-inverse-toggle-border-color:        #333;


// Navs
// -------------------------

@nav-link-padding:                          10px 15px;
@nav-link-hover-bg:                         @gray-lighter;

@nav-disabled-link-color:                   @gray-light;
@nav-disabled-link-hover-color:             @gray-light;

@nav-open-link-hover-color:                 @body-bg;

// Tabs
@nav-tabs-border-color:                     @table-border-color;

@nav-tabs-link-hover-border-color:          @gray-lighter;

@nav-tabs-active-link-hover-bg:             @body-bg;
@nav-tabs-active-link-hover-color:          @gray;
@nav-tabs-active-link-hover-border-color:   @table-border-color;

@nav-tabs-justified-link-border-color:            @table-border-color;
@nav-tabs-justified-active-link-border-color:     @body-bg;

// Pills
@nav-pills-border-radius:                   @border-radius-base;
@nav-pills-active-link-hover-bg:            @component-active-bg;
@nav-pills-active-link-hover-color:         @component-active-color;


// Pagination
// -------------------------

@pagination-bg:                        ' . $body_bg . ';
@pagination-border:                    ' . $table_border_color . ';

@pagination-hover-bg:                  @gray-lighter;

@pagination-active-bg:                 @brand-primary;
@pagination-active-color:              @body-bg;

@pagination-disabled-color:            @gray-light;


// Pager
// -------------------------

@pager-border-radius:                  @navbar-padding-horizontal;
@pager-disabled-color:                 @gray-light;


// Jumbotron
// -------------------------

@jumbotron-padding:              (@border-radius-large * 5);
@jumbotron-color:                ' . $jumbotron_text_color . ';
@jumbotron-bg:                   ' . $jumbotron_bg . ';
@jumbotron-heading-color:        ' . $jumbotron_headers_text_color . ';
@jumbotron-font-size:            ' . $font_jumbotron['font-size'] . 'px;


// Form states and alerts
// -------------------------

@state-success-text:             #3c763d;
@state-success-bg:               #dff0d8;
@state-success-border:           darken(spin(@state-success-bg, -10), 5%);

@state-info-text:                #31708f;
@state-info-bg:                  #d9edf7;
@state-info-border:              darken(spin(@state-info-bg, -10), 7%);

@state-warning-text:             #8a6d3b;
@state-warning-bg:               #fcf8e3;
@state-warning-border:           darken(spin(@state-warning-bg, -10), 5%);

@state-danger-text:              #a94442;
@state-danger-bg:                #f2dede;
@state-danger-border:            darken(spin(@state-danger-bg, -10), 5%);


// Tooltips
// -------------------------
@tooltip-max-width:           200px;
@tooltip-color:               @body-bg;
@tooltip-bg:                  darken(@gray-darker, 15%);

@tooltip-arrow-width:         @padding-small-vertical;
@tooltip-arrow-color:         @tooltip-bg;


// Popovers
// -------------------------
@popover-bg:                          @body-bg;
@popover-max-width:                   276px;
@popover-border-color:                rgba(0,0,0,.2);
@popover-fallback-border-color:       @ccc;

@popover-title-bg:                    darken(@popover-bg, 3%);

@popover-arrow-width:                 (@tooltip-arrow-width * 2);
@popover-arrow-color:                 @body-bg;

@popover-arrow-outer-width:           (@popover-arrow-width + 1);
@popover-arrow-outer-color:           rgba(0,0,0,.25);
@popover-arrow-outer-fallback-color:  @gray-light;


// Labels
// -------------------------

@label-default-bg:            @gray-light;
@label-primary-bg:            @brand-primary;
@label-success-bg:            @brand-success;
@label-info-bg:               @brand-info;
@label-warning-bg:            @brand-warning;
@label-danger-bg:             @brand-danger;

@label-color:                 @body-bg;
@label-link-hover-color:      @body-bg;


// Modals
// -------------------------
@modal-inner-padding:         @line-height-computed;

@modal-title-padding:         ceil(@modal-inner-padding * (4/3)); // ~15px
@modal-title-line-height:     @line-height-base;

@modal-content-bg:                             @body-bg;
@modal-content-border-color:                   rgba(0,0,0,.2);
@modal-content-fallback-border-color:          @gray-light;

@modal-backdrop-bg:           darken(@gray-darker, 15%);
@modal-header-border-color:   lighten(@gray-lighter, 12%);
@modal-footer-border-color:   @modal-header-border-color;


// Alerts
// -------------------------
@alert-padding:               15px;
@alert-border-radius:         @border-radius-base;
@alert-link-font-weight:      bold;

@alert-success-bg:            @state-success-bg;
@alert-success-text:          @state-success-text;
@alert-success-border:        @state-success-border;

@alert-info-bg:               @state-info-bg;
@alert-info-text:             @state-info-text;
@alert-info-border:           @state-info-border;

@alert-warning-bg:            @state-warning-bg;
@alert-warning-text:          @state-warning-text;
@alert-warning-border:        @state-warning-border;

@alert-danger-bg:             @state-danger-bg;
@alert-danger-text:           @state-danger-text;
@alert-danger-border:         @state-danger-border;


// Progress bars
// -------------------------
@progress-bg:                 ' . $table_bg_hover . ';
@progress-bar-color:          ' . $body_bg . ';

@progress-bar-bg:             @brand-primary;
@progress-bar-success-bg:     @brand-success;
@progress-bar-warning-bg:     @brand-warning;
@progress-bar-danger-bg:      @brand-danger;
@progress-bar-info-bg:        @brand-info;


// List group
// -------------------------
@list-group-bg:               ' . $body_bg . ';
@list-group-border:           ' . $table_border_color . ';
@list-group-border-radius:    @border-radius-base;

@list-group-hover-bg:         ' . $table_bg_hover . ';
@list-group-active-color:     @component-active-color;
@list-group-active-bg:        @component-active-bg;
@list-group-active-border:    @list-group-active-bg;

@list-group-link-color:          @gray;
@list-group-link-heading-color:  @gray-dark;


// Panels
// -------------------------
@panel-bg:                    ' . $body_bg . ';
@panel-inner-border:          @list-group-border;
@panel-border-radius:         @border-radius-base;
@panel-footer-bg:             @list-group-hover-bg;

@panel-default-text:          @gray-dark;
@panel-default-border:        @table-border-color;
@panel-default-heading-bg:    @panel-footer-bg;

@panel-primary-text:          ' . $body_bg . ';
@panel-primary-border:        @brand-primary;
@panel-primary-heading-bg:    @brand-primary;

@panel-success-text:          @state-success-text;
@panel-success-border:        @state-success-border;
@panel-success-heading-bg:    @state-success-bg;

@panel-warning-text:          @state-warning-text;
@panel-warning-border:        @state-warning-border;
@panel-warning-heading-bg:    @state-warning-bg;

@panel-danger-text:           @state-danger-text;
@panel-danger-border:         @state-danger-border;
@panel-danger-heading-bg:     @state-danger-bg;

@panel-info-text:             @state-info-text;
@panel-info-border:           @state-info-border;
@panel-info-heading-bg:       @state-info-bg;


// Thumbnails
// -------------------------
@thumbnail-padding:           ceil(@table-cell-padding / 2 );
@thumbnail-bg:                @body-bg;
@thumbnail-border:            @list-group-border;
@thumbnail-border-radius:     @border-radius-base;

@thumbnail-caption-color:     @text-color;
@thumbnail-caption-padding:   @table-cell-padding;


// Wells
// -------------------------
@well-bg:                     @table-bg-hover;


// Badges
// -------------------------
@badge-color:                 @body-bg;
@badge-link-hover-color:      @body-bg;
@badge-bg:                    @gray-light;

@badge-active-color:          @link-color;
@badge-active-bg:             @body-bg;

@badge-font-weight:           bold;
@badge-line-height:           1;
@badge-border-radius:         10px;


// Breadcrumbs
// -------------------------
@breadcrumb-bg:               @table-bg-hover;
@breadcrumb-color:            @ccc;
@breadcrumb-active-color:     @gray-light;
@breadcrumb-separator:        "/";

// Carousel
// ------------------------

@carousel-text-shadow:                        0 1px 2px rgba(0,0,0,.6);

@carousel-control-color:                      @body-bg;
@carousel-control-width:                      15%;
@carousel-control-opacity:                    .5;
@carousel-control-font-size:                  @line-height-computed;

@carousel-indicator-active-bg:                @body-bg;
@carousel-indicator-border-color:             @body-bg;

@carousel-caption-color:                      @body-bg;


// Close
// ------------------------
@close-font-weight:           bold;
@close-color:                 darken(@gray-darker, 15%);
@close-text-shadow:           0 1px 0 @body-bg;


// Code
// ------------------------
@code-color:                  #c7254e;
@code-bg:                     #f9f2f4;

@pre-bg:                      #f5f5f5;
@pre-color:                   @gray-dark;
@pre-border-color:            #ccc;
@pre-scrollable-max-height:   340px;

// Type
// ------------------------
@text-muted:                  @gray-light;
@abbr-border-color:           @gray-light;
@headings-small-color:        @gray-light;
@blockquote-small-color:      @gray-light;
@blockquote-border-color:     @gray-lighter;
@page-header-border-color:    @gray-lighter;

// Miscellaneous
// -------------------------

// Hr border color
@hr-border:                   @gray-lighter;

// Horizontal forms & lists
@component-offset-horizontal: 180px;


// Container sizes
// --------------------------------------------------

// Small screen / tablet
@container-tablet:           ' . ($screen_sm - $gutter / 2) . 'px;
@container-sm:               @container-tablet;

// Medium screen / desktop
@container-desktop:          ' . ($screen_md - $gutter / 2) . 'px;
@container-md:               @container-desktop;

// Large screen / wide desktop
@container-large-desktop:    ' . ($screen_lg - $gutter) . 'px;
@container-lg:                 @container-large-desktop;


// Shoestrap-specific variables
// --------------------------------------------------

@navbar-font-size:        ' . $font_navbar['font-size'] . 'px;
@navbar-font-weight:      ' . $font_navbar['font-weight'] . ';
@navbar-font-style:       ' . $font_navbar['font-style'] . ';
@navbar-font-family:      ' . $font_navbar['font-family'] . ';
@navbar-font-color:       ' . $navbar_text_color . ';

@brand-font-size:         ' . $font_brand['font-size'] . 'px;
@brand-font-weight:       ' . $font_brand['font-weight'] . ';
@brand-font-style:        ' . $font_brand['font-style'] . ';
@brand-font-family:       ' . $font_brand['font-family'] . ';
@brand-font-color:        ' . $brand_text_color . ';

@jumbotron-font-weight:       ' . $font_jumbotron['font-weight'] . ';
@jumbotron-font-style:        ' . $font_jumbotron['font-style'] . ';
@jumbotron-font-family:       ' . $font_jumbotron['font-family'] . ';

@jumbotron-headers-font-weight:       ' . $font_jumbotron_headers_weight . ';
@jumbotron-headers-font-style:        ' . $font_jumbotron_headers_style . ';
@jumbotron-headers-font-family:       ' . $font_jumbotron_headers_face . ';

// H1
@heading-h1-face:         ' . $font_h1_face . ';
@heading-h1-weight:       ' . $font_h1_weight . ';
@heading-h1-style:        ' . $font_h1_style . ';
@heading-h1-height:       ' . $font_h1_height . ';
@heading-h1-color:        ' . $font_h1_color . ';
@font-size-h1:            floor(@font-size-base * ' . $font_h1_size . '); // ~36px

// H2
@heading-h2-face:         ' . $font_h2_face . ';
@heading-h2-weight:       ' . $font_h2_weight . ';
@heading-h2-style:        ' . $font_h2_style . ';
@heading-h2-height:       ' . $font_h2_height . ';
@heading-h2-color:        ' . $font_h2_color . ';
@font-size-h2:            floor(@font-size-base * ' . $font_h2_size . '); // ~30px

// H3
@heading-h3-face:         ' . $font_h3_face . ';
@heading-h3-weight:       ' . $font_h3_weight . ';
@heading-h3-style:        ' . $font_h3_style . ';
@heading-h3-height:       ' . $font_h3_height . ';
@heading-h3-color:        ' . $font_h3_color . ';
@font-size-h3:            ceil(@font-size-base * ' . $font_h3_size . '); // ~24px

// H4
@heading-h4-face:         ' . $font_h4_face . ';
@heading-h4-weight:       ' . $font_h4_weight . ';
@heading-h4-style:        ' . $font_h4_style . ';
@heading-h4-height:       ' . $font_h4_height . ';
@heading-h4-color:        ' . $font_h4_color . ';
@font-size-h4:            ceil(@font-size-base * ' . $font_h4_size . '); // ~18px

// H5
@heading-h5-face:         ' . $font_h5_face . ';
@heading-h5-weight:       ' . $font_h5_weight . ';
@heading-h5-style:        ' . $font_h5_style . ';
@heading-h5-height:       ' . $font_h5_height . ';
@heading-h5-color:        ' . $font_h5_color . ';
@font-size-h5:            ceil(@font-size-base * ' . $font_h5_size . '); // ~18px

// H6
@heading-h6-face:         ' . $font_h6_face . ';
@heading-h6-weight:       ' . $font_h6_weight . ';
@heading-h6-style:        ' . $font_h6_style . ';
@heading-h6-height:       ' . $font_h6_height . ';
@heading-h6-color:        ' . $font_h6_color . ';
@font-size-h6:            ceil(@font-size-base * ' . $font_h6_size . '); // ~12px

@navbar-margin-top:       ' . shoestrap_getVariable('navbar_margin_top') . 'px;





// AC Variables
// --------------------------------------------------

// Letter spacing
@ac-letter-spacing:							0.2em;
@ac-letter-spacing-sm:					0.1em;


// Text styles
@ac-text-transform:							uppercase;

// Border styles
@muted-text-color:						  lighten(@text-color, 40%); // lighten body color


// Border styles
@sidebar-text-color:						lighten(@text-color, 20%); // lighten body color


// Border styles
@sidebar-border:								2px lighten(@text-color, 70%) solid;
@sidebar-border-color:					lighten(@text-color, 70%);


// Border styles
@light-body-bg:								  lighten(@body-bg, 30%);

// Transition styles
@ac-transition:								  all .2s ease-in-out;
@ac-transparent-header-transition:	all .5s ease-in-out;

// Social Colours
@social-blogger:								#fc4f08;
@social-deviantart:							#4e6252;
@social-digg:										#d9d9d9;
@social-dribbble:								#ea4c89;
@social-facebook:								#3b5998;
@social-flickr:									#ff0084;
@social-github:									#d9d9d9;
@social-googleplus:							#dd4b39;
@social-instagram:							#517fa4;
@social-linkedin:								#0e76a8;
@social-myspace:								#008DDE;
@social-pinterest:							#c8232c;
@social-reddit:									#ff4500;
@social-rss:										#ee802f;
@social-skype:									#00aff0;
@social-soundcloud:							#ff7700;
@social-tumblr:									#34526f;
@social-twitter:								#00acee;
@social-vimeo:									#44bbff;
@social-youtube:								#c4302b;

@page-title-bg-color:         ' . $page_title_bg_color . ';
@page-title-padding:         	' . $page_title_padding . 'px;
@custom-page-title-padding:  	' . $custom_page_title_padding . 'px;
@button-bg-color:				 			' . $button_bg_color . ';	
@footer-color:				 				' . $footer_color . ';	
@footer-background:				 		' . $footer_background . ';	
@button-bg-text:             	lighten(@button-bg-color, 100%);
@comment-author-bg-color:			darken(@body-bg, 5%);
@aeis-slideshow-height:				' . $aeis_slideshow_height . "px;\t\n@post_excerpt_link_text:\t\t\t'" . $post_excerpt_link_text . "';\n\n@side_tab_top:\t\t\t\t\t\t\t\t" . $side_tab_top . "%;\n@side_tab_bg_colour:\t\t\t\t\t" . $side_tab_bg_colour . ";\n@side_tab_text_colour:\t\t\t\t" . $side_tab_text_colour . ";\n\n";
        if ($site_style == 'static') {
            // disable responsiveness
            $variables .= '
    @grid-float-breakpoint: 0 !important;
    @screen-xs-max: 0 !important; 
    .container { max-width: none !important; width: @container-large-desktop; }
    html { overflow-x: auto !important; }
  ';
        }
        return $variables;
    }
<?php

/**********************************/
/**** List Pagination Template ****/
/**********************************/
// Pagination
$pagination = shoestrap_getVariable('pagination');
if ($pagination == 'pager') {
    if ($wp_query->max_num_pages > 1) {
        ?>
    <nav class="post-nav">
      <ul class="pager">
        <li class="previous"><?php 
        next_posts_link(__('&larr; Older posts', 'roots'));
        ?>
</li>
        <li class="next"><?php 
        previous_posts_link(__('Newer posts &rarr;', 'roots'));
        ?>
</li>
      </ul>
    </nav>
  <?php 
    }
} else {
    //Use this function to create pagingation links that are styleable with Bootstrap 3 default pagination
    //Thanks to @sloped (https://gist.github.com/sloped/2117898)
    global $wp_query;
    // Get the curret page URL
    $page_url = ac_get_current_url();
    $total_pages = $wp_query->max_num_pages;
 function shoestrap_secondary_navbar_margin()
 {
     $secondary_navbar_margin = shoestrap_getVariable('secondary_navbar_margin');
     $style = '.secondary { margin-top:' . $secondary_navbar_margin . 'px !important; margin-bottom:' . $secondary_navbar_margin . 'px !important; }';
     wp_add_inline_style('shoestrap_css', $style);
 }
function ac_render_rev_slider($slides)
{
    // Get the slideshow settings from the Options
    $autoplay = shoestrap_getVariable('aeis_autoplay');
    $transition = shoestrap_getVariable('aeis_transition');
    $delay = shoestrap_getVariable('aeis_slideshow_delay');
    if ($delay) {
        $delay = $delay * 1000;
        // miliseconds
    } else {
        $delay = 5000;
    }
    $show_time_line = shoestrap_getVariable('aeis_show_timer_line');
    ?>

<div class="rev_slider_wrapper fullwidthbanner-container ac-full-width-row">
	<div class="rev_slider fullwidthabanner rev-slider-page-top">
  	<ul>
<?php 
    // Print out the slides
    foreach ($slides as $slide) {
        ?>
 
		<li data-transition="<?php 
        echo $transition;
        ?>
" data-slotamount="7" >
			<img src="<?php 
        echo $slide['img'];
        ?>
" /> 
		</li>
<?php 
    }
    ?>

    </ul>

<?php 
    if ($show_time_line) {
        ?>
		<div class="tp-bannertimer"></div>
<?php 
    }
    ?>
	</div>
</div>

<script>
    jQuery(document).ready(function() {
       jQuery('.rev-slider-page-top').show().revolution(
          {
              delay:<?php 
    echo $delay;
    ?>
,
              startheight:500,
              startwidth:1600,
    
              hideThumbs:300,
    
              thumbWidth:100,	
              thumbHeight:50,
              thumbAmount:5,
    
              navigationType:"both",					
              navigationArrows:"verticalcentered",		
              navigationStyle:"round",				
    
              touchenabled:"on",
              onHoverStop:"on",
    
              navOffsetHorizontal:0,
              navOffsetVertical:20,

<?php 
    if ($autoplay) {
        ?>
              stopAtSlide:-1,
              stopAfterLoops:-1,
<?php 
    } else {
        ?>
							stopLoop:"on",
							stopAfterLoops:0,
							stopAtSlide:1,
<?php 
    }
    ?>
              
    
              shadow:0,
              fullWidth:"off"					
          });
    });
</script>

<?php 
}
 function shoestrap_navbar_slidedown_toggle()
 {
     $navbar_color = ac_prepare_bg_colour_for_less(shoestrap_getVariable('navbar_bg'));
     if (is_active_sidebar('navbar-slide-down-top') || is_active_sidebar('navbar-slide-down-1') || is_active_sidebar('navbar-slide-down-2') || is_active_sidebar('navbar-slide-down-3') || is_active_sidebar('navbar-slide-down-4')) {
         if (shoestrap_get_brightness($navbar_color) >= 160) {
             echo '<a style="width: 30px;" class="toggle-nav black" href="#">';
         } else {
             echo '<a style="width: 30px;" class="toggle-nav" href="#">';
         }
         echo '<i class="el-icon-arrow-down"></i></a>';
     }
 }
Example #24
0
 >
<head>
  <meta charset="utf-8">
  <?php 
// Add IE compability
if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) {
    ?>
<meta http-equiv="X-UA-Compatible" content="IE=edge"><?php 
}
?>
  <title><?php 
wp_title('|', true, 'right');
?>
</title>
<?php 
if (shoestrap_getVariable('site_style') != 'static') {
    ?>
  <meta name="viewport" content="width=device-width, initial-scale=1">
<?php 
}
?>


  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
  	<script src="<?php 
echo get_template_directory_uri();
?>
/assets/js/vendor/html5shiv.js"></script>
  	<script src="<?php 
echo get_template_directory_uri();
function shoestrap_ewa_shoestrap_pre_footer()
{
    $action = 'shoestrap_pre_footer';
    $num = intval(shoestrap_getVariable($action . '_nr'));
    shoestrap_ewa_widget_area_wrapper($action, $num);
}
		        <span class="sr-only">Toggle navigation</span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		      </button>
		      
		      <?php 
}
?>
    

			<?php 
// Search
?>
    	<?php 
if ($navbar_desktop_type == 'navbar' && shoestrap_getVariable('navbar_search') == 1) {
    ?>
      	<div id="nav-search-open" class="entypo-icon-search"></div>
			<?php 
}
?>

      <?php 
// Navigation
do_action('shoestrap_inside_nav_begin');
// Regular desktop menu
if ($navbar_desktop_type == 'navbar') {
    ?>
<ul class='<?php 
    echo esc_attr(shoestrap_nav_class_pull());
    ?>
 function shoestrap_image_resize($data)
 {
     $defaults = array("url" => "", "width" => "", "height" => "", "crop" => true, "retina" => "");
     $settings = wp_parse_args($data, $defaults);
     if (empty($settings['url'])) {
         return;
     }
     // Generate the @2x file if retina is enabled
     if (shoestrap_getVariable('retina_toggle') == 1 && empty($settings['retina'])) {
         $results['retina'] = matthewruddy_image_resize($settings['url'], $settings['width'], $settings['height'], $settings['crop'], true);
     }
     return matthewruddy_image_resize($settings['url'], $settings['width'], $settings['height'], $settings['crop'], false);
 }
Example #28
0
function ac_render_author_bio($post = 0)
{
    global $post_types_with_author_bio;
    // The post
    $post = get_post($post);
    // Render the bio if forced on the post level, or fallback to the theme options
    // Get the post type
    $post_type = get_post_type($post);
    // Does this post type have Bio?
    if (in_array($post_type, $post_types_with_author_bio)) {
        // Check at post level
        $post_show = ac_get_meta('author_bio_show');
        // Never continue if no show at post level
        if ($post_show == 'false') {
            return;
        }
        // Show at Theme Options level
        $theme_show = shoestrap_getVariable('author_bio_show');
        if ($theme_show) {
            // global setting
            switch ($post_type) {
                // post type settings
                case 'post':
                    $theme_show = filter_var(shoestrap_getVariable('author_bio_show_post'), FILTER_VALIDATE_BOOLEAN);
                    break;
                case 'page':
                    $theme_show = filter_var(shoestrap_getVariable('author_bio_show_page'), FILTER_VALIDATE_BOOLEAN);
                    break;
            }
        }
        if ($post_show || $theme_show) {
            // Get the bio
            $bio = get_the_author_meta('description', $post->post_author);
            $author = get_the_author_meta('display_name', $post->post_author);
            $authorurl = get_author_posts_url(get_the_author_meta("ID"));
            // Avatar
            $avatar = get_avatar($post->post_author, 256, '', get_the_author_meta('user_nicename', $post->post_author));
            $bio_class = '';
            $col1_class = ' ';
            $col2_class = ' col-md-12 ';
            if ($avatar) {
                $bio_class = ' has-avatar ';
                $col1_class = ' col-lg-2 col-md-2 col-sm-12 col-xs-12 ';
                $col2_class = ' col-lg-10 col-md-10 col-sm-12 col-xs-12 ';
            }
            if ($bio) {
                ?>
				<div class='ac-author-bio <?php 
                echo $bio_class;
                ?>
'>
					<div class='row'>
						<div class='<?php 
                echo $col1_class;
                ?>
'><?php 
                echo $avatar;
                ?>
</div>				
						<div class='<?php 
                echo $col2_class;
                ?>
'>
							<h4><a class="author" href="<?php 
                echo esc_url($authorurl);
                ?>
"><?php 
                echo $author;
                ?>
</a></h4>
							<?php 
                echo ac_format_post_content($bio);
                ?>
						</div>
					</div>
				</div>
			<?php 
            }
        }
    }
}
    function shoestrap_footer_html()
    {
        $blog_name = get_bloginfo('name', 'display');
        $ftext = shoestrap_getVariable('footer_text');
        $ftext = $ftext == '' ? '&copy; [year] [sitename]' : $ftext;
        $ftext = str_replace('[year]', date('Y'), $ftext);
        $ftext = str_replace('[sitename]', $blog_name, $ftext);
        $social = shoestrap_getVariable('footer_social_toggle');
        $social_width = shoestrap_getVariable('footer_social_width');
        $width = 12;
        // Social is enabled, we're modifying the width!
        $width = intval($social_width) > 0 && $social ? $width - intval($social_width) : $width;
        $social_blank = shoestrap_getVariable('footer_social_new_window_toggle');
        $blank = $social_blank == 1 ? ' target="_blank"' : '';
        $networks = shoestrap_get_social_links();
        do_action('shoestrap_footer_before_copyright');
        ?>

  <div id="footer-copyright">
    <article class="<?php 
        echo shoestrap_container_class('footer-copyright');
        ?>
">
    	<div class='row'>
	      <?php 
        if ($social && count($networks) > 0) {
            ?>
	        <div id="footer_social_bar" class="col-md-12 col-lg-12">
	          <?php 
            foreach ($networks as $network) {
                ?>
	            <?php 
                if ($network['url'] == '') {
                    continue;
                }
                ?>
	            <a href="<?php 
                echo $network['url'];
                ?>
"<?php 
                echo $blank;
                ?>
 title="<?php 
                echo $network['icon'];
                ?>
">
	              <span class="icon el-icon-<?php 
                echo $network['icon'];
                ?>
"></span>
	            </a>
	          <?php 
            }
            ?>
	        </div>
	      <?php 
        }
        ?>
	      <div id="copyright-bar" class="col-md-12 col-lg-12">
  	      <?php 
        echo $ftext;
        ?>
	      </div>
    	</div>
    </article>
  </div>
  <?php 
    }
Example #30
0
function shoestrap_licence_status_label()
{
    $status = get_transient('shoestrap_licence_status_cached');
    $license = shoestrap_getVariable('shoestrap_license_key');
    $message = '';
    if ($status == 'valid') {
        $message .= '<span style="background: green; color: #fff; padding: 3px 10px;">' . __('Valid', 'shoestrap') . '</span>';
    } else {
        $message .= '<span style="background: red; color: #fff; padding: 3px 10px;">' . __('Invalid', 'shoestrap') . '</span>';
    }
    return $message;
}