Implementation of the MO Button pages. More...
Functions | |
mo_button_replace ($matches) | |
Replace the button tags with the button. | |
mo_button_process ($text, $format) | |
Process the mo_button tags. |
The MO Button pages is the filter. It parses tags in the form:
[mo_button:<name> <params...>]
where parameters are writte as: name="\<value>"
The name or identifier of the button is the name as defined while creating and editing the button.
http://www.m2osw.com/mo_button contact@m2osw.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
mo_button_process | ( | $ | text, | |
$ | format | |||
) |
This function replaces the mo_button tags with the corresponding button. Note that if the button is marked as inactive, the tag is replaced by a standard link.
[in] | $text | The text to be filtered |
[in] | $format | The format used to filter the text, this number is used to access the format specific settings. |
Referenced by mo_button_filter().
mo_button_replace | ( | $ | matches | ) |
This function is called for each match of a button tag found in the input text. It replaces the tag with either a button (active) or a standard link (inactive).
The button tag can have the following parameters:
[in] | $matches | The matches from the [mo_button:...] tag |
References mo_button_get_path(), and mo_button_load().