承接 williamisted/plural 相关项目开发

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

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

williamisted/plural

Composer 安装命令:

composer require williamisted/plural

包简介

Simple plural plugin for Craft - Usage: {{ entries | length | plural('result') }}

README 文档

README

Simple plural plugin for Craft

Screenshot

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require WilliamIsted/plural
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Plural.

Using Plural

Twig filter: {{ powerPlant.lastAccident | plural( 'day' ) }} since last accident.

Twig function: {% set dayPlural = plural( powerPlant.lastAccident, 'day' ) %}{{ dayPlural }} since last accident.

{{ entries | length | plural('result') }} found.

Output: 2 results found.

{{ 0 | plural('result') }} found.

Output: 0 results found.

{{ 1 | plural('result') }} found.

Output: 0 result found.

{{ 1 | plural('result', 'foobars') }} found.

Output: 1 result found.

{{ 2 | plural('result', 'foobars') }} found.

Output: 2 foobars found.

Plural Roadmap

Some things to do, and ideas for potential features:

  • If you have any simple functionality improvements to propose or issues, create a ticket here: GitHub

Brought to you by William Isted

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2020-04-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固