Esempio n. 1
0
              <?php 
        echo $company_title;
        ?>
            <?php 
    }
    ?>
        <?php 
}
?>
        </span>
      </span>
    </div>
    <div class="see-more-bg"> <a href="#" class="see-more"></a> </div>
   
    <?php 
$section = bizutv_helper_get_section();
?>
 
    <?php 
if (empty($section) || !empty($section) && strtolower($section->name) != 'business') {
    ?>
    <div id='taboola-bottom-main-column-mix'></div>

    <script type="text/javascript">
      window._taboola = window._taboola || [];
      _taboola.push({mode:'thumbs-1r-organic', container:'taboola-bottom-main-column-mix', placement:'bottom-main-column ', target_type:'mix'});
    </script>

    <div id='taboola-below-main-column'></div>
    <script type="text/javascript">
        window._taboola = window._taboola || [];
Esempio n. 2
0
function bizutv_preprocess_html(&$variables)
{
    $current_section = bizutv_helper_get_section();
    if (!empty($current_section)) {
        $variables['classes_array'][] = "section-" . strtolower(drupal_clean_css_identifier($current_section->name));
    }
    $path_to_theme = path_to_theme();
    $js_settings = array('disqus_domain' => variable_get('disqus_domain', ''), 'oas_hostname' => variable_get('oas_hostname', 'bizu.tv'), 'auto_load_limit' => variable_get('auto_load_limit', '5'), 'path_to_theme' => $path_to_theme);
    drupal_add_js(array('bizutv' => $js_settings), array('type' => 'setting', 'scope' => JS_DEFAULT));
    $path = libraries_get_path('writecapture');
    drupal_add_js($path . '/jquery.writeCapture.js');
    global $base_path;
    $directory = $base_path . $variables['directory'] . '/favicons/';
    $links[] = array('rel' => 'apple-touch-icon', 'sizes' => '57x57', 'href' => $directory . 'apple-touch-icon-57x57.png');
    $links[] = array('rel' => 'apple-touch-icon', 'sizes' => '114x114', 'href' => $directory . 'apple-touch-icon-114x114.png');
    $links[] = array('rel' => 'apple-touch-icon', 'sizes' => '72x72', 'href' => $directory . 'apple-touch-icon-72x72.png');
    $links[] = array('rel' => 'apple-touch-icon', 'sizes' => '144x144', 'href' => $directory . 'apple-touch-icon-144x144.png');
    $links[] = array('rel' => 'apple-touch-icon', 'sizes' => '60x60', 'href' => $directory . 'apple-touch-icon-60x60.png');
    $links[] = array('rel' => 'apple-touch-icon', 'sizes' => '120x120', 'href' => $directory . 'apple-touch-icon-120x120.png');
    $links[] = array('rel' => 'apple-touch-icon', 'sizes' => '76x76', 'href' => $directory . 'apple-touch-icon-76x76.png');
    $links[] = array('rel' => 'apple-touch-icon', 'sizes' => '152x152', 'href' => $directory . 'apple-touch-icon-152x152.png');
    $links[] = array('rel' => 'apple-touch-icon', 'sizes' => '180x180', 'href' => $directory . 'apple-touch-icon-180x180.png');
    $links[] = array('rel' => 'icon', 'type' => 'image/png', 'href' => $directory . 'favicon-192x192.png', 'sizes' => '192x192');
    $links[] = array('rel' => 'icon', 'type' => 'image/png', 'href' => $directory . 'favicon-160x160.png', 'sizes' => '160x160');
    $links[] = array('rel' => 'icon', 'type' => 'image/png', 'href' => $directory . 'favicon-96x96.png', 'sizes' => '96x96');
    $links[] = array('rel' => 'icon', 'type' => 'image/png', 'href' => $directory . 'favicon-16x16.png', 'sizes' => '16x16');
    $links[] = array('rel' => 'icon', 'type' => 'image/png', 'href' => $directory . 'favicon-32x32.png', 'sizes' => '32x32');
    $meta_tags['msapplication-TileColor'] = array('#tag' => 'meta', '#attributes' => array('name' => 'msapplication-TileColor', 'content' => '#d54d25'));
    $meta_tags['msapplication-TileImage'] = array('#tag' => 'meta', '#attributes' => array('name' => 'msapplication-TileImage', 'content' => $directory . 'mstile-144x144.png'));
    $meta_tags['msapplication-config'] = array('#tag' => 'meta', '#attributes' => array('name' => 'msapplication-config', 'content' => $directory . 'browserconfig.xml'));
    foreach ($links as $link) {
        drupal_add_html_head_link($link);
    }
    foreach ($meta_tags as $key => $meta) {
        drupal_add_html_head($meta, $key);
    }
}