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 | |
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' ); |
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
/** | |
* Get theme folder from theme parameter or use granule | |
* | |
* @returns {String|util.env.theme} | |
*/ | |
function utilGetTheme() { | |
var theme = 'granule'; | |
if ( util.env.theme ) { |
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
# disable access to wp-config.php | |
<files wp-config.php> | |
order allow,deny | |
deny from all | |
</files> | |
# disable public error messages | |
php_flag display_startup_errors on | |
php_flag display_errors on | |
php_flag html_errors on |
OlderNewer