equal
deleted
inserted
replaced
20 * @var bool |
20 * @var bool |
21 * @access private |
21 * @access private |
22 */ |
22 */ |
23 |
23 |
24 var $site_disabled = false; |
24 var $site_disabled = false; |
|
25 |
|
26 /** |
|
27 * One of the absolute best parts of Enano :-P |
|
28 * @var string |
|
29 */ |
|
30 |
|
31 var $fading_button = '<a href="http://enanocms.org" onclick="window.open(this.href); return false;" style="text-align: center; margin: 0 auto; display: table; background-image: none;"> |
|
32 <img alt="Powered by Enano CMS" style="border-width: 0; position: absolute;" |
|
33 src="/images/about-powered-enano.png" id="enanoFader" onmouseover="domOpacity(this, 100, 0, 500);" |
|
34 onmouseout="opacity(this.id, 0, 100, 500);" /> |
|
35 <img alt="Powered by Enano CMS" style="border-width: 0px;" src="/images/about-powered-enano-hover.png" /> |
|
36 </a>'; |
25 |
37 |
26 function __construct() |
38 function __construct() |
27 { |
39 { |
28 global $db, $session, $paths, $template, $plugins; // Common objects |
40 global $db, $session, $paths, $template, $plugins; // Common objects |
29 dc_here('template: initializing all class variables'); |
41 dc_here('template: initializing all class variables'); |
1367 { |
1379 { |
1368 global $db, $session, $paths, $template, $plugins; // Common objects |
1380 global $db, $session, $paths, $template, $plugins; // Common objects |
1369 // SourceForge/W3C buttons |
1381 // SourceForge/W3C buttons |
1370 $ob = Array(); |
1382 $ob = Array(); |
1371 $admintitle = ( $session->user_level >= USER_LEVEL_ADMIN ) ? 'title="You may disable this button in the admin panel under General Configuration."' : ''; |
1383 $admintitle = ( $session->user_level >= USER_LEVEL_ADMIN ) ? 'title="You may disable this button in the admin panel under General Configuration."' : ''; |
1372 if(getConfig('powered_btn') =='1') $ob[] = '<a style="text-align: center;" href="http://enanocms.org/" onclick="window.open(this.href);return false;"><img '.$admintitle.' alt="Powered by Enano" src="'.scriptPath.'/images/about-powered-enano.png" onmouseover="this.src=\''.scriptPath.'/images/about-powered-enano-hover.png\';" onmouseout="this.src=\''.scriptPath.'/images/about-powered-enano.png\';" style="border-width: 0px;" width="88" height="31" /></a>'; |
|
1373 if(getConfig('sflogo_enabled')=='1') |
1384 if(getConfig('sflogo_enabled')=='1') |
1374 { |
1385 { |
1375 $ob[] = '<a style="text-align: center;" href="http://sourceforge.net/" onclick="window.open(this.href);return false;"><img style="border-width: 0px;" alt="SourceForge.net Logo" src="http://sflogo.sourceforge.net/sflogo.php?group_id='.getConfig('sflogo_groupid').'&type='.getConfig('sflogo_type').'" /></a>'; |
1386 $ob[] = '<a style="text-align: center;" href="http://sourceforge.net/" onclick="window.open(this.href);return false;"><img style="border-width: 0px;" alt="SourceForge.net Logo" src="http://sflogo.sourceforge.net/sflogo.php?group_id='.getConfig('sflogo_groupid').'&type='.getConfig('sflogo_type').'" /></a>'; |
1376 } |
1387 } |
1377 if(getConfig('w3c_v32') =='1') $ob[] = '<a style="text-align: center;" href="http://validator.w3.org/check?uri=referer" onclick="window.open(this.href);return false;"><img style="border: 0px solid #FFFFFF;" alt="Valid HTML 3.2" src="http://www.w3.org/Icons/valid-html32" /></a>'; |
1388 if(getConfig('w3c_v32') =='1') $ob[] = '<a style="text-align: center;" href="http://validator.w3.org/check?uri=referer" onclick="window.open(this.href);return false;"><img style="border: 0px solid #FFFFFF;" alt="Valid HTML 3.2" src="http://www.w3.org/Icons/valid-html32" /></a>'; |
1386 foreach ( $code as $cmd ) |
1397 foreach ( $code as $cmd ) |
1387 { |
1398 { |
1388 eval($cmd); |
1399 eval($cmd); |
1389 } |
1400 } |
1390 |
1401 |
1391 if(count($ob) > 0) $sb_links = '<div style="text-align: center; padding: 5px 0;">'.implode('<br />', $ob).'</div>'; |
1402 if(count($ob) > 0) $sb_links = '<div style="text-align: center; padding: 5px 0;">'. ( ( getConfig('powered_btn') == '1' ) ? $this->fading_button : '' ) . implode('<br />', $ob).'</div>'; |
1392 else $sb_links = ''; |
1403 else $sb_links = ''; |
1393 |
1404 |
1394 $this->sidebar_widget('Links', $sb_links); |
1405 $this->sidebar_widget('Links', $sb_links); |
1395 } |
1406 } |
1396 |
1407 |