Ejemplo n.º 1
1
/**
 * Implementation of THEMEHOOK_settings() function.
 *
 * @param $saved_settings
 *   array An array of saved settings for this theme.
 * @return
 *   array A form array.
 */
function phptemplate_settings($saved_settings)
{
    // Empty the cached css...
    cache_clear_all('abessive_custom_css', 'cache');
    $form = array();
    require_once path_to_theme() . '/abessive_settings.php';
    // Add Farbtastic color picker
    drupal_add_css('misc/farbtastic/farbtastic.css', 'module', 'all', FALSE);
    drupal_add_js('misc/farbtastic/farbtastic.js');
    drupal_add_js(path_to_theme() . '/theme-settings.js');
    $defaults = _abessive_default_settings();
    $settings = array_merge($defaults, $saved_settings);
    $form['abessive_picker'] = array('#type' => 'markup', '#value' => '<div id="picker"></div>');
    $form['abessive_background_color'] = array('#type' => 'textfield', '#title' => t('Background Color'), '#description' => t('What colour should the body background behind all the containers be? Default: %val', array('%val' => $defaults['abessive_background_color'])), '#default_value' => $settings['abessive_background_color'], '#size' => 7, '#maxlength' => 7, '#prefix' => '<div class="container-inline">', '#suffix' => '</div>', '#attributes' => array('class' => 'form-item-use-colorpicker'), '#element_validate' => array('abessive_validate_hex_field'));
    $form['abessive_border_color'] = array('#type' => 'textfield', '#title' => t('Border Color'), '#description' => t('What colour should the border around all the containers be? Default: %val', array('%val' => $defaults['abessive_border_color'])), '#default_value' => $settings['abessive_border_color'], '#size' => 7, '#maxlength' => 7, '#prefix' => '<div class="container-inline">', '#suffix' => '</div>', '#attributes' => array('class' => 'form-item-use-colorpicker'), '#element_validate' => array('abessive_validate_hex_field'));
    $form['abessive_content_background_color'] = array('#type' => 'textfield', '#title' => t('Content Background Color'), '#description' => t('What colour should the background of all the containers be? Default: %val', array('%val' => $defaults['abessive_content_background_color'])), '#default_value' => $settings['abessive_content_background_color'], '#size' => 7, '#maxlength' => 7, '#prefix' => '<div class="container-inline">', '#suffix' => '</div>', '#attributes' => array('class' => 'form-item-use-colorpicker'), '#element_validate' => array('abessive_validate_hex_field', 'abessive_calculate_gradient'));
    $form['abessive_content_background_color']['abessive_r5'] = $form['abessive_content_background_color']['abessive_r4'] = $form['abessive_content_background_color']['abessive_r3'] = $form['abessive_content_background_color']['abessive_r2'] = array('#type' => 'value', '#default_value' => 0);
    $form['abessive_text_color'] = array('#type' => 'textfield', '#title' => t('Text Color'), '#description' => t('What colour should the text be? Default: %val', array('%val' => $defaults['abessive_text_color'])), '#default_value' => $settings['abessive_text_color'], '#size' => 7, '#maxlength' => 7, '#prefix' => '<div class="container-inline">', '#suffix' => '</div>', '#attributes' => array('class' => 'form-item-use-colorpicker'), '#element_validate' => array('abessive_validate_hex_field'));
    $form['abessive_link_color'] = array('#type' => 'textfield', '#title' => t('Hyperlink Color'), '#description' => t('What colour should hyperlinks be? Default: %val', array('%val' => $defaults['abessive_link_color'])), '#default_value' => $settings['abessive_link_color'], '#size' => 7, '#maxlength' => 7, '#prefix' => '<div class="container-inline">', '#suffix' => '</div>', '#attributes' => array('class' => 'form-item-use-colorpicker'), '#element_validate' => array('abessive_validate_hex_field'));
    $form['abessive_link_hover_color'] = array('#type' => 'textfield', '#title' => t('Hyperlink Hover Color'), '#description' => t('What colour should hyperlinks be when hovered over? Default: %val', array('%val' => $defaults['abessive_link_hover_color'])), '#default_value' => $settings['abessive_link_hover_color'], '#size' => 7, '#maxlength' => 7, '#prefix' => '<div class="container-inline">', '#suffix' => '</div>', '#attributes' => array('class' => 'form-item-use-colorpicker'), '#element_validate' => array('abessive_validate_hex_field'));
    $form['abessive_link_active_color'] = array('#type' => 'textfield', '#title' => t('Hyperlink Active Color'), '#description' => t('What colour should active hyperlinks be? Default: %val', array('%val' => $defaults['abessive_link_active_color'])), '#default_value' => $settings['abessive_link_active_color'], '#size' => 7, '#maxlength' => 7, '#prefix' => '<div class="container-inline">', '#suffix' => '</div>', '#attributes' => array('class' => 'form-item-use-colorpicker'), '#element_validate' => array('abessive_validate_hex_field'));
    $form['abessive_left_width'] = array('#type' => 'textfield', '#title' => t('Left Column Width'), '#description' => t('How wide should the left column be? Default: %val', array('%val' => $defaults['abessive_left_width'])), '#default_value' => $settings['abessive_left_width'], '#size' => 3, '#maxlength' => 3, '#prefix' => '<div class="container-inline">', '#suffix' => '</div>', '#field_suffix' => 'px', '#element_validate' => array('abessive_validate_numeric_field'));
    $form['abessive_right_width'] = array('#type' => 'textfield', '#title' => t('Right Column Width'), '#description' => t('How wide should the right column be? Default: %val', array('%val' => $defaults['abessive_right_width'])), '#default_value' => $settings['abessive_right_width'], '#size' => 3, '#maxlength' => 3, '#prefix' => '<div class="container-inline">', '#suffix' => '</div>', '#field_suffix' => 'px', '#element_validate' => array('abessive_validate_numeric_field'));
    $form['#submit'][] = 'abessive_submit_settings';
    return $form;
}
Ejemplo n.º 2
1
function lamtech_preprocess_html(&$vars)
{
    drupal_add_html_head_link(array('href' => 'http://fonts.googleapis.com/css?family=Roboto:300', 'rel' => 'stylesheet', 'type' => 'text/css'));
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/css/html-elements.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/css/forms.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/css/page.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/css/comments.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/css/views.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/css/forums.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/css/fields.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/css/blocks.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/css/navigation.css');
    //  drupal_add_css(drupal_get_path('theme', 'lamtech') . '/bootstrap/css/bootstrap.min.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/bootstrap/css/bootstrap-theme.min.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/tpl/anb/css/responsive.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/tpl/anb/css/lamtech.bootstrap.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/tpl/anb/css/lamtech.core.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/tpl/anb/css/lamtech.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/tpl/anb/css/lamtech.common.css', array('group' => 1));
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/tpl/anb/css/lamtech.typography.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/tpl/anb/css/lamtech.forms.css');
    drupal_add_css(drupal_get_path('theme', 'lamtech') . '/tpl/anb/css/off-canvas.css');
    drupal_add_js(drupal_get_path('theme', 'lamtech') . '/bootstrap/js/bootstrap.js');
    drupal_add_js(drupal_get_path('theme', 'lamtech') . '/js/jquery.smooth-scroll.js');
}
Ejemplo n.º 3
0
function jollyness_preprocess_html(&$vars)
{
    //Process portfolio color
    if ($portfolio_category = taxonomy_vocabulary_machine_name_load('portfolio_category')) {
        $terms = taxonomy_get_tree($portfolio_category->vid);
        $less = new lessc();
        $css = '';
        $color = '';
        $class = '';
        foreach ($terms as $t) {
            $term = taxonomy_term_load($t->tid);
            $class = drupal_html_class($t->name);
            if (!empty($term->field_color)) {
                foreach ($term->field_color as $v) {
                    $color = $v[0]['value'];
                    break;
                }
            }
            if ($color) {
                $css .= ".dexp-masonry-filter,.dexp-portfolio-filter{.{$class} span:before{background-color: {$color} !important;}}";
                $css .= ".{$class} .portfolio-item-overlay{background-color: rgba(red({$color}), green({$color}), blue({$color}), 0.7) !important;}";
            }
        }
        $css = $less->compile($css);
        drupal_add_css($css, array('type' => 'inline'));
    }
}
/**
 * Add link to view full-sized image in colorbox and add caption
 */
