Changeset 28936
- Timestamp:
- Jul 3, 2014, 10:08:40 PM (10 years ago)
- Location:
- extensions/modus
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/modus/css/index.css.tpl
r25794 r28936 35 35 } 36 36 37 {if $smarty.const.MODUS_POP} 38 .popDesc { 39 display: none 40 } 41 {else} 42 .overDesc { 43 color: white; 44 background-color: rgba(0,0,0,0.5); 45 46 position: absolute; 47 height: 1.5em; 48 width: 100%; 49 left: 0; /* for IE7, all others use 0 by default*/ 50 bottom: -100px; 51 overflow: hidden; 52 text-align: center; 53 text-shadow: 1px 1px 3px rgba(0,0,0,0.8); 54 line-height: 1.4; 55 font-weight: bold; 56 white-space: nowrap; 57 text-overflow: ellipsis; 58 transition: all 200ms ease-out 0s; 59 } 60 61 LI:hover>.overDesc { 62 bottom: -1px; /* -1 for IE8 which has some rounding issues */ 63 } 64 {/if} 65 37 66 38 67 … … 163 192 } 164 193 194 {if $MODUS_ALBUM_THUMB_SIZE>222 && $MODUS_ALBUM_THUMB_SIZE<360} 195 @media (max-width:320px), {cssResolution min=1.3}{ 196 .albThumbs LI { 197 width: 156px; 198 height: 156px; 199 margin: 5px 1px; 200 } 201 } 202 {/if} 165 203 166 204 -
extensions/modus/css/menuh.css.tpl
r25794 r28936 4 4 margin: 0; /*various default user agent css*/ 5 5 } 6 7 {if !isset($loaded_plugins['rv_menutree'])} 8 #mbCategories UL { 9 list-style-type: square; 10 padding-left: 8px; 11 } 12 {/if} 6 13 7 14 #menubar LI.selected>A { -
extensions/modus/template/thumbnails.tpl
r25794 r28936 1 1 {if !empty($thumbnails)}{strip} 2 2 {if $derivative_params->max_width()/$derivative_params->max_height() > 1.5 || ($derivative_params->max_height()<400 && !$derivative_params->sizing->max_crop)} 3 {html_style}{literal}4 .popDesc{display:none}5 {/literal}{/html_style}6 3 {modus_thumbs} 7 4 {else} -
extensions/modus/themeconf.inc.php
r28745 r28936 13 13 ); 14 14 15 define('MODUS_POP',0); 15 16 define('MODUS_STR_RECENT', "\xe2\x9c\xbd"); //HEAVY TEARDROP-SPOKED ASTERISK 16 17 define('MODUS_STR_RECENT_CHILD', "\xe2\x9c\xbb"); //TEARDROP-SPOKED ASTERISK … … 28 29 @$conf['modus_theme']['album_thumb_size'], 29 30 ImageStdParams::get_by_type(IMG_SQUARE)->max_width(), 31 MODUS_POP 30 32 )))); 31 33 … … 207 209 } 208 210 209 $do_pop = 'desktop' == $device; 211 $do_pop = MODUS_POP && 'desktop' == $device; 212 $do_over = !MODUS_POP && 'desktop' == $device; 210 213 211 214 $new_icon = " <span class=albSymbol title=\"".l10n('posted on %s')."\">".MODUS_STR_RECENT.'</span>'; … … 241 244 elseif ($csize[1] > $row_height) 242 245 $csize = $c->get_scaled_size(9999, $row_height); 243 ?>246 if ($do_pop) {?> 244 247 <li style=width:<?=$csize[0]?>px;height:<?=$row_height?>px><a href="<?=$item['URL']?>"<?=$a_style?>><img src="<?=$c->get_url()?>" width=<?=$csize[0]?> height=<?=$csize[1]?> alt="<?=$item['TN_ALT']?>" data-pop='{"w":<?=$popsize[0]?>,"h":<?=$popsize[1]?>,"url":"<?=$pop->get_url()?>"}'></a><b class=popDesc><b><?=$item['NAME']?></b><?=$new?><br><?=$item['DESCRIPTION']?></b></li> 245 248 <?php 249 } elseif ($do_over) {?> 250 <li style=width:<?=$csize[0]?>px;height:<?=$row_height?>px><a href="<?=$item['URL']?>"<?=$a_style?>><img src="<?=$c->get_url()?>" width=<?=$csize[0]?> height=<?=$csize[1]?> alt="<?=$item['TN_ALT']?>"></a><div class=overDesc><?=$item['NAME']?><?=$new?></div></li> 251 <?php 252 } else {?> 253 <li style=width:<?=$csize[0]?>px;height:<?=$row_height?>px><a href="<?=$item['URL']?>"<?=$a_style?>><img src="<?=$c->get_url()?>" width=<?=$csize[0]?> height=<?=$csize[1]?> alt="<?=$item['TN_ALT']?>"></a></li> 254 <?php 255 } 246 256 } 247 257 … … 267 277 $req = null; 268 278 $all = $template->scriptLoader->get_all(); 269 if (isset($all['modus.thumb.pop']) || 'desktop' != get_device())279 if (isset($all['modus.thumb.pop']) || !MODUS_POP || 'desktop' != get_device()) 270 280 return; 271 281 foreach($all as $script)
Note: See TracChangeset
for help on using the changeset viewer.