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 | |
// Soundcloud has a shortcode for WordPress.com, | |
// but it doesn't work on self-hosted WordPress sites. | |
// To make the standard shortcode work, add this to your functions.php file. | |
// Here is what Soundcloud's "WordPress Code" shortcode looks like: | |
// [soundcloud url="http://api.soundcloud.com/tracks/95232600" params="" width=" 100%" height="166" iframe="true" /] | |
function soundcloud( $atts, $url='' ) { | |
extract(shortcode_atts(array( | |
'url' => 'http://', |
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 | |
/** | |
* Slideshow shortcode usage: [gallery type="slideshow"] or the older [slideshow] | |
*/ | |
if(!class_exists('zl_add_jetPack_slideshow')){ | |
class zl_add_jetPack_slideshow { | |
public $instance_count = 0; | |
function __construct() { |
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 | |
/** | |
* Spintax - A helper class to process Spintax strings. | |
* @name Spintax | |
* @author Jason Davis - https://www.codedevelopr.com/ | |
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/ | |
*/ | |
class Spintax | |
{ | |
public function process($text) |