removing title from the sidebar in interior pages, sidebar title is auto inserted...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 26 Oct 2016 12:18:55 +0000 (08:18 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 26 Oct 2016 12:18:55 +0000 (08:18 -0400)
sidebar.php
single.php

index 19adb6c..e0b4459 100644 (file)
@@ -1,6 +1,5 @@
                         <div id="side-links" class="show-for-large-up left large-3 columns">
                             <div id="menu-side" class="row collapse">
-                                <h2> Title </h2>
                                 <?php glm_side_menu(); ?>
                             </div>
                             <a href="#"><img src="<?php bloginfo('template_url'); ?>/assets/events-2.png"></a>
index 8e7540b..b301f88 100644 (file)
 
             <?php } else { ?>
             <div id="blog-posts-over" class="small-12 medium-9 columns">
-<!--
-            <p>Categories</p>
-                <div id="category-menu">
-                        <ul>
-                            <?php
-                            $args = array(
-                            'orderby' => 'name',
-                            'order' => 'ASC'
-                            );
-                          $categories = get_categories($args);
-                            foreach($categories as $category) { 
-                              echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  } 
-                            ?>
-                        </ul>
-                </div>
--->
+
             <?php } ?>
             <?php if(have_posts()) : while(have_posts()): the_post();?>
             <div class="row blog-post-container">
                         <div class="small-12 columns">
                             <article id="<?php the_ID()?>" <?php post_class()?>>
                                 <header class="entry-header">
-                                    <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
-                                   <?php
-                                    if(get_post_type ($post) != "ai1ec_event" ){
-                                        if (has_post_thumbnail()) {
-                                                $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "full");
-                                                echo '<div class="blog-featured" style="background-image:url('.$image_data[0].');"></div>';
-                                        }
-                                    ?>
-                                    <?php $post_categories = wp_get_post_categories( get_the_ID() );
-                                    $cats = array();
-                                    ?>
-                                    
-                                    <div class="meta" style="text-align: center; line-height: 1;">
-                                        <?php
-                                    echo 'This entry was posted ';
-                                    if (has_category()) {
-                                        echo 'in';
-                                        foreach($post_categories as $c){
-
-                                            $cat = get_category( $c );
-                                            $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                            echo '<a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'"> '. $cat->name .'</a>,';
-                                        }
-                                    }
-                                    echo ' on<b> ';
-                                    echo ' <span class="meta date">' . the_time('F jS, Y') . '</span>';
-                                    echo '.</b>';
-                                    ?>
-                                    </div>
+                                   <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                   <?php if ( has_post_thumbnail() ):?>
+                                             <?php if (get_post_type( $post ) != "ai1ec_event") { ?>
+                                        <div class="featured-image-wrap"><?php the_post_thumbnail("large"); ?></div>
                                     <?php } ?>
-                                  
-                                </header>
-                                <?php if (!is_post_type("ai1ec_event")) { ?>
-                                <div id="addthis_wrapper">
+                                    <?php endif; ?>
+                                   <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+                                    <div id="addthis_wrapper">
                                     <!-- AddThis Button BEGIN -->
                                     <div class="addthis_toolbox addthis_default_style ">
                                         <a class="addthis_counter addthis_pill_style"></a>
                                     <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5135fe4558d287a9"></script>
                                     <!--                                        <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>-->
                                     <!-- AddThis Button END -->
-                                </div><!--/#addthis_wrapper-->
-                                <?php } ?>
+                                    </div><!--/#addthis_wrapper-->
+                                  
+                                </header>
+                        
                                 <?php echo the_content(); ?>
                             </article>
                             <?php if (get_post_type( $post ) != "ai1ec_event") {