Changeset 7820 for extensions/Autosize/autosize.inc.php
- Timestamp:
- Nov 19, 2010, 2:31:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r7817 r7820 145 145 if ( !empty($content) ) { return $content; } 146 146 if ($ThePicture['is_picture'] <> 1 ) { return $content; ; } 147 $tpls=' {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1}'; 148 $autosizejs = '<script type="text/javascript" charset="utf-8" src="' .$ROOT_URL;147 148 $autosizejs = '<script type="text/javascript" charset="utf-8" src="'; 149 149 $autocss = $autosizejs.'themes/default/js/jquery.packed.js"></script>'."\n"; 150 150 $template->append('head_elements',$autocss); 151 151 152 $autocss="<script type='text/javascript'>153 jQuery('#theImage').css({opacity:'0. 1'});152 $autocss="<script type='text/javascript'> 153 jQuery('#theImage').css({opacity:'0.0'}); 154 154 </script>"; 155 155 … … 186 186 global $template,$user,$conf,$picture ,$page; 187 187 //userDefManage ?? 188 189 188 $my_path = basename(dirname(__FILE__)).'/' ; 189 $my_path = dirname(__FILE__).'/'; 190 190 $debug = isset($conf['debug']) ? $conf['debug'] : false ; 191 191 $cl_conflit = isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ; 192 193 194 195 196 197 198 199 192 $theme=$user['theme']; 193 $template->assign( 194 array('ma_page' => $page['body_id'], 195 'cl_conflit' => $cl_conflit , 196 'theme' => $theme , 197 'DEBUG' => $debug , 198 'AUTOSIZE_PATH' => AUTOSIZE_PATH) 199 ); 200 200 201 201 $autoscript="<script type='text/javascript'> 202 202 if (typeof (save_framework) == 'function') 203 203 save_framework('".$page['body_id']."'); 204 205 204 </script>"; 206 205 $template->append('footer_elements',$autoscript);
Note: See TracChangeset
for help on using the changeset viewer.