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 mod_jock.php | |
* | |
* This file builds the Jock Rotator. The Jock Rotator is nothing more than a PHP Case Statement. | |
* It reads your server's time/date and asks: "Is it before 10:00am? Yes? Then display this jock." | |
* | |
* @version 2.5.0 | |
* @author Greg Rickaby <greg@gregrickaby.com> | |
* @copyright Copyright (c) 2012 |
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
add_filter( 'genesis_comment_form_args', 'child_comment_form' ); | |
/** | |
* Change "Post Comment" button text. | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function child_comment_form($args) { | |
$args = array ( | |
'label_submit' => __( 'Submit', 'genesis' ), |
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 | |
/** | |
* Functions.php | |
* | |
* This file handles the child theme setup and intialization. | |
* | |
* @category FMG | |
* @package Functions | |
* @author Greg Rickaby | |
* @since 1.0.0 |
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 | |
$odd_or_even = 'even'; | |
$args = array( | |
'cat' => 1, | |
'posts_per_page' => 2, | |
'order' => 'DESC' | |
); | |
$query = new WP_Query( $args ); | |
if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); |
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
add_action( 'thesis_hook_byline_item', 'custom_byline' ); | |
/** | |
* Custom Post-Info with Google Rich Snippet support | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function custom_byline() { | |
if ( is_page() ) | |
return; // don't do post-info on pages ?> |
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
add_action( 'wp_head', 'child_google_authorship', 99 ); | |
/** | |
* Add Google Authorship info to WP <head> | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function child_google_authorship() { ?> | |
<link rel="author" href="https://plus.google.com/XXXXXXXXXXXX/posts/">'; | |
<?php } |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress |
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
<a href="http://gregrickaby.com/go/genesis-theme" target="_blank"> | |
<img src="http://cdn.gregrickaby.com/affiliate/genesis_125x125.png" alt="Genesis Framework for WordPress" title="Genesis Framework for WordPress" border="0" /> | |
</a> | |
<a href="http://gregrickaby.com/go/thesis-theme" target="_blank"> | |
<img src="http://cdn.gregrickaby.com/affiliate/thesis_125x125.png" alt="Thesis Theme for WordPress" title="Thesis Theme for WordPress" border="0" /> | |
</a> | |
<a href="http://gregrickaby.com/go/headway-theme" target="_blank"> | |
<img src="http://cdn.gregrickaby.com/affiliate/headway_125x125.png" alt="Headway Theme for WordPress" title="Headway Theme for WordPress" border="0" /> |
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 | |
// pre-html5 hook add_action( 'genesis_before_post_content', 'child_social_media_icons', 5 ); | |
add_action( 'genesis_before_entry_content', 'child_social_media_icons', 5 ); | |
/** | |
* Social Media Icons without a plugin | |
* | |
* Use conditional tags to place on desired posts and pages. | |
* |
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
/* Social Media Icons | |
------------------------------------------------------------ */ | |
.social-media-icons { | |
display: block; | |
height: 25px; | |
width: 100%; | |
margin: 0 0 10px; | |
padding: 0; | |
} |