Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This could be the start of something...
- Loading branch information
Justin Tadlock
committed
Aug 31, 2012
0 parents
commit 457c459
Showing
51 changed files
with
2,208 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "library"] | ||
path = library | ||
url = https://github.com/justintadlock/hybrid-core.git |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
/** | ||
* Content Template | ||
* | ||
* Template used to show post content when a more specific template cannot be found. | ||
* | ||
* @package MyLife | ||
* @subpackage Template | ||
* @since 0.1.0 | ||
* @author Justin Tadlock <justin@justintadlock.com> | ||
* @copyright Copyright (c) 2011, Justin Tadlock | ||
* @link http://themehybrid.com/themes/my-life | ||
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
*/ | ||
|
||
do_atomic( 'before_entry' ); // my-life_before_entry ?> | ||
|
||
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>"> | ||
|
||
<?php do_atomic( 'open_entry' ); // my-life_open_entry ?> | ||
|
||
<?php if ( is_singular() ) { ?> | ||
|
||
<?php echo apply_atomic_shortcode( 'entry_title', the_title( '<h1 class="entry-title">', '</h1>', false ) ); ?> | ||
|
||
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'Published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'my-life' ) . '</div>' ); ?> | ||
|
||
<div class="entry-content"> | ||
<?php the_content(); ?> | ||
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'my-life' ), 'after' => '</p>' ) ); ?> | ||
</div><!-- .entry-content --> | ||
|
||
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'my-life' ) . '</div>' ); ?> | ||
|
||
<?php } else { ?> | ||
|
||
<?php echo apply_atomic_shortcode( 'entry_title', the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '">', '</a></h2>', false ) ); ?> | ||
|
||
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'Published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'my-life' ) . '</div>' ); ?> | ||
|
||
<?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'thumbnail' ) ); ?> | ||
|
||
<div class="entry-summary"> | ||
<?php the_excerpt(); ?> | ||
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'my-life' ), 'after' => '</p>' ) ); ?> | ||
</div><!-- .entry-summary --> | ||
|
||
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'my-life' ) . '</div>' ); ?> | ||
|
||
<?php } ?> | ||
|
||
<?php do_atomic( 'close_entry' ); // my-life_close_entry ?> | ||
|
||
</div><!-- .hentry --> | ||
|
||
<?php do_atomic( 'after_entry' ); // my-life_after_entry ?> |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
This Font Software is licensed under the SIL Open Font License, Version 1.1. | ||
This license is copied below, and is also available with a FAQ at: | ||
http://scripts.sil.org/OFL | ||
|
||
|
||
----------------------------------------------------------- | ||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 | ||
----------------------------------------------------------- | ||
|
||
PREAMBLE | ||
The goals of the Open Font License (OFL) are to stimulate worldwide | ||
development of collaborative font projects, to support the font creation | ||
efforts of academic and linguistic communities, and to provide a free and | ||
open framework in which fonts may be shared and improved in partnership | ||
with others. | ||
|
||
The OFL allows the licensed fonts to be used, studied, modified and | ||
redistributed freely as long as they are not sold by themselves. The | ||
fonts, including any derivative works, can be bundled, embedded, | ||
redistributed and/or sold with any software provided that any reserved | ||
names are not used by derivative works. The fonts and derivatives, | ||
however, cannot be released under any other type of license. The | ||
requirement for fonts to remain under this license does not apply | ||
to any document created using the fonts or their derivatives. | ||
|
||
DEFINITIONS | ||
"Font Software" refers to the set of files released by the Copyright | ||
Holder(s) under this license and clearly marked as such. This may | ||
include source files, build scripts and documentation. | ||
|
||
"Reserved Font Name" refers to any names specified as such after the | ||
copyright statement(s). | ||
|
||
"Original Version" refers to the collection of Font Software components as | ||
distributed by the Copyright Holder(s). | ||
|
||
"Modified Version" refers to any derivative made by adding to, deleting, | ||
or substituting -- in part or in whole -- any of the components of the | ||
Original Version, by changing formats or by porting the Font Software to a | ||
new environment. | ||
|
||
"Author" refers to any designer, engineer, programmer, technical | ||
writer or other person who contributed to the Font Software. | ||
|
||
PERMISSION & CONDITIONS | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of the Font Software, to use, study, copy, merge, embed, modify, | ||
redistribute, and sell modified and unmodified copies of the Font | ||
Software, subject to the following conditions: | ||
|
||
1) Neither the Font Software nor any of its individual components, | ||
in Original or Modified Versions, may be sold by itself. | ||
|
||
2) Original or Modified Versions of the Font Software may be bundled, | ||
redistributed and/or sold with any software, provided that each copy | ||
contains the above copyright notice and this license. These can be | ||
included either as stand-alone text files, human-readable headers or | ||
in the appropriate machine-readable metadata fields within text or | ||
binary files as long as those fields can be easily viewed by the user. | ||
|
||
3) No Modified Version of the Font Software may use the Reserved Font | ||
Name(s) unless explicit written permission is granted by the corresponding | ||
Copyright Holder. This restriction only applies to the primary font name as | ||
presented to the users. | ||
|
||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font | ||
Software shall not be used to promote, endorse or advertise any | ||
Modified Version, except to acknowledge the contribution(s) of the | ||
Copyright Holder(s) and the Author(s) or with their explicit written | ||
permission. | ||
|
||
5) The Font Software, modified or unmodified, in part or in whole, | ||
must be distributed entirely under this license, and must not be | ||
distributed under any other license. The requirement for fonts to | ||
remain under this license does not apply to any document created | ||
using the Font Software. | ||
|
||
TERMINATION | ||
This license becomes null and void if any of the above conditions are | ||
not met. | ||
|
||
DISCLAIMER | ||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT | ||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE | ||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL | ||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM | ||
OTHER DEALINGS IN THE FONT SOFTWARE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
/** | ||
* Footer Template | ||
* | ||
* The footer template is generally used on every page of your site. Nearly all other | ||
* templates call it somewhere near the bottom of the file. It is used mostly as a closing | ||
* wrapper, which is opened with the header.php file. It also executes key functions needed | ||
* by the theme, child themes, and plugins. | ||
* | ||
* @package MyLife | ||
* @subpackage Template | ||
* @since 0.1.0 | ||
* @author Justin Tadlock <justin@justintadlock.com> | ||
* @copyright Copyright (c) 2011, Justin Tadlock | ||
* @link http://themehybrid.com/themes/my-life | ||
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
*/ | ||
?> | ||
|
||
<?php do_atomic( 'close_main' ); // my-life_close_main ?> | ||
|
||
</div><!-- .wrap --> | ||
|
||
</div><!-- #main --> | ||
|
||
<?php do_atomic( 'after_main' ); // my-life_after_main ?> | ||
|
||
<?php do_atomic( 'before_footer' ); // my-life_before_footer ?> | ||
|
||
<footer id="footer"> | ||
|
||
<?php do_atomic( 'open_footer' ); // my-life_open_footer ?> | ||
|
||
<div class="wrap"> | ||
|
||
<div class="footer-content"> | ||
<?php hybrid_footer_content(); ?> | ||
</div><!-- .footer-content --> | ||
|
||
<?php do_atomic( 'footer' ); // my-life_footer ?> | ||
|
||
</div><!-- .wrap --> | ||
|
||
<?php do_atomic( 'close_footer' ); // my-life_close_footer ?> | ||
|
||
</footer><!-- #footer --> | ||
|
||
<?php do_atomic( 'after_footer' ); // my-life_after_footer ?> | ||
|
||
<?php get_template_part( 'menu', 'subsidiary' ); // Loads the menu-subsidiary.php template. ?> | ||
|
||
</div><!-- #container --> | ||
|
||
<?php do_atomic( 'close_body' ); // my-life_close_body ?> | ||
|
||
<?php wp_footer(); // wp_footer ?> | ||
|
||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
require_once( trailingslashit( get_template_directory() ) . 'library/hybrid.php' ); | ||
new Hybrid(); | ||
|
||
add_action( 'after_setup_theme', 'just_me_theme_setup' ); | ||
|
||
function just_me_theme_setup() { | ||
|
||
$prefix = hybrid_get_prefix(); | ||
|
||
add_theme_support( 'hybrid-core-shortcodes' ); | ||
add_theme_support( 'hybrid-core-theme-settings', array( 'about', 'footer' ) ); | ||
|
||
//add_theme_support( 'breadcrumb-trail' ); | ||
add_theme_support( 'get-the-image' ); | ||
} | ||
|
||
?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
/** | ||
* Header Template | ||
* | ||
* The header template is generally used on every page of your site. Nearly all other templates call it | ||
* somewhere near the top of the file. It is used mostly as an opening wrapper, which is closed with the | ||
* footer.php file. It also executes key functions needed by the theme, child themes, and plugins. | ||
* | ||
* @package MyLife | ||
* @subpackage Template | ||
* @since 0.1.0 | ||
* @author Justin Tadlock <justin@justintadlock.com> | ||
* @copyright Copyright (c) 2011, Justin Tadlock | ||
* @link http://themehybrid.com/themes/my-life | ||
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
*/ | ||
?> | ||
<!DOCTYPE html> | ||
<html <?php language_attributes(); ?>> | ||
<head> | ||
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> | ||
<title><?php hybrid_document_title(); ?></title> | ||
|
||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="all" /> | ||
<link rel="profile" href="http://gmpg.org/xfn/11" /> | ||
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> | ||
|
||
<?php wp_head(); // wp_head ?> | ||
|
||
</head> | ||
|
||
<body class="<?php hybrid_body_class(); ?>"> | ||
|
||
<?php do_atomic( 'open_body' ); // my-life_open_body ?> | ||
|
||
<div id="container"> | ||
|
||
<?php do_atomic( 'before_header' ); // my-life_before_header ?> | ||
|
||
<header id="header"> | ||
|
||
<?php do_atomic( 'open_header' ); // my-life_open_header ?> | ||
|
||
<div class="wrap"> | ||
|
||
<hgroup id="branding"> | ||
<h1 id="site-title"><a href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> | ||
<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2> | ||
</hgroup><!-- #branding --> | ||
|
||
<?php do_atomic( 'header' ); // my-life_header ?> | ||
|
||
</header><!-- .wrap --> | ||
|
||
<?php do_atomic( 'close_header' ); // my-life_close_header ?> | ||
|
||
</div><!-- #header --> | ||
|
||
<?php do_atomic( 'after_header' ); // my-life_after_header ?> | ||
|
||
<?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?> | ||
|
||
<?php if ( get_header_image() ) echo '<img class="header-image" src="' . get_header_image() . '" alt="" />'; ?> | ||
|
||
<?php do_atomic( 'before_main' ); // my-life_before_main ?> | ||
|
||
<div id="main"> | ||
|
||
<div class="wrap"> | ||
|
||
<?php do_atomic( 'open_main' ); // my-life_open_main ?> | ||
|
||
<?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail( array( 'before' => __( 'You are here:', 'my-life' ) ) ); ?> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/** | ||
* Index Template | ||
* | ||
* This is the default template. It is used when a more specific template can't be found to display | ||
* posts. It is unlikely that this template will ever be used, but there may be rare cases. | ||
* | ||
* @package MyLife | ||
* @subpackage Template | ||
* @since 0.1.0 | ||
* @author Justin Tadlock <justin@justintadlock.com> | ||
* @copyright Copyright (c) 2011, Justin Tadlock | ||
* @link http://themehybrid.com/themes/my-life | ||
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
*/ | ||
|
||
get_header(); // Loads the header.php template. ?> | ||
|
||
<?php do_atomic( 'before_content' ); // my-life_before_content ?> | ||
|
||
<div id="content"> | ||
|
||
<?php do_atomic( 'open_content' ); // my-life_open_content ?> | ||
|
||
<div class="hfeed"> | ||
|
||
<?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?> | ||
|
||
<?php if ( have_posts() ) : ?> | ||
|
||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<?php get_template_part( 'content', ( post_type_supports( get_post_type(), 'post-formats' ) ? get_post_format() : get_post_type() ) ); ?> | ||
|
||
<?php if ( is_singular() ) { ?> | ||
|
||
<?php if ( current_theme_supports( 'custom-field-series' ) ) custom_field_series(); ?> | ||
|
||
<?php do_atomic( 'after_singular' ); // my-life_after_singular ?> | ||
|
||
<?php comments_template( '/comments-test.php', true ); // Loads the comments.php template. ?> | ||
|
||
<?php } ?> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php else : ?> | ||
|
||
<?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?> | ||
|
||
<?php endif; ?> | ||
|
||
</div><!-- .hfeed --> | ||
|
||
<?php do_atomic( 'close_content' ); // my-life_close_content ?> | ||
|
||
<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?> | ||
|
||
</div><!-- #content --> | ||
|
||
<?php do_atomic( 'after_content' ); // my-life_after_content ?> | ||
|
||
<?php get_footer(); // Loads the footer.php template. ?> |
Oops, something went wrong.