function gettysw_preprocess_field(&$vars, $hook)
{
    foreach ($vars['element']['#items'] as $delta => $item) {
        if (!empty($vars['element'][$delta])) {
            if (module_exists('image_field_caption') && isset($item['image_field_caption'])) {
                $vars['items'][$delta]['caption'] = check_markup($item['image_field_caption']['value'], $item['image_field_caption']['format']);
            }
            if ($vars['element']['#field_name'] == 'field_image' && isset($item['uri']) && module_exists('colorbox') && empty($vars['element']['#object']->is_export)) {
                $vars['items'][$delta]['colorbox_link'] = '<a class="colorbox" href="' . file_create_url($item['uri']) . '">Expand Image</a>';
            }
            if ($vars['element']['#field_name'] == 'field_image_reference_info' && $vars['element']['#view_mode'] == 'full') {
                drupal_add_css(drupal_get_path('module', 'lighttable') . '/lighttable.css');
                $vars['content_attributes_array'] = array('id' => 'lighttable');
                foreach ($vars['items'] as $delta => $item) {
                    $fc_item = reset($vars['items'][$delta]['entity']['field_collection_item']);
                    $image_entity = $fc_item['#entity']->field_image_reference[LANGUAGE_NONE][0]['entity'];
                    $file_nodes = file_usage_list($image_entity);
                    $image_node = node_load(key($file_nodes['file']['node']));
                    $vars['items'][$delta]['entity']['field_collection_item']['title'] = array('#markup' => '<span class="field-title">' . $image_node->title . '</span>', '#weight' => -1);
                    $left = $fc_item['#entity']->field_x_pos[LANGUAGE_NONE][0]['value'];
                    $top = $fc_item['#entity']->field_y_pos[LANGUAGE_NONE][0]['value'];
                    $width = $fc_item['#entity']->field_width[LANGUAGE_NONE][0]['value'];
                    $height = $fc_item['#entity']->field_height[LANGUAGE_NONE][0]['value'];
                    $vars['items'][$delta]['#attributes']['style'] = "position: absolute; top: {$top}px; left: {$left}px; width: {$width}px; height: {$height}px;";
                    $vars['items'][$delta]['#attributes']['class'][] = 'lighttable-image-container';
                }
            }
        }
    }
}
Ejemplo n.º 5
0
/**
 * Implements hook_preprocess_maintenance_page().
 */
function bartik_preprocess_maintenance_page(&$variables)
{
    if (!$variables['db_is_active']) {
        unset($variables['site_name']);
    }
    drupal_add_css(drupal_get_path('theme', 'bartik') . '/css/maintenance-page.css');
}
Ejemplo n.º 6
0
/**
 * Display a view as a grid style.
 */
function reset_preprocess_views_view_grid(&$vars)
{
    drupal_add_css(drupal_get_path('theme', 'reset') . '/css/views-view-grid.css');
    foreach (element_children($vars['row_classes']) as $key => $value) {
        $vars['row_classes'][$key] .= 'view-grid-row has-' . $vars['options']['columns'] . '-cols';
    }
}
Ejemplo n.º 7
0
/**
 * Override or insert variables into the html template.
 * @param $vars
 *   An array of variables to pass to the theme template.
 */
