We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Add-Ons
default app icon

PHP Text Format

By W3care
Visit
Description

The PHP Text Format Plugin takes whatever text is between the appropriate tags and formats it according to the formating type you chose. This is obviously an unnecessary plugin most of the time since HTML and CSS can be used for this same thing. However, it is useful for formating text in places that HTML or CSS will not work. On a side note the PHP “ucwords” command seems to work much more reliably than the CSS for making the first letter of each word capital. For example CSS would take “jamie’s” and create this “Jamie’S.” Not exactly what you would want.

The PHP Text Format Plugin takes whatever text is between the appropriate tags and formats it according to the formating type you chose. This is obviously an unnecessary plugin most of the time since HTML and CSS can be used for this same thing. However, it is useful for formating text in places that HTML or CSS will not work. On a side note the PHP “ucwords” command seems to work much more reliably than the CSS for making the first letter of each word capital. For example CSS would take “jamie’s” and create this “Jamie’S.” Not exactly what you would want.

This Plugin allows you to use simple PHP formatting options with the static or dynamic text. The text within the tags will be displayed as per the specified format. The format of any entryâ��s â��titleâ�� or any other custom fields can easily be specified at a page from this plugin. This plugin usage PHP functions for updating the format of the text not the CSS classes. On a side note - the PHP “ucwords” command seems to work more reliably than the CSS for making the first letter of each word capital. For example CSS would take “jamie’s” and create this “Jamie’S.” Not exactly what you would want. However, this plugin goes with the expectations. Sample usage: {exp:php_text_format type=“uppercase”} this text will be all uppercase {/exp:php_text_format}

Would create all uppercase text like this: THIS TEXT WILL BE ALL UPPERCASE The required â��typeâ�� parameter can have one of the following options - “uppercase” - Makes all alphabetic text uppercase. “lowercase” - Makes all alphabetic text lowercase. “ucfirst” - Makes the first letter in the enclosed text uppercase. “ucwords” - Makes the first letter of each word in the enclosed text uppercase. This plugin has been upgraded for EE 3.0 version now.

Information
Version 2.0
Last Update 9 years ago
Compatibility EE 3, 2
License Commercial
Links
  • Support
Visit
ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.