~gbancroft-canonical/insights/insights

« back to all changes in this revision

Viewing changes to category.php

  • Committer: Graham Bancroft
  • Date: 2012-10-04 18:16:36 UTC
  • Revision ID: graham.bancroft@canonical.com-20121004181636-t7qze6ehdz8jhlgc
Add 'Blog' to post titles
Prevent promos from appearing in search results
Fix article header on category page when more than three articles
Add excerpt and body content to video post on single
Add functionality to pass the post category to the Marketo form in the iframe
Add Google analytics
Add munchkin tracking script

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
                        <div class="article-content six-col">
45
45
                                <header>
46
46
                                        <?php get_template_part("includes/_article_meta"); ?>
47
 
                                        <h2><a href="<?php the_permalink(); ?>"><?php if (get_post_type() != 'post') { $post_type = get_post_type_object(get_post_type($post)); echo $post_type->labels->singular_name, ': '; } ?><?php the_title(); ?></a></h2>
 
47
                                        <h2><a href="<?php the_permalink(); ?>"><?php if (get_post_type() == 'post') { echo 'Blog: '; } else { $post_type = get_post_type_object(get_post_type($post)); echo $post_type->labels->singular_name, ': '; } ?><?php the_title(); ?></a></h2>
48
48
                                </header>
49
49
                                <?php the_excerpt(); ?>
50
50
                        </div><!-- /.article-content -->
87
87
                                $lock = 'dbt_checkbox';
88
88
                                $gated_content = get_post_meta($post->ID, $lock, TRUE);
89
89
                ?>
90
 
                        <header<?php if(($postCount >= 4) && has_post_thumbnail() && 'video' == get_post_type()) { echo ' class="five-col last-col right"'; } ?>>
91
 
                                <h2><?php if (get_post_type() != 'post') { $post_type = get_post_type_object(get_post_type($post)); echo $post_type->labels->singular_name, ': '; } ?><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
 
90
                        <header<?php if(($postCount >= 4) && has_post_thumbnail() || 'video' == get_post_type()) { echo ' class="five-col last-col right"'; } ?>>
 
91
                                <h2><?php if (get_post_type() == 'post') { echo 'Blog: '; } else { $post_type = get_post_type_object(get_post_type($post)); echo $post_type->labels->singular_name, ': '; } ?><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
92
92
                                <?php get_template_part("includes/_article_meta"); ?>
93
93
                                <?php if (get_post_type() != 'video') { ?><?php } // end $video_content ?>
94
94
                        </header>