Further test echos
authorLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 18:24:18 +0000 (14:24 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 18:24:18 +0000 (14:24 -0400)
templates/sidebar-1.php

index 0f05e34..9906ec7 100644 (file)
@@ -16,30 +16,32 @@ 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 "Here goes the sidebar for single epicenter posts";
+                       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 "avada-custom-sidebar-epicentersidebar is not active";
+                               echo "<br>avada-custom-sidebar-epicentersidebar is not active";
                        }
        }
        if (is_home()) {
-               echo "In cat 70 but also in home..";
+               echo "<br>In cat 70 but also in home..";
        }
 } else if (is_page(12465)) {
-       echo "Now we're on page 12465, Epicenter news";
+       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 "Do stuff when is_home()";
+               echo "<br>Do stuff when is_home()";
        } else {
-               echo "Not in cat 70 nor is_home";
+               echo "<br>Not is_home";
        }
        $sticky_sidebar = in_array( 'fusion-sticky-sidebar', apply_filters( 'fusion_sidebar_1_class', array() ) );
        ?>