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
- dev-develop / 2.x-dev
- v2.0.1
- v2.0
- v1.2
- v1.1.1
- v1.1
- v1.0.0
- dev-dependabot/npm_and_yarn/build/minimist-1.2.8
- dev-dependabot/npm_and_yarn/build/json5-1.0.2
- dev-dependabot/npm_and_yarn/build/express-4.18.2
- dev-dependabot/npm_and_yarn/build/qs-and-express-6.11.0
- dev-dependabot/npm_and_yarn/build/decode-uri-component-0.2.2
- dev-master
- dev-1.x-dev
This package is auto-updated.
Last update: 2024-11-05 20:29:08 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'); });