=== Special Text Boxes ===
Contributors: minimus
Donate link:  http://www.simplelib.com
Tags: content, performance, text, info, color
Requires at least: 5.6
Tested up to: 6.9
Stable tag: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Highlights any portion of text as text in the colored boxes.

== Description ==

Adds little style sheet file and short code to blog for highlighting some portion of text in a post as colored boxes. 7 styles are available. That may be warning, alert, info and download styled portion of the post's text.

If you need to explore the source code of plugin, you can find it on [GitHub](https://github.com/minimus/wp-special-textboxes).

Available languages:

* English
* Russian

If you have created your own language pack, or have an update of an existing one, you can send **.po** and **.mo files** to me (minimus AT simplelib.com) so that I can bundle it into **Special Text Boxes**.
  
Real examples of outputs you can see on the [plugin page](http://www.simplelib.com/archives/wordpress-plugin-wp-special-textboxes/)

[Compare feature set](http://stb.simplelib.com/info/compare-stb/) of different editions of the STB plugin and choose exactly what you need.


== Installation ==

1. Upload plugin dir to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Use short codes in the text of post to highlight any portion of it.

== Frequently Asked Questions ==

= How to insert special text box to post's text? =

Use short codes: 

`[stextbox id="ValidID"]Highlighted text here[/stextbox]`

or (for captioned textbox)

`[stextbox id="ValidID" caption="CaptionText"]Highlighted text here[/stextbox]`

were
 
**ValidID** may be: *alert*, *info*, *download*, *grey*, *black*, *warning*, *custom*

**CaptionText** may be: *any text you needed*.

= How to insert special text box to theme file (not to post)? =

Use function **stbHighlightText**: 

`<?php if(function_exists('stbHighlightText')) echo stbHighlightText('Test of function stbHighlightText.', 'warning'); ?>`

defined as 

`function stbHighlightText( $content = null, $id = 'warning', $caption = '', $atts = null )`

= How to insert special text box into special text box? =

Use *stb* shortcode inside *stextbox* shortcode

`[stextbox]Some text [stb]Some text in the indoor box[/stb][/stextbox]`

More about Special Text Boxes usage and customising read on the [plugin page](http://www.simplelib.com/archives/wordpress-plugin-wp-special-textboxes/)

== Screenshots ==

1. Special Text Boxes Styles Page
1. Special Text Boxes Settings Page
1. Special Text Boxes Box Editor
1. Special Text Boxes Themes Selector
1. Insertion dialog. Basic Settings
1. Insertion dialog. Extended Settings
1. Special Text widget. Admin Page
1. Special Text block. Editor Page


== Changelog ==
= 6.5 =
* update: updated to React 19
* update: third party libraries are updated
* fix: block's content input is fixed
* fix: admin data requests are fixed
= 6.2.6 =
* WordPress 6.8 ready
= 6.2.5 =
* Plugin security improved
= 6.2.4 =
* Plugin security improved
= 6.2.2 =
* WordPress 6.5 ready
= 6.2.1 =
* WordPress 6.4 ready
= 6.2 =
* WordPress 6.3 ready
= 6.1 =
* added: border width param
* fixed: collapsed box style
* Some development improvements
= 6.0.2 =
* WordPress 6.1 ready
* Some development improvements
= 6.0.1 =
* Some improvements
= 6.0.0 =
* ReactJS based admin interface
* Special Text Block for Editor Page
* REST API
= 5.9.108 =
* Wordpress 5.1 ready
= 5.9.107 =
* The tinyMCE dialog bug has been fixed
= 5.8.106 =
* Wordpress 4.8 compatibility
= 5.7.105 =
* Some improvements on admin pages
* Removed deprecated functions
= 5.6.103 =
* Some changes to prevent vulnerability of plugin have been made
= 5.5.102 =
* Wordpress 4.6 ready
= 5.5.101 =
* Wordpress 4.5 ready
= 5.5.100 =
* Wordpress 4.4 compatibility
* Language pack is updated. Swahili by Andrew Mwaniki is added.
= 5.4.98 =
* The bug of creating DB table with charset utf8mb4 is solved.
= 5.3.97 =
* Wordpress 4.3 compatibility
= 5.3.95 =
* Minor bug fixed
= 5.3.94 =
* Conflict between STB and SAM was resolved
= 5.3.93 =
* Made some improvements
* Ready for WordPress 4.1
= 5.2.91 =
* The possibility of manipulating custom themes has been removed by request of administration of *wordpress.org* plugins repository.
= 5.1.90 =
* Minor bug of JS mode is resolved
* Dynamic CSS mode is optimized
= 5.1.88 =
* TinyMCE 4 compatibility bug is fixed
* NoImage bug is fixed
* Wordpress 4 compatibility is tested
= 5.0.86 =
* TinyMCE compatibility bug is fixed
= 5.0.85 =
* Themes of context boxes is added
* Javascript codes are improved
* PHP codes are improved
* Bugs are fixed
= 4.5.81 =
* Major bug is fixed
= 4.5.80 =
* CSS mode is optimized
* Output codes are optimized
* Media Loader is added
* Language pack is updated. Spanish by Andrew Kurtis is added.
* Some bugs are fixed
= 4.4.75 =
* Text Line Height settings are added.
* Some bugs are resolved.
= 4.3.73 =
* Language pack is updated. Slovak by Branco is added
= 4.3.72 =
* Static Style Sheet mode (CSS mode) is added
* User Level is changed to Capability
= 4.2.70 =
* Bug of STB output function is fixed.
= 4.1.69 =
* Some bugs are fixed.
* Control of block's shadow from short codes is added.
* Improvements in the interface of plugin are made.
* Compatibility with "Wordpress Post Tabs" plugin is added.
= 4.0.65 =
* Styles repository is added
* Javascript drawing mode is added
* New Styles Editor is added
* New rules of text blocks drawing are added
* Some bugs are resolved
= 3.10.60 =
* Italian language pack is updated.
= 3.10.59 =
* Minor bug are fixed
* Language pack is updated. Turkish by Serhat ESEN is added
= 3.9.57 =
* The amount of the parameters adjusted "on the fly" is increased
* The output html code meets the requirements of the markup validity of Web documents
= 3.8.55 =
* Now the plugin codes are using **Wordpress 3.0+** standards (PHP5 only)
* Wordpress Settings API are used
* Now the plugin uses "resources saving technology" for saving server resources in blog runtime mode.
= 3.7.52 =
* Language pack is updated. Czech by [Stanislav Čihák](http://www.abacomp.cz/) are added.
= 3.7.51 =
* Tool Button bug are fixed.
* STB in STB shortcodes are added.
= 3.6.49 =
* Collapsed mode bug are fixed.
* Special Text Widget bug are fixed.
* Language pack is updated. Ukrainian by [official ukrainian localization team](http://wordpress.co.ua/) is added.
* Language pack is updated. German by [Renate](http://www.bhvnederland.nl/) is added.
= 3.5.45 =
* Language pack is updated. Dutch by [Rene](http://wpwebshop.com/blog/) are added.
= 3.5.44 =
* Floating mode bug are fixed
* **stbHighlightText** function bug (collapsed option) are fixed
* CSS3 styles are fixed
= 3.4.41 =
* Insertion Dialog bug are fixed
= 3.4.40 =
* Font size parameters are added
* Bug of caption size is eliminated
* Language pack is updated. Arabic language by [مدونة رسين](http://www.r-sn.com/wp/) is added. 
* Support of text direction is added.
* Codes are optimised
= 3.3.35 =
* Collapsing/Expanding mode of captioned Special Text Boxes was extended
* PHP codes was optimised
* JS codes was optimised
= 3.2.32 =
* Collapsing/Expanding of captioned Special Text Boxes was added
* Codes was optimised
= 3.1.29 =
* Some admin page improvements was added
* Codes was optimised
= 3.0.27 =
* Special Text widget was added
* Special Text Box Float Mode was added
= 2.0.25 =
* Polish language pack by [Daniel Fruzynski](http://www.poradnik-webmastera.com) added
* Italian language pack updated
= 2.0.23 =
* Uzbek language pack by [Alisher Safarov](http://www.comfi.com) added
* Wordpress 2.8.4 compatibility tested
= 2.0.22 =
* Direct output codes optimised
* Italian language pack updated
= 2.0.20 =
* Plugin style sheet optimised
* Big icons for simple (non-captioned) boxes added
* Short Codes Insert Dialog added
* Output function added
* Plugin codes optimised
= 1.2.13 =
* Belarus language by [Fat Cower](http://www.fatcow.com) added
* Wordpress 2.8.1 compatibility tested
= 1.2.12 =
* Italian language by [Gianni Diurno](http://gidibao.net/) added
= 1.2.11 =
* custom box added
* custom editor added
* customising "on the fly" added
* Wordpress 2.8 compatibility checked
= 1.1.7 =
* black box margins bug fixed
= 1.1.6 =
* codes and variables cleanup
	* admin page codes optimised
	* activation codes optimised for future upgrades
* margin settings added
= 1.0.1 =
* Initial upload

== Upgrade Notice ==
= 6.5 =
Updated to React 19. Third party libraries are updated. Block's content input is fixed. Admin data requests are fixed.
= 6.2.6 =
WordPress 6.8 ready
= 6.2.5 =
Plugin security improved
= 6.2.4 =
Plugin security improved
= 6.2.2 =
WordPress 6.5 ready
= 6.2.1 =
WordPress 6.4 ready
= 6.2 =
WordPress 6.3 ready
= 6.1 =
Border width param is added. Collapsed box style is fixed
= 6.0.2 =
Some development improvements. WordPress 6.1 ready
= 6.0.1 =
Some improvements
= 6.0.0 =
ReactJS based admin interface, Special Text Block for Editor Page, REST API queries
= 5.9.108 =
Wordpress 5.1 ready
= 5.9.107 =
The tinyMCE dialog bug has been fixed.
= 5.8.106 =
Wordpress 4.8 compatibility.
= 5.7.105 =
Some improvements on admin pages. Removed deprecated functions.
= 5.6.103 =
Some changes to prevent vulnerability of plugin have been made.
= 5.5.102 =
Wordpress 4.6 ready.
= 5.5.101 =
Wordpress 4.5 ready.
= 5.5.100 =
Wordpress 4.4 compatibility. Language pack is updated. Swahili by Andrew Mwaniki is added.
= 5.4.98 =
The bug of creating DB table with charset utf8mb4 is solved.
= 5.3.97 =
Wordpress 4.3 compatibility
= 5.3.95 =
Minor bug fixed
= 5.3.94 =
Conflict between STB and SAM was resolved
= 5.3.93 =
Made some improvements. Ready for WordPress 4.1
= 5.2.91 =
Some functionality of the plugin were cut.
= 5.1.90 =
Some improvements are made.
= 5.1.88 =
Some bugs are resolved.
= 5.0.86 =
TinyMCE compatibility bug is fixed
= 5.0.85 =
New features are added.
= 4.5.81 =
Major bug is fixed.
= 4.5.80 =
Some new features.
= 4.4.75 =
Text Line Height settings are added.
Some bugs are resolved.
= 4.3.73 =
Language pack is updated. Slovak by Branco is added.
= 4.3.72 =
Static Style Sheet mode (CSS mode) is added.
User Level is changed to Capability.
= 4.2.70 =
Bug of STB output function is fixed. 
= 4.1.69 =
Some bugs are fixed. 
Control of block's shadow from short codes is added. 
Improvements in the interface of plugin are made. 
Compatibility with "Wordpress Post Tabs" plugin is added.  
= 4.0.65 =
Styles repository is added. 
Javascript drawing mode is added. 
New Styles Editor is added. 
New rules of text blocks drawing are added. 
Some bugs are resolved. 
= 3.10.60 =
Italian language pack is updated.
= 3.10.59 =
Minor bug are fixed. 
Language pack is updated. Turkish by Serhat ESEN is added. 
= 3.9.57 =
The amount of the parameters adjusted "on the fly" is increased 
The output html code meets the requirements of the markup validity of Web documents 
= 3.8.55 =
Now the plugin codes are using Wordpress 3.0+ standards (PHP5 only). 
Wordpress Settings API are used. 
Now the plugin uses "resources saving technology" for saving server resources in blog runtime mode. 
= 3.7.52 =
Language pack is updated. Czech by [Stanislav Čihák](http://www.abacomp.cz/) are added.
= 3.7.51 =
Tool Button bug are fixed.
STB in STB shortcodes are added.
= 3.6.49 =
Collapsed mode bug are fixed.
Special Text Widget bug are fixed.
Language pack is updated. Ukrainian by [official ukrainian localization team](http://wordpress.co.ua/) is added.
Language pack is updated. German by [Renate](http://www.bhvnederland.nl/) is added.
= 3.5.45 =
Dutch language are added
= 3.5.44 =
Floating mode bug are fixed
stbHighlightText function bug (collapsed option) are fixed
CSS3 styles are fixed
= 3.4.41 =
Insertion Dialog bug are fixed
= 3.4.40 =
Font size parameters are added
Bug of caption size is eliminated
Language pack is updated. Arabic language by [مدونة رسين](http://www.r-sn.com/wp/) is added.
Support of text direction is added.
Codes are optimised
= 3.3.35 =
Collapsing/Expanding mode of captioned Special Text Boxes was extended
PHP codes was optimised
JS codes was optimised
= 3.2.32 =
Collapsing/Expanding of captioned Special Text Boxes was added
Codes was optimised
= 3.1.29 =
Some admin page improvements was added
Codes was optimised
= 3.0.27 =
Special Text widget was added
Special Text Box Float Mode was added
= 2.0.25 =
Polish language pack by [Daniel Fruzynski](http://www.poradnik-webmastera.com) added
Italian language pack updated
= 2.0.23 =
Uzbek language pack by [Alisher Safarov](http://www.comfi.com) added
Wordpress 2.8.4 compatibility tested
= 2.0.22 =
Direct output codes optimised
Italian language pack updated
= 2.0.20 =
Plugin style sheet optimised
Big icons for simple (non-captioned) boxes added
Short Codes Insert Dialog added
Output function added
Plugin codes optimised
= 1.2.13 =
Belarus language by [Fat Cower](http://www.fatcow.com) added
Wordpress 2.8.1 compatibility tested
= 1.2.12 =
Italian language by [Gianni Diurno](http://gidibao.net/) added
= 1.2.11 =
custom box added
custom editor added
customising "on the fly" added
Wordpress 2.8 compatibility checked
= 1.1.7 =
black box margins bug fixed
= 1.1.6 =
codes and variables cleanup
admin page codes optimised
activation codes optimised for future upgrades
margin settings added
= 1.0.1 =
Initial upload
