Revision 1746
Added by Dietmar almost 12 years ago
ShowRandomWysiwyg.php | ||
---|---|---|
12 | 12 |
$section_id = $aSections[array_rand($aSections)]; // get random element |
13 | 13 |
ob_start(); // generate output by wysiwyg module |
14 | 14 |
$sectionAnchor = (defined('SEC_ANCHOR') && SEC_ANCHOR!='') ? SEC_ANCHOR.$section_id : 'section_'.$section_id; |
15 |
echo PHP_EOL.'<div id="'.$sectionAnchor.'" class="'.$module.'" >'.PHP_EOL; |
|
15 |
echo PHP_EOL.'<div id="'.$sectionAnchor.'" class="wb_'.$module.'" >'.PHP_EOL;
|
|
16 | 16 |
require(WB_PATH.'/modules/wysiwyg/view.php'); |
17 | 17 |
echo PHP_EOL.'</div><!-- '.$module.$section_id.' -->'.PHP_EOL; |
18 | 18 |
$content = ob_get_clean(); |
Also available in: Unified diff
if module has the same name as a html markup e.g code