vitamin2/v2-combination-links 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

vitamin2/v2-combination-links

最新稳定版本:0.1.0

Composer 安装命令:

composer require vitamin2/v2-combination-links

包简介

V2 Combination Links

README 文档

README

Just an plugin for combination links (works with vitamin2/v2-spam-free-mail)

Installation

Download

Download and copy this repository to /site/plugins/v2-combination-links.

Composer

composer require vitamin2/v2-combination-links

Setup

  1. Install Plugin

  2. Use Field in your blueprint

  combinationLinks:
    extends: global/extend/combination-links
  1. Use in your template
    snippet("organisms/combination-links", [
      "combinationLinks" => $data->combinationLinks(),
    ]);

Modify

Config

In the config file you can set the default classes for the button

'vitamin2.v2-combination-links.buttonClasses' => 'custom-button-class',

Snippets

You can modify the snippets organisms/combination-links and atoms/button to your needs.

Just create your own combination-links snippet in your snippets/organisms folder. Original snippet:

<div class="combination-links">
  <?php foreach ($combinationLinks()->toStructure() as $subitem): ?>
    <?php getCombinationLink($site, $subitem); ?>
  <?php endforeach ?>
</div>

Just create your own button snippet in your snippets/atoms folder. Original snippet:

<a href="<?= $linkTo ?>" class="btn <?= $btnClass ?>" <?= $newTab ? 'target="_blank" rel="noopener noreferrer"' : "" ?> title="<?= isset($linkTitle) ? $linkTitle : "Button" ?>">
    <?= $btnText ?>
    <?php snippet("atoms/icons/icon-" . $iconName); ?>
</a>

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固