Browse files

No bylines, sharing or commenting on jiffypost permalink pages, no by…

…line in loop, link headline to original content.
  • Loading branch information...
1 parent 2a4fe55 commit 9d2d0ca690255daa50567ff2cbb8a3af1a6bfa6e @dannydb dannydb committed Dec 18, 2012
Showing with 78 additions and 38 deletions.
  1. +11 −0 functions.php
  2. +37 −33 loop.php
  3. +15 −5 single.php
  4. +15 −0 style.css
View
11 functions.php
@@ -37,6 +37,17 @@ function sw_loop_post_types() {
return array('post', 'fusiontablesmap', 'argolinksroundup');
}
+function sw_headline_link() {
+ global $post;
+
+ if (get_post_type($post) == 'jiffypost'){
+ $sw_post_link = get_post_meta($post->ID, '_navis_embed_url', true);
+ } else {
+ $sw_post_link = the_permalink();
+ }
+ echo $sw_post_link;
+}
+
add_filter('pre_get_posts', 'sw_filter_search');
function sw_filter_search($query) {
if (!is_admin()) {
View
70 loop.php
@@ -32,14 +32,14 @@
<?php if ( is_front_page() && is_sticky() ): ?>
<div class="sticky-solo clearfix">
<h5>Featured</h5>
-<?php if ( has_post_thumbnail() ): ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>
-<?php endif; ?>
+ <?php if ( has_post_thumbnail() ): ?>
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>
+ <?php endif; ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><?php navis_the_raw_excerpt(); // the_excerpt(); ?> <br><a href="<?php the_permalink(); ?>">Continue reading <span class="meta-nav">&rarr;</span></a></p>
</div>
-<?php elseif (sw_is_rich_media()): ?>
+ <?php elseif (sw_is_rich_media()): ?>
<div class="sticky-solo clearfix">
<ul class="labels">
<?php argo_the_post_labels( get_the_ID() ); ?>
@@ -49,7 +49,7 @@
<div class="post-metadata ">
- <h6 class="entry-date"><?php argo_posted_on(); ?> </h6>
+ <h6 class="entry-date"><a href="<?php the_permalink(); ?>"><?php argo_posted_on(); ?></a></h6>
<h6>By <?php
if (function_exists('coauthors_posts_links')):
coauthors_posts_links();
@@ -65,40 +65,44 @@
<p><?php navis_the_raw_excerpt(100); // the_excerpt(); ?> <a href="<?php the_permalink(); ?>">Continue reading <span class="meta-nav">&rarr;</span></a></p>
</div>
-<?php else: ?>
-<header>
+ <?php else: ?>
+ <header>
+
-<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <ul class="labels">
- <?php argo_the_post_labels( get_the_ID() ); ?>
- </ul>
- <div class="post-metadata grid_8 alpha omega">
+ <h2 class="entry-title"><a href="<?php sw_headline_link(); ?>"><?php the_title(); ?></a></h2>
- <h6 class="entry-date"><?php argo_posted_on(); ?> </h6>
- <h6>By <?php
- if (function_exists('coauthors_posts_links')):
- coauthors_posts_links();
- else:
- the_author_posts_link();
- endif; ?>
- </h6>
- <div class="clearfix"></div>
- </div> <!-- /.post-metadata-->
- <div class="clearfix"></div>
-</header><!-- / entry header -->
+ <ul class="labels">
+ <?php argo_the_post_labels( get_the_ID() ); ?>
+ </ul>
+ <div class="post-metadata grid_8 alpha omega">
- <?php if ( is_archive() ) : ?>
+ <h6 class="entry-date"><a href="<?php the_permalink(); ?>"><?php argo_posted_on(); ?></a></h6>
+ <?php if (get_post_type($post->ID) != 'jiffypost'): ?>
+ <h6>By <?php
+ if (function_exists('coauthors_posts_links')):
+ coauthors_posts_links();
+ else:
+ the_author_posts_link();
+ endif; ?>
+ </h6>
+ <?php endif; ?>
+ <div class="clearfix"></div>
+ </div> <!-- /.post-metadata-->
+ <div class="clearfix"></div>
+ </header><!-- / entry header -->
- <?php the_content( 'Continue Reading <span class="meta-nav">&rarr;</span>' ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">Pages:', 'after' => '</div>' ) ); ?>
-
- <?php else : ?>
- <?php the_content( 'Continue Reading <span class="meta-nav">&rarr;</span>' ); ?>
+ <?php if ( is_archive() ) : ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">Pages:', 'after' => '</div>' ) ); ?>
+ <?php the_content( 'Continue Reading <span class="meta-nav">&rarr;</span>' ); ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-link">Pages:', 'after' => '</div>' ) ); ?>
+
+ <?php else : ?>
+ <?php the_content( 'Continue Reading <span class="meta-nav">&rarr;</span>' ); ?>
- <?php endif; ?>
-<?php endif; // is_sticky() ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-link">Pages:', 'after' => '</div>' ) ); ?>
+
+ <?php endif; ?>
+ <?php endif; // is_sticky() ?>
<!-- ############## removed .entry-utility ######### -->
</article><!-- #post-## -->
<?php comments_template( '', true ); ?>
View
20 single.php
@@ -10,14 +10,19 @@
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('clearfix post-content'); ?>>
<header>
-<h1 class="entry-title"><?php the_title(); ?></h1>
-<ul class="labels">
- <?php argo_the_post_labels( get_the_ID() ); ?>
-</ul>
+<?php if (get_post_type($post) == 'jiffypost'): ?>
+ <h1 class="entry-title"><a href="<?php sw_headline_link(); ?>"><?php the_title(); ?></a></h1>
+<?php else: ?>
+ <h1 class="entry-title"><?php the_title(); ?></h1>
+<?php endif; ?>
+ <ul class="labels">
+ <?php argo_the_post_labels( get_the_ID() ); ?>
+ </ul>
<div class="post-metadata clearfix">
<div class="grid_3 alpha">
<h6 class="entry-date"><?php argo_posted_on(); ?> </h6>
+ <?php if (get_post_type($post) != 'jiffypost'): ?>
<h6>By
<?php
if (function_exists('coauthors_posts_links')):
@@ -26,10 +31,13 @@
the_author_posts_link();
endif; ?>
</h6>
+ <?php endif; ?>
</div>
+ <?php if (get_post_type($post) != 'jiffypost'): ?>
<div class="grid_5 omega">
<?php get_template_part( 'post', 'meta' ); ?>
</div>
+ <?php endif; ?>
<div class="clearfix"></div>
</div> <!-- /.post-metadata-->
<div class="clearfix"></div>
@@ -42,11 +50,13 @@
</div> <!-- #post-## -->
<?php do_action('after_the_content'); ?>
-
+
+<?php if (!get_post_type($post) == 'jiffypost'): ?>
<article id="comments" class="article-comments clearfix">
<h2 id="respond">Comments</h2>
<?php comments_template( '', true ); ?>
</article><!-- / comments -->
+<?php endif; ?>
<nav>
<ul class="post-nav clearfix">
View
15 style.css
@@ -860,7 +860,15 @@ legend { font-weight: bold;}
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
+
+ .single.single-jiffypost .post-metadata {
+ background: none;
+ border: none;
+ }
+
#content .post-metadata h6 { font-weight: normal; font-size: 12px; margin-bottom: 5px; text-transform: uppercase; }
+ #content .post-metadata h6.entry-date a { color: #000; }
+
.post-metadata a { font-weight: bold; }
.post-metadata p { font-size: 12px; margin-bottom: 0; }
.post-metadata li { margin: 0; font-size: 13px; /* background: transparent url(../argo-foundation/img/icons-buttons.png) no-repeat top left; */
@@ -916,6 +924,13 @@ legend { font-weight: bold;}
font-weight: 600;
color: #000;
}
+
+ #content .jiffypost .entry-title a:after {
+ content: ' \2192';
+ font-weight: 200;
+ font-size: 80%;
+ font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
+ }
#content .entry-title a:hover { color: #BF3119; text-decoration: none; }
.single-post #content .post.has-features header {

0 comments on commit 9d2d0ca

Please sign in to comment.