aboutsummaryrefslogtreecommitdiffstats
path: root/template/default/htmlfunctions.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-05-18 21:42:32 +0000
committerz0rglub <z0rglub@piwigo.org>2003-05-18 21:42:32 +0000
commitaac81a8a382f7ec527e22d6dee959400d77e1a21 (patch)
treeb51b5180e85326af0cfebf88bcad005ba93d5118 /template/default/htmlfunctions.inc.php
parent2c2af65b6a95e20ba9ca49139683d2d150edb1b6 (diff)
*** empty log message ***
git-svn-id: http://piwigo.org/svn/trunk@14 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/default/htmlfunctions.inc.php')
-rw-r--r--template/default/htmlfunctions.inc.php33
1 files changed, 5 insertions, 28 deletions
diff --git a/template/default/htmlfunctions.inc.php b/template/default/htmlfunctions.inc.php
index d7464610c..141b32a7c 100644
--- a/template/default/htmlfunctions.inc.php
+++ b/template/default/htmlfunctions.inc.php
@@ -38,30 +38,6 @@ function get_icon( $date_comparaison )
}
return $output;
}
-/*
-function affiche_icone_recent( $date_comparaison )
-{
- global $user, $conf;
- $difference = time() - $date_comparaison;
- $jours = 24*60*60;
- $output = '';
- if ( $difference < $conf['periode_longue'] * $jours )
- {
- $icon_url = './theme/'.$user['theme'].'/';
- if ( $difference < $conf['periode_courte'] * $jours )
- {
- $icon_url.= 'new_long.gif';
- }
- else
- {
- $icon_url.= 'new_short.gif';
- }
- $size = getimagesize( $icon_url );
- $output = '<img src="'.$icon_url.'" style="border:0;height:'.$size[1].'px;width:'.$size[0].'px" alt="" />';
- }
- return $output;
-}
-*/
function create_navigation_bar( $url, $nb_element, $start,
$nb_element_page, $link_class )
@@ -121,12 +97,12 @@ function get_frame_start()
{
return '<table style="width:';
}
-/*
+
function get_frame_begin()
{
return ';">
<tr>
- <td style="border:2px solid lightgreen;width:100%;padding:5px;background-color:black;">';
+ <td style="border:1px dashed gray;width:100%;padding:5px;background-color:white;">';
}
function get_frame_end()
@@ -136,7 +112,7 @@ function get_frame_end()
</tr>
</table>';
}
-*/
+/*
function get_frame_begin()
{
global $user;
@@ -171,11 +147,12 @@ function get_frame_end()
</tr>
</table>';
}
-
+*/
function initialize_template()
{
global $vtp, $handle, $user;
+ $vtp->setGlobalVar( $handle, 'style', $user['style'] );
$vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() );
$vtp->setGlobalVar( $handle, 'frame_begin', get_frame_begin() );
$vtp->setGlobalVar( $handle, 'frame_end', get_frame_end() );