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
/** | |
* Textured stitched CSS3 box - with a kitten | |
*/ | |
.stitched { | |
display:block; | |
position:relative; | |
width:200px; | |
height:200px; | |
margin:20px; |
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: Matty Theme QuickSwitch | |
Plugin URI: http://matty.co.za/ | |
Description: Adds a quick theme switcher to the WordPress Admin Bar, aimed at speeding up rapid theme switching during theme development and maintenance. | |
Author: Matty | |
Author URI: http://matty.co.za/ | |
Version: 1.2.3 | |
Stable tag: 1.2.3 | |
License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
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 | |
/** | |
* Display the post time in a human readable format | |
* | |
* @return string | |
*/ | |
function carmack_human_time_diff() { | |
$post_time = get_the_time( 'U' ); | |
$time_now = date( 'U' ); |
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 | |
/** | |
* The functions to display Content or Excerpt in a theme. | |
*/ | |
/** | |
* If the theme doesn't support 'jetpack-content-options', don't continue. | |
*/ | |
if ( ! current_theme_supports( 'jetpack-content-options' ) ) { | |
return; |
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 | |
/** | |
* Intitiate sidebars | |
* | |
* @link https://developer.wordpress.org/reference/functions/register_sidebar/ | |
*/ | |
function mytheme_widgets_init() { | |
// Sidebar. | |
register_sidebar( |
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 | |
function child_enqueue_parent_styles() { | |
wp_enqueue_style( 'child-parent-style', get_template_directory_uri() . '/style.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'child_enqueue_parent_styles' ); |
OlderNewer