Ejemplo n.º 1
0
 /**
  * Set portfolio page template classes
  */
 public function set_portfolio_page_template_classes($classes)
 {
     if (is_page_template('portfolio-one-column.php') || is_page_template('portfolio-two-column.php') || is_page_template('portfolio-three-column.php') || is_page_template('portfolio-four-column.php') || is_page_template('portfolio-five-column.php') || is_page_template('portfolio-six-column.php') || is_page_template('portfolio-one-column-text.php') || is_page_template('portfolio-two-column-text.php') || is_page_template('portfolio-three-column-text.php') || is_page_template('portfolio-four-column-text.php') || is_page_template('portfolio-five-column-text.php') || is_page_template('portfolio-six-column-text.php') || is_page_template('portfolio-grid.php')) {
         $classes[] = avada_get_portfolio_classes(Avada::c_pageID());
     }
     return $classes;
 }
Ejemplo n.º 2
0
        $double_sidebars = true;
    }
} else {
    $sidebar_1 = '0';
    $sidebar_2 = '0';
}
if ($double_sidebars == true) {
    $content_css = 'float:left;';
    $sidebar_css = 'float:left;';
    $sidebar_2_css = 'float:left;';
} else {
    $sidebar_left = 1;
}
?>
	<div id="content" class="<?php 
echo avada_get_portfolio_classes(get_the_ID());
echo ' ' . $content_class;
?>
" style="<?php 
echo $content_css;
?>
">

	<?php 
get_template_part('templates/portfolio', 'layout');
?>
	
	</div>
	<?php 
if ($sidebar_exists == true) {
    ?>