<?php if ( 0 >= avada_number_of_featured_images() && !has_post_thumbnail()) { ?>
<div id="featured-image"
- style='<?php echo "background-image: url('.get_template_directory_uri().'/assets/images-default-header.jpg);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;"?>'
+ style="<?php echo 'background-image: url('.get_template_directory_uri().'/assets/images-default-header.jpg);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;'?>"
class="post-slideshow">
</div>
<?php } ?>
<aside id="sidebar" role="complementary" <?php Avada()->layout->add_class( 'sidebar_1_class' ); ?> <?php Avada()->layout->add_style( 'sidebar_1_style' ); ?> <?php Avada()->layout->add_data( 'sidebar_1_data' ); ?>>
<?php
if (in_category(70)) {
- echo "<br>in cat 70";
if (is_single() ) {
- echo "<br>(single) Here goes the sidebar for single epicenter posts";
- if ( is_active_sidebar( 'avada-custom-sidebar-epicentersidebar' ) ) {
- dynamic_sidebar( 'avada-custom-sidebar-epicentersidebar' );
- } else {
- echo "<br>avada-custom-sidebar-epicentersidebar is not active";
- }
- }
- if (is_home()) {
- echo "<br>In cat 70 but also in home..";
+ if ( is_active_sidebar( 'avada-custom-sidebar-epicentersidebar' ) ) {
+ dynamic_sidebar( 'avada-custom-sidebar-epicentersidebar' );
+ }
}
} else if (is_page(12465)) {
- echo "<br>Now we're on page 12465, Epicenter news";
function modify_widget() {
$r = array( 'cat' => '-70');
return $r;
}
add_filter('widget_posts_args','modify_widget');
} else {
- echo "<br>Not in cat 70 ";
- if (is_home()) {
- echo "<br>Do stuff when is_home()";
- } else {
- echo "<br>Not is_home";
- }
$sticky_sidebar = in_array( 'fusion-sticky-sidebar', apply_filters( 'fusion_sidebar_1_class', array() ) );
?>
<?php if ( $sticky_sidebar ) : ?>