diff options
Diffstat (limited to '')
-rw-r--r-- | themes/Sylvia/theme.css | 2 | ||||
-rw-r--r-- | themes/clear/theme.css | 4 | ||||
-rw-r--r-- | themes/dark/theme.css | 4 | ||||
-rw-r--r-- | themes/default/template/index.tpl | 12 | ||||
-rw-r--r-- | themes/default/template/menubar.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/picture.tpl | 16 | ||||
-rw-r--r-- | themes/default/template/picture_nav_buttons.tpl | 8 | ||||
-rw-r--r-- | themes/default/theme.css | 2 |
8 files changed, 29 insertions, 21 deletions
diff --git a/themes/Sylvia/theme.css b/themes/Sylvia/theme.css index 5ae238727..e4e892a62 100644 --- a/themes/Sylvia/theme.css +++ b/themes/Sylvia/theme.css @@ -476,7 +476,7 @@ A:hover .pwg-icon { background-color:#666; } -#derivativeSwitchBox, #sortOrderBox { +.switchBox { background-color: #222222; border: 1px solid #FF3363; border-radius: 0 15px 0 15px; diff --git a/themes/clear/theme.css b/themes/clear/theme.css index 9cc53a6f9..a75131f2d 100644 --- a/themes/clear/theme.css +++ b/themes/clear/theme.css @@ -14,12 +14,12 @@ H2, #menubar DT, #imageHeaderBar, #imageToolBar A:hover { background-color: #d3d3d3; } -#menubar DL, .content, #imageToolBar, #derivativeSwitchBox, #sortOrderBox, .header_notes { +#menubar DL, .content, #imageToolBar, .switchBox, .header_notes { background-color: #eeeeee; } /* borders */ -#menubar DL, .content, #imageToolBar, #derivativeSwitchBox, #sortOrderBox { +#menubar DL, .content, #imageToolBar, .switchBox { border: 1px solid #d3d3d3; } diff --git a/themes/dark/theme.css b/themes/dark/theme.css index 34921c92d..aba4fb2a1 100644 --- a/themes/dark/theme.css +++ b/themes/dark/theme.css @@ -17,7 +17,7 @@ BODY, H3, #imageToolBar A:hover { background-color: #2f2f2f; } -#menubar DL, .content, #imageToolBar, #imageHeaderBar, #derivativeSwitchBox, #sortOrderBox, .header_notes { +#menubar DL, .content, #imageToolBar, #imageHeaderBar, .switchBox, .header_notes { background-color: #505050; } @@ -30,7 +30,7 @@ BODY, H3, #imageToolBar A:hover { } /* borders */ -#menubar DL, .content, #derivativeSwitchBox, #sortOrderBox{ +#menubar DL, .content, .switchBox { border: 1px solid #000; } diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index 35697d778..c1f9d42a9 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -7,13 +7,13 @@ <li>{strip}<a href="javascript:toggleSortOrderBox()" id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> <span class="pwg-icon pwg-icon-sort"> </span><span class="pwg-button-text">{'Sort order'|@translate}</span> </a> - <div id="sortOrderBox" style="display:none; text-align:left" onclick="toggleSortOrderBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleSortOrderBox()"> + <div id="sortOrderBox" class="switchBox" style="display:none; text-align:left" onclick="toggleSortOrderBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleSortOrderBox()"> <div class="switchBoxTitle">{'Sort order'|@translate}</div> {foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if} {if $image_order.SELECTED} - <span>✔ {$image_order.DISPLAY}</span> + <span class="switchCheck">✔ </span><span class="switchSelected">{$image_order.DISPLAY}</span> {else} - <a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a> + <a href="{$image_order.URL}" class="switchUnselected" rel="nofollow">{$image_order.DISPLAY}</a> {/if} {/foreach} </div> @@ -38,13 +38,13 @@ function toggleSortOrderBox() { <li>{strip}<a href="javascript:toggleImageDerivativesBox()" id="derivativeChooseLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> </a> - <div id="derivativeSwitchBox" style="display:none; text-align:left" onclick="toggleImageDerivativesBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleImageDerivativesBox()"> + <div id="derivativeSwitchBox" class="switchBox" style="display:none; text-align:left" onclick="toggleImageDerivativesBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleImageDerivativesBox()"> <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> {foreach from=$image_derivatives item=image_derivative name=loop}{if !$smarty.foreach.loop.first}<br>{/if} {if $image_derivative.SELECTED} - <span>✔ {$image_derivative.DISPLAY}</span> + <span class="switchCheck">✔ </span><span class="switchSelected">{$image_derivative.DISPLAY}</span> {else} - <a href="{$image_derivative.URL}" rel="nofollow">{$image_derivative.DISPLAY}</a> + <a href="{$image_derivative.URL}" class="switchUnselected" rel="nofollow">{$image_derivative.DISPLAY}</a> {/if} {/foreach} </div> diff --git a/themes/default/template/menubar.tpl b/themes/default/template/menubar.tpl index 8b1e8f4b6..0bc03efb4 100644 --- a/themes/default/template/menubar.tpl +++ b/themes/default/template/menubar.tpl @@ -9,5 +9,5 @@ {/if} </dl> {/foreach} -</div> +</div><div id="menuSwitcher"></div> {/if}
\ No newline at end of file diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index b95948b1e..da8309baa 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -31,7 +31,9 @@ function changeImgSrc(url,typeSave,typeMap) } jQuery('.derivativeChecked').hide(); jQuery('#derivativeChecked'+typeSave).show(); - document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; + jQuery('#derivativeSiwtchBox .switchSelected').addClass('switchUnselected').removeClass('switchSelected'); + jQuery('#derivativeName'+typeSave).addClass('switchSelected').removeClass('switchUnselected'); + document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; } function toggleDerivativeSwitchBox() @@ -41,7 +43,7 @@ function toggleDerivativeSwitchBox() if (elt.style.display==="none") { elt.style.position = "absolute"; - elt.style.left = (ePos.offsetLeft+10)+"px"; + elt.style.left = (ePos.offsetLeft)+"px"; elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px"; elt.style.display=""; } @@ -51,10 +53,16 @@ function toggleDerivativeSwitchBox() {/literal}{/footer_script} {strip}<a id="derivativeSwitchLink" href="javascript:toggleDerivativeSwitchBox()" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span></a> -<div id="derivativeSwitchBox" onclick="toggleDerivativeSwitchBox()" style="display:none"> +<div id="derivativeSwitchBox" class="switchBox" onclick="toggleDerivativeSwitchBox()" style="display:none" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleDerivativeSwitchBox()"> <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> {foreach from=$current.unique_derivatives item=derivative key=derivative_type} -<span class="derivativeChecked" id="derivativeChecked{$derivative->get_type()}" {if $derivative->get_type() ne $current.selected_derivative->get_type()}style="display:none"{/if}>✔</span> <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')">{$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span></a><br> +<span class="derivativeChecked switchCheck" + id="derivativeChecked{$derivative_type}" {if $derivative->get_type() ne $current.selected_derivative->get_type()}style="display:none"{/if}>✔ </span> +<a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')" + id="derivativeName{$derivative_type}" + class="{if $derivative->get_type() == $current.selected_derivative->get_type()}switchSelected{else}switchUnselected{/if}"> + {$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span> +</a><br> {/foreach} {if isset($U_ORIGINAL)} <a href="javascript:phpWGOpenWindow('{$U_ORIGINAL}','xxx','scrollbars=yes,toolbar=no,status=no,resizable=yes')" rel="nofollow">{'Original'|@translate}</a> diff --git a/themes/default/template/picture_nav_buttons.tpl b/themes/default/template/picture_nav_buttons.tpl index 0da5016d8..921a1de81 100644 --- a/themes/default/template/picture_nav_buttons.tpl +++ b/themes/default/template/picture_nav_buttons.tpl @@ -30,7 +30,7 @@ <span class="pwg-icon pwg-icon-repeat-stop"> </span><span class="pwg-button-text">{'Not repeat the slideshow'|@translate}</span> </a> {/if} -{strip}{if isset($first)} +<!--{strip}{if isset($first)} <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button"> <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> </a> @@ -38,7 +38,7 @@ <span class="pwg-state-disabled pwg-button"> <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> </span> -{/if}{/strip} +{/if}{/strip}--> {strip}{if isset($previous)} <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button"> <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> @@ -72,7 +72,7 @@ <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> </span> {/if}{/strip} -{strip}{if isset($last)} +<!--{strip}{if isset($last)} <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span> </a> @@ -80,7 +80,7 @@ <span class="pwg-state-disabled pwg-button pwg-button-icon-right"> <span class="pwg-icon pwg-icon-arrowstop-e"> </span><span class="pwg-button-text">{'Last'|@translate}</span> </span> -{/if}{/strip} +{/if}{/strip}--> {/if} </div> {strip} diff --git a/themes/default/theme.css b/themes/default/theme.css index fb646247a..01ce08469 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -381,7 +381,7 @@ TD.calDayHead { #imageToolBar .navigationButtons { float: right; } #imageToolBar .pwg-button {width:42px;} -#derivativeSwitchBox, #sortOrderBox { +.switchBox { padding: 0.5em 10px; border-radius: 4px; z-index: 100; |