TXP Make

PHP in templates is so last decade

hcg_themes

hcg_themes is a modified version of the hcg_templates plugin.

  • The default folder name was changed to Themes.
  • The form naming standard is now form_type.form_name.txp.
  • Pages and forms now have a .txp extension.

TXP theme folder layout:

  • /files
  • /images
  • /textpattern
  • /themes
    • /default
      • /forms
        • article.article_listing.txp
        • article.default.txp
        • article_search_results.txp
        • comment.comment_forms.txp
        • comment.comments_display.txp
        • comment.popup_comments.txp
        • file.files.txp
        • link.plainlinks.txp
        • misc.images.txp
        • misc.search_input.txp
      • /img
        • divider.gif
        • logo.gif
      • /js
        • jquery.js
      • /pages
        • archive.txp
        • default.txp
        • error_default.txp
      • /styles
        • default.css

Download

  • hcg_themes_v0.5.txt (Textpattern 4.3.0 and above)
    • Create the /themes folder in the root of your Textpattern install.
    • Make the /themes folder writable by the web server.
    • Install hcg_themes via Admin / Plugins.

Features

  • Import a complete theme set – Pages, Forms and Styles.
    • The plugin will make a backup of your current site structure before importing a theme.
  • Export your themes for archive purposes or offline editing.

Plugins