From 9e993f2d21e9cf7bd44a7c676af567be550dca90 Mon Sep 17 00:00:00 2001 From: gweltas Date: Thu, 26 Feb 2004 18:33:45 +0000 Subject: New default template - User side git-svn-id: http://piwigo.org/svn/trunk@375 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/default/admin.vtp | 169 ++------------------------- template/default/category.tpl | 78 ++++++------- template/default/default.css | 202 ++++++++++++++++++++++++--------- template/default/footer.tpl | 7 +- template/default/header.tpl | 2 + template/default/htmlfunctions.inc.php | 107 +++-------------- template/default/identification.tpl | 2 +- template/default/images/logo.jpg | Bin 0 -> 4291 bytes template/default/picture.tpl | 48 ++++---- template/default/theme/left-arrow.jpg | Bin 0 -> 1112 bytes template/default/theme/right-arrow.jpg | Bin 0 -> 1108 bytes template/default/theme/tableh1_bg.gif | Bin 0 -> 657 bytes 12 files changed, 241 insertions(+), 374 deletions(-) create mode 100644 template/default/images/logo.jpg create mode 100644 template/default/theme/left-arrow.jpg create mode 100644 template/default/theme/right-arrow.jpg create mode 100644 template/default/theme/tableh1_bg.gif (limited to 'template') diff --git a/template/default/admin.vtp b/template/default/admin.vtp index c17cd7f05..abe85807d 100644 --- a/template/default/admin.vtp +++ b/template/default/admin.vtp @@ -1,165 +1,10 @@ - - + + + + + {#title_default} - + - +
{#install_warning}
diff --git a/template/default/category.tpl b/template/default/category.tpl index 8bec51f4d..16307a824 100644 --- a/template/default/category.tpl +++ b/template/default/category.tpl @@ -1,7 +1,9 @@ +
+
- -
- {T_START}100%{T_BEGIN} + +
@@ -14,12 +16,12 @@ -  {category.LINK_NAME} +  {category.LINK_NAME}  [ {category.NB_SUBCATS} - - {category.TOTAL_CAT} ]{category.CAT_ICON}
+ {category.TOTAL_CAT} ]{category.CAT_ICON}
[ {NB_PICTURE} {L_TOTAL} ]
@@ -27,12 +29,9 @@
  {L_FAVORITE} [ {favorites.NB_FAV} ]
  {L_STATS} -
      {S_TOP} {L_MOST_VISITED} +
      {TOP_VISITED} {L_MOST_VISITED}
      {L_RECENT} {T_SHORT}
- {T_END} -
 
- {T_START}100%{T_BEGIN}
{L_SUMMARY}
- {T_END} +
{L_IDENTIFY}
+ +
- - - - - - - - - - -
- {T_START}1%{T_BEGIN} -
{TITLE}
- {T_END} -
 
