Changeset 9675
- Timestamp:
- Mar 14, 2011, 5:12:07 PM (14 years ago)
- Location:
- extensions/floOS
- Files:
-
- 4 added
- 4 deleted
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/floOS/OS_default/template/index.tpl
r9237 r9675 8 8 <td id="section_up"> 9 9 <div class="titrePage"> 10 <ul class="categoryActions"> 11 {if !empty($image_orders) } 12 <li> 13 {'Sort order'|@translate}: 14 <select onchange="document.location = this.options[this.selectedIndex].value;"> 15 {foreach from=$image_orders item=image_order } 16 <option value="{$image_order.URL}"{if $image_order.SELECTED} selected="selected"{/if}>{$image_order.DISPLAY}</option> 17 {/foreach} 18 </select> 19 </li> 20 {/if} 21 22 {if isset($U_CADDIE) } 23 <li><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"/></a></li> 24 {/if} 25 26 {if isset($U_EDIT) } 27 <li><a href="{$U_EDIT}" title="{'edit category informations'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"/></a></li> 28 {/if} 29 30 {if isset($U_SEARCH_RULES) } 31 <li><a href="{$U_SEARCH_RULES}" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/search_rules.png" class="button" alt="(?)" /></a></li> 32 {/if} 33 34 {if isset($U_SLIDESHOW) } 35 <li><a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_slideshow.png" class="button" alt="{'slideshow'|@translate}"/></a></li> 36 {/if} 37 38 {if isset($U_MODE_FLAT) } 39 <li><a href="{$U_MODE_FLAT}" title="{'display all elements in all sub-categories'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/flat.png" class="button" alt="{'display all elements in all sub-categories'|@translate}" /></a></li> 40 {/if} 41 42 {if isset($U_MODE_NORMAL) } 43 <li><a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/normal_mode.png" class="button" alt="{'return to normal view mode'|@translate}" /></a></li> 44 {/if} 45 46 {if isset($U_MODE_POSTED) } 47 <li><a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar.png" class="button" alt="{'display a calendar by posted date'|@translate}" /></a></li> 48 {/if} 49 50 {if isset($U_MODE_CREATED) } 51 <li><a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar_created.png" class="button" alt="{'display a calendar by creation date'|@translate}" /></a></li> 52 {/if} 53 54 {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} 55 </ul> 56 57 <h2>{$TITLE}</h2> 58 59 {if isset($chronology_views) } 60 <div class="calendarViews">{'calendar_view'|@translate}: 61 <select onchange="document.location = this.options[this.selectedIndex].value;"> 62 {foreach from=$chronology_views item=view} 63 <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option> 64 {/foreach} 65 </select> 66 </div> 67 {/if} 68 69 {if isset($chronology.TITLE) } 70 <h2>{$chronology.TITLE}</h2> 71 {/if} 72 73 </div> <!-- titrePage --> 74 10 <ul class="categoryActions"> 11 {if !empty($image_orders)} 12 <li>{'Sort order'|@translate}: {strip} 13 <select onchange="document.location = this.options[this.selectedIndex].value;"> 14 {foreach from=$image_orders item=image_order} 15 <option value="{$image_order.URL}"{if $image_order.SELECTED} selected="selected"{/if}>{$image_order.DISPLAY}</option> 16 {/foreach} 17 </select> 18 {/strip}</li> 19 {/if} 20 {if isset($favorite)} 21 <li><a href="{$favorite.U_FAVORITE}" title="{'delete all photos from your favorites'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 22 <span class="pwg-icon pwg-icon-favorite-del"> </span><span class="pwg-button-text">{'delete all photos from your favorites'|@translate}</span> 23 </a></li> 24 {/if} 25 {if isset($U_CADDIE)} 26 <li><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button"> 27 <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span> 28 </a></li> 29 {/if} 30 {if isset($U_EDIT)} 31 <li><a href="{$U_EDIT}" title="{'edit'|@translate}" class="pwg-state-default pwg-button"> 32 <span class="pwg-icon pwg-icon-category-edit"> </span><span class="pwg-button-text">{'edit'|@translate}</span> 33 </a></li> 34 {/if} 35 {if isset($U_SEARCH_RULES)} 36 {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 37 <li><a href="{$U_SEARCH_RULES}" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 38 <span class="pwg-icon pwg-icon-help"> </span><span class="pwg-button-text">(?)</span> 39 </a></li> 40 {/if} 41 {if isset($U_SLIDESHOW)} 42 <li>{strip}<a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 43 <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span> 44 </a>{/strip}</li> 45 {/if} 46 {if isset($U_MODE_FLAT)} 47 <li>{strip}<a href="{$U_MODE_FLAT}" title="{'display all photos in all sub-albums'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 48 <span class="pwg-icon pwg-icon-category-view-flat"> </span><span class="pwg-button-text">{'display all photos in all sub-albums'|@translate}</span> 49 </a>{/strip}</li> 50 {/if} 51 {if isset($U_MODE_NORMAL)} 52 <li>{strip}<a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}" class="pwg-state-default pwg-button"> 53 <span class="pwg-icon pwg-icon-category-view-normal"> </span><span class="pwg-button-text">{'return to normal view mode'|@translate}</span> 54 </a>{/strip}</li> 55 {/if} 56 {if isset($U_MODE_POSTED)} 57 <li>{strip}<a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 58 <span class="pwg-icon pwg-icon-calendar"> </span><span class="pwg-button-text">{'Calendar'|@translate}</span> 59 </a>{/strip}</li> 60 {/if} 61 {if isset($U_MODE_CREATED)} 62 <li>{strip}<a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 63 <span class="pwg-icon pwg-icon-camera-calendar"> </span><span class="pwg-button-text">{'Calendar'|@translate}</span> 64 </a>{/strip}</li> 65 {/if} 66 {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} 67 </ul> 68 69 <h2>{$TITLE}</h2> 70 71 {if isset($chronology_views)} 72 <div class="calendarViews">{'View'|@translate}: 73 <select onchange="document.location = this.options[this.selectedIndex].value;"> 74 {foreach from=$chronology_views item=view} 75 <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option> 76 {/foreach} 77 </select> 78 </div> 79 {/if} 80 81 {if isset($chronology.TITLE)} 82 <h2>{$chronology.TITLE}</h2> 83 {/if} 84 85 </div>{* <!-- titrePage --> *} 75 86 </td> 76 87 <td id="section_up_right"> </td> … … 79 90 <td id="section_left"> </td> 80 91 <td id="section_in"> 81 {if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if} 82 83 {if !empty($category_search_results) } 84 <div style="font-size:16px;text-align:left;margin:10px">{'Category results for'|@translate} <strong>{$QUERY_SEARCH}</strong> : 85 <em><strong> 86 {foreach from=$category_search_results item=res name=res_loop} 87 {if !$smarty.foreach.res_loop.first} — {/if} 88 {$res} 89 {/foreach} 90 </strong></em> 91 </div> 92 {/if} 93 94 {if !empty($tag_search_results) } 95 <div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> : 96 <em><strong> 97 {foreach from=$tag_search_results item=res name=res_loop} 98 {if !$smarty.foreach.res_loop.first} — {/if} 99 {$res} 100 {/foreach} 101 </strong></em> 102 </div> 103 {/if} 104 105 {if isset($FILE_CHRONOLOGY_VIEW) } 106 {include file=$FILE_CHRONOLOGY_VIEW} 107 {/if} 108 109 {if !empty($CATEGORIES) }{$CATEGORIES}{/if} 110 {if !empty($THUMBNAILS) }{$THUMBNAILS}{/if} 111 112 113 {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} 114 115 {if !empty($CONTENT_DESCRIPTION) } 116 <div class="additional_info"> 117 {$CONTENT_DESCRIPTION} 118 </div> 119 {/if} 120 121 {if !empty($PLUGIN_INDEX_CONTENT_END) }{$PLUGIN_INDEX_CONTENT_END}{/if} 92 93 {if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if} 94 95 {if !empty($category_search_results)} 96 <div style="font-size:16px;margin:10px 16px">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> : 97 <em><strong> 98 {foreach from=$category_search_results item=res name=res_loop} 99 {if !$smarty.foreach.res_loop.first} — {/if} 100 {$res} 101 {/foreach} 102 </strong></em> 103 </div> 104 {/if} 105 106 {if !empty($tag_search_results)} 107 <div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> : 108 <em><strong> 109 {foreach from=$tag_search_results item=res name=res_loop} 110 {if !$smarty.foreach.res_loop.first} — {/if} 111 {$res} 112 {/foreach} 113 </strong></em> 114 </div> 115 {/if} 116 117 {if isset($FILE_CHRONOLOGY_VIEW)} 118 {include file=$FILE_CHRONOLOGY_VIEW} 119 {/if} 120 121 {if !empty($CONTENT_DESCRIPTION)} 122 <div class="additional_info"> 123 {$CONTENT_DESCRIPTION} 124 </div> 125 {/if} 126 127 {if !empty($CATEGORIES)}{$CATEGORIES}{/if} 128 {if !empty($THUMBNAILS)} 129 <ul class="thumbnails" id="thumbnails"> 130 {$THUMBNAILS} 131 </ul> 132 {/if} 133 134 {if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} 135 136 {if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if} 122 137 </td> 123 138 <td id="section_right"> </td> -
extensions/floOS/OS_default/template/menubar_categories.tpl
r9120 r9675 1 {if isset($U_START_FILTER)}2 <a href="{$U_START_FILTER}" title="{'display only recently posted images'|@translate}" rel="nofollow">3 <img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a>4 {/if}5 {if isset($U_STOP_FILTER)}6 <a href="{$U_STOP_FILTER}" title="{'return to the display of all images'|@translate}">7 <img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a>8 {/if}9 1 {if isset($tab_system) && $tab_system && in_array($id, $tab_closed)} 10 2 <dt class="titre_acordeon"> … … 12 4 <dt class="titre_acordeon_0"> 13 5 {/if} 14 <a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Categories'|@translate}</a> 6 {if isset($U_START_FILTER)} 7 <a href="{$U_START_FILTER}" title="{'display only recently posted photos'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a> 8 {/if} 9 {if isset($U_STOP_FILTER)} 10 <a href="{$U_STOP_FILTER}" title="{'return to the display of all photos'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a> 11 {/if} 12 <a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Albums'|@translate}</a> 15 13 </dt> 16 14 <dd> … … 34 32 {/foreach} 35 33 {'</li></ul>'|@str_repeat:$ref_level} 36 {if isset($block->data.U_UPLOAD)} 37 <ul> 38 <li> <a href="{$block->data.U_UPLOAD}">{'Upload_picture'|@translate}</a> </li> 39 </ul> 40 {/if} 41 <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p> 34 35 <p class="totalImages">{$pwg->l10n_dec('%d photo', '%d photos', $block->data.NB_PICTURE)}</p> 42 36 </dd> -
extensions/floOS/OS_default/template/menubar_identification.tpl
r9120 r9675 7 7 <a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Identification'|@translate}</a></dt> 8 8 <dd> 9 {strip} 9 10 {if isset($USERNAME)} 10 <p>{'Hello'|@translate} {$USERNAME} !</p>11 <p>{'Hello'|@translate} {$USERNAME} !</p> 11 12 {/if} 12 13 13 <ul> 14 14 {if isset($U_REGISTER)} 15 15 <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li> 16 16 {/if} 17 18 17 {if isset($U_LOGIN)} 19 18 <li><a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a></li> 20 19 {/if} 21 22 20 {if isset($U_LOGOUT)} 23 21 <li><a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li> 24 22 {/if} 25 26 23 {if isset($U_PROFILE)} 27 <li><a href="{$U_PROFILE}" title="{' hint_customize'|@translate}">{'Customize'|@translate}</a></li>24 <li><a href="{$U_PROFILE}" title="{'customize the appareance of the gallery'|@translate}">{'Customize'|@translate}</a></li> 28 25 {/if} 29 30 26 {if isset($U_ADMIN)} 31 <li><a href="{$U_ADMIN}" title="{' hint_admin'|@translate}">{'Administration'|@translate}</a></li>27 <li><a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">{'Administration'|@translate}</a></li> 32 28 {/if} 33 29 </ul> 34 30 {/strip} 35 31 {if isset($U_LOGIN)} 32 {strip} 36 33 <form method="post" action="{$U_LOGIN}" id="quickconnect"> 37 34 <fieldset> 38 35 <legend>{'Quick connect'|@translate}</legend> 39 36 <div> 40 <label for="username">{'Username'|@translate}</label><br />37 <label for="username">{'Username'|@translate}</label><br> 41 38 <input type="text" name="username" id="username" value="" style="width:99%"> 42 39 </div> 43 40 44 <div><label for="password">{'Password'|@translate}</label> 45 <br/> 41 <div><label for="password">{'Password'|@translate}</label><br> 46 42 <input type="password" name="password" id="password" style="width:99%"> 47 43 </div> 48 44 49 {if $AUTHORIZE_REMEMBERING}45 {if $AUTHORIZE_REMEMBERING} 50 46 <div><label for="remember_me"> 51 {'Auto login'|@translate} 52 <input type="checkbox" name="remember_me" id="remember_me" value="1"> 47 {'Auto login'|@translate} <input type="checkbox" name="remember_me" id="remember_me" value="1"> 53 48 </label></div> 54 49 {/if} 55 50 56 51 <div> 57 <input type="hidden" name="redirect" value="{$smarty.server.REQUEST_URI|@urlencode}"> 58 <input class="submit" type="submit" name="login" value="{'Submit'|@translate}"> 59 <ul class="actions"> 60 <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"></a></li> 61 {if isset($U_REGISTER)} 62 <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/register.png" class="button" alt="{'Register'|@translate}"/></a></li> 63 {/if} 64 </ul> 52 <input type="hidden" name="redirect" value="{$smarty.server.REQUEST_URI|@urlencode}"> 53 <input type="submit" name="login" value="{'Submit'|@translate}"> 54 <span class="categoryActions"> 55 {if isset($U_REGISTER)} 56 <a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" class="pwg-state-default pwg-button"> 57 <span class="pwg-icon pwg-icon-register"> </span> 58 </a> 59 {/if} 60 <a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" class="pwg-state-default pwg-button"> 61 <span class="pwg-icon pwg-icon-lost-password"> </span> 62 </a> 63 </span> 65 64 </div> 66 65 67 66 </fieldset> 68 67 </form> 68 {/strip} 69 69 {/if} 70 70 </dd> -
extensions/floOS/OS_default/template/menubar_links.tpl
r9120 r9675 6 6 <a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Links'|@translate}</a></dt> 7 7 <dd> 8 <ul> 8 <ul>{strip} 9 9 {foreach from=$block->data item=link} 10 10 <li> 11 <a href="{$link.URL}" class="external" 12 {if isset($link.new_window) } onclick="window.open(this.href, '{$link.new_window.NAME}','{$link.new_window.FEATURES}'); return false;"{/if} 13 > 11 <a href="{$link.URL}" class="external"{if isset($link.new_window)} onclick="window.open(this.href, '{$link.new_window.NAME}','{$link.new_window.FEATURES}'); return false;"{/if}> 14 12 {$link.LABEL} 15 13 </a> 16 14 </li> 17 15 {/foreach} 18 </ul>16 {/strip}</ul> 19 17 </dd> -
extensions/floOS/OS_default/template/menubar_menu.tpl
r9120 r9675 7 7 {/foreach} 8 8 <li id="form_search_menu" > 9 10 <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch" onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;">11 <p style="margin:0;padding:0"{*this <p> is for html validation only - does not affect positioning*}>12 <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" style="width:90%">13 </p>14 </form>15 <script type="text/javascript">var qsearch_prompt="{'Quick search'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script>16 {/if}9 {if isset($block->data.qsearch) and $block->data.qsearch==true} 10 <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch" onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;"> 11 <p style="margin:0;padding:0"{*this <p> is for html validation only - does not affect positioning*}> 12 <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" style="width:90%"> 13 </p> 14 </form> 15 <script type="text/javascript">var qsearch_prompt="{'Quick search'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script> 16 {/if} 17 17 </li> 18 18 <li id="home_icon" ><a href="{$myblock->data.U_CATEGORIES}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li> -
extensions/floOS/OS_default/template/menubar_specials.tpl
r9120 r9675 7 7 <a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Specials'|@translate}</a></dt> 8 8 <dd> 9 <ul> 10 11 <li><a href="{$link.URL}" title="{$link.TITLE}" {if isset($link.REL)}{$link.REL}{/if}>{$link.NAME}</a></li>12 13 9 <ul>{strip} 10 {foreach from=$block->data item=link} 11 <li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a></li> 12 {/foreach} 13 {/strip}</ul> 14 14 </dd> -
extensions/floOS/OS_default/template/menubar_tags.tpl
r9120 r9675 7 7 <div id="menuTagCloud"> 8 8 {foreach from=$block->data item=tag} 9 <span> 10 <a class="tagLevel{$tag.level}" 9 <span>{strip} 10 <a class="tagLevel{$tag.level}" href= 11 11 {if isset($tag.U_ADD)} 12 href="{$tag.U_ADD}" 13 title="{$pwg->l10n_dec('%d image is also linked to current tags', '%d images are also linked to current tags', $tag.counter)}" 14 rel="nofollow">+ 12 "{$tag.U_ADD}" title="{$pwg->l10n_dec('%d photo is also linked to current tags', '%d photos are also linked to current tags', $tag.counter)}" rel="nofollow">+ 15 13 {else} 16 href="{$tag.URL}" 17 title="{'See images linked to this tag only'|@translate}"> 14 "{$tag.URL}" title="{'display photos linked to this tag'|@translate}"> 18 15 {/if} 19 {$tag.name}</a></span> 16 {$tag.name}</a></span>{/strip} 20 17 {* ABOVE there should be no space between text, </a> and </span> elements to avoid IE8 bug https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=366567 *} 21 18 {/foreach} -
extensions/floOS/OS_glass/template/picture.tpl
r9109 r9675 37 37 <div id="imageToolBar"> 38 38 <div class="randomButtons"> 39 {if isset($U_SLIDESHOW_START) } 40 <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_slideshow.png" class="button" alt="{'slideshow'|@translate}"></a> 41 {/if} 42 {if isset($U_METADATA) } 43 <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/metadata.png" class="button" alt="metadata"></a> 44 {/if} 45 {if isset($current.U_DOWNLOAD) } 46 <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"></a> 47 {/if} 48 {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 49 {if isset($favorite) } 50 <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/{if $favorite.IS_FAVORITE}del_favorite{else}favorite{/if}.png" class="button" alt="favorite" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"></a> 51 {/if} 52 {if !empty($U_SET_AS_REPRESENTATIVE) } 53 <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/representative.png" class="button" alt="{'representative'|@translate}"></a> 54 {/if} 55 {if isset($U_ADMIN) } 56 <a href="{$U_ADMIN}" title="{'Modify information'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/preferences.png" class="button" alt="{'edit'|@translate}"></a> 57 {/if} 58 {if isset($U_CADDIE) }{*caddie management BEGIN*} 59 <script type="text/javascript"> 39 {strip}{if isset($U_SLIDESHOW_START)} 40 <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 41 <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span> 42 </a> 43 {/if}{/strip} 44 {strip}{if isset($U_METADATA)} 45 <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 46 <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span> 47 </a> 48 {/if}{/strip} 49 {strip}{if isset($current.U_DOWNLOAD)} 50 <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 51 <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'download'|@translate}</span> 52 </a> 53 {/if}{/strip} 54 {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 55 {strip}{if isset($favorite)} 56 <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="nofollow"> 57 <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span> 58 </a> 59 {/if}{/strip} 60 {strip}{if isset($U_SET_AS_REPRESENTATIVE)} 61 <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 62 <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span> 63 </a> 64 {/if}{/strip} 65 {strip}{if isset($U_ADMIN)} 66 <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 67 <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'edit'|@translate}</span> 68 </a> 69 {/if}{/strip} 70 {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} 71 {footer_script} 60 72 {literal}function addToCadie(aElement, rootUrl, id) 61 73 { 62 74 if (aElement.disabled) return; 63 aElement.disabled=true; 75 aElement.disabled=true; 64 76 var y = new PwgWS(rootUrl); 65 66 77 y.callService( 67 68 69 70 71 72 78 "pwg.caddie.add", {image_id: id} , 79 { 80 onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, 81 onSuccess: function(result) { aElement.disabled = false; } 82 } 83 ); 73 84 }{/literal} 74 </script> 75 <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"></a> 76 {/if}{*caddie management END*} 85 {/footer_script} 86 <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 87 <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span> 88 </a> 89 {/if}{/strip}{*caddie management END*} 77 90 </div> 78 91 {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} 79 </div> <!-- imageToolBar -->92 </div>{*<!-- imageToolBar -->*} 80 93 81 94 <div id="theImage"> … … 142 155 </div> 143 156 144 <table id="standard" class="infoTable" summary="{'Some info about this picture'|@translate}"> 145 {if $display_info.author} 157 <table id="standard" class="infoTable"> 158 {strip} 159 {if $display_info.author} 146 160 <tr id="Author"> 147 161 <td class="label">{'Author'|@translate}</td> … … 228 242 <tr id="rating"> 229 243 <td class="label"> 230 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this p icture'|@translate}{/if}</span>244 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> 231 245 </td> 232 246 <td class="value"> 233 247 <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> 234 <div> 248 <div> 235 249 {foreach from=$rating.marks item=mark name=rate_loop} 236 {if !$smarty.foreach.rate_loop.first} | {/if}237 250 {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} 238 251 <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> 239 252 {else} 240 253 <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> 241 254 {/if} 242 255 {/foreach} 243 <script type="text/javascript" src="{$ROOT_URL}themes/default/js/rating.js"></script> 244 <script type="text/javascript"> 245 makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id}, 246 updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), 247 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} ); 248 </script> 256 {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 257 {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} 258 {footer_script} 259 var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[]; 260 _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id}, 261 updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), 262 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} ); 263 {/footer_script} 264 {/strip} 249 265 </div> 250 266 </form> … … 253 269 {/if} 254 270 255 {if $display_info.privacy_level and isset($available_permission_levels) 271 {if $display_info.privacy_level and isset($available_permission_levels)} 256 272 <tr id="Privacy"> 257 273 <td class="label">{'Who can see this photo?'|@translate}</td> 258 <td class="value"> 259 <script type="text/javascript"> 274 <td class="value"> 275 {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 276 {footer_script} 260 277 {literal}function setPrivacyLevel(selectElement, rootUrl, id, level) 261 278 { … … 271 288 ); 272 289 }{/literal} 273 </script> 274 <select onchange="setPrivacyLevel(this, '{$ROOT_URL |@escape:'javascript'}', {$current.id}, this.options[selectedIndex].value)">290 {/footer_script} 291 <select onchange="setPrivacyLevel(this, '{$ROOT_URL}', {$current.id}, this.options[selectedIndex].value)"> 275 292 {foreach from=$available_permission_levels item=label key=level} 276 293 <option label="{$label}" value="{$level}"{if $level == $current.level} selected="selected"{/if}>{$label}</option> … … 279 296 </td></tr> 280 297 {/if} 281 298 {/strip} 282 299 </table> 283 300 -
extensions/floOS/OS_glass/template/picture_nav_buttons.tpl
r9119 r9675 1 1 <div class="navButtons"> 2 2 3 {if isset($last)} 4 <a class="navButton prev" href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" rel="last"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last.png" class="button" alt="{'Last'|@translate}"></a> 3 {strip}{if isset($last)} 4 <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> 5 <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span> 6 </a> 5 7 {else} 6 <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last_unactive.png" class="button" alt=""></a> 7 {/if} 8 9 {if isset($next)} 10 <a class="navButton next" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'Next'|@translate}"></a> 8 <span class="pwg-state-disabled pwg-button pwg-button-icon-right"> 9 <span class="pwg-icon pwg-icon-arrowstop-e"> </span><span class="pwg-button-text">{'Last'|@translate}</span> 10 </span> 11 {/if}{/strip} 12 {strip}{if isset($next)} 13 <a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> 14 <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> 15 </a> 11 16 {else} 12 <a class="navButton next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right_unactive.png" class="button" alt=""></a> 13 {/if} 17 <span class="pwg-state-disabled pwg-button pwg-button-icon-right"> 18 <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> 19 </span> 20 {/if}{/strip} 14 21 {if isset($next) } 15 22 <a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> … … 17 24 </a> 18 25 {/if} 19 26 <img src="{$current.THUMB_SRC}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}"> 20 27 {if isset($previous) } 21 28 <a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> … … 25 32 26 33 {if isset($slideshow.U_START_PLAY)} 27 <a class="navButton play" href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/play.png" class="button" alt="{'Play of slideshow'|@translate}"></a> 34 <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button"> 35 <span class="pwg-icon pwg-icon-play"> </span><span class="pwg-button-text">{'Play of slideshow'|@translate}</span> 36 </a> 28 37 {/if} 29 30 38 {if isset($slideshow.U_STOP_PLAY)} 31 <a class="navButton play" href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/pause.png" class="button" alt="{'Pause of slideshow'|@translate}"></a> 39 <a href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" class="pwg-state-default pwg-button"> 40 <span class="pwg-icon pwg-icon-pause"> </span><span class="pwg-button-text">{'Pause of slideshow'|@translate}</span> 41 </a> 32 42 {/if} 33 43 34 44 35 {if isset($previous)} 36 <a class="navButton prev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'Previous'|@translate}"></a> 45 {strip}{if isset($previous)} 46 <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button"> 47 <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> 48 </a> 37 49 {else} 38 <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left_unactive.png" class="button" alt=""></a> 39 {/if} 50 <span class="pwg-state-disabled pwg-button"> 51 <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> 52 </span> 53 {/if}{/strip} 40 54 41 {if isset($first)} 42 <a class="navButton prev" href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" rel="first"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first.png" class="button" alt="{'First'|@translate}"></a> 55 {strip}{if isset($first)} 56 <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button"> 57 <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> 58 </a> 43 59 {else} 44 <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first_unactive.png" class="button" alt=""></a> 45 {/if} 60 <span class="pwg-state-disabled pwg-button"> 61 <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> 62 </span> 63 {/if}{/strip} 46 64 47 65 48 66 {if isset($slideshow.U_START_REPEAT)} 49 <a class="navButton repeat" href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_repeat.png" class="button" alt="{'Repeat the slideshow'|@translate}"></a> 67 <a href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" class="pwg-state-default pwg-button"> 68 <span class="pwg-icon pwg-icon-repeat-play"> </span><span class="pwg-button-text">{'Repeat the slideshow'|@translate}</span> 69 </a> 50 70 {/if} 51 52 71 {if isset($slideshow.U_STOP_REPEAT)} 53 <a class="navButton repeat" href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_repeat.png" class="button" alt="{'Not repeat the slideshow'|@translate}"></a> 72 <a href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" class="pwg-state-default pwg-button"> 73 <span class="pwg-icon pwg-icon-repeat-stop"> </span><span class="pwg-button-text">{'Not repeat the slideshow'|@translate}</span> 74 </a> 54 75 {/if} 55 76 56 77 {if isset($slideshow)} 57 {if isset($slideshow.U_DEC_PERIOD)} 58 <a class="navButton dec_period" href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period.png" class="button" alt="{'Accelerate diaporama speed'|@translate}"></a> 59 {else} 60 <a class="navButton dec_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period_unactive.png" class="button" alt=""></a> 61 {/if} 62 63 {if isset($slideshow.U_INC_PERIOD)} 64 <a class="navButton inc_period" href="{$slideshow.U_INC_PERIOD}" title="{'Reduce diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period.png" class="button" alt="{'Reduce diaporama speed'|@translate}"></a> 65 {else} 66 <a class="navButton inc_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period_unactive.png" class="button" alt=""></a> 67 {/if} 78 {if isset($slideshow.U_INC_PERIOD)} 79 <a href="{$slideshow.U_INC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button"> 80 <span class="pwg-icon pwg-icon-clock-minus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> 81 </a> 82 {else} 83 <span class="pwg-state-disabled pwg-button"> 84 <span class="pwg-icon pwg-icon-clock-minus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> 85 </span> 86 {/if} 87 {if isset($slideshow.U_DEC_PERIOD)} 88 <a href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button"> 89 <span class="pwg-icon pwg-icon-clock-plus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> 90 </a> 91 {else} 92 <span class="pwg-state-disabled pwg-button"> 93 <span class="pwg-icon pwg-icon-clock-plus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> 94 </span> 95 {/if} 96 {/if} 97 {strip}{if isset($U_UP) and !isset($slideshow)} 98 <a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button"> 99 <span class="pwg-icon pwg-icon-arrow-n"> </span><span class="pwg-button-text">{'Thumbnails'|@translate}</span> 100 </a> 101 {/if}{/strip} 102 </div> 103 {strip} 104 {footer_script} 105 document.onkeydown = function(e){ldelim} 106 e=e||window.event; 107 if (e.altKey) return true; 108 var target=e.target||e.srcElement; 109 if (target && target.type) return true;{* an input editable element *} 110 var keyCode=e.keyCode||e.which, docElem=document.documentElement, url; 111 switch(keyCode){ldelim} 112 {if isset($next)} 113 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break; 114 {/if} 115 {if isset($previous)} 116 case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break; 117 {/if} 118 {if isset($first)} 119 {* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break; 120 {/if} 121 {if isset($last)} 122 {* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break; 68 123 {/if} 69 124 {if isset($U_UP) and !isset($slideshow)} 70 <a class="navButton up" href="{$U_UP}" title="{'thumbnails'|@translate}" rel="up"><img src="{$ROOT_URL}{$themeconf.icon_dir}/up.png" class="button" alt="{'thumbnails'|@translate}"></a> 125 {* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break; 71 126 {/if} 72 73 </div>74 75 <script type="text/javascript">// <![CDATA[76 {literal}77 function keyboardNavigation(e)78 {79 if(!e) e=window.event;80 if (e.altKey) return true;81 var target = e.target || e.srcElement;82 if (target && target.type) return true; //an input editable element83 var keyCode=e.keyCode || e.which;84 var docElem = document.documentElement;85 switch(keyCode) {86 {/literal}87 {if isset($next)}88 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&", "&" ); return false; } break;89 {/if}90 {if isset($previous)}91 case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;92 {/if}93 {if isset($first)}94 /*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;95 {/if}96 {if isset($last)}97 /*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;98 {/if}99 {if isset($U_UP) and !isset($slideshow)}100 /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&","&"); return false; } break;101 {/if}102 103 127 {if isset($slideshow.U_START_PLAY)} 104 /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&","&"); return false; }break;128 {* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break; 105 129 {/if} 106 130 {if isset($slideshow.U_STOP_PLAY)} 107 /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&","&"); return false; }break;131 {* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break; 108 132 {/if} 109 133 } 134 if (url) {ldelim}window.location=url.replace("&","&"); return false;} 110 135 return true; 111 136 } 112 document.onkeydown=keyboardNavigation; 113 // ]]></script> 137 {/footer_script} 138 {/strip} -
extensions/floOS/OS_glass/theme.css
r9119 r9675 1 1 /* --------------------------------------------------------------------------- 2 Thème glass 3 4 pour le template floOS 5 6 by flop25 7 2 Thème OS_glass 3 4 theme-enfant de OS_default 5 6 by flop25 http://www.planete-flop.fr/ 8 7 ------------------------------------------------------------------------------ */ 9 8 -
extensions/floOS/OS_glass/themeconf.inc.php
r9121 r9675 2 2 /* 3 3 Theme Name: OS_glass 4 Version: 1.0.04 Version: auto 5 5 Description: 6 6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=498 7 7 Author: flop25 8 Author URI: http://www.planete-flop.fr /site.php?acc=file8 Author URI: http://www.planete-flop.fr 9 9 */ 10 10 … … 21 21 'tab_closed' => array('mbLinks','mbTags','mbSpecials','mbIdentification'), # tabs which are closed when the page is loaded 22 22 ); 23 @include('themeconf_local.inc.php'); 23 @include(PHPWG_ROOT_PATH. 'local/config/OS_glass.inc.php'); 24 if (isset($conf['local_dir_site'])) 25 { 26 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/OS_glass.inc.php'); 27 } 24 28 25 add_event_handler('init', 'dynamic_tab', 20); 26 27 function dynamic_tab() { 28 global $template, $conf; 29 $template->assign( 30 array( 31 'tab_system' => get_themeconf('tab_system'), 32 'tab_closed' => get_themeconf('tab_closed'), 33 )); 34 } 29 add_event_handler('init', 'dynamic_tab', 20); 30 function dynamic_tab() { 31 global $template, $conf; 32 $template->assign( 33 array( 34 'tab_system' => get_themeconf('tab_system'), 35 'tab_closed' => get_themeconf('tab_closed'), 36 )); 37 } 35 38 ?> -
extensions/floOS/OS_glass_clear/template/picture.tpl
r9673 r9675 37 37 <div id="imageToolBar"> 38 38 <div class="randomButtons"> 39 {if isset($U_SLIDESHOW_START) } 40 <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_slideshow.png" class="button" alt="{'slideshow'|@translate}"></a> 41 {/if} 42 {if isset($U_METADATA) } 43 <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/metadata.png" class="button" alt="metadata"></a> 44 {/if} 45 {if isset($current.U_DOWNLOAD) } 46 <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"></a> 47 {/if} 48 {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 49 {if isset($favorite) } 50 <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/{if $favorite.IS_FAVORITE}del_favorite{else}favorite{/if}.png" class="button" alt="favorite" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"></a> 51 {/if} 52 {if !empty($U_SET_AS_REPRESENTATIVE) } 53 <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/representative.png" class="button" alt="{'representative'|@translate}"></a> 54 {/if} 55 {if isset($U_ADMIN) } 56 <a href="{$U_ADMIN}" title="{'Modify information'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/preferences.png" class="button" alt="{'edit'|@translate}"></a> 57 {/if} 58 {if isset($U_CADDIE) }{*caddie management BEGIN*} 59 <script type="text/javascript"> 39 {strip}{if isset($U_SLIDESHOW_START)} 40 <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 41 <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span> 42 </a> 43 {/if}{/strip} 44 {strip}{if isset($U_METADATA)} 45 <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 46 <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span> 47 </a> 48 {/if}{/strip} 49 {strip}{if isset($current.U_DOWNLOAD)} 50 <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 51 <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'download'|@translate}</span> 52 </a> 53 {/if}{/strip} 54 {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 55 {strip}{if isset($favorite)} 56 <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="nofollow"> 57 <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span> 58 </a> 59 {/if}{/strip} 60 {strip}{if isset($U_SET_AS_REPRESENTATIVE)} 61 <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 62 <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span> 63 </a> 64 {/if}{/strip} 65 {strip}{if isset($U_ADMIN)} 66 <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 67 <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'edit'|@translate}</span> 68 </a> 69 {/if}{/strip} 70 {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} 71 {footer_script} 60 72 {literal}function addToCadie(aElement, rootUrl, id) 61 73 { 62 74 if (aElement.disabled) return; 63 aElement.disabled=true; 75 aElement.disabled=true; 64 76 var y = new PwgWS(rootUrl); 65 66 77 y.callService( 67 68 69 70 71 72 78 "pwg.caddie.add", {image_id: id} , 79 { 80 onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, 81 onSuccess: function(result) { aElement.disabled = false; } 82 } 83 ); 73 84 }{/literal} 74 </script> 75 <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"></a> 76 {/if}{*caddie management END*} 85 {/footer_script} 86 <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 87 <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span> 88 </a> 89 {/if}{/strip}{*caddie management END*} 77 90 </div> 78 91 {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} 79 </div> <!-- imageToolBar -->92 </div>{*<!-- imageToolBar -->*} 80 93 81 94 <div id="theImage"> … … 142 155 </div> 143 156 144 <table id="standard" class="infoTable" summary="{'Some info about this picture'|@translate}"> 145 {if $display_info.author} 157 <table id="standard" class="infoTable"> 158 {strip} 159 {if $display_info.author} 146 160 <tr id="Author"> 147 161 <td class="label">{'Author'|@translate}</td> … … 228 242 <tr id="rating"> 229 243 <td class="label"> 230 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this p icture'|@translate}{/if}</span>244 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> 231 245 </td> 232 246 <td class="value"> 233 247 <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> 234 <div> 248 <div> 235 249 {foreach from=$rating.marks item=mark name=rate_loop} 236 {if !$smarty.foreach.rate_loop.first} | {/if}237 250 {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} 238 251 <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> 239 252 {else} 240 253 <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> 241 254 {/if} 242 255 {/foreach} 243 <script type="text/javascript" src="{$ROOT_URL}themes/default/js/rating.js"></script> 244 <script type="text/javascript"> 245 makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id}, 246 updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), 247 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} ); 248 </script> 256 {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 257 {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} 258 {footer_script} 259 var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[]; 260 _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id}, 261 updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), 262 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} ); 263 {/footer_script} 264 {/strip} 249 265 </div> 250 266 </form> … … 253 269 {/if} 254 270 255 {if $display_info.privacy_level and isset($available_permission_levels) 271 {if $display_info.privacy_level and isset($available_permission_levels)} 256 272 <tr id="Privacy"> 257 273 <td class="label">{'Who can see this photo?'|@translate}</td> 258 <td class="value"> 259 <script type="text/javascript"> 274 <td class="value"> 275 {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 276 {footer_script} 260 277 {literal}function setPrivacyLevel(selectElement, rootUrl, id, level) 261 278 { … … 271 288 ); 272 289 }{/literal} 273 </script> 274 <select onchange="setPrivacyLevel(this, '{$ROOT_URL |@escape:'javascript'}', {$current.id}, this.options[selectedIndex].value)">290 {/footer_script} 291 <select onchange="setPrivacyLevel(this, '{$ROOT_URL}', {$current.id}, this.options[selectedIndex].value)"> 275 292 {foreach from=$available_permission_levels item=label key=level} 276 293 <option label="{$label}" value="{$level}"{if $level == $current.level} selected="selected"{/if}>{$label}</option> … … 279 296 </td></tr> 280 297 {/if} 281 298 {/strip} 282 299 </table> 283 300 -
extensions/floOS/OS_glass_clear/template/picture_nav_buttons.tpl
r9673 r9675 1 1 <div class="navButtons"> 2 2 3 {if isset($last)} 4 <a class="navButton prev" href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" rel="last"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last.png" class="button" alt="{'Last'|@translate}"></a> 3 {strip}{if isset($last)} 4 <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> 5 <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span> 6 </a> 5 7 {else} 6 <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last_unactive.png" class="button" alt=""></a> 7 {/if} 8 9 {if isset($next)} 10 <a class="navButton next" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'Next'|@translate}"></a> 8 <span class="pwg-state-disabled pwg-button pwg-button-icon-right"> 9 <span class="pwg-icon pwg-icon-arrowstop-e"> </span><span class="pwg-button-text">{'Last'|@translate}</span> 10 </span> 11 {/if}{/strip} 12 {strip}{if isset($next)} 13 <a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> 14 <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> 15 </a> 11 16 {else} 12 <a class="navButton next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right_unactive.png" class="button" alt=""></a> 13 {/if} 17 <span class="pwg-state-disabled pwg-button pwg-button-icon-right"> 18 <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> 19 </span> 20 {/if}{/strip} 14 21 {if isset($next) } 15 22 <a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> … … 17 24 </a> 18 25 {/if} 19 26 <img src="{$current.THUMB_SRC}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}"> 20 27 {if isset($previous) } 21 28 <a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> … … 25 32 26 33 {if isset($slideshow.U_START_PLAY)} 27 <a class="navButton play" href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/play.png" class="button" alt="{'Play of slideshow'|@translate}"></a> 34 <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button"> 35 <span class="pwg-icon pwg-icon-play"> </span><span class="pwg-button-text">{'Play of slideshow'|@translate}</span> 36 </a> 28 37 {/if} 29 30 38 {if isset($slideshow.U_STOP_PLAY)} 31 <a class="navButton play" href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/pause.png" class="button" alt="{'Pause of slideshow'|@translate}"></a> 39 <a href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" class="pwg-state-default pwg-button"> 40 <span class="pwg-icon pwg-icon-pause"> </span><span class="pwg-button-text">{'Pause of slideshow'|@translate}</span> 41 </a> 32 42 {/if} 33 43 34 44 35 {if isset($previous)} 36 <a class="navButton prev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'Previous'|@translate}"></a> 45 {strip}{if isset($previous)} 46 <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button"> 47 <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> 48 </a> 37 49 {else} 38 <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left_unactive.png" class="button" alt=""></a> 39 {/if} 50 <span class="pwg-state-disabled pwg-button"> 51 <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> 52 </span> 53 {/if}{/strip} 40 54 41 {if isset($first)} 42 <a class="navButton prev" href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" rel="first"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first.png" class="button" alt="{'First'|@translate}"></a> 55 {strip}{if isset($first)} 56 <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button"> 57 <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> 58 </a> 43 59 {else} 44 <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first_unactive.png" class="button" alt=""></a> 45 {/if} 60 <span class="pwg-state-disabled pwg-button"> 61 <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> 62 </span> 63 {/if}{/strip} 46 64 47 65 48 66 {if isset($slideshow.U_START_REPEAT)} 49 <a class="navButton repeat" href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_repeat.png" class="button" alt="{'Repeat the slideshow'|@translate}"></a> 67 <a href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" class="pwg-state-default pwg-button"> 68 <span class="pwg-icon pwg-icon-repeat-play"> </span><span class="pwg-button-text">{'Repeat the slideshow'|@translate}</span> 69 </a> 50 70 {/if} 51 52 71 {if isset($slideshow.U_STOP_REPEAT)} 53 <a class="navButton repeat" href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_repeat.png" class="button" alt="{'Not repeat the slideshow'|@translate}"></a> 72 <a href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" class="pwg-state-default pwg-button"> 73 <span class="pwg-icon pwg-icon-repeat-stop"> </span><span class="pwg-button-text">{'Not repeat the slideshow'|@translate}</span> 74 </a> 54 75 {/if} 55 76 56 77 {if isset($slideshow)} 57 {if isset($slideshow.U_DEC_PERIOD)} 58 <a class="navButton dec_period" href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period.png" class="button" alt="{'Accelerate diaporama speed'|@translate}"></a> 59 {else} 60 <a class="navButton dec_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period_unactive.png" class="button" alt=""></a> 61 {/if} 62 63 {if isset($slideshow.U_INC_PERIOD)} 64 <a class="navButton inc_period" href="{$slideshow.U_INC_PERIOD}" title="{'Reduce diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period.png" class="button" alt="{'Reduce diaporama speed'|@translate}"></a> 65 {else} 66 <a class="navButton inc_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period_unactive.png" class="button" alt=""></a> 67 {/if} 78 {if isset($slideshow.U_INC_PERIOD)} 79 <a href="{$slideshow.U_INC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button"> 80 <span class="pwg-icon pwg-icon-clock-minus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> 81 </a> 82 {else} 83 <span class="pwg-state-disabled pwg-button"> 84 <span class="pwg-icon pwg-icon-clock-minus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> 85 </span> 86 {/if} 87 {if isset($slideshow.U_DEC_PERIOD)} 88 <a href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button"> 89 <span class="pwg-icon pwg-icon-clock-plus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> 90 </a> 91 {else} 92 <span class="pwg-state-disabled pwg-button"> 93 <span class="pwg-icon pwg-icon-clock-plus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> 94 </span> 95 {/if} 96 {/if} 97 {strip}{if isset($U_UP) and !isset($slideshow)} 98 <a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button"> 99 <span class="pwg-icon pwg-icon-arrow-n"> </span><span class="pwg-button-text">{'Thumbnails'|@translate}</span> 100 </a> 101 {/if}{/strip} 102 </div> 103 {strip} 104 {footer_script} 105 document.onkeydown = function(e){ldelim} 106 e=e||window.event; 107 if (e.altKey) return true; 108 var target=e.target||e.srcElement; 109 if (target && target.type) return true;{* an input editable element *} 110 var keyCode=e.keyCode||e.which, docElem=document.documentElement, url; 111 switch(keyCode){ldelim} 112 {if isset($next)} 113 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break; 114 {/if} 115 {if isset($previous)} 116 case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break; 117 {/if} 118 {if isset($first)} 119 {* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break; 120 {/if} 121 {if isset($last)} 122 {* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break; 68 123 {/if} 69 124 {if isset($U_UP) and !isset($slideshow)} 70 <a class="navButton up" href="{$U_UP}" title="{'thumbnails'|@translate}" rel="up"><img src="{$ROOT_URL}{$themeconf.icon_dir}/up.png" class="button" alt="{'thumbnails'|@translate}"></a> 125 {* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break; 71 126 {/if} 72 73 </div>74 75 <script type="text/javascript">// <![CDATA[76 {literal}77 function keyboardNavigation(e)78 {79 if(!e) e=window.event;80 if (e.altKey) return true;81 var target = e.target || e.srcElement;82 if (target && target.type) return true; //an input editable element83 var keyCode=e.keyCode || e.which;84 var docElem = document.documentElement;85 switch(keyCode) {86 {/literal}87 {if isset($next)}88 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&", "&" ); return false; } break;89 {/if}90 {if isset($previous)}91 case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;92 {/if}93 {if isset($first)}94 /*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;95 {/if}96 {if isset($last)}97 /*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;98 {/if}99 {if isset($U_UP) and !isset($slideshow)}100 /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&","&"); return false; } break;101 {/if}102 103 127 {if isset($slideshow.U_START_PLAY)} 104 /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&","&"); return false; }break;128 {* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break; 105 129 {/if} 106 130 {if isset($slideshow.U_STOP_PLAY)} 107 /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&","&"); return false; }break;131 {* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break; 108 132 {/if} 109 133 } 134 if (url) {ldelim}window.location=url.replace("&","&"); return false;} 110 135 return true; 111 136 } 112 document.onkeydown=keyboardNavigation; 113 // ]]></script> 137 {/footer_script} 138 {/strip} -
extensions/floOS/OS_glass_clear/theme.css
r9673 r9675 281 281 background-position: center bottom; 282 282 background-color: #000000; 283 } 283 }/* 284 284 #imageToolBar A:hover { 285 285 background-image: url(images/fondMenuSurvol.gif); … … 287 287 background-position:center; 288 288 background-color:transparent; 289 } 289 }*/ 290 290 #action_pict { 291 291 border: 2px solid #FFFFFF; … … 293 293 color:#000; 294 294 font-weight:bold; 295 } 296 #imageToolBar { 297 height: 60px; 298 } 299 #imageToolBar #thumbPrev, #imageToolBar #thumbNext { 300 margin-left:5px; 301 margin-right:5px; 302 display:inline; 303 width:auto; 304 } 305 #imageToolBar #thumbCurrent { 306 margin-left:5px; 307 margin-right:5px; 308 display:inline; 309 width:auto; 310 } 311 #imageToolBar #linkPrev, #imageToolBar #thumbCurrent, #imageToolBar #linkNext { 312 border:#FFF solid 2px; 313 width:auto; 295 314 } 296 315 /*calendar elements*/ -
extensions/floOS/OS_glass_clear/themeconf.inc.php
r9673 r9675 1 1 <?php 2 2 /* 3 Theme Name: OS_glass 3 Theme Name: OS_glass_clear 4 4 Version: auto 5 5 Description: 6 Theme URI: http:// fr.piwigo.org/ext/extension_view.php?eid=3836 Theme URI: http://piwigo.org/ext/extension_view.php?eid=514 7 7 Author: flop25 8 8 Author URI: http://www.planete-flop.fr -
extensions/floOS/OS_glass_dark/themeconf.inc.php
r9674 r9675 1 1 <?php 2 2 /* 3 Theme Name: OS_glass_ clear3 Theme Name: OS_glass_dark 4 4 Version: auto 5 5 Description: 6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=51 46 Theme URI: http://piwigo.org/ext/extension_view.php?eid=515 7 7 Author: flop25 8 8 Author URI: http://www.planete-flop.fr … … 10 10 11 11 $themeconf = array( 12 'name' => 'OS_glass_ clear',12 'name' => 'OS_glass_dark', 13 13 'parent' => 'OS_default', 14 14 'icon_dir' => 'themes/OS_default/icon', … … 21 21 'tab_closed' => array('mbLinks','mbTags','mbSpecials','mbIdentification'), # tabs which are closed when the page is loaded 22 22 ); 23 @include(PHPWG_ROOT_PATH. 'local/config/OS_glass_ clear.inc.php');23 @include(PHPWG_ROOT_PATH. 'local/config/OS_glass_dark.inc.php'); 24 24 if (isset($conf['local_dir_site'])) 25 25 { 26 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/OS_glass_ clear.inc.php');26 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/OS_glass_dark.inc.php'); 27 27 } 28 28
Note: See TracChangeset
for help on using the changeset viewer.