mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
- removed unused var from template
- removed 2 unused rules from public content.css - index.php improvement (as in picture) - the log is done after sending first output to client git-svn-id: http://piwigo.org/svn/trunk@2699 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
|
|
||||||
|
|
||||||
require_once 'smarty/libs/Smarty.class.php';
|
require_once(PHPWG_ROOT_PATH.'include/smarty/libs/Smarty.class.php');
|
||||||
|
|
||||||
// migrate lang:XXX
|
// migrate lang:XXX
|
||||||
// sed "s/{lang:\([^}]\+\)}/{\'\1\'|@translate}/g" my_template.tpl
|
// sed "s/{lang:\([^}]\+\)}/{\'\1\'|@translate}/g" my_template.tpl
|
||||||
@@ -329,8 +329,6 @@ class Template {
|
|||||||
/** flushes the output */
|
/** flushes the output */
|
||||||
function p()
|
function p()
|
||||||
{
|
{
|
||||||
$start = get_moment();
|
|
||||||
|
|
||||||
$this->flush();
|
$this->flush();
|
||||||
|
|
||||||
if ($this->smarty->debugging)
|
if ($this->smarty->debugging)
|
||||||
@@ -338,7 +336,6 @@ class Template {
|
|||||||
global $t2;
|
global $t2;
|
||||||
$this->smarty->assign(
|
$this->smarty->assign(
|
||||||
array(
|
array(
|
||||||
'AAAA_DEBUG_OUTPUT_TIME__' => get_elapsed_time($start, get_moment()),
|
|
||||||
'AAAA_DEBUG_TOTAL_TIME__' => get_elapsed_time($t2, get_moment())
|
'AAAA_DEBUG_TOTAL_TIME__' => get_elapsed_time($t2, get_moment())
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -287,11 +287,10 @@ if (!empty($page['cat_slideshow_url']))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------ log informations
|
|
||||||
pwg_log();
|
|
||||||
|
|
||||||
include(PHPWG_ROOT_PATH.'include/page_header.php');
|
include(PHPWG_ROOT_PATH.'include/page_header.php');
|
||||||
trigger_action('loc_end_index');
|
trigger_action('loc_end_index');
|
||||||
$template->pparse('index');
|
$template->pparse('index');
|
||||||
|
//------------------------------------------------------------ log informations
|
||||||
|
pwg_log();
|
||||||
include(PHPWG_ROOT_PATH.'include/page_tail.php');
|
include(PHPWG_ROOT_PATH.'include/page_tail.php');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -20,16 +20,8 @@ BODY#theNBMPage .content
|
|||||||
margin: 1em;
|
margin: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content H3 {
|
|
||||||
margin-bottom: 1ex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content H2 { margin-bottom: 3px;} /*<- for IE otherwise calendar select is displaced to middle of page*/
|
.content H2 { margin-bottom: 3px;} /*<- for IE otherwise calendar select is displaced to middle of page*/
|
||||||
|
|
||||||
.content H3 {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content .navigationBar, .content .additional_info, .content .calendarBar {
|
.content .navigationBar, .content .additional_info, .content .calendarBar {
|
||||||
margin: 8px 4px;
|
margin: 8px 4px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user