Changeset 30248
- Timestamp:
- Oct 21, 2014, 9:12:25 PM (9 years ago)
- Location:
- extensions/modus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/modus/css/iconfontello.css.tpl
r28601 r30248 26 26 display: inline-block; 27 27 vertical-align: top; 28 28 cursor:pointer; 29 29 } 30 30 31 31 .pwg-icon-slideshow:before { content: '\25b6';} 32 32 .pwg-icon-favorite-del:before { content: '\2661\2d'; letter-spacing: -2px} 33 34 {if $conf.index_posted_date_icon} 35 {if $conf.index_created_date_icon} 36 .pwg-icon-calendar:before { content: '\f133'; } 37 .pwg-icon-camera-calendar:before { content: '\e70f'; } 38 {else} 39 .pwg-icon-calendar:before { content: '\f133'; } 40 {/if} 41 {/if} 33 42 34 43 {if isset($loaded_plugins['BatchDownloader'])} -
extensions/modus/themeconf.inc.php
r30053 r30248 13 13 ); 14 14 15 define('MODUS_POP',0);16 15 define('MODUS_STR_RECENT', "\xe2\x9c\xbd"); //HEAVY TEARDROP-SPOKED ASTERISK 17 16 define('MODUS_STR_RECENT_CHILD', "\xe2\x9c\xbb"); //TEARDROP-SPOKED ASTERISK … … 26 25 27 26 $this->assign('MODUS_CSS_VERSION', crc32(implode(',', array( 28 ' d'.@$conf['modus_theme']['skin'],27 'a'.@$conf['modus_theme']['skin'], 29 28 @$conf['modus_theme']['album_thumb_size'], 30 29 ImageStdParams::get_by_type(IMG_SQUARE)->max_width(), 31 MODUS_POP 30 $conf['index_created_date_icon'], 31 $conf['index_posted_date_icon'], 32 32 )))); 33 33 … … 95 95 96 96 $template->assign( array( 97 'conf' => $conf, 97 98 'skin' => $skin, 98 99 'MODUS_ALBUM_THUMB_SIZE' => intval(@$conf['modus_theme']['album_thumb_size']), … … 165 166 } 166 167 167 $do_pop = MODUS_POP && 'desktop' == $device; 168 $do_over = !MODUS_POP && 'desktop' == $device; 169 170 if ($do_pop && !isset($_GET['rvts'])) echo '<div id=pop style=display:none;z-index:2;border:0;position:absolute></div> 171 '; 168 $do_over = 'desktop' == $device; 172 169 173 170 $new_icon = " <span class=albSymbol title=\"".l10n('posted on %s')."\">".MODUS_STR_RECENT.'</span>'; … … 187 184 while($csize[1]<$row_height-2 && $idx<count($candidates)); 188 185 189 if ($do_pop && $idx<count($candidates))190 {191 $pop = new DerivativeImage($candidates[$idx], $src_image);192 $popsize = $pop->get_size();193 }194 else195 {196 $pop = $c;197 $popsize = $csize;198 }199 200 186 $a_style = ''; 201 187 if ($csize[1] < $row_height) … … 203 189 elseif ($csize[1] > $row_height) 204 190 $csize = $c->get_scaled_size(9999, $row_height); 205 if ($do_pop) {?> 206 <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> 207 <?php 208 } elseif ($do_over) {?> 191 if ($do_over) {?> 209 192 <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> 210 193 <?php … … 223 206 // not async to avoid visible flickering reflow 224 207 $template->scriptLoader->add('modus.arange', 1, array('jquery'), 'themes/'.$my_base_name."/js/thumb.arrange.min.js", 0); 225 if ($do_pop)226 $template->scriptLoader->add('modus.pop', 2, array('jquery'), 'themes/'.$my_base_name."/js/thumb.pop.js", 0);227 208 } 228 209 … … 234 215 $template->block_footer_script(null, 'try{document.cookie="caps="+(window.devicePixelRatio?window.devicePixelRatio:1)+"x"+document.documentElement.clientWidth+"x"+document.documentElement.clientHeight+";path='.cookie_path().'"}catch(er){document.cookie="caps=1x1x1x"+err.message;}'); 235 216 236 $req = null;237 $all = $template->scriptLoader->get_all();238 if (isset($all['modus.thumb.pop']) || !MODUS_POP || 'desktop' != get_device())239 return;240 foreach($all as $script)241 {242 if($script->load_mode==2 && !$script->is_remote() && count($script->precedents)==0)243 {244 $req = $script->id;245 break;246 }247 }248 if($req!=null)249 $template->scriptLoader->add('modus.pop', 2, array($req), 'themes/'.basename(dirname(__FILE__))."/js/thumb.pop.js", 0);250 217 } 251 218 … … 401 368 } 402 369 } 403 404 /*$debug[]= "avsize ".implode(',', $available_size);405 $debug[]= "selsize ".implode(',', $selected_derivative->get_size());*/406 370 407 371 if ($available_size[2]>1 && $selected_derivative) … … 419 383 $display_size = array( round($size[0]/$available_size[2]), round($size[1]/$available_size[2]) ); 420 384 421 /*$debug[]= "dsize ".implode(',', $display_size);422 $debug[]= "nsize ".implode(',', $size);*/423 424 385 $template->assign( array( 425 386 'rvas_display_size' => $display_size, … … 427 388 )); 428 389 } 429 /*if (is_admin())430 $template->append('footer_elements', implode("\n", $debug));*/431 390 432 391 if (isset($picture['next'])
Note: See TracChangeset
for help on using the changeset viewer.