Changeset 19764 for extensions/Autosize/autosize.inc.php
- Timestamp:
- Jan 3, 2013, 7:38:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r19746 r19764 92 92 } 93 93 self::reload("#93"); 94 94 self::Fin_php("#94 autosize_calcContent:" + $DEBUG_autosize); 95 95 96 96 } … … 120 120 * INIT 121 121 *********************/ 122 123 static public function init_1($content, $image) 124 { 125 global $conf, $template, $page; 126 if(!isset($conf['AS_panorama'])) return $content; 127 $asp = & $conf['AS_panorama']; 128 if ( !stristr($image['name'], $asp['in_mode_360']) and !stristr($image['name'], $asp['in_mode_180']) ) return $content; 129 130 $windowWidth=$_COOKIE['windowWidth'] -$_COOKIE['theImageLeft']-$_COOKIE['theImageRight']; 131 $windowHeight=$_COOKIE['windowHeight']-130 ; 132 133 $asp['start_position']= 10; 134 $asp['min_viewport_width']= $windowWidth; 135 $asp['viewport_height']= $windowHeight; 136 } 137 122 138 static public function init($content,$element_info){ 123 139 global $template,$version,$icon_path,$page,$picture,$conf; … … 408 424 echo $set_var ; 409 425 echo $autoscript; 410 self::Fin_php("#411: ".$DEBUG_autosize);426 // self::Fin_php("#411: ".$DEBUG_autosize); 411 427 412 428 }
Note: See TracChangeset
for help on using the changeset viewer.