Changeset 12797 for trunk/themes
- Timestamp:
- Dec 27, 2011, 9:26:49 PM (13 years ago)
- Location:
- trunk/themes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/clear/theme.css
r8306 r12797 15 15 } 16 16 17 #menubar DL, .content, #imageToolBar, .header_notes {17 #menubar DL, .content, #imageToolBar, #derivativeSwitchLink, #derivativeSwitchBox, .header_notes { 18 18 background-color: #eeeeee; 19 19 } 20 20 21 21 /* borders */ 22 #menubar DL, .content, #imageToolBar {22 #menubar DL, .content, #imageToolBar, #derivativeSwitchLink, #derivativeSwitchBox { 23 23 border: 1px solid #d3d3d3; 24 24 } -
trunk/themes/dark/theme.css
r11992 r12797 17 17 } 18 18 19 #menubar DL, .content, #imageToolBar, #imageHeaderBar, .header_notes {19 #menubar DL, .content, #imageToolBar, #imageHeaderBar, #derivativeSwitchLink, #derivativeSwitchBox, .header_notes { 20 20 background-color: #505050; 21 21 } … … 35 35 36 36 /* borders */ 37 #menubar DL, .content {37 #menubar DL, .content, #derivativeSwitchLink, #derivativeSwitchBox{ 38 38 border: 1px solid #000; 39 39 } -
trunk/themes/default/template/picture_content.tpl
r12796 r12797 5 5 {if count($current.available_derivative_types)>1} 6 6 {footer_script}{literal} 7 function changeImgSrc(url,type )7 function changeImgSrc(url,type,display) 8 8 { 9 9 var theImg = document.getElementById("theMainImage"); … … 12 12 theImg.removeAttribute("width");theImg.removeAttribute("height"); 13 13 theImg.src = url; 14 var elt = document.getElementById("derivativeSwitchLink"); 15 if (elt) elt.innerHTML = display; 14 16 } 15 17 document.cookie = 'picture_deriv=' + type; 16 18 } 19 20 function toggleDerivativeSwitchBox() 21 { 22 var elt = document.getElementById("derivativeSwitchBox"), 23 ePos = document.getElementById("derivativeSwitchLink"); 24 if (elt.style.display==="none") 25 { 26 elt.style.position = "absolute"; 27 elt.style.left = (ePos.offsetLeft + 10) + "px"; 28 elt.style.top = (ePos.offsetTop + ePos.offsetHeight) + "px"; 29 elt.style.display=""; 30 } 31 else 32 elt.style.display="none"; 33 } 17 34 {/literal}{/footer_script} 18 <p> 35 <a id="derivativeSwitchLink" onclick="toggleDerivativeSwitchBox()" style="cursor:pointer">{$current.selected_derivative->get_type()|@translate}</a> 36 <div id="derivativeSwitchBox" onclick="toggleDerivativeSwitchBox()" style="display:none"> 19 37 {foreach from=$current.available_derivative_types item=derivative_type} 20 <a onclick="changeImgSrc('{$current.derivatives[$derivative_type]->get_url()|@escape:javascript}', '{$derivative_type}' )" title="{$current.derivatives[$derivative_type]->get_size_hr()}">{$derivative_type}</a>38 <a onclick="changeImgSrc('{$current.derivatives[$derivative_type]->get_url()|@escape:javascript}', '{$derivative_type}', '{$derivative_type|@translate|@escape:javascript}')" style="cursor:pointer">{$derivative_type|@translate} ({$current.derivatives[$derivative_type]->get_size_hr()})</a><br> 21 39 {/foreach} 22 </ p>40 </div> 23 41 {/if} -
trunk/themes/default/theme.css
r12764 r12797 338 338 #imageToolBar .pwg-button {width:42px;} 339 339 340 341 #derivativeSwitchLink { 342 padding: 0.2em; 343 position: absolute; 344 left: 5px; 345 top: 100px; 346 } 347 348 #derivativeSwitchBox { 349 padding: 0.5em; 350 border-radius: 4px; 351 z-index: 100; 352 } 340 353 341 354 #theImage {
Note: See TracChangeset
for help on using the changeset viewer.