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 | |
$dates = array("Sunday", | |
"Monday", | |
"Tuesday", | |
"Wednesday", | |
"Thursday", | |
"Friday", | |
"Saturday" | |
); |
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 | |
add_action( 'genesis_entry_content', 'kat_grid_content', 9 ); | |
/** | |
* Change the number of words in excerpt if in the grid loop and customize READ MORE, add accessibility. | |
*/ | |
function kat_grid_content() { | |
// Make sure we're in the grid loop. | |
if ( ! apply_filters( 'is_genesis_grid_loop', false ) ) { | |
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 | |
/** | |
* Blog Intro | |
*/ | |
add_action( 'genesis_before_loop', 'rgc_blog_intro' ); | |
/** | |
* Add title and content before blog archive loop. | |
* | |
* @author Robin Cornett |
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 | |
/** | |
* Get post image. | |
*/ | |
function wds_get_post_image( $size = 'thumbnail' ) { | |
// If featured image is present, use that | |
if ( has_post_thumbnail() ) { | |
return get_the_post_thumbnail( $size ); |
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 | |
// Add a post signature for multiple authors. | |
// All signature divs will have a class of .signature for common styling | |
// then .signature-cat as the default and .signature-tracey for the guest | |
// as class modifiers (different background image, or background position | |
// if using sprites etc.) | |
// If it's not a single entry of any post type, return. | |
if ( is_single() ) { | |
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 | |
/* File level DocBlock here - includes/class-remove-h1-format.php */ | |
/* Class level DocBlock here */ | |
class Remove_H1_Format { | |
/* | |
* Modify TinyMCE editor to remove H1. | |
*/ | |
public function remove( $init ) { | |
// GJ: No need for the filter - if they don't want it running, deactivate the plugin. |
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
filter: | |
excluded_paths: | |
- 'vendor/*' | |
- 'tests/*' | |
- 'src/wp-admin/includes/class-ftp*' | |
- src/wp-admin/includes/class-pclzip.php | |
- 'src/wp-content/*' | |
- 'src/wp-includes/ID3/*' | |
- 'src/wp-includes/SimplePie/*' | |
- 'src/wp-includes/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
/** | |
* {{singular}} Custom Post Type. | |
* | |
* @package {{plural}} | |
* @author Your Name <[email protected]> | |
* @license GPL-2.0+ | |
* @link http://www.blazersix.com/wordpress-code-generators/ | |
* | |
* @todo Remove unused code and update where needed. | |
* |
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 | |
// Do NOT include the opening php tag above | |
add_filter( 'tgmsp_individual_slide', 'jmw_soliloquy_add_custom_slides', 10, 4 ); | |
/** | |
* Filter the slide html to append another slide. | |
* | |
* @link http://soliloquywp.com/docs/appending-custom-slides-to-your-slider/ | |
* | |
* @param string $slider_html Existing slide HTML. |
NewerOlder