Test echos for blog removed, fix to default featured image
authorLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 21:19:54 +0000 (17:19 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 21:19:54 +0000 (17:19 -0400)
page.php
templates/sidebar-1.php

index 2474fd2..319b6fd 100644 (file)
--- a/page.php
+++ b/page.php
@@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) {
 
 <?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 } ?>
index 9906ec7..e4e116f 100644 (file)
@@ -16,33 +16,19 @@ if ( ! defined( 'ABSPATH' ) ) {
 <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 ) : ?>