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
/** | |
* 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
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');})(); |
OlderNewer