Ejemplo n.º 1
0
 function avia_legacy_websave_fonts($styles)
 {
     global $avia_config;
     $os_info = avia_get_browser(false);
     $activate = false;
     if ('windows' == $os_info['platform'] && avia_get_option('websave_windows') == 'active') {
         if ($os_info['shortname'] == 'MSIE' && $os_info['mainversion'] < 9) {
             $activate = true;
         }
         if ($os_info['shortname'] == 'Firefox' && $os_info['mainversion'] < 8) {
             $activate = true;
         }
         if ($os_info['shortname'] == 'Opera' && $os_info['mainversion'] < 11) {
             $activate = true;
         }
         if ($activate == true) {
             foreach ($styles as $key => $style) {
                 if ($style['key'] == 'google_webfont') {
                     if (strpos($style['value'], '-websave') !== false) {
                         $websave = explode(',', $style['value']);
                         $websave = strtolower(" " . $websave[0]);
                         $websave = str_replace('"', '', $websave);
                         $websave = str_replace("'", '', $websave);
                         $websave = str_replace("-websave", '', $websave);
                         $avia_config['font_stack'] .= $websave . '-websave';
                     }
                     unset($styles[$key]);
                 }
             }
             if (empty($avia_config['font_stack'])) {
                 $avia_config['font_stack'] = 'arial-websave';
             }
         }
     }
     return $styles;
 }
Ejemplo n.º 2
0
/*
 * prepare big slideshow if available
 * If we are displaying a dynamic template the slideshow might already be set
 * therefore we dont need to call it here
 */
if (!avia_special_dynamic_template()) {
    avia_template_set_page_layout();
    $slider = new avia_slideshow(avia_get_the_ID());
    $avia_config['slide_output'] = $slider->display();
}
$style = avia_get_option('boxed', 'boxed');
?>


<body id="top" <?php 
body_class($style . " " . avia_get_browser());
?>
>
	
	<div class='mobile_wrap'>
	
			<!-- ####### HEAD CONTAINER ####### -->
			
			<div class='container_wrap <?php 
echo $style;
?>
' id='header'>		
						
				
				<div class='container'>