Permalink
Browse files

Trending v.0.1.0 is ready.

git-svn-id: http://svn.locallylost.com/themes/trending/trunk@746 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
1 parent c4bc693 commit afd81eabc38aa67aecacd952ce923be9de724f2a greenshady committed May 31, 2011
View
@@ -41,7 +41,7 @@
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
- <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue Reading &rarr;', hybrid_get_textdomain() ) . '</a></div>' ); ?>
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</a></div>' ); ?>
<?php do_atomic( 'close_entry' ); // trending_close_entry ?>
View
@@ -45,7 +45,7 @@
<?php hybrid_attachment(); // Function for handling non-image attachments. ?>
<p class="download">
- <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download &quot;%1$s&quot;', hybrid_get_textdomain() ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
+ <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download "%s";', hybrid_get_textdomain() ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
</p><!-- .download -->
<?php endif; ?>
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,87 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>A guide to the Trending theme</title>
+
+<style type="text/css">body{width:750px;margin:36px auto 60px auto;font:16px/25px Georgia,Times,'Times New Roman',serif}a:link,a:visited{color:#2f6eb9;text-decoration:none}a:hover,a:active{text-decoration:underline}h1,h2,h3,h4,h5,h6{margin:40px 0 30px 0;color:#000;font-weight:bold;font-family:Arial,sans-serif}h1{margin-top:80px;font-size:2.2em}code{padding:0 3px;background:#eee}pre code{padding:0}pre{padding:9px;background:#eee;border:1px solid #ccc}ul{list-style:square}p.first{font-size:21px}p.second{font-size:15px}ul.space li{margin-bottom:10px}.section{overflow:hidden}.columns-2{float:left;width:350px;margin:0 0 21px 25px}.columns-3{float:left;width:230px;margin:0 0 21px 20px}</style>
+
+</head>
+<body>
+
+<h1>Trending WordPress theme</h1>
+
+<p class="first"><em>Trending</em> is a parent theme for bloggers that uses multiple nav menus, several sidebars, and custom post layouts. It has a pixel-perfect design that's great for any blogger who wants a new look for their site.</p>
+
+<p class="second">This theme is a parent theme. What this means is that to customize it, you should be creating a child theme. <em>Is it a theme framework?</em> Some people might call it that. All you need to know is that it's a solid, yet flexible, starting point for any blog.</p>
+
+<h2>Features</h2>
+
+<p><em>Trending</em> is built from the rock-solid <a href="http://themehybrid.com/hybrid-core" title="Hybrid Core theme framework">Hybrid Core</a> theme framework, so it provides a great starting point with many useful features.</p>
+
+<ul>
+ <li>Per-post layouts that allow you to quickly change the layout of your site.</li>
+ <li>Post setting that allows you to add a custom stylesheet for individual posts.</li>
+ <li>A smart breadcrumb menu that handles tons of permalink setups.</li>
+ <li>Built-in pagination for your home, archive, and search pages.</li>
+ <li>Post thumbnails that work with WordPress' featured image functionality and provide extra features.</li>
+ <li>Multiple sidebars that you can customize however you like.</li>
+ <li>Dynamic global, post, and comment <acronym title="Cascading Style Sheets">CSS</acronym> classes.</li>
+ <li>Fully internationalized, so you can run the theme in any language.</li>
+ <li>Uses the built-in WordPress menu system. No need to hack your navigation into place.</li>
+ <li>Context-aware action and filter hooks, so you don't have to learn WordPress conditional tags.</li>
+ <li>Some of the most-used filter hooks are shortcode-ready and have accompanying shortcodes.</li>
+ <li>Theme settings page that allows you to add custom meta boxes and settings.</li>
+ <li>Ability to create custom templates for any post type in multiple ways.</li>
+ <li>Highly-configurable widgets that give you full control over their display.</li>
+ <li>Widget areas are content-aware, meaning that they only appear if they contain active widgets.</li>
+ <li>And much, much more!</li>
+</ul>
+
+<h2>Child themes</h2>
+
+<p>Since <em>Trending</em> is a parent theme, you'll want to create a child theme if you plan on making any customizations. <em>Don't know how to make a child theme?</em> It's relatively simple. Just follow the below steps.</p>
+
+<ul>
+ <li>Create a theme folder in your <code>/wp-content/themes</code> directory called <code>trending-child</code>.</li>
+ <li>Then, create a <code>style.css</code> file within your theme folder.</li>
+ <li>At the top of your <code>style.css</code> file, add the below information.</li>
+</ul>
+
+<pre><code>/**
+ * Theme Name: Trending Child
+ * Theme URI: http://link-to-your-site.com
+ * Description: Describe what your theme should be like.
+ * Version: 0.1
+ * Author: Your Name
+ * Author URI: http://link-to-your-site.com
+ * Tags: Add, Whatever, Tags, You, Want
+ * Template: trending
+ */</code></pre>
+
+<p>This will give you a blank design. If you want to import the <em>Trending</em> parent theme style, simply append this code after the above information:</p>
+
+<pre><code>@import url( '../trending/style.css' );
+
+/* Custom code goes below here. */</code></pre>
+
+<p>Note that child themes are now the officially-supported way of modifying themes in WordPress.</p>
+
+<h2>Notes</h2>
+
+<p>The "Header" sidebar (widget area) was created to house a 468px by 80px ad or image. You can, of course, add anything to this sidebar you want. However, anything that overflows the header sidebar area will be hidden from view.</p>
+
+<h2>Theme support</h2>
+
+<p>Support for the <em>Trending</em> theme is not offered on the WordPress support forums. There is a community called <a href="http://themehybrid.com" title="Theme Hybrid">Theme Hybrid</a> where support is offered for this theme. You are encouraged to sign up to the site to use its support forums and become a part of the community.</p>
+
+<h2>Copyright &amp; license</h2>
+
+<p><em>Trending</em> is licensed under the <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html" title="GNU GPL">GNU General Public License</a>, version 2 (<acronym title="GNU General Public License">GPL</acronym>).</p>
+
+<p>This theme is copyrighted to <a href="http://justintadlock.com" title="Justin Tadlock">Justin Tadlock</a>.</p>
+
+<p>2011 &copy; Justin Tadlock. All rights reserved.</p>
+
+</body>
+</html>
@@ -1,91 +1,86 @@
-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.
+-----------------------------------------------------------
+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.
View
@@ -68,10 +68,7 @@ function trending_theme_setup() {
/* Add theme support for WordPress features. */
add_theme_support( 'automatic-feed-links' );
- add_custom_background();
-
- /* Filter the breadcrumb trail arguments. */
- add_filter( 'breadcrumb_trail_args', 'trending_breadcrumb_trail_args' );
+ add_custom_background( 'trending_custom_background_callback' );
/* Embed width/height defaults. */
add_filter( 'embed_defaults', 'trending_embed_defaults' );
@@ -101,20 +98,6 @@ function trending_add_image_sizes() {
}
/**
- * Custom breadcrumb trail arguments.
- *
- * @since 0.1.0
- */
-function trending_breadcrumb_trail_args( $args ) {
-
- /* Change the text before the breadcrumb trail. */
- $args['before'] = __( 'You are here:', hybrid_get_textdomain() );
-
- /* Return the filtered arguments. */
- return $args;
-}
-
-/**
* Function for deciding which pages should have a one-column layout.
*
* @since 0.1.0
@@ -250,4 +233,39 @@ function trending_comment_class( $classes ) {
return $classes;
}
+/**
+ * This is a fix for when a user sets a custom background color with no custom background image. What
+ * happens is the theme's background image hides the user-selected background color. If a user selects a
+ * background image, we'll just use the WordPress custom background callback.
+ *
+ * @since 0.1.0
+ * @link http://core.trac.wordpress.org/ticket/16919
+ */
+function trending_custom_background_callback() {
+
+ /* Get the background image. */
+ $image = get_background_image();
+
+ /* If there's an image, just call the normal WordPress callback. We won't do anything here. */
+ if ( !empty( $image ) ) {
+ _custom_background_cb();
+ return;
+ }
+
+ /* Get the background color. */
+ $color = get_background_color();
+
+ /* If no background color, return. */
+ if ( empty( $color ) )
+ return;
+
+ /* Use 'background' instead of 'background-color'. */
+ $style = "background: #{$color};";
+
+?>
+<style type="text/css">body { <?php echo trim( $style ); ?> }</style>
+<?php
+
+}
+
?>
View
@@ -65,6 +65,6 @@
<?php do_atomic( 'open_main' ); // trending_open_main ?>
- <?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail(); ?>
+ <?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail( array( 'before' => __( 'You are here:', hybrid_get_textdomain() ) ) ); ?>
<?php get_sidebar( 'before-content' ); // Loads the sidebar-before-content.php template. ?>
View
@@ -47,7 +47,7 @@
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
- <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue Reading &rarr;', hybrid_get_textdomain() ) . '</a></div>' ); ?>
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</a></div>' ); ?>
<?php do_atomic( 'close_entry' ); // trending_close_entry ?>
View
Deleted file not rendered
View
Deleted file not rendered
View
@@ -40,7 +40,7 @@
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
- <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue Reading &rarr;', hybrid_get_textdomain() ) . '</a></div>' ); ?>
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</a></div>' ); ?>
<?php do_atomic( 'close_entry' ); // trending_close_entry ?>
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit afd81ea

Please sign in to comment.