add_menu(array( 'parent' => 'appearance', 'id' => 'theme_options', 'title' => __('Theme Options', 'roots'), 'href' => admin_url('themes.php?page=theme_options') )); } add_action('wp_before_admin_bar_render', 'roots_admin_bar_render'); global $roots_css_frameworks; $roots_css_frameworks = array( 'blueprint' => array( 'name' => 'blueprint', 'label' => __('Blueprint CSS', 'roots'), 'classes' => array( 'container' => 'span-24', 'main' => 'span-14 append-1', 'sidebar' => 'span-8 prepend-1 last', 'fullwidth' => 'span-24' ) ), '960gs_12' => array( 'name' => '960gs_12', 'label' => __('960gs (12 cols)', 'roots'), 'classes' => array( 'container' => 'container_12', 'main' => 'grid_7 suffix_1', 'sidebar' => 'grid_4', 'fullwidth' => 'grid_12' ) ), '960gs_16' => array( 'name' => '960gs_16', 'label' => __('960gs (16 cols)', 'roots'), 'classes' => array( 'container' => 'container_16', 'main' => 'grid_9 suffix_1', 'sidebar' => 'grid_6', 'fullwidth' => 'grid_16' ) ), '960gs_24' => array( 'name' => '960gs_24', 'label' => __('960gs (24 cols)', 'roots'), 'classes' => array( 'container' => 'container_24', 'main' => 'grid_15 suffix_1', 'sidebar' => 'grid_8', 'fullwidth' => 'grid_24' ) ), '1140' => array( 'name' => '1140', 'label' => __('1140', 'roots'), 'classes' => array( 'container' => 'row', 'main' => 'eightcol', 'sidebar' => 'fourcol last', 'fullwidth' => 'twelvecol' ) ), 'adapt' => array( 'name' => 'adapt', 'label' => __('Adapt.js', 'roots'), 'classes' => array( 'container' => 'container_12 clearfix', 'main' => 'grid_7 suffix_1', 'sidebar' => 'grid_4', 'fullwidth' => 'grid_12' ) ), 'less' => array( 'name' => 'less', 'label' => __('Less Framework 4', 'roots'), 'classes' => array( 'container' => 'container', 'main' => '', 'sidebar' => '', 'fullwidth' => '' ) ), 'foundation' => array( 'name' => 'foundation', 'label' => __('Foundation', 'roots'), 'classes' => array( 'container' => 'row', 'main' => 'eight columns', 'sidebar' => 'four columns', 'fullwidth' => 'twelve columns' ) ), 'bootstrap' => array( 'name' => 'bootstrap', 'label' => __('Bootstrap', 'roots'), 'classes' => array( 'container' => 'row', 'main' => 'span11', 'sidebar' => 'span5', 'fullwidth' => 'span16' ) ), 'bootstrap_less' => array( 'name' => 'bootstrap_less', 'label' => __('Bootstrap w/ Less', 'roots'), 'classes' => array( 'container' => 'row', 'main' => 'span11', 'sidebar' => 'span5', 'fullwidth' => 'span16' ) ), 'none' => array( 'name' => 'none', 'label' => __('None', 'roots'), 'classes' => array( 'container' => '', 'main' => '', 'sidebar' => '', 'fullwidth' => '' ) ) ); // Write the above array of CSS frameworks into a script tag function roots_add_frameworks_object_script() { global $roots_css_frameworks; $json = json_encode($roots_css_frameworks); ?> $default_framework, 'container_class' => $default_framework_settings['classes']['container'], 'main_class' => $default_framework_settings['classes']['main'], 'sidebar_class' => $default_framework_settings['classes']['sidebar'], 'fullwidth_class' => $default_framework_settings['classes']['fullwidth'], 'google_analytics_id' => '', 'root_relative_urls' => true, 'clean_menu' => true, 'bootstrap_javascript' => false, 'bootstrap_less_javascript' => false, ); return apply_filters('roots_default_theme_options', $default_theme_options); } function roots_get_theme_options() { return get_option('roots_theme_options', roots_get_default_theme_options()); } function roots_theme_options_render_page() { global $roots_css_frameworks; ?>