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
# /srv/salt/php/init.sls | |
php: | |
pkgrepo.managed: | |
- ppa: skettler/php # https://launchpad.net/~skettler/+archive/php/+packages | |
- require_in: | |
- pkg: php | |
pkg.installed: | |
- name: php52 | |
- version: 5.2.17~precise~ppa19 |
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 | |
//* Template Name: Blog | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
add_action('genesis_entry_header', 'my_h1_blog_title'); | |
function my_h1_blog_title () { | |
$title = apply_filters( 'genesis_post_title_text', get_the_title() ); |
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 | |
//* Template Name: Blog | |
remove_action( 'genesis_post_title', 'genesis_do_post_title' ); | |
add_action('genesis_post_title', 'my_h1_blog_title'); | |
function my_h1_blog_title () { | |
$title = apply_filters( 'genesis_post_title_text', get_the_title() ); |
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 | |
//* Template Name: Blog | |
if ( genesis_html5() ) { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
add_action( 'genesis_entry_header', 'my_h1_blog_title' ); | |
} else { | |
remove_action( 'genesis_post_title', 'genesis_do_post_title' ); |
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 | |
// Don't copy the opening <?php tag above! | |
// Send headers to ask IE NOT to use compatibility mode | |
add_filter( 'wp_headers', 'genesis_keep_ie_modern' ); | |
function genesis_keep_ie_modern( $headers ) { | |
if ( isset($_SERVER['HTTP_USER_AGENT']) && (strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false) ) { | |
$headers['X-UA-Compatible'] = 'IE=edge'; | |
} | |
return $headers; |
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
<!-- Add this to the bottom of your home section 1 widget in WordPress's Appearance > Widgets area--> | |
<a class="next-pane" data-goto=".home-section-2">↓</a> |
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 | |
// Template Name: Blog | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'newspro_do_custom_loop' ); | |
function newspro_do_custom_loop() { | |
global $paged; |
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
// Add galleries to posts on the homepage if they have them | |
add_action( 'genesis_post_content', 'sp_gallery_in_excerpt', 1 ); | |
function sp_gallery_in_excerpt() { | |
if ( !is_home() && !is_front_page() ) | |
return; | |
if ( get_post_gallery() ) | |
echo get_post_gallery(); | |
} |
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
add_action('genesis_after_header', 'wpsites_two_column_widgets'); | |
/*** @author Brad Dalton* @example http://wpsites.net/* @copyright 2014 WP Sites */ | |
function wpsites_two_column_widgets() | |
{ | |
if (is_front_page() && is_active_sidebar('left-column') || is_active_sidebar('right-column')) { | |
echo '<div class="two-column-widgets">'; | |
echo '<div class="wrap">'; | |
genesis_widget_area('left-column', | |
array( |
OlderNewer