Changeset 10453 for extensions/LLGBO2/main.inc.php
- Timestamp:
- Apr 17, 2011, 8:15:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/main.inc.php
r9954 r10453 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.2. a4 Version: 2.2.b 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: GBo … … 8 8 Description: Display thumbnail under button. Add navigation on picture look like GBo Gallery 9 9 Add a border around picture ...... 10 2.2.a compliant 2.2 Piwigo 10 2.2.a compliant 2.2rc Piwigo 11 2.2.b Full compliant 2.2 Piwigo + fix bug in admin 11 12 */ 12 13 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 15 16 global $conf; 16 17 17 define ('LLGBO_INFO_VERSION','2.2. a');18 define ('LLGBO_INFO_VERSION','2.2.b'); 18 19 if (!defined('LLGBO_PATH')) 19 20 {define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');} … … 155 156 function MyPictureOptions($content ) 156 157 {global $template,$conf,$user,$lang; 157 $ llgbo_path = get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/';158 $template->assign('LLGBO_PATH',LLGBO_PATH); 158 159 $sweetcss = ' <! --- LLGBO tooltip css--> 159 160 <style type="text/css"> … … 162 163 div#toolTip p em {display:block;margin-top:3px;font-style:normal;font-weight:bold;text-align:left} 163 164 div#toolTip p.title {color:'.$conf['LLGBO_TOOLTIP'][4].';text-align:center;padding:0 0 3px 0;} 165 #theImage{margin:auto;overflow: hidden;} 164 166 </style>'; 165 167 //----------------------------------------------------------------- … … 168 170 If (($conf['LLGBO'][1] == 'true' ) /* tooltip */ or ($conf['LLGBO_SETTINGS'] [2] == 'true' ) /* exif under bt */ 169 171 or ($conf['LLGBO_SETTINGS'] [4] === 'true' ) /* usemap and Display Thumb */) 170 { $ javacss = '<script type="text/javascript" charset="utf-8" src="'.$llgbo_path;171 $sweetcss = $sweetcss."\n".$javacss.'js/sweettitlesn.js"></script>'."\n";172 $template->append('footer_elements',$sweetcss);}172 { $template->assign('LLGBOTOOLTIP', 1 ); 173 $template->append('footer_elements',$sweetcss); 174 } 173 175 //----------------------------------------------------------------- 174 176 // Navigation improvement are always available … … 215 217 ///////////////////////////////////////////////////////////////// 216 218 If (($conf['LLGBO_SETTINGS'] [1] == 'true' )/* tooltip display */ or ($conf['LLGBO_SETTINGS'] [0] == 'true') /* frame */ ) 217 { $linkcss = '<link rel="stylesheet" type="text/css" href="'.$llgbo_path; 218 $template->append('head_elements',$linkcss.'css/gbolook.css">'); 219 $template->append('head_elements',"\n".' <STYLE type="text/css">#theImage{margin:auto;overflow: hidden;}</STYLE>'); 220 } 219 { $template->assign('LLGBOCSS', 2 ); } 221 220 //---------------------------------------------------- 222 221 //------- Usemap values -------------
Note: See TracChangeset
for help on using the changeset viewer.