{"id":18929461,"url":"https://github.com/thecodingmachine/html.template.mouftemplate","last_synced_at":"2026-03-16T14:30:18.091Z","repository":{"id":4478800,"uuid":"5617793","full_name":"thecodingmachine/html.template.mouftemplate","owner":"thecodingmachine","description":"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.","archived":false,"fork":false,"pushed_at":"2022-12-08T15:28:03.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-16T12:30:27.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-30T16:45:12.000Z","updated_at":"2022-12-08T15:27:00.000Z","dependencies_parsed_at":"2023-01-13T13:08:04.558Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/html.template.mouftemplate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fhtml.template.mouftemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fhtml.template.mouftemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fhtml.template.mouftemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fhtml.template.mouftemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/html.template.mouftemplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239927823,"owners_count":19719835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:32:52.017Z","updated_at":"2026-03-16T14:30:18.044Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"MoufTemplate: the HTML template used for Mouf\n=============================================\n\nMoufTemplate is the HTML template used for the [Mouf project](http://mouf-php.com).\n\nIt is obviously a Mouf package, and extends the [Mouf TemplateInterface](https://github.com/thecodingmachine/html.template.templateinterface).\nThis means that if you are using Mouf, you can use the MoufTemplate in every place you would need a template implementing the TemplateInterface.\n\nMoufTemplate has 5 zones: *content*, *top*, *left*, *right* and *bottom*.\nFill these zones using the Mouf UI.\n\nHere is a sample code:\n\n```php\n\u003c?php \n// Let's import all required classes\nuse Mouf\\Html\\Template\\MoufTemplate\\MoufTemplate;\nuse Mouf\\Html\\HtmlElement\\HtmlBlock;\n\ndefine ('ROOT_URL', \"/composertest/\");\n\nrequire_once 'vendor/autoload.php';\n\n// WARNING! this code is only to explain the inner workings of the MoufTemplate class\n// Usually, you would never create a new instance of MoufTemplate, nor would you create \n// the $contentBlock or $leftBlock variables.\n// Those are created and injected by Mouf, for you.\n\n// Let's define the main content block\n$contentBlock = new HtmlBlock();\n$contentBlock-\u003eaddText(\"Hello world!\");\n\n// Let's define the left content block\n$leftBlock = new HtmlBlock();\n$leftBlock-\u003eaddText(\"My left menu!\");\n\n// Let's display the template\n$template = new MoufTemplate();\n$template-\u003esetContent($contentBlock);\n$template-\u003esetLeft($leftBlock);\n$template-\u003etoHtml();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fhtml.template.mouftemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fhtml.template.mouftemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fhtml.template.mouftemplate/lists"}