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 | |
/** | |
* Possibly amend the loop. | |
* | |
* Specify the conditions under which the grid loop should be used. | |
* | |
* @author Bill Erickson | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/genesis-grid-loop-advanced/ |
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
#slider .frames .frame, .container { width: 1140px; } | |
.discussion-timeline { width: 1025px } | |
#inbox .list { width: 74em; } | |
.news { width: 775px; } | |
.columns.browser .main { width: 885px; } |
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 recursive_dir_listing( $dir = '.', $maxlevel = 2, $level = 0 ) { | |
if ( $maxlevel == $level ) | |
return; | |
$dirs = glob( $dir . '/*' , GLOB_ONLYDIR ); | |
if ( ! $dirs ) |
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( 'genesis_before_post' , 'wps_no_featured_image' ); | |
add_action( 'genesis_after_post_content' , 'wps_no_featured_image' ); | |
/* | |
* Remove featured image from certain posts. | |
* | |
* Stops featured image from displayed on the Small Group Show category (126) on | |
* the blog page. | |
* |
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 | |
/** | |
* Create the Live Toolbar. | |
* | |
* @since 1.0.0 | |
*/ | |
function radio_live_toolbar() { |
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
-----BEGIN GEEK CODE BLOCK----- | |
Version: 3.20 | |
GCS d- s: a31 c++ C+++ B-- 7---- w+ L+ M-- u++ W+++ H++++$ Z++ | |
F+++ PS PE+ Y PGP T++ S J++++ R- m+ tv- b- DI- D | |
e++ h---- A+ r+++ y++++ | |
------END GEEK CODE BLOCK------ |
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_filter( 'stylesheet_uri', 'gmj_stylesheet_uri' ); | |
/** | |
* Cache bust the style.css reference. | |
* | |
* Includes the file last modified time as a querystring. | |
* | |
* @author Gary Jones | |
* @link https://gist.github.com/1892762 |
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 ref=menu querystring to each custom menu item, where "menu" is either the | |
* location the menu is assigned to, or the menu slug + ID number of the widget | |
* it is displayed with. | |
* | |
* @author Gary Jones | |
* @author Thomas Griffin | |
* @link https://gist.github.com/1893672 |
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
<head> | |
<meta name="media" content="large=screen and (min-device-width:1024px)" /> | |
<meta name="media" content="medium=screen and (min-device-width:640px and max-device-width:320px)" /> | |
<meta name="media" content="tiny=screen and (max-device-width:320px)" /> | |
<meta name="media" content="foo=print" /> | |
</head> | |
<body> | |
<!-- whatever the decided content markup is, but referencing the meta values --> | |
<picture alt="..."> |
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_filter( 'posts_results','child_query_is_home' ); | |
/** | |
* Fixes an issue where a query that targets a taxonomy stops sticky posts from working | |
* on is_home. | |
* | |
* The code suggests that sticky posts should only be on the blog archive (is_home) page. | |
* However, if that query is amended with an inclusive cat, tag or tax restriction, then | |
* WP doesn't count the query as being the blog archive page anymore. |