Revision 1745
Added by Luisehahne about 13 years ago
| frontend.functions.php | ||
|---|---|---|
| 305 | 305 |
if(file_exists(WB_PATH.'/modules/'.$module.'/view.php')) {
|
| 306 | 306 |
// fetch content -- this is where to place possible output-filters (before highlighting) |
| 307 | 307 |
ob_start(); // fetch original content |
| 308 |
// make a anchor for every section |
|
| 309 |
if(defined('SEC_ANCHOR') && SEC_ANCHOR!='') {
|
|
| 310 |
echo "\n".'<a class="section_anchor" id="'.SEC_ANCHOR.$section_id.'" name="'.SEC_ANCHOR.$section_id.'"></a>'."\n"; |
|
| 311 |
} |
|
| 308 |
$sectionAnchor = (defined('SEC_ANCHOR') && SEC_ANCHOR!='') ? SEC_ANCHOR.$section_id : 'section_'.$section_id;
|
|
| 309 |
echo PHP_EOL.'<div id="'.$sectionAnchor.'" class="'.$module.'" >'.PHP_EOL; |
|
| 312 | 310 |
require(WB_PATH.'/modules/'.$module.'/view.php'); |
| 311 |
echo PHP_EOL.'</div><!-- '.$module.$section_id.' -->'.PHP_EOL; |
|
| 313 | 312 |
$content = ob_get_clean(); |
| 314 | 313 |
} else {
|
| 315 | 314 |
continue; |
Also available in: Unified diff
! add div container in page_content for each sections,
! update droplets SectionPicker, ShowWysiwyg and ShowRandomWysiwyg
! put sec_anchor in this div, sec_anchor fixed in all found files
sec_anchor default now set to "section_",
sec_anchor can't be empty for future developement