https://github.com/thecodingmachine/html.template.mouftemplate
This package contains a template for the Mouf administration interface. The content is automatically adjusted to the website page to use all the width. Anyway, you can use this component as a model if you like.
https://github.com/thecodingmachine/html.template.mouftemplate
Last synced: 3 months ago
JSON representation
This package contains a template for the Mouf administration interface. The content is automatically adjusted to the website page to use all the width. Anyway, you can use this component as a model if you like.
- Host: GitHub
- URL: https://github.com/thecodingmachine/html.template.mouftemplate
- Owner: thecodingmachine
- License: mit
- Created: 2012-08-30T16:45:12.000Z (almost 14 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T15:28:03.000Z (over 3 years ago)
- Last Synced: 2025-02-16T12:30:27.414Z (over 1 year ago)
- Language: PHP
- Size: 103 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
MoufTemplate: the HTML template used for Mouf
=============================================
MoufTemplate is the HTML template used for the [Mouf project](http://mouf-php.com).
It is obviously a Mouf package, and extends the [Mouf TemplateInterface](https://github.com/thecodingmachine/html.template.templateinterface).
This means that if you are using Mouf, you can use the MoufTemplate in every place you would need a template implementing the TemplateInterface.
MoufTemplate has 5 zones: *content*, *top*, *left*, *right* and *bottom*.
Fill these zones using the Mouf UI.
Here is a sample code:
```php
addText("Hello world!");
// Let's define the left content block
$leftBlock = new HtmlBlock();
$leftBlock->addText("My left menu!");
// Let's display the template
$template = new MoufTemplate();
$template->setContent($contentBlock);
$template->setLeft($leftBlock);
$template->toHtml();
```