<?php if (get_the_excerpt() != '') { ?> <div class="entry-meta"> <?php echo get_the_excerpt(); ?> </div> <?php } ?> <!-- nsfw? --> <?php if (C::get_nsfw() != '') { ?> <div class="episode-nsfw"> <p>This episode has been flagged as <span class="nsfw" title="Not Safe For Work">NSFW</span>. Please be advised.</p> </div> <?php } ?> <!-- content --> <?php the_content(); ?> <div class="edit"><?php edit_post_link('Edit Episode');
/** * Filter. Adds a call to action to the end of all Feed items. * @param type $content * @return type */ function convergence_feed_description_filter($content) { global $wp_query; $post_id = $wp_query->post->ID; $excerpt = get_the_excerpt($post_id); $nsfw = ""; if (C::get_nsfw() != "") { $nsfw = "<p>This episode has been flagged as <strong>NSFW</strong>. Please be advised.</p><br /><br />"; } $fringe = C::get_related_fringe_url(); if ($fringe != "") { $fringe = '<p>This episode has a related <a href="' . $fringe . '">Fringe</a> episode. You should listen!</a></p>'; } $content = strip_tags($excerpt) . "<br /><br />" . $nsfw . $content . $fringe; $extra = '<br /><br />Listen to more at <a href=' . get_bloginfo('siteurl') . '>The-Nexus.tv</a> and follow us on <a href="http://twitter.com/thenexustv">Twitter</a>.'; $content = $content . $extra; return $content; }