Exemplo n.º 1
0
/**
 * Implements hook_preprocess_layout().
 */
function teamwork_15_subtheme_preprocess_layout(&$variables)
{
    if ($variables['content']['header']) {
        $variables['content']['header'] = '<div class="l-header-inner">' . $variables['content']['header'] . '</div>';
    }
    if (theme_get_setting('teamwork_15_subtheme_cdn') > 0) {
        backdrop_add_css('http://cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/pure-min.css', array('type' => 'external', 'every_page' => TRUE, 'group' => CSS_DEFAULT));
    }
    $var1 = theme_get_setting('teamwork_15_subtheme_juiced_main_background');
    $var2 = theme_get_setting('teamwork_15_subtheme_juiced_big_statement_background');
    $var3 = theme_get_setting('teamwork_15_subtheme_juiced_main_background_blurred');
    $var4 = theme_get_setting('teamwork_15_subtheme_juiced_big_statement_background_blurred');
    if ($var1 && $var3 > 0) {
        backdrop_add_css("@media screen and (min-width: 769px) { .juiced-main::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if ($var1 && $var3 == 0) {
        backdrop_add_css("@media screen and (min-width: 769px) { .juiced-main { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if ($var2 && $var4 > 0) {
        backdrop_add_css("@media screen and (min-width: 769px) { .l-big-statement::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat fixed; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if ($var2 && $var4 == 0) {
        backdrop_add_css("@media screen and (min-width: 769px) { .l-big-statement { background: url({$var2}) no-repeat fixed; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    $var5 = theme_get_setting('teamwork_15_subtheme_body_main_background');
    $var6 = theme_get_setting('teamwork_15_subtheme_footer_main_background');
    $var7 = theme_get_setting('teamwork_15_subtheme_body_main_background_blurred');
    $var8 = theme_get_setting('teamwork_15_subtheme_footer_main_background_blurred');
    if ($var5 && $var7 > 0) {
        backdrop_add_css("@media screen and (min-width: 769px) { .layout::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var5}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if ($var5 && $var7 == 0) {
        backdrop_add_css("@media screen and (min-width: 769px) { .layout { background: url({$var5}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if ($var6 && $var8 > 0) {
        backdrop_add_css("@media screen and (min-width: 769px) { footer.l-footer::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var6}) no-repeat fixed; background-size: cover; background-position: center; } footer.l-footer { background: transparent; } }", array('type' => 'inline'));
    }
    if ($var6 && $var8 == 0) {
        backdrop_add_css("@media screen and (min-width: 769px) { footer.l-footer { background: url({$var6}) no-repeat fixed; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (theme_get_setting('teamwork_15_subtheme_script1') > 0) {
        backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    }
    if (theme_get_setting('teamwork_15_subtheme_script2') > 0) {
        backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.14.0/jquery.validate.min.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    }
    if (theme_get_setting('teamwork_15_subtheme_script3') > 0) {
        backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    }
    if (theme_get_setting('teamwork_15_subtheme_script4') > 0) {
        backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.4/hammer.min.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    }
    backdrop_add_js("themes/teamwork_15_subtheme/js/scripts.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    backdrop_add_js("document.write('<script src=\"http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1\"></' + 'script>')", array('type' => 'inline', 'scope' => 'footer', 'weight' => 9999));
}
Exemplo n.º 2
0
/**
 * Perform setup tasks for non-cached page requests.
 *
 * This hook is run at the beginning of the page request. It is typically
 * used to set up global parameters that are needed later in the request.
 * When this hook is called, the theme and all modules are already loaded in
 * memory.
 *
 * This hook is not run on cached pages.
 *
 * To add CSS or JS that should be present on all pages, modules should not
 * implement this hook, but declare these files in their .info file.
 *
 * @see hook_boot()
 */
function hook_init()
{
    // Since this file should only be loaded on the front page, it cannot be
    // declared in the info file.
    if (backdrop_is_front_page()) {
        backdrop_add_css(backdrop_get_path('module', 'foo') . '/foo.css');
    }
}
Exemplo n.º 3
0
function materialize_breadcrumb($variables)
{
    if (theme_get_setting('materialize_cdn_css') > 0) {
        backdrop_add_css('https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css', array('every_page' => TRUE, 'preprocess' => TRUE));
    } else {
    }
    backdrop_add_css('themes/materialize/css/style.css', array('every_page' => TRUE, 'preprocess' => TRUE));
    if (theme_get_setting('materialize_dropdown') > 0) {
        backdrop_add_js("themes/materialize/js/dropdown_init.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    } else {
    }
    if (theme_get_setting('materialize_cdn_js') > 0) {
        backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    } else {
        // backdrop_add_js("themes/materialize/js/materialize.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        backdrop_add_js("themes/materialize/js/global.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        if (theme_get_setting('materialize_script1') > 0) {
            backdrop_add_js("themes/materialize/js/animation.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script2') > 0) {
            backdrop_add_js("themes/materialize/js/buttons.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script3') > 0) {
            backdrop_add_js("themes/materialize/js/cards.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script4') > 0) {
            backdrop_add_js("themes/materialize/js/character_counter.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script5') > 0) {
            backdrop_add_js("themes/materialize/js/collapsible.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script6') > 0) {
            backdrop_add_js("themes/materialize/js/date_picker/picker.date.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script7') > 0) {
            backdrop_add_js("themes/materialize/js/date_picker/picker.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script8') > 0) {
            backdrop_add_js("themes/materialize/js/dropdown.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script9') > 0) {
            backdrop_add_js("themes/materialize/js/forms.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script10') > 0) {
            backdrop_add_js("themes/materialize/js/hammer.min.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script11') > 0) {
            backdrop_add_js("themes/materialize/js/jquery.easing.1.3.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script12') > 0) {
            backdrop_add_js("themes/materialize/js/jquery.hammer.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script13') > 0) {
            backdrop_add_js("themes/materialize/js/jquery.timeago.min.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script14') > 0) {
            backdrop_add_js("themes/materialize/js/leanModal.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script15') > 0) {
            backdrop_add_js("themes/materialize/js/materialbox.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script16') > 0) {
            backdrop_add_js("themes/materialize/js/parallax.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script17') > 0) {
            backdrop_add_js("themes/materialize/js/prism.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script18') > 0) {
            backdrop_add_js("themes/materialize/js/pushpin.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script19') > 0) {
            backdrop_add_js("themes/materialize/js/scrollFire.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script20') > 0) {
            backdrop_add_js("themes/materialize/js/scrollspy.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script21') > 0) {
            backdrop_add_js("themes/materialize/js/sideNav.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script22') > 0) {
            backdrop_add_js("themes/materialize/js/slider.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script23') > 0) {
            backdrop_add_js("themes/materialize/js/tabs.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script24') > 0) {
            backdrop_add_js("themes/materialize/js/toasts.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script25') > 0) {
            backdrop_add_js("themes/materialize/js/tooltip.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script26') > 0) {
            backdrop_add_js("themes/materialize/js/transitions.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script27') > 0) {
            backdrop_add_js("themes/materialize/js/velocity.min.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script28') > 0) {
            backdrop_add_js("themes/materialize/js/waves.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('materialize_script29') > 0) {
            backdrop_add_js("themes/materialize/js/materialize_custom.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
    }
    backdrop_add_js("themes/materialize/js/scripts.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    backdrop_add_js("document.write('<script src=\"http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1\"></' + 'script>')", array('type' => 'inline', 'scope' => 'footer', 'weight' => 9999));
}
function zurb_foundation_6_subtheme_preprocess_layout(&$variables)
{
    if ($variables['is_front']) {
        $variables['classes'][] = 'layout-front';
    }
    $current_layout = $variables["layout"]->name;
    $uses_admin_width = config_get('zurb_foundation_6_subtheme.settings', 'use_max_width');
    if ($uses_admin_width) {
        $uses_layout_width1 = config_get('zurb_foundation_6_subtheme.settings', 'max_width_element1');
        if ($uses_layout_width1 > 0) {
            $max_width_layouts1 = config_get('zurb_foundation_6_subtheme.settings', 'site_layouts1');
            $max_width_number1 = config_get('zurb_foundation_6_subtheme.settings', 'max_width_number1');
            foreach ($max_width_layouts1 as $max_width_layout) {
                if (!empty($max_width_layout)) {
                    if ($max_width_layout == $current_layout) {
                        switch ($max_width_number1) {
                            case "0":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-800';
                                break;
                            case "1":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-960';
                                break;
                            case "2":
                                $variables['classes'][] = 'container';
                                break;
                            case "3":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1200';
                                break;
                            case "4":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1440';
                                break;
                            default:
                                break;
                        }
                    }
                }
            }
        }
        $uses_layout_width2 = config_get('zurb_foundation_6_subtheme.settings', 'max_width_element2');
        if ($uses_layout_width2 > 0) {
            $max_width_layouts2 = config_get('zurb_foundation_6_subtheme.settings', 'site_layouts2');
            $max_width_number2 = config_get('zurb_foundation_6_subtheme.settings', 'max_width_number2');
            foreach ($max_width_layouts2 as $max_width_layout) {
                if (!empty($max_width_layout)) {
                    if ($max_width_layout == $current_layout) {
                        switch ($max_width_number2) {
                            case "0":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-800';
                                break;
                            case "1":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-960';
                                break;
                            case "2":
                                $variables['classes'][] = 'container';
                                break;
                            case "3":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1200';
                                break;
                            case "4":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1440';
                                break;
                            default:
                                break;
                        }
                    }
                }
            }
        }
        $uses_layout_width3 = config_get('zurb_foundation_6_subtheme.settings', 'max_width_element3');
        if ($uses_layout_width3 > 0) {
            $max_width_layouts3 = config_get('zurb_foundation_6_subtheme.settings', 'site_layouts3');
            $max_width_number3 = config_get('zurb_foundation_6_subtheme.settings', 'max_width_number3');
            foreach ($max_width_layouts3 as $max_width_layout) {
                if (!empty($max_width_layout)) {
                    if ($max_width_layout == $current_layout) {
                        switch ($max_width_number3) {
                            case "0":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-800';
                                break;
                            case "1":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-960';
                                break;
                            case "2":
                                $variables['classes'][] = 'container';
                                break;
                            case "3":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1200';
                                break;
                            case "4":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1440';
                                break;
                            default:
                                break;
                        }
                    }
                }
            }
        }
    }
    // backgrounds
    // body region
    $var1 = theme_get_setting('body_main_background', 'zurb_foundation_6_subtheme');
    $var2 = theme_get_setting('body_main_background_retina', 'zurb_foundation_6_subtheme');
    $var3 = theme_get_setting('body_main_background_blurred', 'zurb_foundation_6_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { html body::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { html body::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { html body::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { html body { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { html body { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { html body { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // calltoaction region
    $var1 = theme_get_setting('footer_main_background', 'zurb_foundation_6_subtheme');
    $var2 = theme_get_setting('footer_main_background_retina', 'zurb_foundation_6_subtheme');
    $var3 = theme_get_setting('footer_main_background_blurred', 'zurb_foundation_6_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-calltoaction::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-calltoaction::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-calltoaction::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-calltoaction { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-calltoaction { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-calltoaction { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // juiced_main region
    $var1 = theme_get_setting('juiced_main_background', 'zurb_foundation_6_subtheme');
    $var2 = theme_get_setting('juiced_main_background_retina', 'zurb_foundation_6_subtheme');
    $var3 = theme_get_setting('juiced_main_background_blurred', 'zurb_foundation_6_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .juiced-main::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center;  } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .juiced-main::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .juiced-main::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .juiced-main { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .juiced-main { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .juiced-main { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // statement1 region
    $var1 = theme_get_setting('statement1_background', 'zurb_foundation_6_subtheme');
    $var2 = theme_get_setting('statement1_background_retina', 'zurb_foundation_6_subtheme');
    $var3 = theme_get_setting('statement1_background_blurred', 'zurb_foundation_6_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement1::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement1::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement1::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement1 { background: url({$var1}) no-repeat; background-size: cover; background-position: center;} }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement1 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement1 { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // statement2 region
    $var1 = theme_get_setting('statement2_background', 'zurb_foundation_6_subtheme');
    $var2 = theme_get_setting('statement2_background_retina', 'zurb_foundation_6_subtheme');
    $var3 = theme_get_setting('statement2_background_blurred', 'zurb_foundation_6_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement2::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement2::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement2::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement2 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement2 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement2 { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // statement3 region
    $var1 = theme_get_setting('statement3_background', 'zurb_foundation_6_subtheme');
    $var2 = theme_get_setting('statement3_background_retina', 'zurb_foundation_6_subtheme');
    $var3 = theme_get_setting('statement3_background_blurred', 'zurb_foundation_6_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement3::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement3::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement3::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement3 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement3 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement3 { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (theme_get_setting('zurb_foundation_6_cdn_css') > 0) {
        backdrop_add_css('https://cdnjs.cloudflare.com/ajax/libs/foundation/6.2.1/foundation.min.css', array('type' => 'external', 'every_page' => TRUE, 'preprocess' => TRUE));
    }
    if (theme_get_setting('zurb_foundation_6_cdn_flex_css') > 0) {
        backdrop_add_css('https://cdnjs.cloudflare.com/ajax/libs/foundation/6.2.1/foundation-flex.min.css', array('type' => 'external', 'every_page' => TRUE, 'preprocess' => TRUE));
    }
    if (theme_get_setting('zurb_foundation_6_js_cdn_all') > 0) {
        backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/foundation/6.2.1/foundation.min.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        backdrop_add_js("themes/zurb_foundation_6/js/foundation.core.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    }
    if (theme_get_setting('zurb_foundation_6_js_local_all') > 0) {
        backdrop_add_js("themes/zurb_foundation_6/js/foundation.min.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        backdrop_add_js("themes/zurb_foundation_6/js/foundation.core.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    }
    if (theme_get_setting('zurb_foundation_6_js_cdn_each') > 0) {
        backdrop_add_js("themes/zurb_foundation_6/js/foundation.core.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        if (theme_get_setting('zurb_foundation_6_script1') > 0) {
            backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/vendor/fastclick.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script2') > 0) {
            backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/vendor/jquery.cookie.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script3') > 0) {
            backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/vendor/modernizr.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script4') > 0) {
            backdrop_add_js("https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/vendor/placeholder.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script5') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.util.box.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script6') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.util.keyboard.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script7') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.util.mediaQuery.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script8') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.util.motion.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script9') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.util.nest.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script10') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.util.timerAndImageLoader.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script11') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.util.touch.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script12') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.util.triggers.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script13') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.abide.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script14') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.accordion.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script15') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.accordionMenu.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script16') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.drilldown.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script17') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.dropdown.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script18') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.dropdownMenu.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script19') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.equalizer.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script20') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.interchange.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script21') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.magellan.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script22') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.offcanvas.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script23') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.orbit.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script24') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.responsiveMenu.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script25') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.responsiveToggle.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script26') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.reveal.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script27') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.slider.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script28') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.sticky.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script29') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.tabs.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script30') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.toggler.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script31') > 0) {
            backdrop_add_js("https://cdn.jsdelivr.net/foundation/6.1.2/js/foundation.tooltip.js", array('type' => 'external', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
    }
    if (theme_get_setting('zurb_foundation_6_js_local_each') > 0) {
        backdrop_add_js("themes/zurb_foundation_6/js/foundation.core.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        if (theme_get_setting('zurb_foundation_6_script1') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/fastclick.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script2') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/jquery.cookie.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script3') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/modernizr.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script4') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/jquery.placeholder.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script5') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.util.box.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script6') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.util.keyboard.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script7') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.util.mediaQuery.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script8') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.util.motion.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script9') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.util.nest.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script10') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.util.timerAndImageLoader.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script11') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.util.touch.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script12') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.util.triggers.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script13') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.abide.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script14') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.accordion.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script15') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.accordionMenu.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script16') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.drilldown.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script17') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.dropdown.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script18') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.dropdownMenu.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script19') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.equalizer.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script20') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.interchange.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script21') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.magellan.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script22') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.offcanvas.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script23') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.orbit.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script24') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.responsiveMenu.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script25') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.responsiveToggle.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script26') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.reveal.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script27') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.slider.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script28') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.sticky.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script29') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.tabs.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script30') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.toggler.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
        if (theme_get_setting('zurb_foundation_6_script31') > 0) {
            backdrop_add_js("themes/zurb_foundation_6/js/foundation.tooltip.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
        }
    }
    backdrop_add_js("themes/zurb_foundation_6_subtheme/js/scripts.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    backdrop_add_js("document.write('<script src=\"http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1\"></' + 'script>')", array('type' => 'inline', 'scope' => 'footer', 'weight' => 9999));
}
function afterlight_tribute_subtheme_preprocess_layout(&$variables)
{
    if ($variables['is_front']) {
        $variables['classes'][] = 'layout-front';
    }
    $current_layout = $variables["layout"]->name;
    $uses_admin_width = config_get('afterlight_tribute_subtheme.settings', 'use_max_width');
    if ($uses_admin_width) {
        $uses_layout_width1 = config_get('afterlight_tribute_subtheme.settings', 'max_width_element1');
        if ($uses_layout_width1 > 0) {
            $max_width_layouts1 = config_get('afterlight_tribute_subtheme.settings', 'site_layouts1');
            $max_width_number1 = config_get('afterlight_tribute_subtheme.settings', 'max_width_number1');
            foreach ($max_width_layouts1 as $max_width_layout) {
                if (!empty($max_width_layout)) {
                    if ($max_width_layout == $current_layout) {
                        switch ($max_width_number1) {
                            case "0":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-800';
                                break;
                            case "1":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-960';
                                break;
                            case "2":
                                $variables['classes'][] = 'container';
                                break;
                            case "3":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1200';
                                break;
                            case "4":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1440';
                                break;
                            default:
                                break;
                        }
                    }
                }
            }
        }
        $uses_layout_width2 = config_get('afterlight_tribute_subtheme.settings', 'max_width_element2');
        if ($uses_layout_width2 > 0) {
            $max_width_layouts2 = config_get('afterlight_tribute_subtheme.settings', 'site_layouts2');
            $max_width_number2 = config_get('afterlight_tribute_subtheme.settings', 'max_width_number2');
            foreach ($max_width_layouts2 as $max_width_layout) {
                if (!empty($max_width_layout)) {
                    if ($max_width_layout == $current_layout) {
                        switch ($max_width_number2) {
                            case "0":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-800';
                                break;
                            case "1":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-960';
                                break;
                            case "2":
                                $variables['classes'][] = 'container';
                                break;
                            case "3":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1200';
                                break;
                            case "4":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1440';
                                break;
                            default:
                                break;
                        }
                    }
                }
            }
        }
        $uses_layout_width3 = config_get('afterlight_tribute_subtheme.settings', 'max_width_element3');
        if ($uses_layout_width3 > 0) {
            $max_width_layouts3 = config_get('afterlight_tribute_subtheme.settings', 'site_layouts3');
            $max_width_number3 = config_get('afterlight_tribute_subtheme.settings', 'max_width_number3');
            foreach ($max_width_layouts3 as $max_width_layout) {
                if (!empty($max_width_layout)) {
                    if ($max_width_layout == $current_layout) {
                        switch ($max_width_number3) {
                            case "0":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-800';
                                break;
                            case "1":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-960';
                                break;
                            case "2":
                                $variables['classes'][] = 'container';
                                break;
                            case "3":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1200';
                                break;
                            case "4":
                                $variables['classes'][] = 'container';
                                $variables['classes'][] = 'container-1440';
                                break;
                            default:
                                break;
                        }
                    }
                }
            }
        }
    }
    // backgrounds
    // body region
    $var1 = theme_get_setting('body_main_background', 'afterlight_tribute_subtheme');
    $var2 = theme_get_setting('body_main_background_retina', 'afterlight_tribute_subtheme');
    $var3 = theme_get_setting('body_main_background_blurred', 'afterlight_tribute_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { html body::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { html body::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { html body::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { html body { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { html body { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { html body { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // calltoaction region
    $var1 = theme_get_setting('footer_main_background', 'afterlight_tribute_subtheme');
    $var2 = theme_get_setting('footer_main_background_retina', 'afterlight_tribute_subtheme');
    $var3 = theme_get_setting('footer_main_background_blurred', 'afterlight_tribute_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-calltoaction::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-calltoaction::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-calltoaction::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-calltoaction { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-calltoaction { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-calltoaction { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // juiced_main region
    $var1 = theme_get_setting('juiced_main_background', 'afterlight_tribute_subtheme');
    $var2 = theme_get_setting('juiced_main_background_retina', 'afterlight_tribute_subtheme');
    $var3 = theme_get_setting('juiced_main_background_blurred', 'afterlight_tribute_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .juiced-main::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center;  } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .juiced-main::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .juiced-main::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .juiced-main { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .juiced-main { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .juiced-main { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // statement1 region
    $var1 = theme_get_setting('statement1_background', 'afterlight_tribute_subtheme');
    $var2 = theme_get_setting('statement1_background_retina', 'afterlight_tribute_subtheme');
    $var3 = theme_get_setting('statement1_background_blurred', 'afterlight_tribute_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement1::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement1::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement1::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement1 { background: url({$var1}) no-repeat; background-size: cover; background-position: center;} }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement1 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement1 { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // statement2 region
    $var1 = theme_get_setting('statement2_background', 'afterlight_tribute_subtheme');
    $var2 = theme_get_setting('statement2_background_retina', 'afterlight_tribute_subtheme');
    $var3 = theme_get_setting('statement2_background_blurred', 'afterlight_tribute_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement2::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement2::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement2::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement2 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement2 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement2 { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    // statement3 region
    $var1 = theme_get_setting('statement3_background', 'afterlight_tribute_subtheme');
    $var2 = theme_get_setting('statement3_background_retina', 'afterlight_tribute_subtheme');
    $var3 = theme_get_setting('statement3_background_blurred', 'afterlight_tribute_subtheme');
    if (!empty($var1) && empty($var2) && !empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement3::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && !empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement3::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement3::before { content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: -100; -webkit-filter: blur(20px); -moz-filter: blur(20px); -o-filter: blur(20px); -ms-filter: blur(20px); filter: blur(20px); opacity: 0.4;  background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && empty($var2) && empty($var3)) {
        backdrop_add_css("@media screen and (min-width: 600px) { .l-statement3 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; } }", array('type' => 'inline'));
    }
    if (!empty($var1) && !empty($var2) && empty($var3)) {
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-max-device-pixel-ratio: 1), only screen and (min-width: 600px) and (-webkit-max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max--moz-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-device-pixel-ratio: 1.24), only screen and (min-width: 600px) and (max-resolution: 191dpi), only screen and (min-width: 600px) and (max-resolution: 1.24dppx) { .l-statement3 { background: url({$var1}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
        backdrop_add_css("@media only screen and (min-width: 600px) and (-o-min-device-pixel-ratio: 5/4), only screen and (min-width: 600px) and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min--moz-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-device-pixel-ratio: 1.25), only screen and (min-width: 600px) and (min-resolution: 192dpi), only screen and (min-width: 600px) and (min-resolution: 1.25dppx) { .l-statement3 { background: url({$var2}) no-repeat; background-size: cover; background-position: center; left: 0px; } }", array('type' => 'inline'));
    }
    backdrop_add_js("themes/afterlight_tribute_subtheme/js/scripts.js", array('type' => 'file', 'scope' => 'footer', 'every_page' => TRUE, 'preprocess' => TRUE));
    backdrop_add_js("document.write('<script src=\"http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1\"></' + 'script>')", array('type' => 'inline', 'scope' => 'footer', 'weight' => 9999));
}
Exemplo n.º 6
0
/**
 * Prepare variables for node template
 */
function borg_preprocess_node(&$variables)
{
    $path = backdrop_get_path('theme', 'borg');
    if (substr($variables['type'], 0, 8) == 'project_') {
        $variables['content']['project_release_downloads']['#prefix'] = '<h2>' . t('Downloads') . '</h2>';
        $variables['content']['project_release_downloads']['#weight'] = -10;
        backdrop_add_css($path . '/css/project-styles.css');
    }
}
Exemplo n.º 7
0
/**
 * Implements hook_preprocess_maintenance_page().
 */
function bartik_preprocess_maintenance_page(&$variables)
{
    backdrop_add_css(backdrop_get_path('theme', 'bartik') . '/css/maintenance-page.css');
}
Exemplo n.º 8
0
/**
 * Prepare variables for node template
 */
function borg_preprocess_node(&$variables)
{
    // For news posts, change the username to a real name.
    if ($variables['node']->type == 'post') {
        // Change the submitted by language.
        $author = user_load($variables['node']->uid);
        $lang = $author->langcode;
        if (!empty($author->field_name[$lang])) {
            $variables['name'] = l($author->field_name[$lang][0]['safe_value'], 'user/' . $author->uid);
        }
    }
    // Change the submitted by language.
    $variables['submitted'] = t('Posted by !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date']));
    // Add a picture to blog posts.
    if ($variables['type'] == 'post' && $variables['view_mode'] == 'full') {
        // Get the profile photo.
        $author = user_load($variables['uid']);
        $langcode = $author->langcode;
        $variables['user_picture'] = theme('image_style', array('style_name' => 'medium', 'uri' => $author->field_photo[$langcode][0]['uri']));
    }
    if (substr($variables['type'], 0, 8) == 'project_') {
        $path = backdrop_get_path('theme', 'borg');
        $variables['content']['project_release_downloads']['#prefix'] = '<h2>' . t('Downloads') . '</h2>';
        $variables['content']['project_release_downloads']['#weight'] = -10;
        backdrop_add_css($path . '/css/project-styles.css');
    }
}