complete rewrite of theme options, based on twentyeleven (in progress)

This commit is contained in:
Ben Word
2011-05-30 01:33:28 -06:00
parent 251e17bdb0
commit 91d81ddb6e
12 changed files with 198 additions and 210 deletions

View File

@@ -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 -->";
}
}