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 | |
/** | |
* Set HTML5 doctype | |
* | |
* @since 1.0.0 | |
*/ | |
function ja_html5_doctype() { | |
?> | |
<!doctype html> | |
<html <?php language_attributes( 'html' ); ?>> |
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 | |
/** | |
* Don't Update Theme | |
* | |
* If there is a theme in the repo with the same name, | |
* this prevents WP from prompting an update. | |
* | |
* @author Mark Jaquith | |
* @link http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/ | |
* @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 | |
/** | |
* Global javascript. Enqueue it we will. | |
* | |
* @since 1.0.0 | |
*/ | |
function ja_global_js() { | |
// Remove scripts | |
wp_deregister_script( 'superfish-args' ); | |
// Register Ssripts |
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 | |
/** | |
* Customize CSS for login screen | |
* | |
* @since 1.0.0 | |
* @author Jared Atchison | |
* @link http://jaredatchison.com/code/ | |
*/ | |
function ja_login_screen_css() { | |
echo '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory() . '/css/style-login.css" />' . "\n"; |
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 | |
/** | |
* Set viewport for responsiveness | |
* | |
* @since 1.0.0 | |
*/ | |
function ja_viewport(){ | |
echo '<meta name="viewport" content="width=device-width, initial-scale=1" />' . "\n"; | |
} | |
add_action( 'wp_head', 'ja_viewport' ); |
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 | |
/** | |
* Select dropdown menu walker class | |
* | |
* @since 1.0.0 | |
* @link http://jaredatchison.com/code/ | |
*/ | |
class ja_Mobile_Menu_Walker extends Walker_Nav_Menu{ | |
private $to_depth = -1; |
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 | |
/** | |
* This is the homepage template file. | |
* | |
* @package JaredAtchisonTheme | |
* @since 1.0.0 | |
*/ | |
// Remove default loop | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); |
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
.svn* | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
.gitignore | |
Icon? | |
ehthumbs.db | |
Thumbs.db |
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 slug to body class | |
* | |
* @author Jared Atchison | |
* @link http://jaredatchison.com/code/ | |
* @param array $classes | |
* @return array | |
*/ | |
function ja_body_class_slug( $classes ){ |
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
# disallow access to git and svn directories | |
RedirectMatch 404 /\.(svn|git)(/|$) |