May 072012
 
Design

Okay, so now I can finally check the HTML5 box off Suffusion’s checklist. Version 4.2.0 was approved earlier today and it has the following changes:

  1. New Features:
    1. HTML5 and Semantic markup

      I have converted Suffusion from being an XHTML transitional theme to an HTML5 theme. Often when theme developers say their theme is HTML5 compatible, they mean that their theme uses <!DOCTYPE html>. Suffusion does that of course, and also gives you nice semantic markup out of the box. If you are wondering what semantic markup means, I explained the term and the attendant changes in a post in March. If you go through that post, you can see the list of markup element changes as well.

      If you have Custom Styles, make sure you are using the new selectors for them, as per the linked post above.

    2. Extensive Support for Custom Post Types
      I have done two things on this front:
      1. Provided a new page template called “Custom Post Type Archive”: When you create a page, you can assign this template to the page and save this page as a draft. Upon saving you will see a new tab in the Additional Options for Suffusion titled Custom Post Type Archive. In this tab you can pick things such as which post type you want to show, what kind of layout you want for it (Full posts, Excerpts, Tiles, Mosaic or List), what taxonomies you want to show for it, where you want the bylines displayed, etc.
      2. Provided a new set of options under Suffusion Options → Custom Types → Layouts: This is for the single post displays for Custom Post Types.
    3. New Action Hooks
      The following new action hooks have been added:
      1. suffusion_before_post – Executed before every post. This takes 3 parameters: the post id, the layout (blog, tile or mosaic) and the current post index.
      2. suffusion_after_post – Executed after every post. This takes 3 parameters: the post id, the layout (blog, tile or mosaic) and the current post index.
  2. Changed Features
    1. I changed the tile layout / magazine layout / custom layout from a JavaScript-based layout to a CSS3-based layout. This should make sure that the tile spacing is more accurate. Of course, there is IE, which doesn’t support the requisite CSS attributes. For them the JS-based former approach should be used.
    2. I have upgraded the embedded JQuery Masonry script to the latest version.
    3. I have also optimized some of the JS and CSS within the theme appropriately.
  3. Bug Fixes
    Since I released a bunch of patches over the past few weeks, there is only one fix, which is for the bug with respect to duplicate content from the Featured Content section showing up in the posts below.

There are a couple of minor niggles, neither of which is a bug. These come down mostly to my extreme level of exhaustion last week:

  1. I forgot to update the version number that shows up in the back-end. It still shows up as “4.1.5.b4”, while it should be “4.2.0”. This doesn’t affect any behaviour, mind you. It is just something that I missed changing.
  2. I also forgot to update the PO file for translation. Again, the main impact is in the back-end translations and it will not affect your site’s visitors.

A big thank you to the beta testers for this version, Mark et al!

  29 Responses to “Suffusion Version 4.2.0”

Comments (27) Pingbacks (2)
  1. [...] Blog auf Version 3.3.2 geupdated, und das Suffusion-Theme (das unseren Blog gerade bunt macht) auf Version 4.2.0. Hat alles geklappt, betrifft den geneigten Blogleser jedoch weniger; aber wenn ihr Dienstag [...]

     
  2. [...] sitio web utiliza la versión 4.2.0 del tema Suffusion, traducido al español. La traducción es la misma que he elaborado para la [...]

     

 Leave a Reply


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>