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) |
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
'.source.css, .source.scss, .source.less': | |
'Comment Head Style': | |
'prefix': 'sch' | |
'body': """ | |
// ======================================================================== / | |
// Title | |
// ======================================================================== / | |
""" | |
'Comment Sub Head': | |
'prefix': 'scs' |
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
ShortCode Wordpress | |
[soundcloud url="https://api.soundcloud.com/tracks/175583328" params="auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true" width="100%" height="450" iframe="true" /] | |
Standard Iframe | |
<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/175583328&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe> |
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
ol.commentlist { list-style:none; margin:0 0 1em; padding:0; text-indent:0; } | |
ol.commentlist li { } | |
ol.commentlist li.alt { } | |
ol.commentlist li.bypostauthor {} | |
ol.commentlist li.byuser {} | |
ol.commentlist li.comment-author-admin {} | |
ol.commentlist li.comment { border-bottom:1px dotted #666; padding:1em; } | |
ol.commentlist li.comment div.comment-author {} | |
ol.commentlist li.comment div.vcard { font:normal 16px georgia,times,serif; } | |
ol.commentlist li.comment div.vcard cite.fn { font-style:normal; } |
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
<!DOCTYPE HTML> | |
<!--[if lt IE 8 ]><html class="no-js ie ie7" lang="en"> <![endif]--> | |
<!--[if IE 8 ]><html class="no-js ie ie8" lang="en"> <![endif]--> | |
<!--[if (gte IE 8)|!(IE)]><!--><html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=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
<form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>"> | |
<label> | |
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span> | |
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" /> | |
</label> | |
<input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" /> | |
</form> | |
Place on searchform.php | |
Source: http://codex.wordpress.org/Function_Reference/get_search_form |