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
<?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 | |
//* 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 | |
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
# /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 |
NewerOlder