| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* @package Mambo Open Source |
* @package Mambo Open Source |
| 4 |
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
* @copyright (C) 2005 - 2007 Mambo Foundation Inc. |
| 5 |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
| 6 |
* |
* |
| 7 |
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
| 34 |
// mambot only processes if there are any instances of the mambot in the text |
// mambot only processes if there are any instances of the mambot in the text |
| 35 |
if ( $count ) { |
if ( $count ) { |
| 36 |
|
|
| 37 |
|
// load mambot params info |
| 38 |
|
$query = "SELECT id FROM #__mambots WHERE element = 'mosloadposition' AND folder = 'content'"; |
| 39 |
|
$database->setQuery( $query ); |
| 40 |
|
$id = $database->loadResult(); |
| 41 |
|
$mambot = new mosMambot( $database ); |
| 42 |
|
$mambot->load( $id ); |
| 43 |
|
$params =& new mosParameters( $mambot->params ); |
| 44 |
|
|
| 45 |
$style = $params->def( 'style', -2 ); |
$style = $params->def( 'style', -2 ); |
| 46 |
|
|
| 47 |
processPositions( $localtext, $matches, $count, $regex, $style ); |
processPositions( $localtext, $matches, $count, $regex, $style ); |