Fork me on GitHub

Best Theme To Template... GO!  Bottom

  • What's the best theme to take apart to see what all the new theme engine can do, and get a good idea of how to build a theme for VERSION 1.3

    I don't wanna waste anytime on 1.2.3 now that I learned 1.3 breaks the backwards compatibility...
    Thanks in advance!

    --


    With the advent of modern technology, sites like Twitter, and the Facebook Virus...
    I think we should all breathe a collective sigh of relief that I got here in time...
    - randomblink
  • 1.3 won't break the compatibility in this topic.
    Further rework of the theme engine will be available on the next minor release icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • I haven't yet discovered all the new coolness about 1.3's theme engine. But I have already built one and, for the most part, all I really did was change the old delimiters

    Code

    <!--[ ]-->
    to the new delimiters

    Code

    { }


    In cases where there's a "PN" at the front of a tag name, simply removing "PN" from it seems to work. For example, pnmodgetname would now be modgetname.

    For inserting text in the templates, just use the gt tag. For instance, a menu item might be

    Code

    {gt text="Home"}


    I guess what I'm saying is that the transition is pretty easy, even if you you want to start with 1.2.3. icon_smile

    --
    Harness Technology
  • Indeed, the delimiters and the plugins changed on 1.3... I have all the planned features for the Theme Engine on my brain icon_rolleyes

    --
    - Mateo T. -
    Mis principios... son mis fines
  • I based all my changes to the Mark West theme collection off the SeaBreaze Theme. Following SeaBreaze's structure I have component-ised the page templates, so that multiple pages (when used or created) can share a single copy of the head, header or footer information as an include, instead of having to maintain that info across several pages. As the other comments stated it is pretty easy. If you can build a single web page, you will find it easy to convert it into a basic site theme. The rest is getting to know your "in-use" module styles and the core style sheet to blend those into your own design in your theme's style folder.
    @Wendell Hi, nice to see you again. jump
    @Metao You are a tease icon_razz

    --
    Paul
    ____________________________________________________
    "...Humor, ITs just a state of mind"
    TakeIT2.CoM :: Open Destination
    ...my site is a perfect example of why doctors do not operate on them self :)
  • I guess we never really answered the OP's question... but I don't think there are any themes for 1.3 actually released, are there?

    I have one that I've been working on and I'd be happy to provide the master template as a sample, if anyone is interested. Just PM me with an email address and I'll send it along. The theme can be seen at http://www.willvalley.com for now, but only temporarily.

    --
    Harness Technology
  • I've done the conversion of 960theme, and it's updated in SVN, but I haven't rolled it out because 1.3 is in beta still.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • I suppose the only things to add and watch in your theme
    • All themes theme folder have a single leading capital letter if your theme name starts with letter. (i would like to discourage the use of underscores in the folder name as well. The version file attribute for display name creates an opportunity to convey spaces in your theme name if you like. But we all know how ugly a URL can look with spaces and character formatting.) simple names with the appearance of one word names are optimal. _ Underscores are legal but ugly in many ways. Themes I personally create will start with T2 - e.g. T2motion (coming soon to the extdb) icon_biggrin ...shameless plug
    • use of gettext strings for any plain text - use it in you image alt=values and your link title=values as well
    • the lang folder is now locale for your language files extracted from the gettext strings
    • the newest change is the use of the .tpl extension for all templates - no more htm or HTML - this requires adjusting your ini files as well !


    Themes are Dressing for Success - icon_cool

    @Wendell - if you download a beta copy of 1.3 from SVN or hudson, SeaBreaze is in there as well as Andreas08.

    Paul



    Edited by TakeIT2 on Jun 25, 2010 - 01:09 PM.
  • So, the .ini files will have the last word?

    As the module-developer have the choice to use whatever pattern and extensions for the module, the themers can choose the fav extension from the .ini files? icon_razz

    I there's a guide about how to use code highlighting on .tpl
    I have no problems icon_biggrin

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Well all templates, theme included really are Smarty templates? and the theme/renderer is processing the output to HTML, right?

    --
    Paul
    ____________________________________________________
    "...Humor, ITs just a state of mind"
    TakeIT2.CoM :: Open Destination
    ...my site is a perfect example of why doctors do not operate on them self :)
  • TakeIT2

    Well all templates, theme included really are Smarty templates? and the theme/renderer is processing the output to HTML, right?

    Great question...

    --


    With the advent of modern technology, sites like Twitter, and the Facebook Virus...
    I think we should all breathe a collective sigh of relief that I got here in time...
    - randomblink
  • TakeIT2

    Well all templates, theme included really are Smarty templates? and the theme/renderer is processing the output to HTML, right?

    Usually the templates I "outsource" contains some logic and yes, they needs to be parsed by Smarty. Sometimes people can have templates for their Ads or "static stuff", I do that with plugins mostly.

    Indeed, in the final we only get HTML icon_razz
    I just want to see if those who likes the .htm can preserve it through the .ini files, even when the Theme Engine defaults changes to .tpl

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Quote

    I just want to see if those who likes the .htm can preserve it through the .ini files, even when the Theme Engine defaults changes to .tpl


    my understanding is since the filename is specified completely in the renderer call, it frankly doesn't matter if it is .htm, .tpl or .xyz

    e.g.

    Code

    $render->fetch("my/dir/structure/myfulltemplatename.xyz");
  • Hi Craig
    That's for modules, but theme defaults works different on the Theme Engine icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • 0 users

This list is based on users active over the last 60 minutes.