Mecha CMS

Add extra functionality to the core engine.

Shield

Table of Content

General automation systems to accelerate theme development.

Feature 

  • Detect asset path relative to the .\lot\asset and .\lot\shield\<id>\asset folder 1
  • Detect shield path relative to the .\lot\shield\<id> folder 1
  • Add HTML classes automatically to the <html> element based on the current page conditional statements.

Class 

These HTML classes will be added to the <html> element that has a class attribute:

  • error-404 → Will be added if there is no page or pages to load.
  • has-next → Will be added if it is possible to go to the next page.
  • has-page → Will be added if there is a page to load.
  • has-pages → Will be added if there are pages to load.
  • has-parent → Will be added if current page has parent page.
  • has-previous → Will be added if it is possible to go to the previous page.
  • has-step → Will be added if page URL contains the page offset.
  • is-$ → Will be added on home page view.
  • is-error → Will be added if there is no page or pages to load.
  • is-home → Will be added on home page view.
  • is-page → Will be added on item view.
  • is-pages → Will be added on items view.
  • is-search → Will be added on search results view.

  1. Where <id> is the active shield folder. 

0 Comments

No comments yet.