Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-settings.php on line 186

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-includes/backpress/functions.wp-object-cache.php on line 108

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-includes/backpress/pomo/mo.php on line 171

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-includes/functions.bb-l10n.php on line 484

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-includes/backpress/class.wp-taxonomy.php on line 581

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-settings.php:186) in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/my-templates/bb-fusion-community/rss2.php on line 1
Community » Topic: Hybrid version 0.7 discussion http://themehybrid.com/community/topic/hybrid-version-07-discussion Theme Hybrid en-US Fri, 22 Aug 2014 23:35:53 +0000 bbpress 1.0.2 <![CDATA[Search]]> q http://themehybrid.com/community/search.php Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2318 Wed, 23 Dec 2009 21:33:32 +0000 Justin Tadlock 2318@http://themehybrid.com/community/ <p><strong>Version 0.7 discussion concluded</strong></p> <p>I just wanted to give a big thanks to everyone that participated in this topic.</p> <p>I uploaded version 0.7 to the theme repository yesterday. Let's hope it gets put online soon. </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2317 Wed, 23 Dec 2009 21:32:13 +0000 Justin Tadlock 2317@http://themehybrid.com/community/ <p>@Ryan</p> <p>Sorry, I must've missed your post earlier:</p> <p>I'm a fan of keeping it because the Get the Image script has always used attachments, which isn't much different than what the new <code>the_post_thumbnail()</code> function does. But, I always want users to be able to have an easy way to override things.</p> <p>Plus, it's sort of something I just like having because I personally use it. I don't see myself using WP's new image feature when I'm so used to using custom fields. Old habits die hard, right? </p> ryanhellyer on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2288 Sat, 19 Dec 2009 12:31:25 +0000 ryanhellyer 2288@http://themehybrid.com/community/ <p>I notice that there is still an option in the posts page for entering a thumbnail URL. This seems kinda redundant now that 2.9 has post thumbnails built in. Perhaps this feature should be disabled for new users of the theme since it serves any purpose anymore apart from for legacy reasons? Or at least I assume it doesn't serve any purpose. </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2279 Wed, 16 Dec 2009 22:49:39 +0000 Justin Tadlock 2279@http://themehybrid.com/community/ <p><strong>RE: Archive Info</strong></p> <p>It's something I've thought about. I'll put it on the agenda for discussion for 0.8.</p> <p>But, looking at the Hemingway theme, it's laid out the same way, just with less info. </p> Patrick Lawrence on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2278 Wed, 16 Dec 2009 21:38:20 +0000 Patrick Lawrence 2278@http://themehybrid.com/community/ <p>I know this is late in the game, but something that I'm working on is a <a href="http://warpspire.com/hemingway/">Hemingway-like</a> child theme. On non-home pages, the info (archive, category, etc.) is in a div that is floated to the left. Currently with the way the templates in Hybrid are laid out, there is no way to change this behavior without changing all of the templates. Take this snippet from archive.php in the hybrid theme:</p> <pre><code>&lt;div class=&quot;archive-info&quot;&gt; &lt;h1 class=&quot;archive-title&quot;&gt;&lt;?php wp_title( &#39;&#39; ); ?&gt;&lt;/h1&gt; &lt;div class=&quot;archive-description&quot;&gt; &lt;p&gt; &lt;?php printf( __(&#39;You are browsing the archive for %1$s.&#39;, &#39;hybrid&#39;), wp_title( false, false ) ); ?&gt; &lt;/p&gt; &lt;/div&gt;&lt;!-- .archive-description --&gt; &lt;/div&gt;&lt;!-- .archive-info --&gt;</code></pre> <p>There is fairly identical HTML in the following templates (hybrid 0.6 -- I didn't look at 0.7.):</p> <ul> <li>archive.php</li> <li>author.php</li> <li>category.php</li> <li>date.php</li> <li>day.php</li> <li>hour.php</li> <li>minute.php</li> <li>month.php</li> <li>search.php</li> <li>tag.php</li> <li>taxonomy-link_category.php</li> <li>taxonomy.php</li> <li>time.php</li> <li>week.php</li> <li>year.php</li> </ul> <p>I was thinking along the lines of a default action that spit out the correct info div so I wrote up a quick test function to my child theme and added the action to hybrid_before_content (I also added a modified category.php and month.php with the info div stripped to my child theme):</p> <pre><code>function hybrid_info() { $title = &#39;&#39;; if ( is_home() ) : return; endif; if ( is_page_template( &#39;category.php&#39; ) ) : $infoclass = &#39;category-info&#39;; $titleclass = &#39;category-title&#39;; $descclass = &#39;category-description&#39;; $title = single_cat_title(); $desc = category_description(); elseif ( is_page_template( &#39;month.php&#39; ) ) : $infoclass = &#39;date-info month-info&#39;; $titleclass = &#39;date-title month-title&#39;; $descclass = &#39;date-description month-description&#39;; $title = single_month_title( &#39; &#39;, false ); $desc = sprintf( __(&#39;You are browsing the archive for %1$s.&#39;, &#39;hybrid&#39;),single_month_title( &#39; &#39;, false ) ); endif; if ( &#39;&#39; != $title ) : print_r( get_option()); $info = &quot;\n\t\t&quot; . &#39;&lt;div class=&quot;&#39; . $infoclass . &#39;&quot;&gt;&#39; . &quot;\n&quot;; $info .= &quot;\n\t\t\t&quot; . &#39;&lt;h1 class=&quot;&#39; . $titleclass . &#39;&quot;&gt;&#39; . $title . &#39;&lt;/h1&gt;&#39; . &quot;\n&quot;; $info .= &quot;\n\t\t\t&quot; . &#39;&lt;div class=&quot;&#39; . $descclass . &#39;&quot;&gt;&#39; . &quot;\n&quot;; $info .= &quot;\n\t\t\t\t&quot; . $desc . &quot;\n&quot;; $info .= &quot;\n\t\t\t&quot; . &#39;&lt;/div&gt;&lt;!-- .&#39; . $descclass . &#39; --&gt;&#39; . &quot;\n&quot;; $info .= &quot;\n\t\t&quot; . &#39;&lt;/div&gt;&lt;!-- .&#39; . $infoclass . &#39; --&gt;&#39; . &quot;\n&quot;; echo $info; endif; }</code></pre> <p>The problem with the above code is that is_page_template() always returns themes/hybrid/page.php and I don't know how to determine which "info" I need.</p> <p>Comments on the idea? I don't mind editing all of the template files since it's trivial to do so and maintenance would not be difficult, but it seems like the above customization would make hybrid even more flexible.</p> <p>Pat </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2262 Tue, 15 Dec 2009 05:35:43 +0000 Justin Tadlock 2262@http://themehybrid.com/community/ <p>This isn't really a major change in how things work now. Basically, I'm taking the code that already exists and wrapping it in a <code>do_shortcode()</code> call. So, if you filter it, you can use any shortcodes (from WP, the theme, plugins, etc.) to customize things.</p> <p>On top of that, I'm adding a few basic shortcodes that represent what the theme already does. If you really want to get crazy with things, you can combine it with this plugin:<br /> <a href="http://wordpress.org/extend/plugins/template-tag-shortcodes" rel="nofollow">http://wordpress.org/extend/plugins/template-tag-shortcodes</a></p> <p>The reason for this change is twofold:</p> <p>1) Asking average users to use a filter hook is tough enough. Asking them to figure out the mess that's going on within a filter hook's function is even tougher. So, we get rid of that second hurdle and clean things up.</p> <p>2) Translations, especially with the byline. I'm constantly changing a bit of code here and there, and this usually messes up a translation every time the theme is updated.</p> <blockquote><p> Will the comments code have the # of comments?</p> </blockquote> <p>Yes, it'll look the same as it does now.</p> <blockquote><p> You might want to leave it to the developer but being able to do something like [entry-published format="Y m d"] to output the date would be handy. Where format would be the regular PHP date format options.</p> </blockquote> <p>Yes, that attribute is available, but I caution against the use of it unless it's necessary for child theme design. Users should be able to set this themselves.</p> <blockquote><p> To add the Kyle's question, how will the author be displayed? Likely it will link to the archives, but what if that isn't wanted or they want to link to their external website?</p> </blockquote> <p>Nothing is changing here. The shortcode will link to the archives as always using the same WP functions. So, the WP filter hooks will still be available for plugins or themes to change.</p> <blockquote><p> It looks like some of the shortcodes could use some attributes. However, these are great for now and make customizing the byline that much easier.</p> </blockquote> <p>I very much agree that some attributes are needed. I'm going to try and stick with the minimum needed though, at least until we all give this feature a go and see how well it's working. </p> Patrick Daly on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2261 Tue, 15 Dec 2009 01:21:45 +0000 Patrick Daly 2261@http://themehybrid.com/community/ <p>To add the Kyle's question, how will the author be displayed? Likely it will link to the archives, but what if that isn't wanted or they want to link to their external website?</p> <p>It looks like some of the shortcodes could use some attributes. However, these are great for now and make customizing the byline that much easier. </p> Kyle D on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2260 Tue, 15 Dec 2009 00:54:16 +0000 Kyle D 2260@http://themehybrid.com/community/ <p>This looks awesome, Justin. </p> <p>Will the comments code have the # of comments?</p> <p>You might want to leave it to the developer but being able to do something like [entry-published format="Y m d"] to output the date would be handy. Where format would be the regular PHP date format options. </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2259 Mon, 14 Dec 2009 23:05:14 +0000 Justin Tadlock 2259@http://themehybrid.com/community/ <p><strong>New shortcodes</strong></p> <p>Building off my previous post, I want to mention the new shortcodes. These shortcodes are specific to entry-related stuff.</p> <pre><code>[entry-title] [entry-author] [entry-published] [entry-comments-link] [entry-edit-link] [entry-terms]</code></pre> <p>Anything I missed? </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2258 Mon, 14 Dec 2009 23:02:19 +0000 Justin Tadlock 2258@http://themehybrid.com/community/ <p><strong>apply_atomic_shortcode() function</strong></p> <p>I've mentioned context-aware filter hooks and using shortcodes for certain hooks a few times in this thread. What I'm doing is adding a new function called <code>apply_atomic_shortcode()</code>. This function gives you the context-aware hook while allowing you to input shortcodes.</p> <p>For example, the byline within the theme would look like this:</p> <pre><code>echo apply_atomic_shortcode( &#39;byline&#39;, $byline_text );</code></pre> <p>So, you could essentially create your own filter function that outputs this for the byline:</p> <pre><code>By [entry-author] on [entry-published] | [entry-comments-link]</code></pre> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2254 Sun, 13 Dec 2009 21:20:58 +0000 Justin Tadlock 2254@http://themehybrid.com/community/ <blockquote><p> While I got your attention... when will you be making 0.7b3 available? </p></blockquote> <p>Tomorrow, unless WP 2.9 is released then. I believe there's fewer than 10 tickets left for 2.9, so it might be out soon.</p> <blockquote><p> PS. I think some of the Hybrid News sites might get caught out with Hybrid's new templates hierarchy (like I discovered on my test site) - especially those sites that have modified child theme templates. </p></blockquote> <p>I'll be making sure the change in hierarchy is noticeable to everyone when the release is ready. </p> Robert S on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2253 Sun, 13 Dec 2009 19:36:21 +0000 Robert S 2253@http://themehybrid.com/community/ <p>Justin,</p> <p>The positive thing that has come out of this for me is that I now have a test site setup with the following:</p> <p>1) A WP installation that can be updated via subversion.<br /> 2) A duplication from live of data and plugins.<br /> 3) The ability to test newer releases of Hybrid (+WP, + plugins) as they become available.</p> <p>Something I have wanted to do for a long time!</p> <p>Robert</p> <p>PS. I think some of the Hybrid News sites might get caught out with Hybrid's new templates hierarchy (like I discovered on my test site) - especially those sites that have modified child theme templates. </p> Robert S on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2249 Sun, 13 Dec 2009 07:41:08 +0000 Robert S 2249@http://themehybrid.com/community/ <p>Justin,</p> <p>I feel like a "dick"! My fault again... issue with taxonomy-category.php is not an issue. Meaning testing so far with WP 2.9 and Hybrid 0.7 is looking good.</p> <p>Apologies for raising three false alarms in a row!</p> <p>While I got your attention... when will you be making 0.7b3 available?</p> <p>Robert </p> Robert S on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2248 Sun, 13 Dec 2009 03:20:16 +0000 Robert S 2248@http://themehybrid.com/community/ <p>Justin,</p> <p>Test server setup as follows:<br /> - Test site setup on different domain + on different server<br /> - WP 2.9b2<br /> - Hybrid 0.7b2<br /> - News Theme 0.2<br /> - copied data from live site to test site.<br /> - Ran search + replace changing "live.domain" to "test.domain" on copied db. </p> <p>Issue I am having now:</p> <p>Not able to get posts to display using the new taxonomy-category.php template. Have cut both Hybrid News Theme back to bare bones (ie allowing the templates from Hybrid 0.7 to handle the display rather than modified template in child theme) with the same result.</p> <p>Any ideas?</p> <p>Robert </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2247 Sat, 12 Dec 2009 20:47:14 +0000 Justin Tadlock 2247@http://themehybrid.com/community/ <p><strong>RE: Get the Image</strong></p> <p>WP just changed some stuff, so there might be some issues with Get the Image until I get Beta 3 out. If you're running the latest of trunk, you'll likely get a fatal error.</p> <p><strong>RE: Body Classes</strong></p> <p>Some things are changing here that will make specific "show" hooks impossible. The changes are something I'll address in a blog post. </p> Kyle D on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2244 Sat, 12 Dec 2009 15:40:14 +0000 Kyle D 2244@http://themehybrid.com/community/ <p>I'm not sure whether this is now the best forum, or the blog post on the beta release of 0.7, but one thing I noticed when helping someone out in the forums is that a lot of classes seem to be gone from the body class. Most noticeable would probably be the tag classes. I'm sure you've got good reasons for this. I'm just wondering if body classes might be something you want to consider adding an arguments filter to. For example - arguments such as: show-author-classes, show-tags-classes, show-date-classes, show-time-classes, show-browser-classes. I know hybrid_body_class is filterable now, but this might be a good way to make it even easier for the end user. </p> Robert S on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2243 Sat, 12 Dec 2009 14:14:31 +0000 Robert S 2243@http://themehybrid.com/community/ <p>Justin,</p> <p>My apologies for jumping the gun twice. The issue with "get_the_image" was fixed after I did some search and replacing throughout the test db. Remember that I am setting up a test site (based on a copy of live db) for the purpose of testing WP 2.9 and Hybrid 0.7. There are many places in the test db where the site URL needs to be updated to match the URL of the test site.</p> <p>"Search Regex" plugin by John Godley is an excellent tool for such work.</p> <p>Robert </p> Robert S on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2242 Sat, 12 Dec 2009 11:13:57 +0000 Robert S 2242@http://themehybrid.com/community/ <p>Justin,</p> <p>Ignore my reply re the "hybrid_site_title" issue. All is OK. I needed to adjust the search string (site title) in 'str_replace' for the name of my test site (which is different to live site). "Trupela Tok" versus "Trupela Test".</p> <p>The "get_the_image" not working remains an issue for me under 0.7b2.</p> <p>Robert </p> Robert S on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2241 Sat, 12 Dec 2009 10:42:52 +0000 Robert S 2241@http://themehybrid.com/community/ <p>Justin,</p> <p>In addition to the above... I have left the SEO box under Hybrid Theme settings as unticked - my approach to SEO is to allow Hybrid to do its thing plus a few of my own functions thrown in - this worked pretty well under 0.6.2.</p> <p>Robert </p> Robert S on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2240 Sat, 12 Dec 2009 10:36:49 +0000 Robert S 2240@http://themehybrid.com/community/ <p>Justin,</p> <p>Further testing... the following filter does not work under 0.7 (works OK under 0.6.2.</p> <pre><code>add_filter( &#39;hybrid_site_title&#39;, &#39;my_site_title&#39; ); function my_site_title( $title ) { $title = str_replace( &#39;bla bla bla...&#39;, &#39;amended bla bla bla...&#39;, $title ); return $title; }</code></pre> <p><em>(Note that I have replaced the contents of the "str_replace")</em>.</p> <p>Perhaps something I have overlooked in the 0.7 discussions/changes.</p> <p>Any input into this issue would be greatly appreciated.</p> <p>Robert </p> Robert S on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2239 Sat, 12 Dec 2009 09:38:06 +0000 Robert S 2239@http://themehybrid.com/community/ <p>Justin,</p> <p>For the life of me I cannot get get_the_image() to work on my front-page of Hybrid News theme. Had a look inside get_the_image packaged with 0.7 and noticed that there's an additional parameter 'the_post_image' - played with this and other combinations - no luck!</p> <p>Interesting thing... if I revert get_the_image back to 0.3.3 (as per Hybrid 0.6.2) all works as it should and my front-page displays as it should.</p> <p>I'm happy to do further testing but I'm kind of stuck where I should look next. My PHP skills are insufficient to debug this issue any further.</p> <p>Robert </p> Robert S on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2238 Fri, 11 Dec 2009 23:08:46 +0000 Robert S 2238@http://themehybrid.com/community/ <p>Justin,</p> <p>In order to test WP 2.9 + Hybrid 0.7 + News Theme I have setup a test site as follows:<br /> Test site setup on different domain + on different server<br /> WP 2.9b2<br /> Hybrid 0.7b2<br /> News Theme 0.2<br /> copied data from live site to test site. </p> <p>Mostly all looks OK except for the get_the_image() function. </p> <p>Has anything changed or anything I/we need to be aware of with WP 2.9 and Hybrid 0.7 in relation to get_the_image?</p> <p>Robert </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2224 Tue, 08 Dec 2009 05:48:43 +0000 Justin Tadlock 2224@http://themehybrid.com/community/ <p><strong>Switching the order of "Edit" and "Reply" in comment meta</strong></p> <p>When I want to reply to a comment, I often find myself wanting to hit the last link in the comment meta section. This link is "Edit" if I'm logged into the site. I'm thinking that moving "Reply" to the end is more intuitive.</p> <p>Thoughts? Objections? </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2223 Tue, 08 Dec 2009 00:19:32 +0000 Justin Tadlock 2223@http://themehybrid.com/community/ <p><strong>Custom theme settings page meta boxes</strong></p> <p>If you're a child theme or plugin developer, you may be interested in this tutorial for version 0.7:<br /> <a href="http://themehybrid.com/themes/hybrid/settings-page-meta-boxes" rel="nofollow">http://themehybrid.com/themes/hybrid/settings-page-meta-boxes</a> </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2222 Mon, 07 Dec 2009 23:54:39 +0000 Justin Tadlock 2222@http://themehybrid.com/community/ <p><strong>hybrid_get_textdomain() function</strong></p> <p>For those of you interested in using the "core framework" of Hybrid to build your own themes, I just created a function called <code>hybrid_get_textdomain()</code>. What this does is update all the core strings to the textdomain of the theme.</p> <p>The Hybrid theme's textdomain is <code>hybrid</code>. It's typically used like this:</p> <pre><code>_e(&#39;Some text.&#39;, &#39;hybrid&#39;); __(&#39;Some text.&#39;, &#39;hybrid&#39;);</code></pre> <p>If you created a parent theme using the framework core, your textdomain would be based off what <code>get_template()</code> returns, which is the folder of your theme. So, if your theme's folder was <code>super-duper</code>, you'd want to use <code>super-duper</code> when localizing your text strings.</p> <p>The theme will automatically change all the core stuff to look like this:</p> <pre><code>_e(&#39;Some text.&#39;, &#39;super-duper&#39;); __(&#39;Some text.&#39;, &#39;super-duper&#39;);</code></pre> <p><strong>Do I have to use this new function?</strong></p> <p>No. I'm just documenting this here so everyone that creates parent themes will know that the core strings will be localized according to their theme. </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2219 Mon, 07 Dec 2009 10:30:17 +0000 Justin Tadlock 2219@http://themehybrid.com/community/ <p><strong>Beta testing</strong></p> <p>If you want to beta test version 0.7, check out this post and grab the download:<br /> <a href="http://themehybrid.com/archives/2009/12/hybrid-0-7-beta-release" rel="nofollow">http://themehybrid.com/archives/2009/12/hybrid-0-7-beta-release</a> </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2218 Mon, 07 Dec 2009 10:29:32 +0000 Justin Tadlock 2218@http://themehybrid.com/community/ <p><strong>Redefining the template hierarchy</strong></p> <p>Here's a blog post on how version 0.7 will change the WP template hierarchy:<br /> <a href="http://themehybrid.com/archives/2009/12/redefining-the-template-hierarchy-in-hybrid-0-7" rel="nofollow">http://themehybrid.com/archives/2009/12/redefining-the-template-hierarchy-in-hybrid-0-7</a> </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2217 Mon, 07 Dec 2009 10:28:20 +0000 Justin Tadlock 2217@http://themehybrid.com/community/ <p><strong>Sidebar?</strong></p> <p>Since it looks like my attempts at getting the "sidebar" terminology changed has gone absolutely nowhere, I'm going to use the term with the templating system.</p> <p>This change is to keep the theme files organized. Currently, the widget areas with templates look like this:</p> <pre><code>aside-primary.php aside-secondary.php aside-subsidiary.php utility-before-content.php utility-after-content.php utility-after-singular.php</code></pre> <p>In keeping with my organization of the templating system, these will all have the prefix "sidebar-" in the new version:</p> <pre><code>sidebar-primary.php sidebar-secondary.php sidebar-subsidiary.php sidebar-before-content.php sidebar-after-content.php sidebar-after-singular.php</code></pre> <p>At such time that the WordPress community comes up with a more appropriate name, the names of these templates will also change. Until then, I'll just use what the rest of the WordPress world is using. </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/5#post-2213 Sat, 05 Dec 2009 18:27:33 +0000 Justin Tadlock 2213@http://themehybrid.com/community/ <p><strong>Recoded the theme settings page</strong></p> <p>I had already spruced up the theme settings page a small bit, but recent discussion made me reevaluate this page:<br /> <a href="http://themehybrid.com/support/topic/hybrid_child_settings" rel="nofollow">http://themehybrid.com/support/topic/hybrid_child_settings</a></p> <p>So, in 0.7, you'll see a whole new theme settings page. While it won't look too different (aside from the already-mentioned removal of many settings), it'll be completely different.</p> <p>Here's a screenshot of the new page:<br /> <a href="http://justintadlock.com/blog/wp-content/uploads/2009/12/settings-page-07.png" rel="nofollow">http://justintadlock.com/blog/wp-content/uploads/2009/12/settings-page-07.png</a></p> <p>The important thing about the new settings page is that it uses meta boxes (just like those meta boxes for the post editor). They can be sorted and/or hidden by the user. But, even more important is that child theme and plugin developers can make meta boxes specifically for the theme settings page, easily extending it.</p> <p>Anyone familiar with the <code>add_meta_box()</code> function will be able to do this. I'll be writing a tutorial on how to do this soon too. As a test of how easy it would be to add custom meta boxes, I wrote a plugin in about 5 minutes that adds the Theme Hybrid blog feed as a new meta box:<br /> <a href="http://justintadlock.com/blog/wp-content/uploads/2009/12/th-community-meta-box.png" rel="nofollow">http://justintadlock.com/blog/wp-content/uploads/2009/12/th-community-meta-box.png</a> </p> Justin Tadlock on "Hybrid version 0.7 discussion" http://themehybrid.com/community/topic/hybrid-version-07-discussion/page/4#post-2194 Mon, 30 Nov 2009 01:17:03 +0000 Justin Tadlock 2194@http://themehybrid.com/community/ <p><strong>Attachment templates</strong></p> <p>I changed this recently but forgot to mention it. Attachment templates are getting a slight change as well.</p> <p>Normally, WordPress looks for attachments like so:</p> <pre><code>$mime[0].php $mime[1].php $mime[0]_$mime[1].php attachment.php</code></pre> <p>There's not enough structure there. Plus, since we're making a consistent hierarchy for all other post types, I think attachments deserve something similar.</p> <p>So, what I'm doing is changing this by adding "attachment-" in front of the file name:</p> <pre><code>attachment-$mime[0].php attachment-$mime[1].php attachment-$mime[0]_$mime[1].php attachment.php</code></pre> <p>So, with image attachments, the hierarchy would look like this:</p> <pre><code>attachment-image.php attachment-jpg.php attachment-image_jpg.php attachment.php</code></pre> <p>I actually still think this is a bit backwards because the hiearchy is switched around. I may even go as far as switching it to this, creating a more correct cascading effect:</p> <pre><code>attachment-image_jpg.php attachment-jpg.php attachment-image.php attachment.php</code></pre>