Maksoft.net

# Themes Architecture

This document defines the official filesystem structure, rules and contracts
for the `/themes` directory.

The `/themes` layer is responsible only for presentation.
All business logic, plugins and data access are handled by the CMS core.

Themes consume runtime data objects provided by the CMS and render output using
engine-specific conventions.

---

# DIRECTORY STRUCTURE

/themes

├── README.md

├── ms/
│ ├── _bootstrap.php
│ ├── theme.json
│ ├── cms_assets.php
│ ├── functions.php

│ ├── helpers/
│ │ ├── block_dom.php
│ │ ├── meta_tags.php
│ │ ├── footer_inc.php
│ │ └── breadcrumbs.php

│ ├── blocks/
│ │ ├── text.php
│ │ ├── image.php
│ │ ├── menu.php
│ │ ├── navigation.php
│ │ └── subpages.php

│ └── base/
│ ├── theme.json
│ │
│ └── none/
│ ├── theme.json
│ ├── index.php
│ ├── meta_tags.php
│ ├── footer_inc.php

│ ├── blocks/
│ │ ├── text.php
│ │ ├── image.php
│ │ ├── menu.php
│ │ ├── navigation.php
│ │ └── subpages.php

│ ├── layout/
│ │ ├── head.php
│ │ ├── header.php
│ │ ├── footer.php
│ │ └── scripts.php

│ ├── partials/
│ │ ├── breadcrumbs.php
│ │ └── banners.php

│ ├── assets/
│ │ ├── css/
│ │ │ ├── theme.css
│ │ │ └── blocks/
│ │ │ ├── text.css
│ │ │ ├── image.css
│ │ │ ├── menu.css
│ │ │ ├── navigation.css
│ │ │ └── subpages.css
│ │ │
│ │ ├── js/
│ │ │ ├── theme.js
│ │ │ └── blocks/
│ │ │ ├── text.js
│ │ │ ├── image.js
│ │ │ ├── menu.js
│ │ │ ├── navigation.js
│ │ │ └── subpages.js
│ │ │
│ │ └── images/

│ └── README.md

├── wp/
└── joomla/

CMS assets маниджмънт


Глобална схема на рендериране на ресурсите в т.ч. css, html и css. Целта е централизирано управление и недопускане на дублиране. 

повече »

Регистър за ресурси CMS_ASSETS


cms_assets е централен регистър на CSS/JS ресурси.
Всеки asset се описва на едно ниво (default), напълно съвместимо със сегашния едномерен формат, и по избор може да съдържа вложен масив versions за алтернативни версии.
Root (default) дефиницията винаги е fallback и може да съдържа допълнителна логика (напр. js_after, noConflict, shims).

повече »

HTML-CSS договор


При създаване на нова тема от HTML към Maksoft theme изчитайки подадения html файл идентифицираш

повече »

Начало /  /  / Документация /  / Файлова структура теми (templates)
Maksoft.Bg Maksoft.Net BrandIT