An open API service indexing awesome lists of open source software.

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.

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();
```