Changeset 28601 for extensions
- Timestamp:
- Jun 2, 2014, 10:44:01 PM (10 years ago)
- Location:
- extensions/modus
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/modus/css/fontello/css/modus.css
r25794 r28601 22 22 */ 23 23 24 [class^="pwg-icon-"]:before, [class*=" pwg-icon-"]:before {24 .pwg-icon:before { 25 25 font-family: "modus"; 26 26 font-style: normal; -
extensions/modus/css/iconfontello.css.tpl
r25794 r28601 6 6 7 7 .pwg-icon { 8 font-size: 24px; 8 {if isset($loaded_plugins['language_switch']) || isset($loaded_plugins['BatchDownloader'])} 9 display: inline-block; 10 {/if} 11 font-size: 24px 9 12 } 10 13 … … 28 31 .pwg-icon-slideshow:before { content: '\25b6';} 29 32 .pwg-icon-favorite-del:before { content: '\2661\2d'; letter-spacing: -2px} 33 34 {if isset($loaded_plugins['BatchDownloader'])} 35 .batch-downloader-icon { 36 width: 26px 37 } 38 {/if} -
extensions/modus/themeconf.inc.php
r28454 r28601 9 9 */ 10 10 $themeconf = array( 11 'name' 11 'name' => 'modus', 12 12 'parent' => 'default', 13 13 ); … … 108 108 function rv_cdn_combined_script($url, $script) 109 109 { 110 if (!$script->is_remote() /*&& strpos($script->path,'thumb.arrange')===false*/)110 if (!$script->is_remote()) 111 111 $url = RVCDN_ROOT_URL.$script->path; 112 112 return $url; … … 120 120 $all = $template->scriptLoader->get_all(); 121 121 if ( ($jq = @$all['jquery']) ) 122 {123 122 $jq->set_path(RVPT_JQUERY_SRC); 124 }125 123 } 126 124 … … 129 127 { 130 128 global $conf; 131 include_once(dirname(__FILE__).'/functions.inc.php'); 132 $template->smarty->unregisterPlugin('modifier', 'cssGradient'); 133 $template->smarty->registerPlugin('modifier', 'cssGradient', 'modus_css_gradient'); 129 if (!is_callable('modus_css_gradient')) { 130 include_once(dirname(__FILE__).'/functions.inc.php'); 131 $template->smarty->registerPlugin('modifier', 'cssGradient', 'modus_css_gradient'); 132 } 134 133 135 134 include( dirname(__FILE__).'/skins/'.$conf['modus_theme']['skin'].'.inc.php' ); … … 139 138 'MODUS_ALBUM_THUMB_SIZE' => intval(@$conf['modus_theme']['album_thumb_size']), 140 139 'SQUARE_WIDTH' => ImageStdParams::get_by_type(IMG_SQUARE)->max_width(), 140 'loaded_plugins' => $GLOBALS['pwg_loaded_plugins'] 141 141 )); 142 142 } … … 240 240 $a_style=' style="top:'.floor(($row_height-$csize[1])/2).'px"'; 241 241 elseif ($csize[1] > $row_height) 242 {243 242 $csize = $c->get_scaled_size(9999, $row_height); 244 }245 243 ?> 246 244 <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> … … 280 278 } 281 279 if($req!=null) 282 { 283 $my_base_name = basename(dirname(__FILE__)); 284 $template->scriptLoader->add('modus.pop', 2, array($req), 'themes/'.$my_base_name."/js/thumb.pop.js", 0); 285 } 280 $template->scriptLoader->add('modus.pop', 2, array($req), 'themes/'.basename(dirname(__FILE__))."/js/thumb.pop.js", 0); 286 281 } 287 282 … … 357 352 $styles = array(); 358 353 if ($l<-1 || $l>1) 359 {360 //$styles[] = 'left:'.$l.'px';361 354 $styles[] = 'left:'.(100*$l/$wh).'%'; 362 } 355 363 356 if ($t<-1 || $t>1) 364 357 $styles[] = 'top:'.$t.'px'; … … 388 381 } 389 382 390 add_event_handler('loc_end_picture', 'modus_loc_end_picture');391 function modus_loc_end_picture()392 {393 global $template, $picture;394 }395 396 383 add_event_handler('render_element_content', 'modus_picture_content', EVENT_HANDLER_PRIORITY_NEUTRAL-1, 2 ); 397 384 function modus_picture_content($content, $element_info) … … 399 386 global $conf, $picture, $template; 400 387 401 if ( !empty($content) ) 402 {// someone hooked us - so we skip; 388 if ( !empty($content) ) // someone hooked us - so we skip; 403 389 return $content; 404 }405 390 406 391 $unique_derivatives = array(); … … 426 411 $selected_derivative = null; 427 412 if (isset($_COOKIE['phavsz'])) 428 {429 413 $available_size = explode('x', $_COOKIE['phavsz']); 430 if (empty($available_size[2])) 431 $available_size[2] = 1; 432 414 elseif ( $caps=pwg_get_session_var('caps') && $caps[0]>1 ) 415 $available_size = array($caps[0]*$caps[1], $caps[0]*($caps[2]-100), $caps[0]); 416 417 if (isset($available_size)) 418 { 433 419 foreach($unique_derivatives as $derivative) 434 420 { … … 438 424 439 425 if ($size[0] <= $available_size[0] and $size[1] <= $available_size[1]) 440 {441 426 $selected_derivative = $derivative; 442 }443 427 else 444 428 { … … 490 474 $template->assign('U_PREFETCH', $derivative->get_url() ); 491 475 } 492 493 476 } 494 477 … … 501 484 502 485 503 504 486 if ($show_original) 505 {506 487 $template->assign( 'U_ORIGINAL', $element_info['element_url'] ); 507 }508 488 509 489 $template->append('current', array(
Note: See TracChangeset
for help on using the changeset viewer.