function gavias_laikafood_preprocess_html(&$vars)
{
    global $theme, $base_url;
    global $parent_root;
    $skin = theme_get_setting('theme_skin');
    drupal_add_css(drupal_get_path('theme', 'gavias_laikafood') . '/css/' . ($skin ? 'skins/' . $skin . '/' : '') . 'template.css', array('group' => CSS_DEFAULT, 'type' => 'file'));
    drupal_add_css(drupal_get_path('theme', 'gavias_laikafood') . '/css/' . ($skin ? 'skins/' . $skin . '/' : '') . 'bootstrap.css', array('group' => CSS_DEFAULT, 'type' => 'file'));
    if (module_exists('gavias_themer') && theme_get_setting('frontend_panel') == '1' && user_access('gavias_customize_preview')) {
        gavias_load_fontend();
    }
    if (theme_get_setting('enable_custom_style') == 1 && trim(variable_get('gavias_profile'))) {
        drupal_add_css(drupal_get_path('theme', 'gavias_laikafood') . '/customize/save/' . variable_get('gavias_profile') . '.css', array('group' => CSS_DEFAULT, 'type' => 'file'));
    }
    $viewport = array('#type' => 'html_tag', '#tag' => 'meta', '#attributes' => array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1, maximum-scale=1'), '#weight' => 1);
    drupal_add_html_head($viewport, 'viewport');
    // Add boxed class if layout is set that way.
    if (theme_get_setting('site_layout') == 'boxed') {
        $vars['classes_array'][] = 'boxed';
    }
    if (theme_get_setting('preloader') == '1') {
        $vars['classes_array'][] = 'js-preloader';
    } else {
        $vars['classes_array'][] = 'not-preloader';
    }
}
function unity_lab_preprocess_paragraphs_item_pg_common_card_rollover_card(&$vars, $hook)
{
    $backgroundImage = '';
    $vars['button_text'] = 'Read Story';
    if (!empty($vars['field_links'][0]['url'])) {
        $vars['link_url'] = $vars['field_links'][0]['url'];
    } else {
        $vars['link_url'] = "#";
    }
    if (!empty($vars['field_links'][0]['title'])) {
        $vars['button_text'] = $vars['field_links'][0]['title'];
    }
    if (isset($vars['field_image'])) {
        $backgroundImage = $vars['field_image'][0]['uri'];
        $backgroundImage = file_create_url($backgroundImage);
    } else {
        $backgroundImage = file_create_url('/sites/all/libraries/unity-lab/latest/images/backgrounds/farbeyond-stripes/redSwooshes.jpg');
    }
    if ($backgroundImage) {
        //  $vars['css_classes'][] = 'section-background-image';
        //    $vars['css_classes'][] = 'overlay-black';
        //    $vars['css_classes'][] = 'light-theme';
        drupal_add_css('#' . $vars['css_id'] . ' {background-image: url(' . $backgroundImage . ');}', array('group' => CSS_THEME, 'type' => 'inline'));
    }
}
Ejemplo n.º 9
0
/**
 * Implementation of hook_settings() for themes.
 */
function singular_settings($settings)
{
    // Add js & css
    drupal_add_css('misc/farbtastic/farbtastic.css', 'module', 'all', FALSE);
    drupal_add_js('misc/farbtastic/farbtastic.js');
    drupal_add_js(drupal_get_path('theme', 'singular') . '/js/settings.js');
    drupal_add_css(drupal_get_path('theme', 'singular') . '/css/settings.css');
    file_check_directory(file_directory_path(), FILE_CREATE_DIRECTORY, 'file_directory_path');
    // Check for a new uploaded logo, and use that instead.
    if ($file = file_save_upload('background_file', array('file_validate_is_image' => array()))) {
        $parts = pathinfo($file->filename);
        $filename = 'singular_background.' . $parts['extension'];
        if (file_copy($file, $filename, FILE_EXISTS_REPLACE)) {
            $settings['background_path'] = $file->filepath;
        }
    }
    $form = array();
    $form['layout'] = array('#title' => t('Layout'), '#type' => 'select', '#options' => array('fixed' => t('Fixed width'), 'fluid' => t('Fluid width')), '#default_value' => !empty($settings['layout']) ? $settings['layout'] : 'fixed');
    $form['messages'] = array('#type' => 'fieldset', '#tree' => FALSE, '#title' => t('Autoclose messages'), '#descriptions' => t('Select the message types to close automatically after a few seconds.'));
    $form['messages']['autoclose'] = array('#type' => 'checkboxes', '#options' => array('status' => t('Status'), 'warning' => t('Warning'), 'error' => t('Error')), '#default_value' => !empty($settings['autoclose']) ? $settings['autoclose'] : array('status'));
    $form['style'] = array('#title' => t('Styles'), '#type' => 'select', '#options' => singular_get_styles(), '#default_value' => !empty($settings['style']) ? $settings['style'] : 'sea');
    $form['custom'] = array('#tree' => FALSE, '#type' => 'fieldset', '#attributes' => array('class' => $form['style']['#default_value'] == 'custom' ? 'singular-custom-settings' : 'singular-custom-settings hidden'));
    $form['custom']['background_file'] = array('#type' => 'file', '#title' => t('Background image'), '#maxlength' => 40);
    if (!empty($settings['background_path'])) {
        $form['custom']['background_preview'] = array('#type' => 'markup', '#value' => !empty($settings['background_path']) ? theme('image', $settings['background_path'], NULL, NULL, array('width' => '100'), FALSE) : '');
    }
    $form['custom']['background_path'] = array('#type' => 'value', '#value' => !empty($settings['background_path']) ? $settings['background_path'] : '');
    $form['custom']['background_color'] = array('#title' => t('Background color'), '#type' => 'textfield', '#size' => '7', '#maxlength' => '7', '#default_value' => !empty($settings['background_color']) ? $settings['background_color'] : '#888888', '#suffix' => '<div id="singular-colorpicker"></div>');
    $form['custom']['background_repeat'] = array('#title' => t('Tile'), '#type' => 'select', '#options' => array('no-repeat' => t('Don\'t tile'), 'repeat-x' => t('Horizontal'), 'repeat-y' => t('Vertical'), 'repeat' => t('Both')), '#default_value' => !empty($settings['background_repeat']) ? $settings['background_repeat'] : 'no-repeat');
    return $form;
}
Ejemplo n.º 10
0
/**
 * Implements hook_preprocess_html().
 * Meta tags https://drupal.org/node/1468582#comment-5698732
 */
function importacionesgm_preprocess_html(&$variables)
{
    $meta_charset = array('#tag' => 'meta', '#attributes' => array('charset' => 'utf-8'));
    drupal_add_html_head($meta_charset, 'meta_charset');
    $meta_x_ua_compatible = array('#tag' => 'meta', '#attributes' => array('http-equiv' => 'x-ua-compatible', 'content' => 'ie=edge, chrome=1'));
    drupal_add_html_head($meta_x_ua_compatible, 'meta_x_ua_compatible');
    $meta_mobile_optimized = array('#tag' => 'meta', '#attributes' => array('name' => 'MobileOptimized', 'content' => 'width'));
    drupal_add_html_head($meta_mobile_optimized, 'meta_mobile_optimized');
    $meta_handheld_friendly = array('#tag' => 'meta', '#attributes' => array('name' => 'HandheldFriendly', 'content' => 'true'));
    drupal_add_html_head($meta_handheld_friendly, 'meta_handheld_friendly');
    $meta_viewport = array('#tag' => 'meta', '#attributes' => array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1'));
    drupal_add_html_head($meta_viewport, 'meta_viewport');
    $meta_cleartype = array('#tag' => 'meta', '#attributes' => array('http-equiv' => 'cleartype', 'content' => 'on'));
    drupal_add_html_head($meta_cleartype, 'meta_cleartype');
    // Use html5shiv.
    if (theme_get_setting('html5shim')) {
        $element = array('element' => array('#tag' => 'script', '#value' => '', '#attributes' => array('type' => 'text/javascript', 'src' => file_create_url(drupal_get_path('theme', 'importacionesgm') . '/js/html5shiv-printshiv.js'))));
        $html5shim = array('#type' => 'markup', '#markup' => "<!--[if lt IE 9]>\n" . theme('html_tag', $element) . "<![endif]-->\n");
        drupal_add_html_head($html5shim, 'sonambulo_html5shim');
    }
    // Use Respond.js.
    if (theme_get_setting('respond_js')) {
        drupal_add_js(drupal_get_path('theme', 'importacionesgm') . '/js/respond.min.js', array('group' => JS_LIBRARY, 'weight' => -100));
    }
    // Use normalize.css
    if (theme_get_setting('normalize_css')) {
        drupal_add_css(drupal_get_path('theme', 'importacionesgm') . '/css/normalize.css', array('group' => CSS_SYSTEM, 'weight' => -100));
    }
}
Ejemplo n.º 11
0
/**
 * @file
 * The primary PHP file for this theme.
 */
function fire_preprocess_node($vars)
{
    // CSS overrides: content type
    if (isset($vars['node'])) {
        drupal_add_css(drupal_get_path('theme', 'fire') . '/css/page-' . $vars['node']->type . '.css', array('group' => CSS_THEME));
    }
}
Ejemplo n.º 12
0
function infine_preprocess_page(&$variables)
{
    drupal_add_css("http://fonts.googleapis.com/css?family=Roboto", 'external');
    drupal_add_css("http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,300,700", 'external');
    drupal_add_css(drupal_get_path('theme', 'infine') . '/icons/pictopro-normal/pictopro-normal.css');
    drupal_add_css(drupal_get_path('theme', 'infine') . '/icons/pictopro-outline/pictopro-outline.css');
}
Ejemplo n.º 13
0
/**
 * Implementation of THEMEHOOK_settings() function.
 *
 * @param $saved_settings
 *   An array of saved settings for this theme.
 * @param $subtheme_defaults
 *   Allow a subtheme to override the default values.
 * @return
 *   A form array.
 */
function SimplyCivi_settings($saved_settings, $subtheme_defaults = array())
{
    /*
     * The default values for the theme variables. Make sure $defaults exactly
     * matches the $defaults in the template.php file.
     */
    // Add CSS to adjust the layout on the settings page
    drupal_add_css(drupal_get_path('theme', 'SimplyCivi') . '/css/theme-settings.css', 'theme');
    // Add Javascript to adjust the layout on the settings page
    // drupal_add_js(drupal_get_path('theme', 'SimplyCivi') . '/css/theme-settings.js', 'theme');
    // Get the default values from the .info file.
    $defaults = SimplyCivi_theme_get_default_settings('SimplyCivi');
    // Allow a subtheme to override the default values.
    $defaults = array_merge($defaults, $subtheme_defaults);
    // Merge the saved variables and their default values.
    $settings = array_merge($defaults, $saved_settings);
    $form['SimplyCivi_dev'] = array('#type' => 'fieldset', '#title' => t('Development Settings'), '#weight' => 5, '#collapsible' => TRUE, '#collapsed' => FALSE);
    // Setting for flush all caches
    $form['SimplyCivi_dev']['SimplyCivi_rebuild_registry'] = array('#type' => 'checkbox', '#title' => t('Rebuild the theme registry on every page.'), '#default_value' => $settings['SimplyCivi_rebuild_registry'], '#description' => t('During theme development, it can be very useful to continuously <a href="!link">rebuild the theme registry</a>. WARNING: this is a huge performance penalty and must be turned off on production websites.', array('!link' => 'http://drupal.org/node/173880#theme-registry')));
    $form['SimplyCivi_animated_submit'] = array('#type' => 'checkbox', '#title' => t('Prevent Duplicate Submits'), '#default_value' => $settings['SimplyCivi_animated_submit'], '#description' => t('This can be helpful to prevent users from hitting the submit button twice, however the autocomplete can interfere with this and cause it not to work. <a href="!link">More Information</a>', array('!link' => 'http://drupal.org/node/579070')));
    $form['SimplyCivi_import_htmlmailings'] = array('#type' => 'checkbox', '#title' => t('CiviCRM Import HTML page function'), '#default_value' => $settings['SimplyCivi_import_htmlmailings'], '#description' => t('Adds the ability to import a full HTML page directly into the CiviCRM HTML mailing form. This is an experimental feature and does not do anything intelligent - it will load scripts and all kinds of bad stuff if you enter a bad URL, so only load URLs of pages that are <em>specifically made for HTML emails</a> (e.g. no: javascript, relative-paths for images, advanced CSS, etc..)'));
    $form['SimplyCivi_block_edit_links'] = array('#type' => 'checkbox', '#title' => t('Show block edit and configure links for those with appropriate permissions'), '#default_value' => $settings['SimplyCivi_block_edit_links'], '#description' => t('This setting will display links to configure blocks, edit blocks, or modify the menus for block menus for users with the appropriate permissions.  When enabled the links may obscure small blocks like the New User block.'));
    // Return the additional form widgets
    return $form;
}
Ejemplo n.º 14
0
    return $output;
}
function storelocator_app_block_filter_opening($language)
{
    drupal_add_css(drupal_get_path('module', 'storelocator_app') . '/css/storelocator_app.form.css');
    $output = theme_block_filter_opening(drupal_get_form('storelocator_app_block_filter_form_opening', $language), $language);
    //theme_block_filter_opening(drupal_get_form('storelocator_app_block_filter_form_opening', $language), $language);
Ejemplo n.º 15
0
/**
 * Implementation of hook_preprocess_html().
 */
function progressive_sub_preprocess_html(&$variables)
{
    global $language;
    $css_customizer = theme_get_setting('skin') . '-pages-customizer.css';
    drupal_add_css(drupal_get_path('theme', 'progressive') . '/css/customizer/' . $css_customizer, array('group' => CSS_THEME));
    drupal_add_css(drupal_get_path('theme', 'progressive_sub_sub') . '/css/custom.css');
    if ($language->dir == 'rtl') {
        drupal_add_css(drupal_get_path('theme', 'progressive') . '/css/drupal-rtl.css', array('group' => CSS_THEME));
    }
    drupal_add_js(array('theme_path' => drupal_get_path('theme', 'progressive'), 'basePath' => base_path(), 'progressive' => array('mobile_menu_toggle' => theme_get_setting('mobile_menu_toggle')), 'ubercart_currency' => variable_get('uc_currency_sign')), 'setting');
    // Page 404
    if (arg(0) == 'page-404-bg') {
        $variables['classes_array'][] = 'page-404-promo';
    }
    // Login Page
    global $user;
    if (arg(0) == 'user' && (in_array(arg(1), array('register', 'password', 'login')) || arg(1) == '' && !$user->uid)) {
        $variables['classes_array'][] = 'page-login-promo';
    }
    if (theme_get_setting('boxed') || $_GET['q'] == 'node/107' && strpos($_SERVER['HTTP_HOST'], 'nikadevs') !== FALSE) {
        $variables['classes_array'][] = 'boxed';
    }
    $layout = _nikadevs_cms_get_active_layout();
    $one_page = isset($layout['settings']['one_page']) && $layout['settings']['one_page'] ? 1 : 0;
    if (theme_get_setting('header_top_menu') && !in_array($_GET['q'], array('user/login', 'user/register', 'user/password')) && !$one_page) {
        $variables['classes_array'][] = 'hidden-top';
    }
    if ($one_page) {
        $variables['classes_array'][] = 'one-page';
    }
}
Ejemplo n.º 16
0
/**
 * Implementation of THEMEHOOK_settings() function.
 *
 * @param $saved_settings
 *   An array of saved settings for this theme.
 * @param $subtheme_defaults
 *   Allow a subtheme to override the default values.
 * @return
 *   A form array.
 */
function zen_settings($saved_settings, $subtheme_defaults = array())
{
    // Add the form's CSS
    drupal_add_css(drupal_get_path('theme', 'zen') . '/theme-settings.css', 'theme');
    // Add javascript to show/hide optional settings
    drupal_add_js(drupal_get_path('theme', 'zen') . '/theme-settings.js', 'theme');
    /*
     * The default values for the theme variables. Make sure $defaults exactly
     * matches the $defaults in the theme-settings-init.php file.
     */
    $defaults = array('zen_block_editing' => 1, 'zen_breadcrumb' => 'yes', 'zen_breadcrumb_separator' => ' › ', 'zen_breadcrumb_home' => 1, 'zen_breadcrumb_trailing' => 1, 'zen_layout' => 'border-politics-liquid', 'zen_wireframes' => 0);
    $defaults = array_merge($defaults, $subtheme_defaults);
    // Merge the saved variables and their default values
    $settings = array_merge($defaults, $saved_settings);
    /*
     * Create the form using Form API
     */
    $form['zen-div-opening'] = array('#value' => '<div id="zen-settings">');
    $form['zen_block_editing'] = array('#type' => 'checkbox', '#title' => t('Show block editing on hover'), '#description' => t('When hovering over a block, privileged users will see block editing links.'), '#default_value' => $settings['zen_block_editing']);
    $form['breadcrumb'] = array('#type' => 'fieldset', '#title' => t('Breadcrumb settings'), '#attributes' => array('id' => 'zen-breadcrumb'));
    $form['breadcrumb']['zen_breadcrumb'] = array('#type' => 'select', '#title' => t('Display breadcrumb'), '#default_value' => $settings['zen_breadcrumb'], '#options' => array('yes' => t('Yes'), 'admin' => t('Only in admin section'), 'no' => t('No')));
    $form['breadcrumb']['zen_breadcrumb_separator'] = array('#type' => 'textfield', '#title' => t('Breadcrumb separator'), '#description' => t('Text only. Don’t forget to include spaces.'), '#default_value' => $settings['zen_breadcrumb_separator'], '#size' => 5, '#maxlength' => 10, '#prefix' => '<div id="div-zen-breadcrumb-collapse">');
    $form['breadcrumb']['zen_breadcrumb_home'] = array('#type' => 'checkbox', '#title' => t('Show home page link in breadcrumb'), '#default_value' => $settings['zen_breadcrumb_home']);
    $form['breadcrumb']['zen_breadcrumb_trailing'] = array('#type' => 'checkbox', '#title' => t('Append a separator to the end of the breadcrumb'), '#default_value' => $settings['zen_breadcrumb_trailing'], '#description' => t('Useful when the breadcrumb is placed just before the title.'), '#suffix' => '</div>');
    $form['themedev'] = array('#type' => 'fieldset', '#title' => t('Theme development settings'), '#attributes' => array('id' => 'zen-themedev'));
    $form['themedev']['zen_layout'] = array('#type' => 'radios', '#title' => t('Layout method'), '#options' => array('border-politics-liquid' => t('Liquid layout') . ' <small>(layout-liquid.css)</small>', 'border-politics-fixed' => t('Fixed layout') . ' <small>(layout-fixed.css)</small>'), '#default_value' => $settings['zen_layout']);
    $form['themedev']['zen_wireframes'] = array('#type' => 'checkbox', '#title' => t('Display borders around main layout elements'), '#default_value' => $settings['zen_wireframes'], '#description' => l(t('Wireframes'), 'http://www.boxesandarrows.com/view/html_wireframes_and_prototypes_all_gain_and_no_pain') . t(' are useful when prototyping a website.'), '#prefix' => '<div id="div-zen-wireframes"><strong>' . t('Wireframes:') . '</strong>', '#suffix' => '</div>');
    $form['zen-div-closing'] = array('#value' => '</div>');
    // Return the form
    return $form;
}
Ejemplo n.º 17
0
function corporateclean_preprocess_html(&$variables)
{
    if (!theme_get_setting('responsive_respond', 'corporateclean')) {
        drupal_add_css(path_to_theme() . '/css/basic-layout.css', array('group' => CSS_THEME, 'browsers' => array('IE' => '(lte IE 8)&(!IEMobile)', '!IE' => FALSE), 'preprocess' => FALSE));
    }
    drupal_add_css(path_to_theme() . '/css/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => '(lte IE 8)&(!IEMobile)', '!IE' => FALSE), 'preprocess' => FALSE));
}
Ejemplo n.º 18
0
/**
 * @file
 * Contains theme override functions and preprocess functions for the theme.
 *
 * ABOUT THE TEMPLATE.PHP FILE
 *
 *   The template.php file is one of the most useful files when creating or
 *   modifying Drupal themes. You can modify or override Drupal's theme
 *   functions, intercept or make additional variables available to your theme,
 *   and create custom PHP logic. For more information, please visit the Theme
 *   Developer's Guide on Drupal.org: http://drupal.org/theme-guide
 *
 * OVERRIDING THEME FUNCTIONS
 *
 *   The Drupal theme system uses special theme functions to generate HTML
 *   output automatically. Often we wish to customize this HTML output. To do
 *   this, we have to override the theme function. You have to first find the
 *   theme function that generates the output, and then "catch" it and modify it
 *   here. The easiest way to do it is to copy the original function in its
 *   entirety and paste it here, changing the prefix from theme_ to STARTERKIT_.
 *   For example:
 *
 *     original: theme_breadcrumb()
 *     theme override: STARTERKIT_breadcrumb()
 *
 *   where STARTERKIT is the name of your sub-theme. For example, the
 *   zen_classic theme would define a zen_classic_breadcrumb() function.
 *
 *   If you would like to override either of the two theme functions used in Zen
 *   core, you should first look at how Zen core implements those functions:
 *     theme_breadcrumbs()      in zen/template.php
 *     theme_menu_local_tasks() in zen/template.php
 *
 *   For more information, please visit the Theme Developer's Guide on
 *   Drupal.org: http://drupal.org/node/173880
 *
 * CREATE OR MODIFY VARIABLES FOR YOUR THEME
 *
 *   Each tpl.php template file has several variables which hold various pieces
 *   of content. You can modify those variables (or add new ones) before they
 *   are used in the template files by using preprocess functions.
 *
 *   This makes THEME_preprocess_HOOK() functions the most powerful functions
 *   available to themers.
 *
 *   It works by having one preprocess function for each template file or its
 *   derivatives (called template suggestions). For example:
 *     THEME_preprocess_page    alters the variables for page.tpl.php
 *     THEME_preprocess_node    alters the variables for node.tpl.php or
 *                              for node-forum.tpl.php
 *     THEME_preprocess_comment alters the variables for comment.tpl.php
 *     THEME_preprocess_block   alters the variables for block.tpl.php
 *
 *   For more information on preprocess functions and template suggestions,
 *   please visit the Theme Developer's Guide on Drupal.org:
 *   http://drupal.org/node/223440
 *   and http://drupal.org/node/190815#template-suggestions
 */
function chctheme_2013_preprocess_html(&$variables)
{
    drupal_add_css('https://www.lehigh.edu/~inis/includes/SiteStyleFooter.css', array('type' => 'external'));
    drupal_add_css('https://cf.lehigh.edu/webdev/projects/wms/footer-official.css', array('type' => 'external'));
    $viewport = array('#tag' => 'meta', '#attributes' => array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1, user-scalable=yes'));
    drupal_add_html_head($viewport, 'viewport');
}
Ejemplo n.º 19
0
/**
 * Implements template_preprocess_html().
 */
function ths_preprocess_html(&$variables)
{
    // Loads Roboto font
    drupal_add_css("//fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,700italic,700", array("type" => "external"));
    // Loads Font
    drupal_add_css("//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css", array("type" => "external"));
}
Ejemplo n.º 20
0
 public function addCss()
 {
     $path = drupal_get_path('module', 'pubnode_plos') . '/css';
     drupal_add_css("{$path}/ViewNLM.css");
     //drupal_add_css("$path/pone_screen.css");
     //drupal_add_css("$path/pone_iepc.css");
 }
Ejemplo n.º 21
0
/**
 * Preprocess variables for html.tpl.php
 *
 * @see system_elements()
 * @see html.tpl.php
 */
function omega_kickstart_preprocess_html(&$variables)
{
    // Add conditional stylesheets for IE
    $theme_path = drupal_get_path('theme', 'omega_kickstart');
    drupal_add_css($theme_path . '/css/ie-lte-8.css', array('group' => CSS_THEME, 'weight' => 20, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE));
    drupal_add_css($theme_path . '/css/ie-lte-7.css', array('group' => CSS_THEME, 'weight' => 21, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'preprocess' => FALSE));
}
Ejemplo n.º 22
0
/**
 * Preprocessor for theme('page').
 */
function cube_preprocess_page(&$vars)
{
    // Automatically adjust layout for page with right sidebar content if no
    // explicit layout has been set.
    $layout = module_exists('context_layouts') ? context_layouts_get_active_layout() : NULL;
    if (arg(0) != 'admin' && !empty($vars['page']['right']) && (!$layout || $layout['layout'] == 'default')) {
        $vars['theme_hook_suggestion'] = 'page__context_layouts_cube_columns';
        drupal_add_css(drupal_get_path('theme', 'cube') . '/layout-sidebar.css');
    }
    // Clear out help text if empty.
    if (empty($vars['help']) || !strip_tags($vars['help'])) {
        $vars['help'] = '';
    }
    // Help text toggler link.
    $vars['help_toggler'] = l(t('Help'), $_GET['q'], array('attributes' => array('id' => 'help-toggler', 'class' => array('toggler')), 'fragment' => 'help-text'));
    // Overlay is enabled.
    $vars['overlay'] = module_exists('overlay') && overlay_get_mode() === 'child';
    if ($vars['overlay']) {
    }
    // Display user links
    $vars['user_links'] = _cube_user_links();
    // Display tabs
    $vars['primary_tabs'] = menu_primary_local_tasks();
    $vars['secondary_tabs'] = menu_secondary_local_tasks();
}
Ejemplo n.º 23
0
function loadcss($styles)
{
    $program_module_path = drupal_get_path('module', 'program');
    foreach ($styles as $style) {
        drupal_add_css($program_module_path . $style, array('group' => CSS_DEFAULT, 'type' => 'file'));
    }
}
Ejemplo n.º 24
0
/**
 * Preprocessor for page.tpl.php template file.
 * The default functionality can be found in preprocess/preprocess-page.inc
 */
function omega_preprocess_page(&$vars, $hook) {
	// Prepare 960gs CSS. Fixed width is default, fluid is optional via theme-settings
  if(theme_get_setting('omega_fixed_fluid') == 'fluid') {
    $css_960 = drupal_get_path('theme', 'omega') .'/css/960-fluid.css';
  }
  else {
  	$css_960 = drupal_get_path('theme', 'omega') .'/css/960.css';
  }
  drupal_add_css($css_960, 'module', 'all');
  
  // enable/disable optional CSS files
  if (theme_get_setting('reset_css') == '1') {
    drupal_add_css(drupal_get_path('theme', 'omega') .'/css/reset.css', 'module', 'all');
  }
  if (theme_get_setting('text_css') == '1') {
    drupal_add_css(drupal_get_path('theme', 'omega') .'/css/text.css', 'module', 'all');
  }
  if (theme_get_setting('regions_css') == '1') {
    drupal_add_css(drupal_get_path('theme', 'omega') .'/css/regions.css', 'module', 'all');
  }
  if (theme_get_setting('defaults_css') == '1') {
    drupal_add_css(drupal_get_path('theme', 'omega') .'/css/defaults.css', 'module', 'all');
  }
  if (theme_get_setting('custom_css') == '1') {
    drupal_add_css(drupal_get_path('theme', 'omega') .'/css/custom.css', 'module', 'all');
  }
  // redeclare $styles
  //krumo($vars['styles']);
  $vars['styles'] = drupal_get_css();
  //krumo($vars['styles']);
} // end preprocess_page
Ejemplo n.º 25
0
/**
 * Implementation of THEMEHOOK_settings() function.
 *
 * @param $saved_settings
 *   An array of saved settings for this theme.
 * @param $subtheme_defaults
 *   Allow a subtheme to override the default values.
 * @return
 *   A form array.
 */
function zen_settings($saved_settings, $subtheme_defaults = array())
{
    // Add the form's CSS
    drupal_add_css(drupal_get_path('theme', 'zen') . '/theme-settings.css', 'theme');
    // Add javascript to show/hide optional settings
    drupal_add_js(drupal_get_path('theme', 'zen') . '/theme-settings.js', 'theme');
    // Get the default values from the .info file.
    $defaults = zen_theme_get_default_settings('zen');
    // Allow a subtheme to override the default values.
    $defaults = array_merge($defaults, $subtheme_defaults);
    // Merge the saved variables and their default values.
    $settings = array_merge($defaults, $saved_settings);
    /*
     * Create the form using Forms API
     */
    $form['zen-div-opening'] = array('#value' => '<div id="zen-settings">');
    $form['zen_block_editing'] = array('#type' => 'checkbox', '#title' => t('Show block editing on hover'), '#description' => t('When hovering over a block, privileged users will see block editing links.'), '#default_value' => $settings['zen_block_editing']);
    $form['breadcrumb'] = array('#type' => 'fieldset', '#title' => t('Breadcrumb settings'), '#attributes' => array('id' => 'zen-breadcrumb'));
    $form['breadcrumb']['zen_breadcrumb'] = array('#type' => 'select', '#title' => t('Display breadcrumb'), '#default_value' => $settings['zen_breadcrumb'], '#options' => array('yes' => t('Yes'), 'admin' => t('Only in admin section'), 'no' => t('No')));
    $form['breadcrumb']['zen_breadcrumb_separator'] = array('#type' => 'textfield', '#title' => t('Breadcrumb separator'), '#description' => t('Text only. Don’t forget to include spaces.'), '#default_value' => $settings['zen_breadcrumb_separator'], '#size' => 5, '#maxlength' => 10, '#prefix' => '<div id="div-zen-breadcrumb-collapse">');
    $form['breadcrumb']['zen_breadcrumb_home'] = array('#type' => 'checkbox', '#title' => t('Show home page link in breadcrumb'), '#default_value' => $settings['zen_breadcrumb_home']);
    $form['breadcrumb']['zen_breadcrumb_trailing'] = array('#type' => 'checkbox', '#title' => t('Append a separator to the end of the breadcrumb'), '#default_value' => $settings['zen_breadcrumb_trailing'], '#description' => t('Useful when the breadcrumb is placed just before the title.'));
    $form['breadcrumb']['zen_breadcrumb_title'] = array('#type' => 'checkbox', '#title' => t('Append the content title to the end of the breadcrumb'), '#default_value' => $settings['zen_breadcrumb_title'], '#description' => t('Useful when the breadcrumb is not placed just before the title.'), '#suffix' => '</div>');
    $form['themedev'] = array('#type' => 'fieldset', '#title' => t('Theme development settings'), '#attributes' => array('id' => 'zen-themedev'));
    $form['themedev']['zen_rebuild_registry'] = array('#type' => 'checkbox', '#title' => t('Rebuild theme registry on every page.'), '#default_value' => $settings['zen_rebuild_registry'], '#description' => t('During theme development, it can be very useful to continuously <a href="!link">rebuild the theme registry</a>. WARNING: this is a huge performance penalty and must be turned off on production websites.', array('!link' => 'http://drupal.org/node/173880#theme-registry')), '#prefix' => '<div id="div-zen-registry"><strong>' . t('Theme registry:') . '</strong>', '#suffix' => '</div>');
    $form['themedev']['zen_layout'] = array('#type' => 'radios', '#title' => t('Layout method'), '#options' => array('border-politics-liquid' => t('Liquid layout') . ' <small>(layout-liquid.css)</small>', 'border-politics-fixed' => t('Fixed layout') . ' <small>(layout-fixed.css)</small>'), '#default_value' => $settings['zen_layout']);
    $form['themedev']['zen_wireframes'] = array('#type' => 'checkbox', '#title' => t('Display borders around main layout elements'), '#default_value' => $settings['zen_wireframes'], '#description' => t('<a href="!link">Wireframes</a> are useful when prototyping a website.', array('!link' => 'http://www.boxesandarrows.com/view/html_wireframes_and_prototypes_all_gain_and_no_pain')), '#prefix' => '<div id="div-zen-wireframes"><strong>' . t('Wireframes:') . '</strong>', '#suffix' => '</div>');
    $form['zen-div-closing'] = array('#value' => '</div>');
    // Return the form
    return $form;
}
Ejemplo n.º 26
0
/**
 * Preprocess variables for html.tpl.php
 */
function bootstrap_business_preprocess_html(&$variables)
{
    /**
     * Add IE8 Support
     */
    drupal_add_css(path_to_theme() . '/css/ie8.css', array('group' => CSS_THEME, 'browsers' => array('IE' => '(lt IE 9)', '!IE' => FALSE), 'preprocess' => FALSE));
    /**
     * Add Javascript for enable/disable Bootstrap 3 Javascript
     */
    if (theme_get_setting('bootstrap_js_include', 'bootstrap_business')) {
        drupal_add_js(drupal_get_path('theme', 'bootstrap_business') . '/bootstrap/js/bootstrap.min.js');
    }
    //EOF:Javascript
    /**
     * Add Javascript for enable/disable scrollTop action
     */
    if (theme_get_setting('scrolltop_display', 'bootstrap_business')) {
        drupal_add_js('jQuery(document).ready(function($) { 
		$(window).scroll(function() {
			if($(this).scrollTop() != 0) {
				$("#toTop").fadeIn();	
			} else {
				$("#toTop").fadeOut();
			}
		});
		
		$("#toTop").click(function() {
			$("body,html").animate({scrollTop:0},800);
		});	
		
		});', array('type' => 'inline', 'scope' => 'header'));
    }
    //EOF:Javascript
}
Ejemplo n.º 27
0
/**
 * Implements template_preprocess_html().
 */
function SUBTHEME_preprocess_html(&$variables)
{
    // CSS files for Internet Explorer-specific styles.
    drupal_add_css(path_to_theme() . '/css/ie/SUBTHEME-ielt9.css', array('group' => CSS_THEME, 'every_page' => TRUE, 'media' => 'screen', 'browsers' => array('IE' => 'lt IE 9', '!IE' => FALSE), 'preprocess' => FALSE));
    drupal_add_css(path_to_theme() . '/css/ie/SUBTHEME-ielt8.css', array('group' => CSS_THEME, 'every_page' => TRUE, 'media' => 'screen', 'browsers' => array('IE' => 'lt IE 8', '!IE' => FALSE), 'preprocess' => FALSE));
    // Responsive stylesheets.
    if (theme_get_setting('zentropy_responsive_enable')) {
        drupal_add_css(path_to_theme() . '/css/layout/SUBTHEME-320.css', array('group' => CSS_THEME, 'every_page' => TRUE, 'media' => 'only screen and (min-width : 320px) and (max-width : 480px)'));
        drupal_add_css(path_to_theme() . '/css/layout/SUBTHEME-480.css', array('group' => CSS_THEME, 'every_page' => TRUE, 'media' => 'only screen and (min-width : 480px) and (max-width: 768px)'));
        drupal_add_css(path_to_theme() . '/css/layout/SUBTHEME-768.css', array('group' => CSS_THEME, 'every_page' => TRUE, 'media' => 'only screen and (min-width : 768px) and (max-width: 992px)'));
        drupal_add_css(path_to_theme() . '/css/layout/SUBTHEME-992.css', array('group' => CSS_THEME, 'every_page' => TRUE, 'media' => 'only screen and (min-width : 992px) and (max-width: 1382px)'));
        drupal_add_css(path_to_theme() . '/css/layout/SUBTHEME-1382.css', array('group' => CSS_THEME, 'every_page' => TRUE, 'media' => 'only screen and (min-width : 1382px)'));
        // Styles for iPhone 4+, iPad 3+, Opera Mobile 11+ and other high pixel ratio browsers and devices.
        drupal_add_css(path_to_theme() . '/css/layout/SUBTHEME-hipixel.css', array('group' => CSS_THEME, 'every_page' => TRUE, 'media' => 'only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min--moz-device-pixel-ratio: 1.5)'));
    } else {
        $fallback = theme_get_setting('zentropy_responsive_fallback');
        drupal_add_css(path_to_theme() . "/css/layout/SUBTHEME-{$fallback}.css", array('group' => CSS_THEME, 'every_page' => TRUE));
    }
    /* Add your own custom logic in between the following lines:
    	--------------------------------------------------------------------*/
    /* STOP!!!! Don't edit this function below this line!
    	--------------------------------------------------------------------*/
    // The below code comments are placeholders for Zentropy optional components downloaded and installed via Drush.
    // For more information see the section "Advanced Drush Integration" in Zentropy's README.txt or the project page on drupal.org: http://drupal.org/project/zentropy
    // To find out how to manually enable components (without Drush), read the handbook: http://drupal.org/node/1515894
    // IMPORTANT: DO NOT EDIT OR REMOVE THE LINES BELOW UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!
    $zentropy_scripts_head = array();
    #modernizr#
    #easing#
    #hoverintent#
    #bgiframe#
    $variables['zentropy_scripts_head'] .= implode("\n", $zentropy_scripts_head);
}
Ejemplo n.º 28
0
/**
 * Implements hook_preprocess_html
 */
function checkbook3_preprocess_html(&$vars)
{
    drupal_add_library('system', 'ui');
    drupal_add_css(path_to_theme() . '/css/ie-7.css', array('group' => CSS_THEME, 'weight' => 997, 'browsers' => array('IE' => 'IE 7', '!IE' => FALSE)));
    drupal_add_css(path_to_theme() . '/css/ie-8.css', array('group' => CSS_THEME, 'weight' => 998, 'browsers' => array('IE' => 'IE 8', '!IE' => FALSE)));
    drupal_add_css(path_to_theme() . '/css/ie-9.css', array('group' => CSS_THEME, 'weight' => 999, 'browsers' => array('IE' => 'IE 9', '!IE' => FALSE)));
}
Ejemplo n.º 29
0
/**
 * Override or insert variables into the html template.
 */
function seven_preprocess_html(&$vars)
{
    // Add conditional CSS for IE8 and below.
    drupal_add_css(path_to_theme() . '/ie.css', array('weight' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE)));
    // Add conditional CSS for IE6.
    drupal_add_css(path_to_theme() . '/ie6.css', array('weight' => CSS_THEME, 'browsers' => array('IE' => 'lt IE 7', '!IE' => FALSE)));
}
Ejemplo n.º 30
0
function infopeople_preprocess_html(&$variables)
{
    drupal_add_css('//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css', array('group' => CSS_DEFAULT, 'weight' => -50, 'type' => 'external'));
    drupal_add_css('//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', array('group' => CSS_DEFAULT, 'weight' => -48, 'type' => 'external'));
    drupal_add_css('//infopeople.org/sites/all/modules/civicrm/css/navigation.css', array('group' => CSS_DEFAULT, 'weight' => -50, 'type' => 'external'));
    drupal_add_js('//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js', array('weight' => '-1000', 'type' => 'external'));
}