From 9e993f2d21e9cf7bd44a7c676af567be550dca90 Mon Sep 17 00:00:00 2001 From: gweltas Date: Thu, 26 Feb 2004 18:33:45 +0000 Subject: [PATCH] New default template - User side git-svn-id: http://piwigo.org/svn/trunk@375 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin.php | 1 + category.php | 147 ++++++++++------ identification.php | 2 +- include/common.inc.php | 2 +- include/constants.php | 6 - include/functions.inc.php | 10 +- include/functions_xml.inc.php | 4 + include/page_tail.php | 17 +- include/user.inc.php | 2 +- language/en_UK.iso-8859-1/common.lang.php | 12 +- picture.php | 13 +- 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 23 files changed, 375 insertions(+), 456 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 diff --git a/admin.php b/admin.php index 6f76ad4cc..d8b25ec64 100644 --- a/admin.php +++ b/admin.php @@ -35,6 +35,7 @@ $handle = $vtp->Open( './template/'.$user['template'].'/admin.vtp' ); // language $tpl = array( 'title_default','charset','install_warning' ); templatize_array( $tpl, 'lang', $handle ); +$vtp->setGlobalVar( $handle, 'style', './template/'.$user['template'].'/'.$user['template'].'-admin.css'); //-------------------------------------------------- install.php still exists ? if ( is_file( './install.php' ) ) { diff --git a/category.php b/category.php index 060440b68..aa836afe8 100644 --- a/category.php +++ b/category.php @@ -48,7 +48,74 @@ if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) ) { check_restrictions( $page['cat'] ); } + //-------------------------------------------------------------- initialization +function display_category( $category, $indent ) +{ + global $user,$lang,$template, $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 )); + } + } +} + // detection of the start picture to display if ( !isset( $_GET['start'] ) or !is_numeric( $_GET['start'] ) @@ -118,7 +185,6 @@ $title = $page['title']; include(PHPWG_ROOT_PATH.'include/page_header.php'); $template->set_filenames( array('category'=>'category.tpl') ); -initialize_template(); //-------------------------------------------------------------- category title $cat_title = $lang['no_category']; @@ -126,7 +192,7 @@ if ( isset ( $page['cat'] ) ) { if ( is_numeric( $page['cat'] ) ) { - $cat_title = get_cat_display_name( $page['cat_name'], '
', + $cat_title = get_cat_display_name( $page['cat_name'], ' > ', 'font-style:italic;' ); } else @@ -144,12 +210,7 @@ $template->assign_vars(array( 'NB_PICTURE' => count_user_total_images(), 'TITLE' => $cat_title, 'USERNAME' => $user['username'], - - 'S_TOP'=>$conf['top_number'], - 'S_SHORT_PERIOD'=>$user['short_period'], - 'S_LONG_PERIOD'=>$user['long_period'], - 'S_WEBMASTER'=>$conf['webmaster'], - 'S_MAIL'=>$conf['mail_webmaster'], + 'TOP_VISITED'=>$conf['top_number'], 'L_CATEGORIES' => $lang['categories'], 'L_HINT_CATEGORY' => $lang['hint_category'], @@ -167,20 +228,30 @@ $template->assign_vars(array( 'L_UPLOAD' => $lang['upload_picture'], 'L_COMMENT' => $lang['comments'], 'L_NB_IMG' => $lang['nb_image_category'], - 'L_USER' => $lang['connected_user'], - 'L_RECENT_IMAGE' => $lang['recent_image'], - 'L_DAYS' => $lang['days'], - 'L_SEND_MAIL' => $lang['send_mail'], - 'L_TITLE_MAIL' => $lang['title_send_mail'], + 'L_IDENTIFY' => $lang['ident_title'], + 'L_SUBMIT' => $lang['menu_login'], + 'L_USERNAME' => $lang['login'], + 'L_PASSWORD' => $lang['password'], + 'L_HELLO' => $lang['hello'], + 'L_LOGOUT' => $lang['logout'], + 'L_ADMIN' => $lang['admin'], + 'L_ADMIN_HINT' => $lang['hint_admin'], + 'L_PROFILE' => $lang['customize'], + 'L_PROFILE_HINT' => $lang['hint_customize'], + + 'F_IDENTIFY' => add_session_id( PHPWG_ROOT_PATH.'identification.php' ), 'T_COLLAPSED' => $user['lien_collapsed'], 'T_SHORT'=>get_icon( time() ), 'T_LONG'=>get_icon( time() - ( $user['short_period'] * 24 * 60 * 60 + 1 ) ), - 'U_HOME' => add_session_id( 'category.php' ), - 'U_FAVORITE' => add_session_id( './category.php?cat=fav&expand='.$page['expand'] ), - 'U_MOST_VISITED'=>add_session_id( './category.php?cat=most_visited&expand='.$page['expand'] ), - 'U_RECENT'=>add_session_id( './category.php?cat=recent&expand='.$page['expand'] ) + 'U_HOME' => add_session_id( PHPWG_ROOT_PATH.'category.php' ), + 'U_FAVORITE' => add_session_id( PHPWG_ROOT_PATH.'category.php?cat=fav&expand='.$page['expand'] ), + 'U_MOST_VISITED'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=most_visited&expand='.$page['expand'] ), + 'U_RECENT'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=recent&expand='.$page['expand'] ), + 'U_LOGOUT' => add_session_id( PHPWG_ROOT_PATH.'category.php?act=logout' ), + 'U_ADMIN'=>add_session_id( PHPWG_ROOT_PATH.'admin.php' ), + 'U_PROFILE'=>add_session_id(PHPWG_ROOT_PATH.'profile.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] )) ) ); @@ -201,35 +272,19 @@ if ( !$user['is_the_guest'] ) $template->assign_block_vars('username', array()); } //--------------------------------------------------------------------- summary -$sum_title = ''; -$sum_name=''; -$sum_url = ''; + if ( !$user['is_the_guest'] ) { - $sum_name=replace_space($lang['logout']); - $sum_url = 'category.php?act=logout'; + $template->assign_block_vars('logout',array()); + // administration link + if ( $user['status'] == 'admin' ) + { + $template->assign_block_vars('logout.admin', array()); + } } else { - $sum_title = $lang['hint_login']; - $sum_name=replace_space( $lang['menu_login']); - $sum_url = 'identification.php'; -} -$template->assign_block_vars('summary', array( - 'TITLE'=>$sum_title, - 'NAME'=>$sum_name, - 'U_SUMMARY'=>add_session_id( $sum_url ), - ) -); - -// customization link -if ( !$user['is_the_guest'] ) -{ - $template->assign_block_vars('summary', array( - 'TITLE'=>$lang['hint_customize'], - 'NAME'=>$lang['customize'], - 'U_SUMMARY'=>add_session_id('profile.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] )), - )); + $template->assign_block_vars('login',array()); } // search link @@ -253,16 +308,6 @@ $template->assign_block_vars('summary', array( 'U_SUMMARY'=>add_session_id( 'about.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] ) ) )); -// administration link -if ( $user['status'] == 'admin' ) -{ - $template->assign_block_vars('summary', array( - 'TITLE'=>$lang['hint_admin'], - 'NAME'=>$lang['admin'], - 'U_SUMMARY'=>add_session_id( 'admin.php' ) - )); -} - //------------------------------------------------------------------ thumbnails if ( isset( $page['cat'] ) && $page['cat_nb_images'] != 0 ) { diff --git a/identification.php b/identification.php index 9c3abd6aa..ac2477d27 100644 --- a/identification.php +++ b/identification.php @@ -38,7 +38,7 @@ if ( isset( $_POST['login'] ) ) $query.= ' FROM '.USERS_TABLE; $query.= " WHERE username = '".$_POST['username']."';"; $row = mysql_fetch_array( mysql_query( $query ) ); - if( $row['password'] == md5( $_POST['pass'] ) ) + if( $row['password'] == md5( $_POST['password'] ) ) { $session_id = session_create( $_POST['username'] ); $url = 'category.php?id='.$session_id; diff --git a/include/common.inc.php b/include/common.inc.php index 27b74ae5a..9c3e84cde 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -119,7 +119,7 @@ if( !defined("PHPWG_INSTALLED") ) exit; } - +define( 'PREFIX_INCLUDE', '' );// en attendant la migration complète include(PHPWG_ROOT_PATH . 'include/constants.php'); include(PHPWG_ROOT_PATH . 'include/config.inc.php'); include(PHPWG_ROOT_PATH . 'include/functions.inc.php'); diff --git a/include/constants.php b/include/constants.php index b2c75a895..473bacfdc 100644 --- a/include/constants.php +++ b/include/constants.php @@ -25,8 +25,6 @@ // | USA. | // +-----------------------------------------------------------------------+ -define( 'PREFIX_INCLUDE', '' ); - // Debug Level define('DEBUG', 1); // Debugging on //define('DEBUG', 0); // Debugging off @@ -37,10 +35,6 @@ define('GENERAL_ERROR', 202); define('CRITICAL_MESSAGE', 203); define('CRITICAL_ERROR', 204); -// xml tags -define( 'ATT_REG', '\w+' ); -define( 'VAL_REG', '[^"]*' ); - // Table names define('CATEGORIES_TABLE', $table_prefix.'categories'); define('COMMENTS_TABLE', $table_prefix.'comments'); diff --git a/include/functions.inc.php b/include/functions.inc.php index 55a4426d7..5287bf99e 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -24,11 +24,11 @@ // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ -include( PREFIX_INCLUDE.'./include/functions_user.inc.php' ); -include( PREFIX_INCLUDE.'./include/functions_session.inc.php' ); -include( PREFIX_INCLUDE.'./include/functions_category.inc.php' ); -include( PREFIX_INCLUDE.'./include/functions_xml.inc.php' ); -include( PREFIX_INCLUDE.'./include/functions_group.inc.php' ); +include( PHPWG_ROOT_PATH .'include/functions_user.inc.php' ); +include( PHPWG_ROOT_PATH .'include/functions_session.inc.php' ); +include( PHPWG_ROOT_PATH .'include/functions_category.inc.php' ); +include( PHPWG_ROOT_PATH .'include/functions_xml.inc.php' ); +include( PHPWG_ROOT_PATH .'include/functions_group.inc.php' ); //----------------------------------------------------------- generic functions diff --git a/include/functions_xml.inc.php b/include/functions_xml.inc.php index a8ce44413..de21dc61f 100644 --- a/include/functions_xml.inc.php +++ b/include/functions_xml.inc.php @@ -24,6 +24,10 @@ // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ +// xml tags +define( 'ATT_REG', '\w+' ); +define( 'VAL_REG', '[^"]*' ); + //------------------------------------------------------------------- functions // getContent returns the content of a tag // diff --git a/include/page_tail.php b/include/page_tail.php index cc6b04f03..ac4df0a78 100644 --- a/include/page_tail.php +++ b/include/page_tail.php @@ -31,12 +31,17 @@ $template->set_filenames(array('tail'=>'footer.tpl')); $time = get_elapsed_time( $t2, get_moment() ); $template->assign_vars(array( - 'L_GEN_TIME' => $lang['generation_time'], - 'S_TIME' => $time, - 'S_VERSION' => $conf['version'], - 'U_SITE' => add_session_id( $conf['site_url'] ) - ) - ); + 'TIME' => $time, + 'VERSION' => $conf['version'], + 'WEBMASTER'=>$conf['webmaster'], + 'MAIL'=>$conf['mail_webmaster'], + + 'L_GEN_TIME' => $lang['generation_time'], + 'L_SEND_MAIL' => $lang['send_mail'], + 'L_TITLE_MAIL' => $lang['title_send_mail'], + + 'U_SITE' => add_session_id( $conf['site_url'] ) + )); if (DEBUG) { diff --git a/include/user.inc.php b/include/user.inc.php index c86ce93fc..880e419d4 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -129,6 +129,6 @@ if ($user['status'] == 'admin') $isadmin =true; // calculation of the number of picture to display per page $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; init_userprefs($user); -$user['lien_expanded']='./template/'.$user['template'].'/theme/expanded..gif'; +$user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif'; $user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif'; ?> diff --git a/language/en_UK.iso-8859-1/common.lang.php b/language/en_UK.iso-8859-1/common.lang.php index b8dc8ed48..8fc0e18f8 100644 --- a/language/en_UK.iso-8859-1/common.lang.php +++ b/language/en_UK.iso-8859-1/common.lang.php @@ -45,7 +45,7 @@ $lang['title_menu'] = 'Menu'; $lang['change_login'] = 'change login'; $lang['login'] = 'login'; $lang['hint_login'] = 'identification enables site\'s appareance customization'; -$lang['logout'] = 'logout'; +$lang['logout'] = 'Logout'; $lang['customize'] = 'customize'; $lang['hint_customize'] = 'customize the appareance of the gallery'; $lang['hint_search'] = 'search'; @@ -54,16 +54,16 @@ $lang['favorite_cat'] = 'favorites'; $lang['favorite_cat_hint'] = 'display your favorites'; $lang['about'] = 'about'; $lang['hint_about'] = 'more informations on PhpWebGallery...'; -$lang['admin'] = 'admin'; +$lang['admin'] = 'Administration'; $lang['hint_admin'] = 'available for administrators only'; -$lang['no_category'] = 'No category selected
please select it in the menu'; +$lang['no_category'] = 'Home'; $lang['page_number'] = 'page number'; $lang['previous_page'] = 'Previous'; $lang['next_page'] = 'Next'; $lang['nb_image_category'] = 'number of images in this category'; -$lang['recent_image'] = 'image within the'; +$lang['recent_image'] = 'Image within the'; $lang['days'] = 'days'; -$lang['send_mail'] = 'Any comment? Send me an e-mail'; +$lang['send_mail'] = 'Contact the webmaster'; $lang['title_send_mail'] = 'A comment on your site'; $lang['sub-cat'] = 'subcategories'; $lang['images_available'] = 'images in this category'; @@ -233,5 +233,5 @@ $lang['stats_last_days'] = 'last days'; $lang['hint_comments'] = 'See last users comments'; $lang['menu_login'] = 'login'; $lang['update_wrong_dirname'] = 'The name of directories and files must be composed of letters, figures, "-", "_" or "."'; - +$lang['hello'] = 'Hello'; ?> \ No newline at end of file diff --git a/picture.php b/picture.php index 47f0d51d1..03d5300c3 100644 --- a/picture.php +++ b/picture.php @@ -203,13 +203,14 @@ if ( isset( $_GET['slideshow'] ) && $next) } $title_img = $picture['current']['name']; +$title_nb = ''; if (is_numeric( $page['cat'] )) { - $title_img = get_cat_display_name( $page['cat_name'], " - ","font-style:italic;" ); + $title_img = replace_space(get_cat_display_name( $page['cat_name'], " > ","font-style:italic;" )); $n = $page['num'] + 1; - $title_img = replace_space( $title_img." - " ).$n.'/'; - $title_img.= $page['cat_nb_images']."
"; - $title_img.= $picture['current']['name']; + $title_nb = "Photo".' '.$n.'/'; + $title_nb.= $page['cat_nb_images']; + //$title_img.= $picture['current']['name']; } else if ( $page['cat'] == 'search' ) { @@ -237,7 +238,9 @@ $template->set_filenames(array('picture'=>'picture.tpl')); initialize_template(); $template->assign_vars(array( - 'TITLE' => $title_img, + 'CATEGORY' => $title_img, + 'PHOTO' => $title_nb, + 'TITLE' => $picture['current']['name'], 'PREV_TITLE_IMG' => $picture['prev']['name'], 'NEXT_TITLE_IMG' => $picture['next']['name'], 'PREV_IMG' => $picture['prev']['thumbnail'], 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; } -.titreMenu, .menu, .info { + +.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; +} + +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 0000000000000000000000000000000000000000..78ddd2dac921494ae74f729414d875605a43f608 GIT binary patch literal 4291 zcmb7GcT|(xm;F+JNQntVPqL2_W>ebhQ8w2mpzK zL;>J%6i^4~>F8i|wDd3-jDen>0e%_*XJUeLonl3v7T^&)%g@8lhZd0&Lt~^deEj07 z64DnGm6VhOu^PJS7j@(=DJdQo0nsxsz?tBj2n461Fu$X+90>BUu@LvF>0f8a3M={jVDgJ@O5rFY18;pP;005NtkLcf@mKNixL)cuYK9?-2RkPi9_Wl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EYo7geH680tRLX-So{ zN%xpHF4}22==qu5H1^K3$6)Wt!&aD{xrl-oT_s3PB!R;qaYu%@Tq?R&)0SiXD5PfDZ zOiV7;%Az!;k1yK?HQd=dmNK*_agb2x^^`Ziy6lFpDMOoU6y8`U=6GGZfgI3+wBoqm|&{_qUB+8MOO%&=g*)gYnGTb3{-o_GM+<~}@)!}Jv` z57k9s7-vX}<2i7;M@eGI43!)(_H|JVits2NEybF{Tg?Z$I2#mNNFh7JTMyo!&_Cb3 zO)oN;9vAm9FIyVYA>$j+KJe2&K?UmhR;k%+1%8#B?k0+v-aId!UI!OcT%{WECS8)} z5>h{ZpTeV;#ONyK_NtVRdQJ63!JIl*WBlea_pHJlBlb~ponuvTndlYrkTVT`CSlJd zHfs4+TvYpBvOp6oM~s=k zcGE@ct0=lp+x0I!w@Y0`Y|ogJL84i@awc!q=}J7`))eYyA+AIiYtA-JvWF(ChqQ?d zIx%WW*A`i-c6ERkUr%wp)N+j?D%@tSi9Myw_Jv$m>nfKp2u{qnC<^9tGQ|;{&XzIm z^x{Nx{X5@lsI>xpAI&vNIymv;X14ED0=p}4GA{^cRI4hI2l0=zk#r{bh_L+dXi#2= r;h
\ 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 0000000000000000000000000000000000000000..c867edec12aa1f61deac0f7227edd15a68fcd27a GIT binary patch literal 1112 zcmex=*zjEUoSA>{Rt!Je_Sk%x&$gL547LadY$W^2rDY z$XIJAX;_mC{vToxh;RHX>NEHDFMkZDkCT6&G%#2J7EUbct0z$%yA__{%jzB9oK*7h#bjc;U z<9U9KQmoIF=@a%B`tjZmj9)n6+Uh&K4qYqr3?I#r)tYwi48vlbJt4C*r#7za#@OlIiN9X1wd5=VE$EGJn@wfSdxW4<^R4oa8vaow@x7WfV zo7SH`;-XIm2h>tZ~`2 zY@KSl`{XmO+O2+E^3!Gi%IaKnoM>kIv}f+y8}%~_UrY$D;)1g&1_AzLqkD+W)@^0A##l)&Kwi literal 0 HcmV?d00001 diff --git a/template/default/theme/right-arrow.jpg b/template/default/theme/right-arrow.jpg new file mode 100644 index 0000000000000000000000000000000000000000..359ddfc2a4ba0ca1ab79baf15983c42a4ca62f0c GIT binary patch literal 1108 zcmex=*zjEUoSA>{Rt!Je_Sk%x&$gL547LadY$W^2rDY z$XIJAX;_mC{vTox~RX1dKnUR4>fLVZnfpKlzW`k{vz8?km99wZ|O;~E|9rLgon~yFFoz4_0Ytv*N%4@8> zuFB>axB3D>F9wj2N&*aw%uMV^1~W4kmo0WIJF1s*F?+Y?WAp_XgO z`zE{Zl{@#BG1zCq8@bLvqsKmSf2vdyZx+tl6>A{Pu0A8W&eY_=rT+{HrMxjc*(dje z|CBZA?G#_)Gx6``dCkJ}mgyRrdK~Fl7xL<`7MI&nO`W|v_2%6N`A-nV-$3sffUO6H zhdpCH9tBJ=1sY)Qu&}VhgAW`wf(UXptUj8%j9EX&Dcf$ONT&wLnPF=XLQ6#I@)$mfQ;J(7t@*Kex zNi$wKb^M&R=U3p0x6ieI$^+e}0J5G1Ir8_|>e(T^lMpA!)~qzQFI!PXbaUYo>Cg+zXL#JCjoD+b-#oe8yo-@wJ!B_7zE{ zaOcOK&p33zKeQ*KGhsG+SLD2<0!@sQP98Nlvxy@)r1S1UneJ1~Qqy)9zLajUYOqk; zCSb6lz0MwJH#ng%Fav`|Ac33V(s7MTZ43?kc!Cua?gE6u9jrh_02t07uY-*T1wNyo zA_LIlfr*V53nwmA*!U3cc>#5Y@P+?UX6_05+CMp1a<#gL|1jD-0|m;56i_xJq@DO?j2z4xZlq!pz`8+CW@__+O= zug-+F8TvB^lAKiIQ!8nFFhz9h)g%dKi)~N0H^0B;@-et|*PA)UTa>QrM>rU6 zPig!-Avi*J!Mn#&M_eDb^(Ean=O~k!&RF*HIgeY%p4ubLUr#>U!OzaNh{tPk-V*h< O2{W>_y8p@lzX<^1AX-lV literal 0 HcmV?d00001 diff --git a/template/default/theme/tableh1_bg.gif b/template/default/theme/tableh1_bg.gif new file mode 100644 index 0000000000000000000000000000000000000000..9f0ef65bd5603d8740a12dcd8e22313bf9c1e072 GIT binary patch literal 657 zcmV;C0&e|BNk%w1VaNa(0K@41ejE#0PE*I$B$+M@= zpFo2O9ZIyQ(W6L{DqSj6fzzi@qe`7hwW`&tShH%~%C)Q4uT~R?9ZR;X*|TWVs$I*r zt=qS7(BTJr4xw7TUm@{kM zEZKnP&!9t#9!C>oFt6t5zwd>cW3&@^LySDAyxO3~?&AYen-@t
- + + + - + + +
+ + + + {PREV_TITLE_IMG} + + + @@ -48,8 +47,14 @@
-
+ + {NEXT_TITLE_IMG} + + +
- {T_END}
{L_BACK}