⚈ Kuopassa.net

Lisää kertomuksia netistä. 摆烂

So, Textpattern finally got front-side theme support

Front-side themes starting from Textpattern version 4.7.0 can be installed by uploading them to themes folder. A valid theme ought to have a main folder and inside that manifest.json file that contains an arrayful of details about the theme in question. Other components are put inside these folders: forms, pages and styles. The styles folder is for CSS files if such files are managed using Textpattern’s admin interface.

Structure of an actual front-side theme

This theme is called Linear Gradient (screenshot, download), so root folder is named linear-gradient. It has no image files. In the list below numbers represent how deep in folder hierarchy those components are. 1 = top, 4 = deepest.

  • linear-gradient (1)
    • forms (2)
      • article (3)
        • about.txp (4)
        • archive.txp (4)
        • article_listing.txp (4)
        • default.txp (4)
        • search_results.txp (4)
      • comment (3)
        • comment_form.txp (4)
        • comments.txp (4)
        • comments_display.txp (4)
      • file (3)
        • files.txp (4)
      • link (3)
        • plainlinks.txp (4)
      • misc (3)
        • footer.txp (4)
        • header.txp (4)
        • images.txp (4)
    • pages (2)
      • about.txp (3)
      • archive.txp (3)
      • default.txp (3)
      • error_default.txp (4)
    • styles (2)
      • default.css (3)
    • manifest.json (2)
About the author