Changeset 13773
- Timestamp:
- Mar 27, 2012, 10:05:37 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/picture_comment.inc.php
r13225 r13773 241 241 { 242 242 $key = get_ephemeral_key(3, $page['image_id']); 243 $content = ''; 244 if ('reject'===@$comment_action) 245 { 246 $content = htmlspecialchars( stripslashes($comm['content']) ); 247 } 243 248 $template->assign('comment_add', 244 249 array( 245 250 'F_ACTION' => $url_self, 246 251 'KEY' => $key, 247 'CONTENT' => null,252 'CONTENT' => $content, 248 253 'SHOW_AUTHOR' => !is_classic_user() 249 254 )); -
trunk/themes/dark/theme.css
r13729 r13773 40 40 41 41 FIELDSET, INPUT, SELECT, TEXTAREA, 42 . content .thumbnailCategory ,42 .thumbnailCategory , 43 43 .content .commentElement , 44 44 .thumbnails .wrap2 { … … 48 48 49 49 .thumbnails .wrap2:hover, 50 . content .thumbnailCategories .thumbnailCategory:hover,51 .content .commentsList.commentElement:hover{50 .thumbnailCategory:hover, 51 .content .commentElement:hover{ 52 52 border-color: yellow; /* thumbnails border color when mouse cursor is over it */ 53 53 } -
trunk/themes/default/template/index.tpl
r13736 r13773 8 8 <span class="pwg-icon pwg-icon-sort"> </span><span class="pwg-button-text">{'Sort order'|@translate}</span> 9 9 </a> 10 <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(1)">10 <div id="sortOrderBox" class="switchBox" style="display:none" onclick="toggleSortOrderBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleSortOrderBox(1)"> 11 11 <div class="switchBoxTitle">{'Sort order'|@translate}</div> 12 12 {foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if} 13 13 {if $image_order.SELECTED} 14 <span class="switchCheck">✔ </span><span class="switchSelected">{$image_order.DISPLAY}</span>14 <span>✔ </span>{$image_order.DISPLAY} 15 15 {else} 16 < a href="{$image_order.URL}" class="switchUnselected" rel="nofollow">{$image_order.DISPLAY}</a>16 <span style="visibility:hidden">✔ </span><a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a> 17 17 {/if} 18 18 {/foreach} … … 23 23 ePos = document.getElementById("sortOrderLink"); 24 24 if (!forceHide && elt.style.display==="none") { 25 elt.style.position = "absolute";26 25 elt.style.left = ePos.offsetLeft+"px"; 27 26 elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px"; … … 39 38 <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> 40 39 </a> 41 <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(1)">40 <div id="derivativeSwitchBox" class="switchBox" style="display:none" onclick="toggleImageDerivativesBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleImageDerivativesBox(1)"> 42 41 <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> 43 42 {foreach from=$image_derivatives item=image_derivative name=loop}{if !$smarty.foreach.loop.first}<br>{/if} 44 43 {if $image_derivative.SELECTED} 45 <span class="switchCheck">✔ </span><span class="switchSelected">{$image_derivative.DISPLAY}</span>44 <span>✔ </span>{$image_derivative.DISPLAY} 46 45 {else} 47 < a href="{$image_derivative.URL}" class="switchUnselected" rel="nofollow">{$image_derivative.DISPLAY}</a>46 <span style="visibility:hidden">✔ </span><a href="{$image_derivative.URL}" class="switchUnselected" rel="nofollow">{$image_derivative.DISPLAY}</a> 48 47 {/if} 49 48 {/foreach} … … 54 53 ePos = document.getElementById("derivativeChooseLink"); 55 54 if (!forceHide && elt.style.display==="none") { 56 elt.style.position = "absolute"; 57 elt.style.left = ePos.offsetLeft+"px"; 55 elt.style.left = (ePos.offsetLeft-25)+"px"; 58 56 elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px"; 59 57 elt.style.display=""; -
trunk/themes/default/template/picture.tpl
r13736 r13773 20 20 21 21 {if count($current.unique_derivatives)>1} 22 {footer_script }{literal}22 {footer_script require='jquery'}{literal} 23 23 function changeImgSrc(url,typeSave,typeMap) 24 24 { … … 30 30 theImg.useMap = "#map"+typeMap; 31 31 } 32 jQuery('.derivativeChecked').hide(); 33 jQuery('#derivativeChecked'+typeSave).show(); 34 jQuery('#derivativeSiwtchBox .switchSelected').addClass('switchUnselected').removeClass('switchSelected'); 35 jQuery('#derivativeName'+typeSave).addClass('switchSelected').removeClass('switchUnselected'); 36 document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; 32 jQuery('#derivativeSwitchBox .switchCheck').css('visibility','hidden'); 33 jQuery('#derivativeChecked'+typeSave).css('visibility','visible'); 34 document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; 37 35 } 38 36 … … 43 41 if (elt.style.display==="none") 44 42 { 45 elt.style.position = "absolute";46 43 elt.style.left = (ePos.offsetLeft)+"px"; 47 44 elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px"; … … 51 48 elt.style.display="none"; 52 49 } 50 jQuery("#derivativeSwitchBox").on('mouseleave click', function() { 51 this.style.display="none"; 52 } 53 ); 53 54 {/literal}{/footer_script} 54 55 {strip}<a id="derivativeSwitchLink" href="javascript:toggleDerivativeSwitchBox()" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 55 56 <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span></a> 56 <div id="derivativeSwitchBox" class="switchBox" onclick="toggleDerivativeSwitchBox()" style="display:none" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e.parentNode.parentNode==this||e==this||toggleDerivativeSwitchBox()">57 <div id="derivativeSwitchBox" class="switchBox" style="display:none"> 57 58 <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> 58 59 {foreach from=$current.unique_derivatives item=derivative key=derivative_type} 59 <span class="derivativeChecked switchCheck" 60 id="derivativeChecked{$derivative_type}" {if $derivative->get_type() ne $current.selected_derivative->get_type()}style="display:none"{/if}>✔ </span> 61 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')" 62 id="derivativeName{$derivative_type}" 63 class="{if $derivative->get_type() == $current.selected_derivative->get_type()}switchSelected{else}switchUnselected{/if}"> 60 <span class="switchCheck" id="derivativeChecked{$derivative_type}"{if $derivative->get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>✔ </span> 61 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')"> 64 62 {$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span> 65 63 </a><br> -
trunk/themes/default/theme.css
r13735 r13773 287 287 overflow: auto; 288 288 /*width: inherit;*/ 289 }290 291 .commentElement .description H3 {292 text-align: left;293 background: transparent;294 margin: 0;295 padding: 0.1em;296 font-size: 120%;297 289 } 298 290 … … 383 375 384 376 .switchBox { 385 padding: 0.5em 10px;377 padding: 0.5em 5px; 386 378 border-radius: 4px; 387 379 z-index: 100; 388 text-align:left; 380 text-align: left; 381 position: absolute; /*left, right set through js*/ 389 382 } 390 383 … … 398 391 clear: left; 399 392 text-align: center; 400 position: relative; /*so that the drivative switch link is positioned relative to us*/401 393 } 402 394
Note: See TracChangeset
for help on using the changeset viewer.