承接 netzmacht/contao-font-awesome-inserttag 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

netzmacht/contao-font-awesome-inserttag

Composer 安装命令:

composer require netzmacht/contao-font-awesome-inserttag

包简介

Provides an insert tag for using font awesome icons.

README 文档

README

This extension provides two insert tags for creating font awesome icons in Contao CMS.

Features

Font Awesome Inserttag supports FontAwesome 4 and FontAwesome 5 as well.

Icon Insert Tags

There are a couple of insert tags for icon generation. For Font Awesome 4 there is the previously known fa insert tag. To support the styles introduced in Font Awesome 5 there a specific insert tags the styles fas, far, fal, fab.

Following options are supported:

  • All values after the first double column get prefixed with fa- Prefix: {{fa::phone}}
    <i class="fa fa-phone" aria-hidden="true"></i>
  • Multiple values are supported: {{fa::phone 4x muted}}
    <i class="fa fa-phone fa-4x fa-muted" aria-hidden="true"></i>
  • Additional values could be passed as second param devided by a colon: {{fa::phone 4x muted:pull-left custom}}
<i class="fa fa-phone fa-4x fa-muted pull-left custom" aria-hidden="true"></i>

The former syntax with a double colon "::" between two params is deprecated but still supported.

It works the same with the new short codes provided by Font Awesome 5. If you're migrating from Font Awesome 4 to 5 and have some old insert tags you may have a look at the provided configuration option default_style.

Insert Tag "fa-stack"

The second insert tag support the icon stack feature of font awesome. All features described above are supported for every icon. Furthermore the icon stack wrapper itself can be adjusted by classes:

{fa-stack::square:first-icon::plus:secon-icon::lg:custom-stack}

  <span class="fa-stack fa-lg custom-stack"><i class="fa fa-square first-icon" aria-hidden="true"></i><i class="fa fa-plus second-icon" aria-hidden="true"></i></span>

To support the styles introduced in Font Awesome 5 there a specific insert tags the styles fas-stack, far-stack, fal-stack, fab-stack.

Requirements

Version 2 is designed for Contao 4.4 and above. It can be installed by using the managed edition of Contao.

If you want to add the bundle yourself just add Netzmacht\Contao\FontAwesomeInsertTag\NetzmachtFontAwesomeInsertTagBundle to your app kernel.

Configuration

You can override the templates being used for the icon or icon-stack in your config.yml. The default configuration is:

config:
  netzmacht_font_awesome_insert_tag:
    icon_template: '<i class="%%s" aria-hidden="true"></i>'
    stack_template: '<span class="fa-stack%%s">%%s%%s</span>'
    default_style: 'fa'

If you migrate from Font Awesome 4 to 5 you might want to set the default style to far or fas.

netzmacht/contao-font-awesome-inserttag 适用场景与选型建议

netzmacht/contao-font-awesome-inserttag 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27.88k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2017 年 07 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「icons」 「contao」 「icon font」 「font awesome」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 netzmacht/contao-font-awesome-inserttag 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 netzmacht/contao-font-awesome-inserttag 我们能提供哪些服务?
定制开发 / 二次开发

基于 netzmacht/contao-font-awesome-inserttag 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 27.88k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 19
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2017-07-03