function akst_add_share_link_to_content($content) { $doit = false; if (is_feed() && AKST_ADDTOFEED) { $doit = true; } else { if (AKST_ADDTOCONTENT) { $doit = true; } } if ($doit) { $content .= '<p class="akst_link">' . akst_share_link('return') . '</p>'; } return $content; }
function akst_add_share_link_to_content($content) { $doit = false; if (is_feed() && akst_addtofeed()) { $doit = true; } else { if (!is_feed() && akst_addtocontent()) { $doit = true; } } if ($doit) { $content .= '<p class="akst_link snap_nopreview">' . akst_share_link('return') . '</p>'; } return $content; }
<div class="PostContent"> <?php the_content(''); ?> </div> <ul class="PostDetails"> <li><a class="ReadOn" href="<?php the_permalink(); ?> ">Read On</a></li> <!--<li><a class="Subscribe" href="<?php bloginfo('rss2_url'); ?> ">Subscribe</a></li>--> <li><?php akst_share_link(); ?> </li> <?php if (!is_single()) { ?> <li class="NrComments"><?php comments_popup_link(__('no comments'), __('1 comment'), __(' % comments '), 'commentslink', __('comments off')); ?> </li><?php } ?> <li><a class="AddOpinion" href="<?php the_permalink(); ?> ">Add Your Opinion</a></li>