From bef4b3e3aa8e3d54cbf8b4962b9b5d4a89b55429 Mon Sep 17 00:00:00 2001 From: gweltas Date: Mon, 2 Feb 2004 00:55:18 +0000 Subject: Merge of the 1.3.1 release Creation of an unique include file (common.php) Creation of an unique define file (include/constants.php) Modification of the installation procedure git-svn-id: http://piwigo.org/svn/trunk@345 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/default/about.vtp | 13 +- template/default/admin/cat_list.vtp | 18 ++- template/default/admin/cat_modify.vtp | 7 +- template/default/admin/comments.vtp | 2 +- template/default/admin/configuration.vtp | 2 +- template/default/admin/infos_image.vtp | 19 ++- template/default/admin/picture_modify.vtp | 6 + template/default/admin/stats.vtp | 43 ------ template/default/category.vtp | 38 ++---- template/default/comments.vtp | 66 +--------- template/default/default-admin.css | 93 +++++++++++++ template/default/default.css | 208 ++++++++++++++++++++++++++++++ template/default/footer.vtp | 8 ++ template/default/header.vtp | 13 ++ template/default/htmlfunctions.inc.php | 37 +++--- template/default/identification.vtp | 13 +- template/default/picture.vtp | 58 +-------- template/default/profile.vtp | 13 +- template/default/register.vtp | 13 +- template/default/search.vtp | 13 +- template/default/style.inc.php | 147 --------------------- template/default/theme/conf.php | 23 ---- template/default/upload.vtp | 13 +- 23 files changed, 409 insertions(+), 457 deletions(-) create mode 100644 template/default/default-admin.css create mode 100644 template/default/default.css create mode 100644 template/default/footer.vtp create mode 100644 template/default/header.vtp delete mode 100644 template/default/style.inc.php delete mode 100644 template/default/theme/conf.php (limited to 'template/default') diff --git a/template/default/about.vtp b/template/default/about.vtp index 7a0802fef..5b416d1b8 100644 --- a/template/default/about.vtp +++ b/template/default/about.vtp @@ -1,11 +1,3 @@ - - - {#style} - {#about_page_title} - - - - {#header} -
@@ -26,7 +18,4 @@
- {#footer} - - \ No newline at end of file + \ No newline at end of file diff --git a/template/default/admin/cat_list.vtp b/template/default/admin/cat_list.vtp index 884b6a937..997f3d1f1 100644 --- a/template/default/admin/cat_list.vtp +++ b/template/default/admin/cat_list.vtp @@ -8,26 +8,32 @@ - - - - + +
+
{#cat_add} {#cat_parent} + + + + +
-
<{#td} style="width:50%;text-align:left;"> - {#indent}> + {#indent} + > + > + >  {#name} [ dir : {#dir} diff --git a/template/default/admin/cat_modify.vtp b/template/default/admin/cat_modify.vtp index 6293871a0..5436ff220 100644 --- a/template/default/admin/cat_modify.vtp +++ b/template/default/admin/cat_modify.vtp @@ -64,11 +64,16 @@ diff --git a/template/default/admin/comments.vtp b/template/default/admin/comments.vtp index 05edc4c98..051008156 100644 --- a/template/default/admin/comments.vtp +++ b/template/default/admin/comments.vtp @@ -24,7 +24,7 @@ -
+
{#cat_parent} + + + + +
- + diff --git a/template/default/admin/infos_image.vtp b/template/default/admin/infos_image.vtp index dd1f3b8d3..869b2885b 100644 --- a/template/default/admin/infos_image.vtp +++ b/template/default/admin/infos_image.vtp @@ -1,3 +1,13 @@ + +
+
{#errors_title}
+ +
+
diff --git a/template/default/admin/configuration.vtp b/template/default/admin/configuration.vtp index 162e530ee..b3ec239ee 100644 --- a/template/default/admin/configuration.vtp +++ b/template/default/admin/configuration.vtp @@ -47,7 +47,7 @@
{#title}{#title}
@@ -75,13 +85,18 @@ - + + + + + +
< {#infoimage_associate} + -
diff --git a/template/default/admin/picture_modify.vtp b/template/default/admin/picture_modify.vtp index 9cf36b4eb..c68021091 100644 --- a/template/default/admin/picture_modify.vtp +++ b/template/default/admin/picture_modify.vtp @@ -76,11 +76,17 @@
 
{#infoimage_associate} + + + + + +
diff --git a/template/default/admin/stats.vtp b/template/default/admin/stats.vtp index 9967fdd33..e66c1ba18 100644 --- a/template/default/admin/stats.vtp +++ b/template/default/admin/stats.vtp @@ -1,46 +1,3 @@ -
{#option}{#separation} diff --git a/template/default/category.vtp b/template/default/category.vtp index 29bff309a..bab094d54 100644 --- a/template/default/category.vtp +++ b/template/default/category.vtp @@ -1,26 +1,20 @@ - - - - {#style} - {#title} - - - {#header}
{#frame_start}100%{#frame_begin} -
{#categories}
+ {#frame_end}
 
@@ -31,7 +25,7 @@  > {#name}
-
 > {#upload_picture} +
 > {#upload_picture} {#frame_end} @@ -54,9 +48,9 @@ {#alt}
- {#name} - + class="imgLink"/> +
+ {#name} {#icon}
{#nb} {#comments} @@ -101,12 +95,4 @@
- - - - - {#footer} - - \ No newline at end of file + \ No newline at end of file diff --git a/template/default/comments.vtp b/template/default/comments.vtp index 133f9578c..1c729ee74 100644 --- a/template/default/comments.vtp +++ b/template/default/comments.vtp @@ -1,52 +1,3 @@ - - - {#style} - {#title_comments} - - - - - - {#header}
@@ -72,18 +23,15 @@
- - @@ -113,7 +58,4 @@ {#frame_end} -
+ {#thumb_alt} -
{#title}
+
+
{#title}
- - - - -
@@ -101,9 +49,6 @@
-
- {#footer} - - \ No newline at end of file +
\ No newline at end of file diff --git a/template/default/default-admin.css b/template/default/default-admin.css new file mode 100644 index 000000000..7270c1bb1 --- /dev/null +++ b/template/default/default-admin.css @@ -0,0 +1,93 @@ +@import url("default.css"); + +a, a:hover { +color:#006699; +} + +body,font,table,input,form,select,textarea { +font-family:arial,verdana,sans-serif; +font-size:12px; +color:#000000; +text-align:left; +} +table +{ +border-collapse:separate; +} +body { +background-color:#E5E5E5; +margin:5px; +} + +.table1 { +border-collapse:collapse; +background-color:#FFFFFF; +} +.contenucellule { +background-color:#EEEEEE; +border:2px solid #006699; +} +.style1 { +margin-top:20px; +} +th { +font-weight:bold; +background-color:#D3DCE3; +margin-bottom:10px; +text-align: center; +} +td.row1 { +background-color:#E6E4E4; +} +td.row2,td.throw2 { +background-color:#E8E8E8; +} +td.throw2 { +text-align:center; +font-weight:bold; +} +td.row3 { +background-color:#eeeeee; +} +td.row4 { +background-color:#cccccc; +} +.info { +color:darkblue; +text-align:center; +} +div.key { +margin-left : 10px; +} +td.choice { +text-align : center; +} +div.install_warning { +text-align:center; +color:red; +margin:20px; +font-weight:bold; +} + +.tableComment,.cellAuthor,.cellInfo { +color:#000000; +border-color:#006699; +} +.commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent +{ +color:#000000; +} +.errors { + text-align:left; + margin:25px; + background-color:#ffe1e1; + border:1px solid red; + color:black; +} +.errors_title { + margin:5px; + font-weight:bold; + font-size:120%; + text-align:center; + color:red; +} \ No newline at end of file diff --git a/template/default/default.css b/template/default/default.css new file mode 100644 index 000000000..8c7e447f9 --- /dev/null +++ b/template/default/default.css @@ -0,0 +1,208 @@ +a { + text-decoration:none; + color:#E0E0E0; +} +a:hover { + text-decoration:underline; + color:#E0E0E0; +} + +a.back,body { + color:#E0E0E0; +} +body { + font-family:arial, sans-serif; + font-size:12px; + background-color:#444444; + margin:5px; +} +table, input { + font-family:arial, sans-serif; + font-size:12px; +} +.imgLink { + border:1px solid #E0E0E0; +} +.imgLink:hover { + text-decoration:none; +} +.titrePage,.titreMenu,.menu,.info,.commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar { + color:lightgray; +} +.titreMenu, .menu, .info { + margin-bottom:5px; + white-space:nowrap; +} +.menu, .titrePage, .info { + margin-left:2px; + margin-right:2px; +} +.menuInfoCat { + font-family:sans-serif; + font-size:11px; +} +.totalImages { + text-align:center; + margin-top:5px; + 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; +} +.comments { + text-align:justify; + font-style:italic; +} +.navigationBar { + text-align:center; +} +.infoCat { + text-align:left; +} +.thumbnail { + font-size:11px; + text-align:center; +} +.copyright { + font-size:11px; + text-align:center; + font-family:sans-serif; + letter-spacing:0.3mm; +} +.commentImage { + font-weight:bold; + text-align:center; + font-size:17px; +} +.bouton { + background:lightgray; +} +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; + margin-bottom:5px; + background-color:red; + font-weight:bold; + border:1px solid black; + color:white; +} +div.information { + text-align:center; + border:2px solid #E0E0E0; + margin:10px; + padding:5px; +} +.commentsAuthor, .commentsTitle, .commentsInfos, .commentsContent, .commentsNavigationBar { + + font-family:arial, sans-Serif; + font-size:12px; +} +.commentsTitle, .commentsAuthor { + text-align:center; + font-weight:bold; +} +.commentsInfos { + padding:3px 3px 3px 10px; + font-size:11px; + text-align:right; +} +.commentsContent { + margin:10px; +} +.commentsTitle { + margin-top:15px; +} +.commentsAuthor { + margin:5px; +} +.commentsNavigationBar { + margin:10px; +} +.tableComment,.cellAuthor,.cellInfo { + border-color:#E0E0E0; + border-style:solid; +} +.tableComment { + width:100%; + border-width:2px; + text-align:left; + padding: 10px; +} +.cellAuthor { + border-width:0px; + border-right-width:1px; + width:20%; +} +.cellInfo { + border-width:0px; + border-bottom-width:1px; +} + + .miniature { + border:solid 1px black; + } + .titretable1 { + color:black; + background-color:#D3DCE3; + text-align:center; + border:2px solid #006699; + font-weight:bold; + border-bottom:0px; + } + .grostitre { + text-align:center; + margin:10px 50px 10px 50px; + font-size:20px; + width:300px; + } + .plan { + margin:10px 10px 10px 2px; + white-space:nowrap; + } + .cat_plan { + font-weight:bold; + } + .retrait { + margin:10px; + margin-left:30px; + margin-top:2px; + } + .erreur { + color:red; + text-align:center; + } + .errors_title { + margin:5px; + font-weight:bold; + font-size:120%; + text-align:center; + color:red; + } \ No newline at end of file diff --git a/template/default/footer.vtp b/template/default/footer.vtp new file mode 100644 index 000000000..1cf62a5d5 --- /dev/null +++ b/template/default/footer.vtp @@ -0,0 +1,8 @@ + + + + {#footer} + + \ No newline at end of file diff --git a/template/default/header.vtp b/template/default/header.vtp new file mode 100644 index 000000000..e97197576 --- /dev/null +++ b/template/default/header.vtp @@ -0,0 +1,13 @@ + + + + + + + + +{#title} + + + +{#header} diff --git a/template/default/htmlfunctions.inc.php b/template/default/htmlfunctions.inc.php index 2010a2768..ad52bfc13 100644 --- a/template/default/htmlfunctions.inc.php +++ b/template/default/htmlfunctions.inc.php @@ -17,10 +17,10 @@ * * ***************************************************************************/ -include( PREFIX_INCLUDE.'./template/'.$user['template'].'/theme/conf.php' ); +//include( PREFIX_INCLUDE.'./template/'.$user['template'].'/theme/conf.php' ); $user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif'; $user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif'; -include_once( PREFIX_INCLUDE.'./template/'.$user['template'].'/style.inc.php'); +//include_once( PREFIX_INCLUDE.'./template/'.$user['template'].'/style.inc.php'); function get_icon( $date_comparaison ) { @@ -160,15 +160,15 @@ function initialize_template() { global $vtp, $handle, $user, $lang; - $vtp->setGlobalVar( $handle, 'charset', $lang['charset'] ); - $vtp->setGlobalVar( $handle, 'style', $user['style'] ); + // $vtp->setGlobalVar( $handle, 'charset', $lang['charset'] ); + //$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() ); - $vtp->setVarF( $handle, 'header', - './template/'.$user['template'].'/header.htm' ); - $vtp->setVarF( $handle, 'footer', - './template/'.$user['template'].'/footer.htm' ); + //$vtp->setVarF( $handle, 'header', + // './template/'.$user['template'].'/header.htm' ); + //$vtp->setVarF( $handle, 'footer', + // './template/'.$user['template'].'/footer.htm' ); } function display_category( $category, $indent, $handle ) @@ -177,8 +177,7 @@ function display_category( $category, $indent, $handle ) $vtp->addSession( $handle, 'category' ); $vtp->setVar( $handle, 'category.indent', $indent ); - - if ( $user['expand'] or count( $category['subcats'] ) == 0 ) + if ( $user['expand'] or $category['nb_sub_categories'] == 0 ) { $vtp->addSession( $handle, 'bullet_wo_link' ); $vtp->setVar( $handle, 'bullet_wo_link.bullet_url', @@ -188,12 +187,16 @@ function display_category( $category, $indent, $handle ) else { $vtp->addSession( $handle, 'bullet_w_link' ); - $url = './category.php?cat='.$page['cat']; + $url = './category.php'; + if (isset($page['cat'])) + { + $url .='?cat='.$page['cat']; $url.= '&expand='.$category['expand_string']; - if ( $page['cat'] == 'search' ) - { - $url.= '&search='.$_GET['search'].'&mode='.$_GET['mode']; - } + } + else if ($category['expand_string']<>'') + { + $url.= '?expand='.$category['expand_string']; + } $vtp->setVar( $handle, 'bullet_w_link.bullet_link', add_session_id($url) ); if ( $category['expanded'] ) { @@ -220,10 +223,10 @@ function display_category( $category, $indent, $handle ) { $vtp->setVar( $handle, 'category.name_style', 'font-weight:bold;' ); } - if ( count( $category['subcats'] ) > 0 ) + if ( $category['nb_sub_categories'] > 0 ) { $vtp->addSession( $handle, 'subcat' ); - $vtp->setVar( $handle, 'subcat.nb_subcats', count($category['subcats']) ); + $vtp->setVar( $handle,'subcat.nb_subcats',$category['nb_sub_categories'] ); $vtp->closeSession( $handle, 'subcat' ); } $vtp->setVar( $handle, 'category.total_cat', $category['nb_images'] ); diff --git a/template/default/identification.vtp b/template/default/identification.vtp index 6240d0f99..132776ad6 100644 --- a/template/default/identification.vtp +++ b/template/default/identification.vtp @@ -1,11 +1,3 @@ - - - {#style} - {#ident_page_title} - - - - {#header} -
@@ -72,7 +64,4 @@ {#frame_end}
- {#footer} - - \ No newline at end of file + \ No newline at end of file diff --git a/template/default/picture.vtp b/template/default/picture.vtp index 6af7f54c6..2fddd393a 100644 --- a/template/default/picture.vtp +++ b/template/default/picture.vtp @@ -1,54 +1,3 @@ - - - - - - - {#style} - - - {#page_title} - - - {#header}
{#content}
@@ -85,7 +34,7 @@
 
{#frame_start}1%{#frame_begin} - {#picture_alt} + {#picture_alt}
{#picture_comment}
@@ -184,7 +133,4 @@ -
- {#footer} - - \ No newline at end of file + \ No newline at end of file diff --git a/template/default/profile.vtp b/template/default/profile.vtp index 3aef1460a..e53394e97 100644 --- a/template/default/profile.vtp +++ b/template/default/profile.vtp @@ -1,11 +1,3 @@ - - - {#style} - {#customize_page_title} - - - - {#header} -
@@ -96,7 +88,4 @@ {#frame_end}
- {#footer} - - \ No newline at end of file + \ No newline at end of file diff --git a/template/default/register.vtp b/template/default/register.vtp index f7104641c..f4d97c52f 100644 --- a/template/default/register.vtp +++ b/template/default/register.vtp @@ -1,11 +1,3 @@ - - - {#style} - {#register_page_title} - - - - {#header} -
@@ -68,7 +60,4 @@ {#frame_end}
- {#footer} - - \ No newline at end of file + \ No newline at end of file diff --git a/template/default/search.vtp b/template/default/search.vtp index 5b6f094ea..bc6b92995 100644 --- a/template/default/search.vtp +++ b/template/default/search.vtp @@ -1,11 +1,3 @@ - - - {#style} - {#search_title} - - - - {#header} -
@@ -78,7 +70,4 @@ {#frame_end}
- {#footer} - - \ No newline at end of file + \ No newline at end of file diff --git a/template/default/style.inc.php b/template/default/style.inc.php deleted file mode 100644 index 14ddebb66..000000000 --- a/template/default/style.inc.php +++ /dev/null @@ -1,147 +0,0 @@ - * - * author : Pierrick LE GALL * - * * - * $Id$ - * * - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; * - * * - ***************************************************************************/ -$user['style'] = ''; \ No newline at end of file diff --git a/template/default/theme/conf.php b/template/default/theme/conf.php deleted file mode 100644 index 0f77103e5..000000000 --- a/template/default/theme/conf.php +++ /dev/null @@ -1,23 +0,0 @@ - * - * author : Jerome * - * * - * $Id$ - * * - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; * - * * - ***************************************************************************/ - -$user['couleur_fond'] = '#444444'; -$user['couleur_text_fond'] = 'white'; -$user['couleur_text'] = 'white'; -?> \ No newline at end of file diff --git a/template/default/upload.vtp b/template/default/upload.vtp index 1ac1c3ccb..3b618442e 100644 --- a/template/default/upload.vtp +++ b/template/default/upload.vtp @@ -1,11 +1,3 @@ - - - {#style} - {#upload_title} - - - - {#header} -
@@ -109,7 +101,4 @@ {#frame_end}
- {#footer} - - \ No newline at end of file + \ No newline at end of file -- cgit v1.2.3