Changeset 12880
- Timestamp:
- Jan 14, 2012, 7:19:22 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/template-extension/distributed/samples/my-picture.tpl
r12681 r12880 96 96 </div> <!-- imageToolBar --> 97 97 98 <div id=" theImage">98 <div id="imageWrap"> 99 99 {$ELEMENT_CONTENT} 100 100 -
trunk/themes/Sylvia/theme.css
r12764 r12880 333 333 } 334 334 335 # theImageA, .illustration A, A.navThumb, A.navThumb {335 #imageWrap A, .illustration A, A.navThumb, A.navThumb { 336 336 border-bottom-width: 0; 337 337 } -
trunk/themes/clear/theme.css
r12873 r12880 24 24 } 25 25 26 # theImageIMG {26 #imageWrap IMG { 27 27 border: 3px solid #d3d3d3; 28 28 } -
trunk/themes/dark/theme.css
r12873 r12880 8 8 H2, #menubar DT { 9 9 color: #ffff80; 10 background-image: url(images/tableh1_bg.png); 10 11 } 11 12 … … 21 22 } 22 23 23 H2, #menubar DT {24 background-image: url(images/tableh1_bg.png);25 }26 27 24 #imageHeaderBar H2 { 28 25 background-image: none; 29 border: 0;30 26 } 31 27 … … 39 35 } 40 36 41 H2,#menubar DT, #imageToolBar {37 #menubar DT, #imageToolBar { 42 38 border-bottom: 1px solid #000; 43 39 } … … 51 47 52 48 .thumbnails .wrap2:hover, 53 .content .thumbnailCategories .thumbnailCategory:hover, 54 .content .thumbnailCategories .thumbnailCategory:hover A { 55 background-color: #faebd7; 49 .content .thumbnailCategories .thumbnailCategory:hover{ 56 50 border-color: yellow; /* thumbnails border color when mouse cursor is over it */ 57 color: black;58 51 } 59 52 -
trunk/themes/default/template/picture.tpl
r12878 r12880 80 80 </div>{*<!-- imageToolBar -->*} 81 81 82 <div id=" theImage">82 <div id="imageWrap"> 83 83 {$ELEMENT_CONTENT} 84 84 -
trunk/themes/default/template/picture_content.tpl
r12865 r12880 1 <img src="{$current.selected_derivative->get_url()}" {$current.selected_derivative->get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" 1 <img src="{$current.selected_derivative->get_url()}" {$current.selected_derivative->get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}" 2 2 {if isset($COMMENT_IMG)} 3 3 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" … … 5 5 {if count($current.unique_derivatives)>1} 6 6 {footer_script}{literal} 7 function changeImgSrc(url,type ,display)7 function changeImgSrc(url,typeSave,typeMap,typeDisplay) 8 8 { 9 9 var theImg = document.getElementById("theMainImage"); … … 13 13 theImg.src = url; 14 14 var elt = document.getElementById("derivativeSwitchLink"); 15 if (elt) elt.innerHTML = display; 15 if (elt) elt.innerHTML = typeDisplay; 16 theImg.useMap = "#map"+typeMap; 16 17 } 17 document.cookie = 'picture_deriv=' + type ;18 document.cookie = 'picture_deriv=' + typeSave; 18 19 } 19 20 … … 36 37 <div id="derivativeSwitchBox" onclick="toggleDerivativeSwitchBox()" style="display:none"> 37 38 {foreach from=$current.unique_derivatives item=derivative key=derivative_type} 38 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}', '{$derivative_type}', '{$derivative->get_type()|@translate|@escape:javascript}')" style="cursor:pointer">{$derivative->get_type()|@translate} ({$derivative->get_size_hr()})</a><br>39 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}','{$derivative->get_type()|@translate|@escape:javascript}')">{$derivative->get_type()|@translate} ({$derivative->get_size_hr()})</a><br> 39 40 {/foreach} 40 41 {if isset($U_ORIGINAL)} 41 <a href="javascript:phpWGOpenWindow('{$U_ORIGINAL}','xxx','scrollbars=yes,toolbar=no,status=no,resizable=yes')" title="{'Click on the photo to see it in high definition'|@translate}">{'original'|@translate}</a>42 <a href="javascript:phpWGOpenWindow('{$U_ORIGINAL}','xxx','scrollbars=yes,toolbar=no,status=no,resizable=yes')" rel="nofollow">{'original'|@translate}</a> 42 43 {/if} 43 44 </div> 44 45 {/if} 46 47 {foreach from=$current.unique_derivatives item=derivative key=derivative_type}{strip} 48 <map name="map{$derivative->get_type()}" id="map{$derivative->get_type()}"> 49 {assign var='size' value=$derivative->get_size()} 50 {if isset($previous)} 51 <area shape=rect coords="0,0,{$size[0]/4|@intval},{$size[1]}" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" alt="{$previous.TITLE}"> 52 {/if} 53 <area shape=rect coords="{$size[0]/4|@intval},0,{$size[0]/1.34|@intval},{$size[1]/4|@intval}" href="{$U_UP}" title="{'Thumbnails'|@translate}" alt="{'Thumbnails'|@translate}"> 54 {if isset($next)} 55 <area shape=rect coords="{$size[0]/1.33|@intval},0,{$size[0]},{$size[1]}" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" alt="{$next.TITLE}"> 56 {/if} 57 </map> 58 {/strip}{/foreach} -
trunk/themes/default/template/slideshow.tpl
r8119 r12880 15 15 </div> 16 16 17 <div id=" theImage">17 <div id="imageWrap"> 18 18 {$ELEMENT_CONTENT} 19 19 {if isset($COMMENT_IMG)} -
trunk/themes/default/theme.css
r12878 r12880 215 215 216 216 .thumbnailCategories LI { 217 margin:0; 218 padding:0; 219 float:left; 217 margin: 0; 218 padding: 0; 219 float: left; 220 width: 49.7%; /* 49.7% for 2 per line, 33.2% for 3 per line*/ 220 221 } 221 222 … … 329 330 text-align: center; 330 331 clear: both; 331 margin-bottom: 4px;332 margin-bottom: 2px; 332 333 padding: 0; 333 334 height: 28px; … … 343 344 position: absolute; 344 345 left: 5px; 345 top: 10 0px;346 top: 10%; 346 347 } 347 348 … … 352 353 } 353 354 354 # theImage{355 #imageWrap { 355 356 clear: left; 356 357 text-align: center; 357 } 358 359 #theImage>IMG { 358 position: relative; /*so that the drivative switch link is positioned relative to us*/ 359 } 360 361 #imageWrap>IMG { 360 362 display: block; 361 363 margin: 0 auto; … … 419 421 420 422 .contentWithMenu #imageToolBar, 421 .contentWithMenu # theImage{423 .contentWithMenu #imageWrap { 422 424 clear: none; 423 425 } … … 695 697 } 696 698 697 698 /* Category thumbnails on main page */699 .thumbnailCategories LI {700 width: 49.7%; /* 49.7% for 2 per line, 33.2% for 3 per line*/701 }702 703 699 /* Set defaults for thumbnails legend */ 704 700 .thumbnails SPAN.thumbLegend {
Note: See TracChangeset
for help on using the changeset viewer.