Exemplo n.º 1
0
 */
$files = array('elements.inc', 'form.inc', 'menu.inc', 'theme.inc');
function _zurb_foundation_load($files)
{
    $tp = drupal_get_path('theme', 'zurb_foundation');
    $file = '';
    $dir = dirname(__FILE__);
    // Check file path and '.inc' extension
    foreach ($files as $file) {
        $file_path = $dir . '/inc/' . $file;
        if (strpos($file, '.inc') > 0 && file_exists($file_path)) {
            require_once $file_path;
        }
    }
}
_zurb_foundation_load($files);
/**
 * Implements hook_html_head_alter().
 */
function zurb_foundation_html_head_alter(&$head_elements)
{
    // HTML5 charset declaration.
    $head_elements['system_meta_content_type']['#attributes'] = array('charset' => 'utf-8');
    // Optimize mobile viewport.
    $head_elements['mobile_viewport'] = array('#type' => 'html_tag', '#tag' => 'meta', '#attributes' => array('name' => 'viewport', 'content' => 'width=device-width, maximum-scale = 1.0'));
    // Remove image toolbar in IE.
    $head_elements['ie_image_toolbar'] = array('#type' => 'html_tag', '#tag' => 'meta', '#attributes' => array('http-equiv' => 'ImageToolbar', 'content' => 'false'));
}
/**
 * Implements theme_breadrumb().
 *
Exemplo n.º 2
0
/**
 * @file
 * Template for the Zurb Foundation Theme
 */
/**
 * Loads additional template files.
 */
function _zurb_foundation_load()
{
    $themepath = drupal_get_path('theme', 'zurb_foundation');
    include $themepath . '/inc/elements.inc';
    include $themepath . '/inc/form.inc';
    include $themepath . '/inc/menu.inc';
    include $themepath . '/inc/theme.inc';
}
_zurb_foundation_load();
/**
 * Implements hook_html_head_alter().
 */
function zurb_foundation_html_head_alter(&$head_elements)
{
    // HTML5 charset declaration.
    $head_elements['system_meta_content_type']['#attributes'] = array('charset' => 'utf-8');
    // Optimize mobile viewport.
    $head_elements['mobile_viewport'] = array('#type' => 'html_tag', '#tag' => 'meta', '#attributes' => array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0'));
    // Remove image toolbar in IE.
    $head_elements['ie_image_toolbar'] = array('#type' => 'html_tag', '#tag' => 'meta', '#attributes' => array('http-equiv' => 'ImageToolbar', 'content' => 'false'));
}
/**
 * Implements theme_breadrumb().
 *