Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConcreteCMS HTML Helpers

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');
});

About

Concrete5 HTML Helpers

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages