bootsified/craft-widow-no-mo 问题修复 & 功能扩展

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

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

bootsified/craft-widow-no-mo

Composer 安装命令:

composer require bootsified/craft-widow-no-mo

包简介

Preventz 'widows' in ur outputz.

README 文档

README

Preventz 'widows' in ur outputz.

Logo

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 bootsified/craft-widow-no-mo
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for craft-widow-no-mo.

Widow No Mo Overview

A 'widow' is when a single word in a block of text breaks to a line on it's own in your page. This filter places a   between the last words of your string to insure that they break together, leaving both on the next line - no 'widows'.

Using Widow No Mo

Use the widownomo filter on your string...

{% set myString = '<p>This is a string of text that might create a widow when the page is too narrow.</p>' %}
{{ myString | widownomo }}

...to prevent widows in the output...

<p>This is a string of text that might create a widow when the page is too&nbsp;narrow.</p>

Credit

This is basically Craft v3 verion of the Craft-Widont plugin from Alexander Bech. All props go to him. 🙌

Brought to you by Boots

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固