diff options
author | gweltas <gweltas@piwigo.org> | 2004-02-19 00:31:09 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-02-19 00:31:09 +0000 |
commit | 78df1f97d366e5f9e4115c658ad91fab70717f29 (patch) | |
tree | 518126d0a8728d9a2c81155e6ce6527b74fbaf92 /template | |
parent | 19b4964996483b51338deedbdf1dafc6d7ec16d8 (diff) |
Split of langage files
git-svn-id: http://piwigo.org/svn/trunk@364 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | template/default/about.tpl | 8 | ||||
-rw-r--r-- | template/default/category.tpl | 4 | ||||
-rw-r--r-- | template/default/htmlfunctions.inc.php | 30 | ||||
-rw-r--r-- | template/default/picture.vtp | 136 | ||||
-rw-r--r-- | template/default/profile.tpl | 95 |
5 files changed, 132 insertions, 141 deletions
diff --git a/template/default/about.tpl b/template/default/about.tpl index a309e3dc2..41eddc785 100644 --- a/template/default/about.tpl +++ b/template/default/about.tpl @@ -1,15 +1,15 @@ <table style="width:100%;height:100%"> <tr align="center" valign="middle"> <td> - {F_START}1px{F_BEGIN} + {T_START}1px{T_BEGIN} <div class="titrePage">{PAGE_TITLE}</div> - {F_END} + {T_END} <div style="margin-bottom:5px;"> </div> - {F_START}50%{F_BEGIN} + {T_START}50%{T_BEGIN} <div class="menu" style="white-space:normal;margin:10px;"> {L_ABOUT} </div> - {F_END} + {T_END} <div style="text-align:center;margin:5px;"> <a href="{U_RETURN}">{L_RETURN}</a> </div> diff --git a/template/default/category.tpl b/template/default/category.tpl index 4575063a8..8bec51f4d 100644 --- a/template/default/category.tpl +++ b/template/default/category.tpl @@ -96,8 +96,10 @@ <td align="right"> {T_START}1%{T_BEGIN} <div class="info"> + <!-- BEGIN username --> {L_USER} {USERNAME}<br /> - {L_RECENT_IMG} {S_SHORT_PERIOD} {L_DAYS} + <!-- END username --> + {L_RECENT_IMAGE} {S_SHORT_PERIOD} {L_DAYS} {T_SHORT}<br /> {L_RECENT_IMAGE} {S_LONG_PERIOD} {L_DAYS} {T_LONG}<br /> diff --git a/template/default/htmlfunctions.inc.php b/template/default/htmlfunctions.inc.php index cd4df188a..170defc46 100644 --- a/template/default/htmlfunctions.inc.php +++ b/template/default/htmlfunctions.inc.php @@ -232,4 +232,34 @@ function display_category( $category, $indent ) } } } + +function make_jumpbox($value, $selected, $usekeys=false) +{ + $boxstring = ''; + $nb = sizeof( $value); + $keys = ($usekeys?array_keys($value):$value); + $value = ($usekeys?array_values($value):$value); + for ( $i = 0; $i < $nb; $i++ ) + { + $boxstring .= '<option value="'.$keys[$i].'"'; + if ($selected == $keys[$i]) $boxstring .=' selected="selected"'; + $boxstring .='>'.$value[$i].'</option>'; + } + return $boxstring; +} + +function make_radio($name, $value, $selected, $usekeys=false) +{ + $boxstring = ''; + $nb = sizeof( $value); + $keys = ($usekeys?array_keys($value):$value); + $value = ($usekeys?array_values($value):$value); + for ( $i = 0; $i < $nb; $i++ ) + { + $boxstring .= '<input type="radio" name="'.$name.'" value="'.$keys[$i].'"'; + if ($selected == $keys[$i]) $boxstring .=' checked'; + $boxstring .='/>'.$value[$i]; + } + return $boxstring; +} ?> diff --git a/template/default/picture.vtp b/template/default/picture.vtp deleted file mode 100644 index 2fddd393a..000000000 --- a/template/default/picture.vtp +++ /dev/null @@ -1,136 +0,0 @@ - <!--VTP_information--> - <div class="information">{#content}</div> - <!--/VTP_information--> - <!--VTP_start_slideshow--> - <div style="text-align:center;margin-bottom:5px;"> - [ {#slideshow} : - <!--VTP_second--> - <a href="{#url}" class="back" style="font-weight:bold;">{#option}</a> - <!--/VTP_second--> - {#period_seconds} ] - </div> - <!--/VTP_start_slideshow--> - <!--VTP_stop_slideshow--> - <div style="text-align:center;margin-bottom:5px;"> - [ <a href="{#url}" class="back" style="font-weight:bold;">{#slideshow_stop}</a> ] - </div> - <!--/VTP_stop_slideshow--> - <table style="width:100%;height:100%;"> - <tr align="center" valign="middle"> - <td> - <!--VTP_previous--> - <a href="{#url}" title="{#title}"> - <img src="{#src}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{#alt}"/> - </a> - <!--/VTP_previous--> - <!--VTP_previous_empty--> - - <!--/VTP_previous_empty--> - </td> - <td style="width:100%;"> - {#frame_start}1%{#frame_begin} - <div class="titrePage">{#title}</div> - {#frame_end} - <div style="margin-bottom:5px"> </div> - {#frame_start}1%{#frame_begin} - <a href="{#picture_link}"> - <img class="imgLink" style="margin:10px;width:{#picture_width}px;height:{#picture_height}px;border:1px solid" src="{#picture_src}" alt="{#picture_alt}"/> - </a> - <div class="commentImage">{#picture_comment}</div> - <table style="width:100%;"> - <tr> - <td align="center"> - <table style="margin:auto;margin-top:5px;margin-bottom:5px;"> - <!--VTP_info_line--> - <tr> - <td class="menu" style="font-weight:bold;">{#name}</td> - <td class="menu" style="text-align:right;">{#content}</td> - </tr> - <!--/VTP_info_line--> - </table> - </td> - </tr> - </table> - <!--VTP_favorite--> - <div class="menu" style="text-align:center;margin:5px;"> - <a href="{#link}" title="{#title}"><img src="{#src}" style="border:none;margin-left:5px;" alt=""/></a> - <a href="{#link}">{#alt}</a> - </div> - <!--/VTP_favorite--> - <!--VTP_modification--> - <div class="menu" style="text-align:center;margin:5px;"> - [ <a href="{#link}">{#name}</a> ] - </div> - <!--/VTP_modification--> - {#frame_end} - <div style="text-align:center;">{#back}</div> - </td> - <td> - <!--VTP_next--> - <a href="{#url}" title="{#title}"> - <img src="{#src}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{#alt}"/> - </a> - <!--/VTP_next--> - <!--VTP_next_empty--> - - <!--/VTP_next_empty--> - </td> - </tr> - <!--VTP_comments--> - <tr align="center" valign="middle"> - <td colspan="3"> - {#frame_start}90%{#frame_begin} - <table style="width:100%;"> - <tr align="center"> - <td> - <div class="commentsTitle"> - [{#nb_comments}] {#comments_title} - </div> - <div class="commentsNavigationBar">{#navigation_bar}</div> - <!--VTP_comment--> - <table class="tableComment"> - <tr> - <td rowspan="2" valign="top" class="cellAuthor"> - <div class="commentsAuthor">{#author}</div> - </td> - <td align="right" class="cellInfo"> - <div class="commentsInfos"> - {#date}<!--VTP_delete--><a href="{#link}" title="{#comments_del}"><img src="./template/{#user_template}/theme/delete.gif" style="border:none;margin-left:5px;" alt="[{#delete}]"/></a><!--/VTP_delete--> - </div> - </td> - </tr> - <tr> - <td> - <div class="commentsContent">{#content}</div> - </td> - </tr> - </table> - <!--/VTP_comment--> - <div class="commentsNavigationBar">{#navigation_bar}</div> - </td> - </tr> - </table> - <!--VTP_add_comment--> - <form method="post" action="{#form_action}"> - <table style="width:100%;"> - <tr align="center"> - <td> - <div class="commentsTitle">{#comments_add}</div> - <!--VTP_author_field--> - <div class="menu">{#author} : <input type="text" name="author" style="margin-top:5px;"/></div> - <!--/VTP_author_field--> - <!--VTP_author_known--> - <input type="hidden" name="author" value="{#value}" /> - <!--/VTP_author_known--> - <textarea name="content" rows="10" cols="50" style="overflow:auto;width:450px;margin:10px;"></textarea><br /> - <input type="submit" value="{#submit}" style="margin:10px;"/> - </td> - </tr> - </table> - </form> - <!--/VTP_add_comment--> - {#frame_end} - </td> - </tr> - <!--/VTP_comments--> - </table>
\ No newline at end of file diff --git a/template/default/profile.tpl b/template/default/profile.tpl new file mode 100644 index 000000000..8b4e4ce4b --- /dev/null +++ b/template/default/profile.tpl @@ -0,0 +1,95 @@ + <table style="width:100%;height:100%"> + <tr align="center" valign="middle"> + <td> + {T_START}1px{T_BEGIN} + <div class="titrePage">{L_TITLE}</div> + {T_END} + <div style="margin-bottom:20px"></div> + {T_START}50%{T_BEGIN} + <form method="post" action="{F_ACTION}"> + <table style="width:100%;margin-top:10px;margin-bottom:10px;"> + <tr align="center" valign="middle"> + <td> + <table width="80%"> + <!-- BEGIN errors --> + <tr> + <td colspan="2"> + <div class="errors"> + <ul> + <!-- BEGIN error --> + <li>{errors.error.ERROR}</li> + <!-- END error --> + </ul> + </div> + </td> + </tr> + <!-- END errors --> + <!-- BEGIN select --> + <tr> + <td class="menu">{select.F_LABEL}</td> + <td class="menu"> + <select name="{select.F_NAME}"> + {select.F_OPTIONS} + </select> + </td> + </tr> + <!-- END select --> + <!-- BEGIN text --> + <tr> + <td class="menu">{text.F_LABEL}</td> + <td class="menu"> + <input type="text" name="{text.F_NAME}" value="{text.F_VALUE}" /> + </td> + </tr> + <!-- END text --> + <!-- BEGIN radio --> + <tr> + <td class="menu">{radio.F_LABEL}</td> + <td class="menu"> + {radio.F_OPTIONS} + </td> + </tr> + <!-- END radio --> + <tr> + <td colspan="2"> </td> + </tr> + <tr> + <td class="menu">{L_NEW} {L_PASSWORD} <input type="checkbox" name="use_new_pwd" value="1" /></td> + <td class="menu"><input type="password" name="password" value="" /></td> + </tr> + <tr> + <td class="menu">{L_CONFIRM}</td> + <td class="menu"><input type="password" name="passwordConf" value="" /></td> + </tr> + <!-- BEGIN cookie --> + <tr> + <td colspan="2"> </td> + </tr> + <tr> + <td class="menu">{L_COOKIE} <input type="checkbox" name="create_cookie" value="1" /></td> + <td class="menu"> + <select name="cookie_expiration"> + <!-- BEGIN expiration_option --> + <option value="{#value}">{#option}</option> + <!-- END expiration_option --> + </select> + </td> + </tr> + <!-- END cookie --> + <tr> + <td colspan="2"> </td> + </tr> + <tr> + <td colspan="2" align="center"> + <input type="submit" name="submit" value="{L_SUBMIT}" style="margin:5px;"/> + </td> + </tr> + </table> + </td> + </tr> + </table> + </form> + {T_END} +</td> + </tr> + </table>
\ No newline at end of file |