Last active
December 11, 2015 12:18
-
-
Save matthewsimo/4599272 to your computer and use it in GitHub Desktop.
Gallery Child Theme ready for Pjax Integration. Demo for upthemes blog post.
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 | |
| if(class_exists('WP_pjax')){ | |
| $wp_pjax->container_el = '#pjax-container'; | |
| } |
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 | |
| /** | |
| * The Header for our theme. | |
| * | |
| * Displays all of the <head> section and everything up till <div id="wrapper"> | |
| * | |
| * @package WordPress | |
| * @subpackage Gallery | |
| * @since Gallery 2.0 | |
| */ | |
| ?><!DOCTYPE html> | |
| <!--[if IE 7]> | |
| <html class="ie ie7" <?php language_attributes(); ?>> | |
| <![endif]--> | |
| <!--[if IE 8]> | |
| <html class="ie ie8" <?php language_attributes(); ?>> | |
| <![endif]--> | |
| <!--[if !(IE 7) | !(IE 8) ]><!--> | |
| <html <?php language_attributes(); ?>> | |
| <!--<![endif]--> | |
| <head> | |
| <meta charset="<?php bloginfo( 'charset' ); ?>" /> | |
| <meta name="viewport" content="width=device-width" /> | |
| <title><?php wp_title( '|', true, 'right' ); ?></title> | |
| <link rel="profile" href="http://gmpg.org/xfn/11" /> | |
| <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> | |
| <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?> | |
| <!--[if lt IE 9]> | |
| <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> | |
| <![endif]--> | |
| <?php wp_head(); ?> | |
| </head> | |
| <body> | |
| <div id="pjax-container"> | |
| <div <?php body_class(); ?>> | |
| <div id="header"> | |
| <div id="branding"> | |
| <?php if( !get_header_image() ): ?> | |
| <div id="blog-title"><span><a href="<?php echo get_site_url(); ?>" title="<?php bloginfo('name') ?>" rel="home"><?php bloginfo('name') ?></a></span></div> | |
| <?php else: ?> | |
| <div id="blog-title"><a href="<?php echo get_site_url(); ?>" title="<?php bloginfo('name') ?>" rel="home"><img src="<?php echo get_header_image(); ?>" alt="<?php bloginfo('name') ?>" /></a></div> | |
| <?php endif; ?> | |
| <div id="blog-description"><?php bloginfo('description'); ?></div> | |
| </div><!-- /#branding --> | |
| <div id="access"> | |
| <nav> | |
| <?php | |
| wp_nav_menu(array( | |
| 'theme_location' => 'primary_nav', | |
| 'menu_class' => 'sf-menu', | |
| 'container' => false, | |
| 'fallback_cb' => 'wp_page_menu_mod' | |
| )); | |
| ?> | |
| </nav> | |
| </div><!-- #access --> | |
| <div class="clear"></div> | |
| </div><!-- #header--> | |
| <div id="wrapper" class="hfeed"> |
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
| /* | |
| Theme Name: Gallery Child Theme | |
| Theme URI: http://upthemes.com/themes/gallery/ | |
| Description: Child theme for the Gallery theme | |
| Author: Your name here | |
| Author URI: http://example.com/about/ | |
| Template: gallery | |
| Version: 0.1.0 | |
| */ | |
| @import url("../gallery/style.css"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment