aboutsummaryrefslogtreecommitdiffstats
path: root/template/default
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--template/default/htmlfunctions.inc.php33
-rw-r--r--template/default/profile.vtp6
2 files changed, 9 insertions, 30 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() );
diff --git a/template/default/profile.vtp b/template/default/profile.vtp
index ed6a8998a..2be4ae1e3 100644
--- a/template/default/profile.vtp
+++ b/template/default/profile.vtp
@@ -1,9 +1,10 @@
<html>
<head>
- {#page_style}
+ {#style}
<title>{#customize_page_title}</title>
- </head>
+ </head>
<body>
+ {#header}
<table style="width:100%;height:100%">
<tr align="center" valign="middle">
<td>
@@ -80,5 +81,6 @@
</td>
</tr>
</table>
+ {#footer}
</body>
</html> \ No newline at end of file