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
Hybrid 0.9 discussion « Community

Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

The community forums are currently being phased out. At the end of February or early March 2012, you will no longer be able to post here. This is because the entire site is being restructured. Please use the main forums for discussions.

Hybrid 0.9 discussion

  1. With the latest release of Hybrid 0.8 out, it's time to start focusing on version 0.9 and the future. So, this is the official Hybrid 0.9 discussion topic.

    Please share any ideas you have about making the theme better.

    Quicker release cycle

    Unlike the last couple of versions, I want this release to come out within 3 months. The time between 0.7 and 0.8 was just over six months. This is because 0.8 was following the WP release cycle, which kept getting pushed back.

    Since WP 3.1 development won't even start for another two months, Hybrid 0.9 will be released before it. This will give us a chance to really fine tune everything with 0.8 and prepare for a big 1.0 release.

    Integration with my forum plugin

    For those of you unaware, I'm building a forum plugin for WordPress. It's still a work in progress, but it should be released before 0.9, so it'll be a perfect time to add the integration. Basically, it'll just be a few extra templates.

    I'm not 100% sure on this yet though. If nothing else, we'll at least have a templates pack available for download.

    Integrate some widgets

    This is another thing not set in stone, but I'd like to see how feasible it would be to integrate the Tags and Categories widgets into a single Taxonomy/Terms widget. Both widgets essentially do the same things with a few minor differences.

    More folders, fewer files

    Someone brought this up in the support forums a couple of weeks ago, and I've already started this with 0.8.

    The idea would be to put non-essential things into sub-folders. For example, Hybrid's language files would go into /languages and document files (readme.html and license.txt) would go into a /docs folder.

    Experiment with "modular" templates

    I'll cover this later, but I just wanted to note it here so I wouldn't forget about it.

    Handle archive description/info areas

    Currently, all archives and search results have a section at the top of the content area that's hardcoded in. It's rare to have a case where this needs to be changed, but I'd like to look into some solutions that allow this to be filtered completely.

    I'd also like to come up with a useful CSS class name that reflects all of these boxes. That way, they can be styled with a single style rule. The more-specifc class names will remain for styling them individually.

    Custom stylesheets / Art direction

    I'd really like to allow per-post stylesheets to be added. For those of you familiar with "art direction," this could come in handy.

    For example, you could add a URL to the Stylesheet custom field that would either a) overwrite the theme's style.css or b) be added along with the theme's style.css. I'm leaning toward option A since that allows for more flexibility.

    Use hybrid_get_textdomain() in the templates

    The hybrid_get_textdomain() function returns the textdomain used in translations. Currently, only the core framework inside /library uses this function. The templates have a hardcoded hybrid. I'd like to update the templates to properly use this.

    Allow developers to add/remove theme support of features

    add_theme_support() is an awesome WP function. It allows you to declare that your theme uses specific features. If set, it loads the feature asked for.

    We can also make use of this by allowing people to add/remove certain features. For example, if you didn't want to use the breadcrumb trail, you'd be able to do something like this in your child theme's functions.php:

    remove_theme_support( 'breadcrumb-trail' );

    This will give us loads of flexibility. Are there any features of Hybrid you'd like to be able to easily enable/disable like this?

  2. Built-in pagination

    This is something I've definitely been wanting to do for a while. And, I had to learn how to use the paginate_links() WP function recently, so this should be a neat feature to add.

    Basically, to use it, you'd only need to drop this in your child theme's functions.php:

    add_theme_support( 'pagination' );
  3. Hi Justin,
    Thanks for the great work you have done.
    I am very impressed with your code.
    Everytime someone asks about a Theme Framework, Hybrid is the word that comes out of my mouth.

    I have a few suggestions / comments..

    *Use hybrid_get_textdomain() in the templates*
    I noticed that "hybrid" was hardcoded sometimes and some others it was not.
    This will help to include hybrid in other projects

    *Allow developers to add/remove theme support of features*
    One feature that I would like to be supported with this feature is the hybrid meta box

    *More folders, fewer files*
    I really like the change in 0.8
    I have modified the structure of childthemes (for a based on hybrid-news).
    I dont know if it is convenient to have it in hybrid,
    but from day-to-day work, i have found placing certain folders that you access all the time under library/ it is a bit cumbersome.

    Right now my project's childtheme structure looks like:
    themename/
    -- css/
    -- images/
    -- js/
    -- functions/
    -- library/languages/

    * Other feature requests *

    BreadCrumb Trails
    I tried to modified the breadcrumb-trail and its a bit complicated the current filter "breadcrumb_trail" takes the whole string,
    I modified the core code to add a new filter called "breadcrumb_trail_array" to filter the array. (that way you can manipulate the end result without the need to use reg.exps)
    here is the .diff: http://wordpress.pastebin.com/1xCA3sdn

    Translating the PO file in 0.8, i realized in some templates, you translated some strings.

    <h1 class="archive-title date-title week-title"><?php printf( __( 'Week %1$s of %2$s', 'hybrid' ), get_the_time( __( 'W', 'hybrid' ) ), get_the_time( __( 'Y', 'hybrid' ) ) ); ?></h1>
    I dont think W and Y, should be translated.
    This can break your templates, since if i translate W and Y for the equivalent in my language it will give a total different result as that value is interpretted differentely by date()
    Maybe you meant a filter for them.

    This happens in minute.php, week.php, year.php, library/extensions/breadcrumb-trails.php, library/functions/hook-filters.php, with other strings other than W and Y (look for get_the_time() ).

    also the .pot file look like it hasn't been updated right before creating the .zip file.
    some strings are obsolete (referencing to a draft file Copy.php).

    That´s it for now.
    I have the hybrid-es_ES.po updated to 0.8
    let me know where it should be sent or uploaded to.

    let me know what you think about all this,
    - wjm

  4. Justin,
    also source for the uncompressed css and js files should be provided. maybe under a subfolder called src/ in css/ and js/

  5. Custom post type archive pages in Hybrid 0.9?

  6. RE: Custom post type archive pages in Hybrid 0.9?

    I'm probably going to add a page template for this in the next Hybrid Page Templates pack. Since this would need to be modified to suit the custom post type, I think it'd fit better there than within the theme.

    But, I'm hoping WP will eventually allow for opt-in archive pages for post types.

  7. RE: RE: Allow developers to add/remove theme support of features

    One feature that I would like to be supported with this feature is the hybrid meta box

    There's already support for this within WP. But, this particular case leans more toward post type support than theme support, which is what I want to go with in the next version.

    RE: Breadcrumb Trail

    I modified the core code to add a new filter called "breadcrumb_trail_array" to filter the array. (that way you can manipulate the end result without the need to use reg.exps)

    That's a good idea, but there's no context for the elements of the array. For it to be a viable solution, I'd need to figure out a way to give everything appropriately-named keys that represent the values of the array.

    RE: Translating time/date

    Translating the PO file in 0.8, i realized in some templates, you translated some strings.

    This can break your templates, since if i translate W and Y for the equivalent in my language it will give a total different result as that value is interpretted differentely by date()
    Maybe you meant a filter for them.

    I can see where they're not needed in some places, especially when dealing with just numbers like Week %1$s of %2$s. We need to figure out in what instances they are/aren't needed.

    Also, there is a filter: gettext.

  8. Your plans sound great Justin.

    Allow developers to add/remove theme support of features

    There are plenty of people post in this forum that might wish to do that but struggle with the PHP. Have you considered expanding the theme options panel? At present the Hybrid menu can be turned off, but it might be good to add an option to turn off breadcrumbs or remove certain widget areas.

    For the breadcrumbs though, rather than just turn on or off, it might be better to allow people to specify the point (ie the hook) at which it gets loaded. Things can be moved around in CSS but moving elements outside their natural flow isn't ideal.

    Kate

  9. Allow developers to add/remove theme support of features

    Would be great if I can easily disable all feed and only allow feed in a specific category or specific anything.

  10. RE: Allow developers to add/remove theme support of features

    When I talk about this, I'm talking about child theme developers coming in and having the option to support certain extensions (look in the hybrid/library/extensions folder) within their child theme. For example, the Breadcrumb Trail extension may not fit in with the theme at all. The child theme dev could simply declare that his child theme doesn't support this feature. This is quite different than disabling something or changing how something works.

    There are plenty of people post in this forum that might wish to do that but struggle with the PHP. Have you considered expanding the theme options panel? At present the Hybrid menu can be turned off, but it might be good to add an option to turn off breadcrumbs or remove certain widget areas.

    For the breadcrumbs though, rather than just turn on or off, it might be better to allow people to specify the point (ie the hook) at which it gets loaded. Things can be moved around in CSS but moving elements outside their natural flow isn't ideal.

    Expanding the theme options is pretty much out of the question. If anything, I'd like to remove all theme options. Theme options tend to make the theme less flexible for child theme developers, especially when dealing with things that are displayed on the site.

    Breadcrumbs, in particular, can be controlled via a child theme. How would you propose handling this if a child theme author did something custom with the breadcrumb trail outside of the default? There's no way to know how to handle the unlimited number of scenarios. Widget areas? Simply don't use the ones you don't need. Not much different than a theme setting.

    Would be great if I can easily disable all feed and only allow feed in a specific category or specific anything.

    That's well outside theme territory. A plugin would need to handle this.

  11. Hi Justin

    Just a quick question, how much ready is Hybrid 0.9 ?

    If I were to download Hybrid 0.9 from the trunk
    http://svn.locallylost.com/themes/hybrid/trunk/

    which the style sheet says Version: 0.9 Alpha-1
    ( I will use it as a parent theme for one of my project.)

    will it be a lot of changes to be made onces it's officially released ?

    Thank you very much.

  12. I wouldn't recommend working from 0.9 alpha right now. There's a ton of stuff I've got to clean up and test to make the merge with the Hybrid Core framework.

    If you want to test it, that's fine. Just don't use it on a live site.

  13. Probably the smallest request ever:

    change this
    <body class="<?php hybrid_body_class(); ?>">
    into this:
    <body id="top" class="<?php hybrid_body_class(); ?>">

    This way, you can link to #top without putting

    <a name="top"></a> at the top of the page

Reply

You must log in to post.

Topic Info

Topic Tags: