[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.711,1.712
Dirk Haun
dhaun at qs1489.pair.com
Sun Jul 13 12:47:22 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv66333/public_html
Modified Files:
lib-common.php
Log Message:
Introduced new variable {page_title_and_site_name} for header.thtml so that we can have "Site Name - Site Slogan" in the frontpage's title again
Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.711
retrieving revision 1.712
diff -C2 -d -r1.711 -r1.712
*** lib-common.php 8 Jul 2008 18:42:54 -0000 1.711
--- lib-common.php 13 Jul 2008 16:47:19 -0000 1.712
***************
*** 984,987 ****
--- 984,1001 ----
$header->set_var( 'site_name', $_CONF['site_name']);
+ if (COM_onFrontpage()) {
+ $title_and_name = $_CONF['site_name'];
+ if (!empty($pagetitle)) {
+ $title_and_name .= ' - ' . $pagetitle;
+ }
+ } else {
+ $title_and_name = '';
+ if (!empty($pagetitle)) {
+ $title_and_name = $pagetitle . ' - ';
+ }
+ $title_and_name .= $_CONF['site_name'];
+ }
+ $header->set_var('page_title_and_site_name', $title_and_name);
+
$langAttr = '';
if( !empty( $_CONF['languages'] ) && !empty( $_CONF['language_files'] ))
More information about the geeklog-cvs
mailing list