+
+
+
{TITLE}
- +
-
+ {thumbnails.line.thumbnail.IMAGE_ALT}
-
+
@@ -90,25 +102,7 @@ {L_NB_IMG} "{cat_infos.CAT_NAME}" : {cat_infos.NB_IMG_CAT} -
- {T_START}1%{T_BEGIN} -
- - {L_USER} {USERNAME}
- - {L_RECENT_IMAGE} {S_SHORT_PERIOD} {L_DAYS} - {T_SHORT}
- {L_RECENT_IMAGE} {S_LONG_PERIOD} {L_DAYS} - {T_LONG}
- {L_SEND_MAIL} {S_WEBMASTER} -
- {T_END} -
+
\ No newline at end of file diff --git a/template/default/default.css b/template/default/default.css index 8c7e447f9..7a2d04405 100644 --- a/template/default/default.css +++ b/template/default/default.css @@ -1,41 +1,156 @@ +/* Main styles */ + +body { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size:10px; + background-color:#000000; + color:#E0E0E0; + margin:5px; +} + a { text-decoration:none; - color:#E0E0E0; + color:#FFFFFF; } a:hover { text-decoration:underline; - color:#E0E0E0; + color:#FFFFAA; } -a.back,body { +/* Navigation styles */ + +.titreMenu,.titrePage +{ + padding-right: 10px; + padding-left: 10px; + border-bottom: 1px solid #000000; + border-right: 1px solid #000000; + height: 25px; + line-height: 25px; + font-size:12px; color:#E0E0E0; + background-image: url(theme/tableh1_bg.gif); + font-weight:600; + text-align:center; } -body { - font-family:arial, sans-serif; - font-size:12px; - background-color:#444444; - margin:5px; + +.titrePage +{ + text-align:left; + font-size:16px; + margin-bottom:5px; } -table, input { - font-family:arial, sans-serif; - font-size:12px; + +.titreImg{ + text-align:center; + font-size:16px; + color:#FFF48E; + font-weight:600; +} + +.menu +{ + margin:10px 5px 10px 5px; + white-space:nowrap; + font-size:11px; } + + /* Image related styles */ + .imgLink { - border:1px solid #E0E0E0; + border-style: solid; + border-width:2px; + border-color: #A0A0A0; + margin: 2px; } + .imgLink:hover { text-decoration:none; } -.titrePage,.titreMenu,.menu,.info,.commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar { - color:lightgray; + +.image { + border: 1px solid #000000; + background-color: #FFFFFF; + text-align:center; + margin-top: 10px; + margin-bottom: 20px; + white-space: nowrap; + padding: 0px; + display: table; +} + +.commentImage { + font-weight:bold; + text-align:center; + font-size:17px; + color:#F0F0F0; + margin-bottom: 10px; +} + +/* Table styles */ + +.main { + background-color:#444444; + border: 1px solid #E0E0E0; + width:100%; + padding-bottom:30px; +} + +.table1, .home +{ + border: 1px solid #000000; + background-color:#555555; +} + +.home +{ + text-align:center; + width:100%; +} + +.table2 { + background: #797979; + border: 1px solid #000000; + margin: 0px 10px 10px 10px; +} + +td{ + padding:0px; +} + +/* Thumbnails styles */ + +.thumbnail { + font-size:11px; + text-align:center; + display:inline-table; + vertical-align: baseline; } -.titreMenu, .menu, .info { + +table.thumbnail { + border-collapse:separate; +} + +/* Other styles */ +a.back { + color:#E0E0E0; +} + +input { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size:11px; +} + +.info,.commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar { + color:#E0E0E0; + background-color:#444444; +} +.info { margin-bottom:5px; white-space:nowrap; -} -.menu, .titrePage, .info { - margin-left:2px; - margin-right:2px; + margin-left:5px; + margin-right:5px; + text-align:right; } .menuInfoCat { font-family:sans-serif; @@ -47,19 +162,7 @@ table, input { font-family:sans-serif; font-size:11px; } -.titreMenu { - font-weight:600; - text-align:center; -} -.info { - text-align:right; -} -.titrePage { - white-space:nowrap; - font-weight:500; - font-size:18px; - text-align:center; -} + .comments, .infoCat, .navigationBar { margin-top:10px; margin-bottom:10px; @@ -74,37 +177,22 @@ table, input { .infoCat { text-align:left; } -.thumbnail { - font-size:11px; - text-align:center; -} + .copyright { - font-size:11px; + font-size:10px; text-align:center; - font-family:sans-serif; - letter-spacing:0.3mm; -} -.commentImage { - font-weight:bold; - text-align:center; - font-size:17px; + letter-spacing:-1px; } + .bouton { - background:lightgray; + background:#E0E0E0; } textarea,input { color:black; } -table { - border-collapse:collapse; -} -table.thumbnail { - border-collapse:separate; -} -td { - font-family:sans-serif; - padding:0px; -} + + + .errors { text-align:left; margin-top:5px; @@ -114,6 +202,7 @@ td { border:1px solid black; color:white; } + div.information { text-align:center; border:2px solid #E0E0E0; @@ -205,4 +294,5 @@ div.information { font-size:120%; text-align:center; color:red; - } \ No newline at end of file + } + diff --git a/template/default/footer.tpl b/template/default/footer.tpl index f62f6e1f1..c6b303833 100644 --- a/template/default/footer.tpl +++ b/template/default/footer.tpl @@ -1,9 +1,12 @@ - + - + + + + \ No newline at end of file diff --git a/template/default/header.tpl b/template/default/header.tpl index b3bb96501..7e5deb3de 100644 --- a/template/default/header.tpl +++ b/template/default/header.tpl @@ -10,3 +10,5 @@ + + diff --git a/template/default/images/logo.jpg b/template/default/images/logo.jpg new file mode 100644 index 000000000..78ddd2dac Binary files /dev/null and b/template/default/images/logo.jpg differ diff --git a/template/default/picture.tpl b/template/default/picture.tpl index 6ce9f1ba4..7f664fec1 100644 --- a/template/default/picture.tpl +++ b/template/default/picture.tpl @@ -16,31 +16,30 @@
\ No newline at end of file diff --git a/template/default/htmlfunctions.inc.php b/template/default/htmlfunctions.inc.php index 9528efd80..c47ca2f1e 100644 --- a/template/default/htmlfunctions.inc.php +++ b/template/default/htmlfunctions.inc.php @@ -27,23 +27,27 @@ function get_icon( $date_comparaison ) { - global $user, $conf; + global $user, $conf, $lang; $difference = time() - $date_comparaison; $jours = 24*60*60; $output = ''; + $title = $lang['recent_image'].' '; if ( $difference < $user['long_period'] * $jours ) { $icon_url = './template/'.$user['template'].'/theme/'; if ( $difference < $user['short_period'] * $jours ) { $icon_url.= 'new_short.gif'; + $title .= $user['short_period']; } else { $icon_url.= 'new_long.gif'; + $title .= $user['long_period']; } + $title .= ' '.$lang['days']; $size = getimagesize( $icon_url ); - $output = ''; } return $output; @@ -105,7 +109,7 @@ function create_navigation_bar( $url, $nb_element, $start, function get_frame_start() { - return ' - - - + + + - - + - + - - - - + + + +
'; + '; } function get_frame_end() @@ -133,12 +137,12 @@ function get_frame_end() $size_08 = getimagesize( $path.'08.gif' ); return '
'; } @@ -153,81 +157,6 @@ function initialize_template() 'T_END' => get_frame_end() ) ); - - - global $vtp, $handle; - if (isset($handle)) - { - $vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() ); - $vtp->setGlobalVar( $handle, 'frame_begin', get_frame_begin() ); - $vtp->setGlobalVar( $handle, 'frame_end', get_frame_end() ); - } -} - -function display_category( $category, $indent ) -{ - global $user,$lang,$template, $vtp, $handle; - - $style=''; - $url = './category.php?cat='.$category['id']; - $url.= '&expand='.$category['expand_string']; - $name = $category['name']; - if ( $name == '' ) $name = str_replace( '_', ' ', $category['dir'] ); - if ( $category['id_uppercat'] == '' ) - { - $style = 'font-weight:bold;'; - } - - $template->assign_block_vars('category', array( - 'LINK_NAME' => $name, - 'INDENT' => $indent, - 'NB_SUBCATS'=>$category['nb_sub_categories'], - 'TOTAL_CAT'=>$category['nb_images'], - 'CAT_ICON'=>get_icon($category['date_last']), - - 'T_NAME'=>$style, - 'U_LINK' => add_session_id($url))); - - if ( $user['expand'] or $category['nb_sub_categories'] == 0 ) - { - $template->assign_block_vars('category.bulletnolink', array('BULLET_IMAGE' => $user['lien_collapsed'])); - } - else - { - $url = './category.php'; - if (isset($page['cat'])) - { - $url .='?cat='.$page['cat']; - $url.= '&expand='.$category['expand_string']; - } - else if ($category['expand_string']<>'') - { - $url.= '?expand='.$category['expand_string']; - } - - if ( $category['expanded'] ) - { - $img=$user['lien_expanded']; - } - else - { - $img=$user['lien_collapsed']; - } - - $template->assign_block_vars('category.bulletlink', array( - 'BULLET_IMAGE' => $img, - 'U_BULLET_LINK'=> add_session_id($url) - )); - } - - // recursive call - if ( $category['expanded'] ) - { - foreach ( $category['subcats'] as $subcat ) { - $template->assign_block_vars('category.subcat', array()); - display_category( $subcat, $indent.str_repeat( ' ', 2 )); - } - } } function make_jumpbox($value, $selected, $usekeys=false) @@ -259,4 +188,4 @@ function make_radio($name, $value, $selected, $usekeys=false) } return $boxstring; } -?> \ No newline at end of file +?> diff --git a/template/default/identification.tpl b/template/default/identification.tpl index bc36f0c78..82b808b2f 100644 --- a/template/default/identification.tpl +++ b/template/default/identification.tpl @@ -34,7 +34,7 @@
{L_PASSWORD}: - +
- - - - - - - -
- - {PREV_TITLE_IMG}{T_START}1%{T_BEGIN} -
{TITLE}
- {T_END}
- - {NEXT_TITLE_IMG}
- {T_START}1%{T_BEGIN} +
+
{CATEGORY}
+
{PHOTO}
+ +
{TITLE}
{COMMENT_IMG}
+
- - diff --git a/template/default/theme/left-arrow.jpg b/template/default/theme/left-arrow.jpg new file mode 100644 index 000000000..c867edec1 Binary files /dev/null and b/template/default/theme/left-arrow.jpg differ diff --git a/template/default/theme/right-arrow.jpg b/template/default/theme/right-arrow.jpg new file mode 100644 index 000000000..359ddfc2a Binary files /dev/null and b/template/default/theme/right-arrow.jpg differ diff --git a/template/default/theme/tableh1_bg.gif b/template/default/theme/tableh1_bg.gif new file mode 100644 index 000000000..9f0ef65bd Binary files /dev/null and b/template/default/theme/tableh1_bg.gif differ -- cgit v1.2.3
- + + + - + + +
+ + + + {PREV_TITLE_IMG} + + + @@ -48,8 +47,14 @@
-
+ + {NEXT_TITLE_IMG} + + +
- {T_END}
{L_BACK}