Skip to content

Instantly share code, notes, and snippets.

View Ariflaw's full-sized avatar
🏠
Working from home

Nur Arif Ariflaw

🏠
Working from home
View GitHub Profile
@Ariflaw
Ariflaw / spintax.php
Created July 11, 2016 06:07 — forked from irazasyed/spintax.php
PHP: Text Spinner Class - Nested spinning supported.
<?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)
<?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() {
<?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://',