function yb_comments($disqus_shortname = '')
{
    global $ybwp_data;
    if (!empty($ybwp_data['opt-checkbox-disquscomments']) && !empty($disqus_shortname)) {
        disqus_embed($disqus_shortname);
    } else {
        // comments_template();
        yb_comments_old();
    }
}
Example #2
0
        the_content();
        ?>
</p>
                
                
                <hr>
				<br/>
				<?php 
    }
} else {
    echo '<p>No content found</p>';
}
?>
    
    <?php 
disqus_embed('quatrolados');
?>
	
	

  <!--<h3>Mais ></h3>-->
  
   </div>
</article>

<!--Related Posts-->
<div class="relacionados">
	<?php 
$categories = get_the_category($post->ID);
if ($categories) {
    $category_ids = array();
Example #3
0
            ?>
					<?php 
            echo related_posts(rd_options('reedwan_post_similar_number'), rd_options('reedwan_post_similar_by'), get_the_ID());
            ?>
				<?php 
        }
        ?>
				<?php 
        if ($post_comment != 'comment_none') {
            ?>
				<div class="single-comments mts clearfix">
					<?php 
            if ($post_comment == 'comment_disqus') {
                ?>
						<?php 
                echo disqus_embed($disqus_shortname);
                ?>
					<?php 
            } else {
                ?>
						<?php 
                comments_template();
                ?>
					<?php 
            }
            ?>
				</div>
				<?php 
        }
        ?>
			</div>
Example #4
0
                        
                        <a href="https://plus.google.com/share?url=<?php 
echo $url;
?>
"><i class="icon-google-plus"></i> <?php 
echo $gPlusCount;
?>
</a>
					</div></div-->
                    
      
      
      
      <?php 
if (get_post_type($post) == "table") {
    disqus_embed('waitbutwhyforum');
}
?>
      
      
                    <div id="socBarmageddon">
                    	<div id="fbLikePost"><div id="fb-root" class="inline"></div><script src="http://connect.facebook.net/en_US/all.js#appId=689761124373742&amp;xfbml=1"></script><fb:like href="" send="true" layout="button_count" width="100" show_faces="false" font=""></fb:like></div>
                        
                        
                       <?php 
//fix tweet count
$tweetURL = "http://www." . ltrim($url, "http://");
$json_string = wp_remote_get('http://urls.api.twitter.com/1/urls/count.json?url=http://www.' . ltrim($url, "http://"));
$json = json_decode($json_string['body'], true);
if ($json['count'] == 0) {
    $tweetURL = $url;
Example #5
0
        ?>
 | <?php 
        the_category(', ');
        ?>
 
		  </p>
	  </hgroup>
      <?php 
        the_content('Read Full Article');
        ?>
      <p><?php 
        the_tags('Tags: ', ', ', '<br />');
        ?>
   
      <?php 
        disqus_embed('demolaypi');
        ?>
    </article>
  <?php 
    }
    ?>
  <?php 
    next_posts_link('Older Entries');
    ?>
  <?php 
    previous_posts_link('Newer Entries');
    ?>
    
<?php 
} else {
    ?>
Example #6
0
" data-text="<?php 
the_title();
?>
" data-via="V147_org" data-related="V147_org">Tweet</a></div></div>
			<div class="likebutton"><iframe src="http://www.facebook.com/plugins/like.php?href=<?php 
echo rawurlencode(get_permalink());
?>
&layout=button_count&show_faces=false&width=100&action=like&font=verdana
&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>
			<div class="linkedinshare"><script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="right"></script></div>
			<div class="plusonebutton"><g:plusone size="medium"></g:plusone></div>
		</div>
		<?php 
the_content();
?>
		<p>
		</p>
	</div><!-- #the-post -->
	<?php 
get_sidebar();
?>
</div><!-- #primary -->
<div class="row">
	<?php 
disqus_embed('victoria147');
//php comments_template();
?>
</div>
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
<?php 
get_footer();
<?php

/**
 * Template Name: Custom Template Ask The Expert
 */
?>

<div class="about-wrapper">
  
  <?php 
while (have_posts()) {
    the_post();
    ?>
    <?php 
    //get_template_part('templates/page', 'header');
    ?>
    <?php 
    get_template_part('templates/content', 'page');
    ?>
  <?php 
}
?>
  
  <?php 
disqus_embed('cerebro1');
?>

</div>