Last edit 2010-10-04 18:15:02 by ccandreva [ And themename/fonts to list of standard directories. ]

Additions

Anatomy of a Zikula theme


A theme is collection of files organized with a specific layout. The theme engine interprets these files to present the layout of the content produced by modules and blocks.

All themes are placed within the 'themes' directory of Zikula site. Within the theme directory a number of files and directories are required. At the top level of the theme there must be the following structure:
  • <theme name>/version.php - a php file containing theme information that gets imported into the Database
  • <theme name>/images/ - directory containing theme images.
  • <theme name>/style/ - directory containing theme stylesheets.
  • <theme name>/fonts/ - directory containing web fonts used by the theme.
  • <theme name>/plugins/ - directory containing theme specific template plugins.
  • <theme name>/lang/ - directory containing theme language files.
  • <theme name>/templates/ - directory containing templates that contain the markup of the theme.

Within the templates folder the directory structure will, depending on the theme configuration files, typically contain:
  • <theme name>/templates/master.htm - page template used to render all pages not having a specific page template assigned.
  • <theme name>/templates/blocks/ - directory containing block templates.
  • <theme name>/templates/modules/ - directory containing page templates used to render pages with a specific page template assignment.
  • <theme name>/templates/modules/<other directories> - directories containing template overrides for modules.

Lastly:
  • <theme name>/templates/config/ - the heart of the theme. directory containing the ini files that define what templates are used to render what parts of all output, what theme variables exist, what palettes are available, etc.



Theme Authoring Index Page
CategoryDeveloperDocs


Deletions

Anatomy of a Zikula theme


A theme is collection of files organized with a specific layout. The theme engine interprets these files to present the layout of the content produced by modules and blocks.

All themes are placed within the 'themes' directory of Zikula site. Within the theme directory a number of files and directories are required. At the top level of the theme there must be the following structure:
  • <theme name>/version.php - a php file containing theme information that gets imported into the Database
  • <theme name>/images/ - directory containing theme images.
  • <theme name>/style/ - directory containing theme stylesheets
  • <theme name>/plugins/ - directory containing theme specific template plugins
  • <theme name>/lang/ - directory containing theme language files
  • <theme name>/templates/ - directory containing templates that contain the markup of the theme

Within the templates folder the directory structure will, depending on the theme configuration files, typically contain:
  • <theme name>/templates/master.htm - page template used to render all pages not having a specific page template assigned
  • <theme name>/templates/blocks/ - directory containing block templates
  • <theme name>/templates/modules/ - directory containing page templates used to render pages with a specific page template assignment
  • <theme name>/templates/modules/<other directories> - directories containing template overrides for modules

Lastly:
  • <theme name>/templates/config/ - the heart of the theme. directory containing the ini files that define what templates are used to render what parts of all output, what theme variables exist, what palettes are available, etc.



Theme Authoring Index Page
CategoryDeveloperDocs



_EDITED 2007-06-25 22:56:17 by randomblink [ ]


_EDITED 2007-06-25 22:55:56 by randomblink [ ]

Additions
Theme Authoring Index Page


Oldest known version of this page was edited on 2007-02-05 08:17:33 by Teb [ Adjusted path for template overrides ]

Anatomy of a Zikula theme


A theme is collection of files organized with a specific layout. The theme engine interprets these files to present the layout of the content produced by modules and blocks.

All themes are placed within the 'themes' directory of Zikula site. Within the theme directory a number of files and directories are required. At the top level of the theme there must be the following structure:
  • <theme name>/version.php - a php file containing theme information that gets imported into the Database
  • <theme name>/images/ - directory containing theme images.
  • <theme name>/style/ - directory containing theme stylesheets
  • <theme name>/plugins/ - directory containing theme specific template plugins
  • <theme name>/lang/ - directory containing theme language files
  • <theme name>/templates/ - directory containing templates that contain the markup of the theme

Within the templates folder the directory structure will, depending on the theme configuration files, typically contain:
  • <theme name>/templates/master.htm - page template used to render all pages not having a specific page template assigned
  • <theme name>/templates/blocks/ - directory containing block templates
  • <theme name>/templates/modules/ - directory containing page templates used to render pages with a specific page template assignment
  • <theme name>/templates/modules/<other directories> - directories containing template overrides for modules

Lastly:
  • <theme name>/templates/config/ - the heart of the theme. directory containing the ini files that define what templates are used to render what parts of all output, what theme variables exist, what palettes are available, etc.



CategoryDeveloperDocs
CategoryUserDocs