定制 xanweb/c5-html-helpers 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xanweb/c5-html-helpers

最新稳定版本:v2.0.1

Composer 安装命令:

composer require xanweb/c5-html-helpers

包简介

ConcreteCMS HTML Helpers

README 文档

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

统计信息

  • 总下载量: 733
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-26