Drupal - Construindo template com ZEN Theme

De Pontão Nós Digitais
Revisão de 20h35min de 13 de novembro de 2013 por Felipecabral (discussão | contribs)
Ir para navegaçãoIr para pesquisar

ZEN Template

ZEN é um simples e poderoso tema para Drupal, feito com HTML5 e design responsivo. Se você está montando sua própria instalação standart drupal, você poderá facilitar o trabalho utilizando ZEN ao invés dos temas padrão Galard, Stark ou Bartik. Esse tema tem bastante documentação em foruns de ajuda, código amigável, comentários em php, html, css e SASS. Até o presente a maior parte dessa documentação é em inglês, mas já há algum material em português.

Por que você deveria usar ZEN? E por que você deveria criar seu próprio tema como um sub-tema ao invés de um tema padrão? Muitas razões.

Se você estiver rodando uma instalação Drupal 7.x e pensa em trabalhar com ZEN 5.x, então você irá precisar do SASS e do Compass Tools. Eles não estão instalados por padrão na maior parte das distribuições linux (e com certeza não no Rwindos). Mas você pode encontrar alguns tutoriais de ajuda na internet de como obtê-lo, como esse: https://drupal.org/node/1548946

Por que usar ZEN?

Por que usar ZEN? 2

Por que usar ZEN? 3

Por que usar ZEN? 4

Why should you create your theme as a Zen sub-theme as opposed to just modifying an existing theme?

   Support: Providing or receiving support for any theme you develop in Drupal’s normal support forums can be difficult. The primary reason for this difficulty is that the person trying to provide support does not have any of the code you are using in your theme and/or they have never before seen the code you are using. If you have modified an existing theme, sometimes the only answer you will get to your support question is “Well, it works fine in the original theme.” Because you have modified the theme’s code in an unknown way, it will be extremely difficult to get help.
   However, if you are following the Zen sub-theme guidelines for developing your theme (i.e. don’t modify any of Zen’s core files), any support issues become much simpler to deal with. You are modifying the STARTERKIT files in known ways. Zen core is carefully tested so many people know how it works and reacts in various browsers. And any differences you might be experiencing between your sub-theme and Zen core can be quickly isolated to override functions in your template.php or to override .tpl.php files.
   Bug fixes: Occasionally there will be bugs found in Zen core. If you have modified any of Zen’s core files, it will be difficult for you to incorporate any of those bug fixes into your modified version of Zen. If, on the other hand, you have only modified files in your Zen sub-theme, getting those bug fixes becomes much easier; just replace the old Zen core files with the new ones. If your sub-theme overrides the PHP or CSS where the bug existed, the fixes will be carefully documented online so that you can more easily update your sub-theme.
   New features: Occasionally there will be new features that will be added to Zen core. Again, as long as you haven’t modified any Zen core files, you can easily add those features to your sub-theme with minimal or no extra coding.


Referências: