Esempio n. 1
0
/css/custom.css" type="text/css" media="screen"/>
<!--[if lt IE 8]>
<style type='text/css'> .one_fourth	{ width:21.5%;} div{zoom:1;}</style>
<![endif]-->

</head>



<?php 
/*
 * 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'>
	
Esempio n. 2
0
/**
*
* This function retrieves the template for the currently viewed post or page. 
* If any of the conditions are met the template is loaded followed by a php exit so code located afterwards wont be executed.
*
*/
function avia_get_template()
{
    global $avia_config, $post;
    $dynamic_id = "";
    if (isset($post)) {
        $dynamic_id = $post->ID;
    }
    /*
     *  Check if the frontpge redirected us to this function
     */
    $frontpage_switch = avia_get_option('frontpage');
    if ($frontpage_switch && isset($avia_config['new_query']) && $avia_config['new_query']['page_id'] == $frontpage_switch) {
        $dynamic_id = $frontpage_switch;
    }
    /*
     *  first check for dynamic templates
     */
    if (avia_special_dynamic_template($dynamic_id) && (is_singular() || isset($avia_config['new_query']))) {
        get_template_part('template', 'dynamic');
        exit;
    }
    /*
     *  if the user wants to display a blog on that page do so by
     *  calling the blog template and then exit the script
     */
    //wpml prepared
    $blog_page_id = avia_get_option('blogpage');
    if (function_exists('icl_object_id')) {
        $blog_page_id = icl_object_id($blog_page_id, 'page', true);
    }
    if (avia_get_option('frontpage') != "" && $blog_page_id == $post->ID && !isset($avia_config['new_query'])) {
        get_template_part('template', 'blog');
        exit;
    }
    /*
     *  check if this page was set as a portfolio page by the user
     *  in the theme portfolio options 
     */
}
Esempio n. 3
0
 function display_small($size = 'page', $showcaption = true, $is_overview = false)
 {
     global $avia_config;
     $this->img_size = $size;
     $this->showcaption = $showcaption;
     $this->show_thumbnails = false;
     if (avia_is_overview() || $is_overview) {
         $this->autoplay = 'false';
         $this->type = $this->defaultSlider;
         $this->slideshowSize = "";
         $this->slider_size_calc();
     }
     if (!$is_overview) {
         if ($this->type != $this->defaultSlider && (!avia_is_overview() && !avia_special_dynamic_template())) {
             return false;
         }
         if ($avia_config['layout'] == 'fullwidth' && !avia_is_overview()) {
             return false;
         }
     }
     return $this->slideshow();
 }