atk14 / vlnka
Replaces regular space with a non-breaking space in places where line break should not occur as per Czech language spec
Installs: 17 972
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- atk14/functions: ^1.0, >=1.0.2
- mikulas/vlna: >=1.0.1
Requires (Dev)
- atk14/tester: *
This package is auto-updated.
Last update: 2024-10-24 22:41:55 UTC
README
Replaces regular space with a non-breaking space in places where line break should not occur as per Czech language spec.
Actually Vlnka provides a Smarty block helper and modifier for usage in an application which uses Smarty as the template engine.
In an ATK14 application Vlnka takes effect only when Czech or Slovak language is used.
Basic usage
In a template:
{* block helper usage *}
{vlnka}
<p>
Here is the text in which all the regular spaces will be replaced with non-breaking spaces.
</p>
<p>
Zde je text, ve kterém budou na všech potřebných místech nahrazeny normální mezery mezerami nedělitelnými.
</p>
<p title="titulek v HTML tagu zůstane zachován beze změny">
Vlnka doesn't change content of HTML tags.
</p>
{/vlnka}
{* modifier usage *}
{$text|vlnka}
Installation
Just use the Composer:
cd path/to/your/atk14/project/
composer require atk14/vlnka
License
Vlnka is free software distributed under the terms of the MIT license