Changeset 6241 for extensions/LLGBO2/main.inc.php
- Timestamp:
- May 19, 2010, 6:53:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/main.inc.php
r6234 r6241 182 182 $tpl_name = ""; 183 183 $currenttheme = $template->get_template_vars('themes'); 184 $tpl_ id = $currenttheme[0]['id'];184 $tpl_name = $currenttheme[1]['id']; 185 185 ///////////////////////////////////////////// 186 186 // AN OTHER PLUGIN IS WORKING -> GO BACK … … 191 191 ///////////////////////////////////////////////////////////////// 192 192 if ($ThePicture['is_picture'] <> 1 ) { return $content; ; } 193 //echo $tpl_id; 194 195 $template->assign('GALLY',''); 196 if (( strpos(strtoupper($tpl_id) , 'GALLY') === true) ) 197 { $template->assign('GALLY','ok'); 198 return $content; ; } // Not compliant with Gally 193 //echo strpos(strtoupper($tpl_name) , 'GALLY'); 194 195 if (( strpos(strtoupper($tpl_name) , 'GALLY') === 0) ) 196 { return $content; ; } // Not compliant with Gally 199 197 ///////////////////////////////////////////////////////////////// 200 198 If (($conf['LLGBO_SETTINGS'] [1] == 'true' )/* tooltip display */ or ($conf['LLGBO_SETTINGS'] [0] == 'true') /* frame */ ) … … 233 231 $alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']); 234 232 235 /* */233 /* 236 234 $related_cats = $template->get_template_vars('related_categories'); 237 235 if (isset($related_cats)) … … 240 238 $related_cat = str_replace($conf['level_separator'],"-",$related_cat); 241 239 } 242 $alt = $alt.' - ['.$related_cat.']'; 240 $alt = $alt.' - ['.$related_cat.']';*/ 243 241 //----------------------------------------------------------------- 244 242 $template->assign( array( … … 256 254 'U_HIGH' => $ThePicture['high_url'] , 257 255 'UUID' => $uuid, )); 258 // compliance HD LIGHTBOX256 // compliance HD Shadowbox 259 257 If ($conf['LLGBO_SETTINGS'] [9] == 'true' ) 260 258 {$template->assign('HDHREF', ' href="'.$ThePicture['high_url'].'"'.' title= " HD --> '.$ThePicture['name'].'"'); 261 $template->append('head_elements', " /n".'<script type="text/javascript">259 $template->append('head_elements', "\n".'<script type="text/javascript"> 262 260 window.onload = function() { 263 261 Shadowbox.setup(document.getElementById("prevnext").getElementsByTagName("area")[3]);
Note: See TracChangeset
for help on using the changeset viewer.