complete rewrite of theme options, based on twentyeleven (in progress)
This commit is contained in:
@@ -7,34 +7,44 @@ add_action('roots_footer_before', 'roots_1140_footer_before');
|
||||
add_action('roots_footer_after', 'roots_1140_footer_after');
|
||||
|
||||
function roots_1140_head() {
|
||||
$options = roots_get_theme_options();
|
||||
$roots_css_framework = $options['css_grid_framework'];
|
||||
$template_uri = get_template_directory_uri();
|
||||
if (get_option('roots_css_framework') === '1140') {
|
||||
if ($roots_css_framework === '1140') {
|
||||
echo "<script src=\"$template_uri/js/css3-mediaqueries.js\"></script>";
|
||||
}
|
||||
}
|
||||
|
||||
function roots_1140_header_before() {
|
||||
if (get_option('roots_css_framework') === '1140') {
|
||||
$options = roots_get_theme_options();
|
||||
$roots_css_framework = $options['css_grid_framework'];
|
||||
if ($roots_css_framework === '1140') {
|
||||
echo "<div class=\"row\">";
|
||||
}
|
||||
}
|
||||
|
||||
function roots_1140_header_after() {
|
||||
if (get_option('roots_css_framework') === '1140') {
|
||||
$options = roots_get_theme_options();
|
||||
$roots_css_framework = $options['css_grid_framework'];
|
||||
if ($roots_css_framework === '1140') {
|
||||
echo "</div><!-- /.row -->";
|
||||
echo "<div class=\"row\">";
|
||||
}
|
||||
}
|
||||
|
||||
function roots_1140_footer_before() {
|
||||
if (get_option('roots_css_framework') === '1140') {
|
||||
$options = roots_get_theme_options();
|
||||
$roots_css_framework = $options['css_grid_framework'];
|
||||
if ($roots_css_framework === '1140') {
|
||||
echo "</div><!-- /.row -->";
|
||||
echo "<div class=\"row\">";
|
||||
}
|
||||
}
|
||||
|
||||
function roots_1140_footer_after() {
|
||||
if (get_option('roots_css_framework') === '1140') {
|
||||
$options = roots_get_theme_options();
|
||||
$roots_css_framework = $options['css_grid_framework'];
|
||||
if ($roots_css_framework === '1140') {
|
||||
echo "</div><!-- /.row -->";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user