This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get post pageview count | |
*/ | |
function wds_post_pageview_count( $post_id ) { | |
// Check for transient | |
if ( ! ( $count = get_transient( 'wds_post_pageview_count' . $post_id ) ) ) { | |
// Verify we're running Jetpack | |
if ( function_exists( 'stats_get_csv' ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var%20total=0,count=0;jQuery('p.downloads').each(function(i,e){count++;total+=parseInt(jQuery(e).text().replace(/,/g,''));});total=total.toString().replace(/\B(?=(\d{3})+(?!\d))/g,',');alert(count+'%20plugins%20and%20'+total+'%20downloads');})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: RSS Feed Customizer | |
Plugin URI: http://webdevstudios.com | |
Description: Show full RSS content entries using a query string ( ex: http://example.com/feed/?display=full ) | |
Version: 1.0 | |
Author: THE Brad | |
Author URI: http://webdevstudios.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span> | |
<?php $author_email = explode( '@', $curauth->user_email ); ?> | |
<script language=javascript> | |
<!-- | |
var contact = "Email Author" | |
var email = "<?php echo $author_email[0]; ?>" | |
var emailHost = "<?php echo $author_email[1]; ?>" | |
document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + contact + "</a>" + ".") | |
//--> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CURRENT AD CODE | |
<!-- begin ad tag (tile=1) --><script language="JavaScript" type="text/javascript">ord=Math.random()*10000000000000000;url_script=window.location.href;document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/trb.ktla/tech;tile=1;ptype=sfbrd;pos=1brd;sz=300x250;ord=' + ord + '?" type="text/javascript"><\/script>');</script><noscript><a href="http://ad.doubleclick.net/jump/trb.ktla/tech;ptype=sfbrd;pos=1brd;tile=1;sz=300x250;ord=123456789?" target="_blank"><img src="http://ad.doubleclick.net/ad/trb.ktla/tech;ptype=sfbrd;pos=1brd;tile=1;sz=300x250;ord=123456789?" width="300" height="250" border="0" alt=""></a></noscript><!-- End ad tag --> | |
NEW AD CODE | |
<script language="JavaScript" type="text/javascript"> | |
document.write('<a href="%%CLICK_URL_UNESC%%http://clk.atdmt.com/CNT/go/430612898/direct;wi.300;hi.250/01/" target="_blank"><img src="http://view.atdmt.com/CNT/view/430612898/direct;wi.300;hi.250/01/%%CACHEBUSTER%%"/></a>'); | |
</script> | |
<noscript> | |
<a href="%%CLICK_URL_UN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/upgrade | |
/plugins/akismet | |
/plugins/debug-bar | |
/plugins/hello.php | |
/themes/twentyeleven | |
/themes/twentytwelve | |
/themes/startbox | |
/uploads | |
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$params = array ( | |
'meta_key' => 'review_image_value', | |
'orderby' => 'meta_value_num', | |
'order' => 'DESC' | |
); | |
$query = new WP_Query( $params ); | |
while ( $query->have_posts() ) : | |
$query->the_post(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="social-links"> | |
<!--<a class="email-us" href="/contact">Contact Us</a>--> | |
<a class="facebook fontello" href="http://www.facebook.com/webdevstudios" title="Facebook"></a> | |
<a class="twitter fontello" href="http://www.twitter.com/webdevstudios" title="Twitter"></a> | |
<a class="gplus fontello" href="http://gplus.to/WebDevStudios" title="Google +"></a> | |
<a class="rss fontello" href="http://feeds.feedburner.com/webdevstudios" title="RSS"></a> | |
<!--<a class="flicker" href="http://www.flickr.com/photos/tags/webdevstudios/">Flicker</a>--> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: BadgeOS DMA Print | |
* Plugin URI: http://WebDevStudios.com | |
* Description: Custom class for DMA printing | |
* Version: 1.0 | |
* Author: WebDevStudios | |
* Author URI: http://WebDevStudios.com | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dma_rewards_user_has_prereqs( $user_id = 0, $reward_id = 0 ) { | |
$user_id = dma_get_user_id( $user_id ); | |
$args = array( | |
'post_type' => 'badge', | |
'connected_type' => 'badge-to-badgeos-rewards', | |
'connected_items' => $reward_id, | |
'nopaging' => true, | |
'supress_filters' => false |
NewerOlder