This file contains hidden or 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
/** | |
* Create an image with the desired size on-the-fly. | |
* | |
* @param $image_id | |
* @param $width | |
* @param $height | |
* @param $crop | |
* | |
* @return array | |
*/ |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 | |
function dhw_remove_img($content) { | |
if (!is_single()): | |
// REMOVE IMAGE ONLY $content = preg_replace("/<img[^>]+\>/i", "", $content); | |
$content = preg_replace("#\s*\[caption[^]]*\].*?\[/caption\]\s*#is", "", $content); | |
endif; | |
return $content; | |
} | |
add_filter( 'the_content', 'dhw_remove_img' ); |
This file contains hidden or 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 | |
add_action( 'wp_enqueue_scripts', 'idnme' ); | |
function idnme() { | |
wp_enqueue_style( 'idnme', get_stylesheet_directory_uri() . '/me.css'.get_the_date_hash('Y-m-d His'), array() ); | |
} | |
function the_date_hash($param = 'Y-m-d H:i:s') | |
{ | |
echo get_the_date_hash($param); | |
} |
This file contains hidden or 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="breadcrumb"> | |
<ul itemscope itemtype="http://schema.org/BreadcrumbList"> | |
<?php redwaves_breadcrumb(); ?> | |
</ul> | |
</div> |
This file contains hidden or 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 | |
function my_theme_enqueue_styles() { | |
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme. | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'child-style', | |
get_stylesheet_directory_uri() . '/style.css', | |
array( $parent_style ), | |
wp_get_theme()->get('Version') |
This file contains hidden or 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
/* | |
Theme Name: Ponjong | |
Theme URI: http://www.jauhari.net/themes | |
Description: Desa Berkemajuan | |
Author: Nurudin Jauhari | |
Author URI: http://nurudin.jauhari.net | |
Template: twentyseventeen | |
Version: 1.2.3 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |