xanweb / c5-html-helpers
ConcreteCMS HTML Helpers
v2.0.1
2022-11-11 16:46 UTC
Requires
- php: >=7.4
- xanweb/c5-common: ^1.0
- xanweb/c5-ext-asset: ^1.0
This package is auto-updated.
Last update: 2026-06-06 00:09:37 UTC
README
Installation
Include library to your composer.json
composer require xanweb/c5-html-helpers
1- IOS Toggler Widget
<div class="form-group ios__toggler-form-group">
<?= $form->label($view->field('myField'), t('My Field Name')); ?>
<div class="pull-right">
<?php app('helper/form/ios_toggler')->output($view->field('myField'), 1, $value); ?>
</div>
</div>
2- Register Favicon
You can add the following code under package on_start or better in theme header_top.php
The most important thing that the code should be executed before including 'header_required.php' element.
use \Xanweb\HtmlHelper\Head\Manager as HeadManager; ... HeadManager::setup(function(Manager $manager) { $manager->registerManifestFile('/path/to/manifest.webmanifest'); $manager->registerIcoFavicon('/path/to/favicon.ico'); $manager->registerSVGFavicon('/path/to/favicon.svg'); $manager->registerAppleTouchIcon('/path/to/favicon.png'); });