Project

General

Profile

« Previous | Next » 

Revision 1908

Added by Dietmar over 11 years ago

! class.admin.php corrected url_help,
add Translat::disableAddon() in methode print_footer
! frontend.functions.php page_content() set $sSectionIdPrefix to the right format
! functions.php change get_parent_titles from menu_title to filename

View differences:

frontend.functions.php
4 4
 * @category        framework
5 5
 * @package         frontend.functions
6 6
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
8
 * @link			http://www.websitebaker2.org/
7
 * @copyright       2009-2013, WebsiteBaker Org. e.V.
8
 * @link            http://www.websitebaker.org/
9 9
 * @license         http://www.gnu.org/licenses/gpl.html
10
 * @platform        WebsiteBaker 2.8.x
10
 * @platform        WebsiteBaker 2.8.4
11 11
 * @requirements    PHP 5.2.2 and higher
12 12
 * @version         $Id$
13
 * @filesource		$HeadURL$
13
 * @filesource      $HeadURL$
14 14
 * @lastmodified    $Date$
15 15
 *
16 16
*/
......
305 305
                // check if module exists - feature: write in errorlog
306 306
				if(file_exists(WB_PATH.'/modules/'.$module.'/view.php')) {
307 307
				// fetch content -- this is where to place possible output-filters (before highlighting)
308
					ob_start(); // fetch original content
309
                    $sectionAnchor = (defined('SEC_ANCHOR') && SEC_ANCHOR!='') ? SEC_ANCHOR.$section_id : 'section_'.$section_id;
310
                    echo "\n".'<div id="'.$sectionAnchor.'" class="wb_'.$module.'" >'."\n";
308
					ob_start(); // fetch original content<div id="Sec103" class="section  m_modulename user-defined-class" >
309
					$sSectionIdPrefix = (defined( 'SEC_ANCHOR' ) && SEC_ANCHOR!='') ? SEC_ANCHOR : 'Sec';
310
					echo ($sSectionIdPrefix =='none') ? '' : "\n".'<div id="'.$sSectionIdPrefix.$section_id.'" class="section m_'.$module.'" >'."\n";
311 311
					require(WB_PATH.'/modules/'.$module.'/view.php');
312
                    echo "\n".'</div><!-- '.$module.$section_id.' -->'."\n";
312
					echo ($sSectionIdPrefix =='none') ? '' : "\n".'</div><!-- '.$module.$section_id.' -->'."\n";
313 313
					$content = ob_get_clean();
314 314
				} else {
315 315
					continue;
......
330 330
		} else {
331 331
			require(PAGE_CONTENT);
332 332
		}
333
    return $retVal;
333
	return $retVal;
334 334

  
335 335
	}
336 336
}
......
386 386
                            print $show_crumb;
387 387
		                    break;
388 388
                    }
389

  
390 389
                    if ( ( $counter <> $total_crumbs-1 ) )
391 390
                    {
392 391
                        print '<span class="separator">'.$sep.'</span>';
......
626 625
	    		}
627 626
			}
628 627
       		// include the Javascript email protection function
629
       		if( $file_id != 'css' && file_exists(WB_PATH .'/modules/droplets/js/mdcr.js'))
630
               {
631
       			$head_links .= '<script src="'.WB_URL.'/modules/droplets/js/mdcr.js" type="text/javascript"></script>'."\n";
632
       		}
633
               elseif( $file_id != 'css' && file_exists(WB_PATH .'/modules/output_filter/js/mdcr.js'))
634
               {
628
       		if( $file_id != 'css' && file_exists(WB_PATH .'/modules/output_filter/js/mdcr.js')) {
635 629
       			$head_links .= '<script src="'.WB_URL.'/modules/output_filter/js/mdcr.js" type="text/javascript"></script>'."\n";
636 630
       		}
637 631
        }

Also available in: Unified diff