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
add_filter( 'edd_download_files', 'appp_show_latest_product_version' ); | |
function appp_show_latest_product_version( $files ) { | |
//only show the latest version of a product everywhere except the admin dashboard | |
if ( is_array( $files ) && ! is_admin() ) { | |
//count the file array size | |
$arr_count = count( $files ); |
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:var s = document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0); |
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 total=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+' plugins and '+total+' downloads');})(); |
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
$args = array( | |
'author' => $current_user->ID, | |
'post_type' => 'gws-idea-entries', | |
'meta-key' => 'idea-entry-post-id', | |
'meta_value' => absint( $idea_board_id ), | |
'posts_per_page' => '-1' | |
); |
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
$rewards = dma_get_available_rewards_for_user(); | |
foreach ( $rewards as $reward ) { | |
echo '<p>' .$reward->title .'</p>'; | |
} |
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
array | |
0 => | |
object(stdClass)[226] | |
public 'ID' => int 85 | |
public 'title' => string 'Reward with Inventory' (length=21) | |
public 'excerpt' => string '' (length=0) | |
public 'content' => string '' (length=0) | |
public 'thumbnail' => string '' (length=0) | |
public 'points' => string '500' (length=3) | |
public 'start_date' => string '' (length=0) |
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 |
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
<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
$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(); |
OlderNewer