Changeset 4713
- Timestamp:
- Jan 20, 2010, 8:24:12 PM (14 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r4603 r4713 103 103 {$template->assign( 'LLGBO_VERSION' , LLGBO_INFO_VERSION);} 104 104 $me = get_plugin_data($plugin_id); 105 $template-> clear_assign('LLGBOINFO');105 $template->assign('LLGBOINFO',''); 106 106 // Load configuration settings from database 107 107 -
extensions/LLGBO2/admin/llgbo_adminsettings.tpl
r4603 r4713 2 2 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2> 3 3 <h3>{'Howto'|@translate}</h3> 4 4 <span>{'llgo_warning_setting'|@translate} </span> 5 5 <form method="post" action="{$llgbo_F_ACTION}" class="properties"> 6 6 <fieldset> … … 9 9 <tr> 10 10 <td id="llgbotitle">{'llgo_global_setting'|@translate} </td> 11 </tr>11 </tr> 12 12 <tr> 13 13 <td class="llgbolabel">{'llgbo_frame'|@translate}</td> -
extensions/LLGBO2/js/sweettitlesn.js
r4297 r4713 20 20 var i,j,Over;this.x = document.createElement('div'); 21 21 this.x.id = 'toolTip';document.getElementsByTagName('body')[0].appendChild(this.x);this.x.style.top = '0';this.x.style.visibility = 'hidden';var tipLen = this.tipElements.length;for ( i=0;i<tipLen;i++ ){ 22 var Elms = document.getElementsByTagName(this.tipElements[i]);var curLen = Elms.length;for ( j=0;j<curLen;j++ ){ 22 var Elms = document.getElementsByTagName(this.tipElements[i]); 23 24 var curLen = Elms.length;for ( j=0;j<curLen;j++ ){ 23 25 var el= Elms[j];var tv = el.getAttribute('title') 26 if (el.className != 'navThumb') 27 { 24 28 if (tv != "null" && tv !=null && tv !="") //chrome 25 29 {addEvent2(el,'mouseover',this.tipOver); addEvent2(el,'mousemove',this.tipMouseMove); addEvent2(el,'mouseout',this.tipOut); var sv = el.getAttribute('swttips'); el.setAttribute('Stitle',tv); el.setAttribute('Stip',sv ); el.removeAttribute('title'); 26 el.removeAttribute('swttips');} el.removeAttribute('alt');} } }, 30 el.removeAttribute('swttips');} el.removeAttribute('alt');} } 31 } }, 27 32 updateXY : function(e){ if (document.captureEvents){S.xCord = e.pageX;S.yCord = e.pageY;} else if (window.event.clientX){S.xCord = window.event.clientX+document.documentElement.scrollLeft;S.yCord = window.event.clientY+document.documentElement.scrollTop;}}, 28 33 tipOut: function(){ -
extensions/LLGBO2/js/sweettitlesn_comment.js
r4297 r4713 26 26 for ( j=0; j<curLen; j++ ) { 27 27 var el= Elms[j]; 28 var tv = el.getAttribute('title') 29 if ( tv != null && tv != "null" && tv !="") //chrome 30 {addEvent(el,'mouseover',this.tipOver); 31 addEvent(el,'mousemove',this.tipMouseMove); 32 addEvent(el,'mouseout',this.tipOut); 33 var sv = el.getAttribute('swttips'); 34 el.setAttribute('tiptitle', tv); 35 el.setAttribute('tipswt', sv ); 36 el.removeAttribute('title'); 37 el.removeAttribute('swttips');} 38 el.removeAttribute('alt');} 28 if (el.className != 'navThumb') // pas de tooltip sur nav thumb 29 { var tv = el.getAttribute('title') 30 if ( tv != null && tv != "null" && tv !="") //chrome 31 {addEvent(el,'mouseover',this.tipOver); 32 addEvent(el,'mousemove',this.tipMouseMove); 33 addEvent(el,'mouseout',this.tipOut); 34 var sv = el.getAttribute('swttips'); 35 el.setAttribute('tiptitle', tv); 36 el.setAttribute('tipswt', sv ); 37 el.removeAttribute('title'); 38 el.removeAttribute('swttips');} 39 el.removeAttribute('alt');} 40 } 39 41 } 40 42 }, -
extensions/LLGBO2/language/en_UK/plugin.lang.php
r4603 r4713 83 83 $lang['llgbo_always_displayexif'] = 'Always display METADATA:' ; 84 84 $lang['Reset_To_Default'] = 'Reset to default values'; 85 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 85 86 ?> -
extensions/LLGBO2/language/es_ES/plugin.lang.php
r4603 r4713 83 83 $lang['llgbo_always_displayexif'] = 'Siempre fijar el METADATA:' ; 84 84 /* TODO */$lang['Reset_To_Default'] = 'Restaurar los valores por defecto'; 85 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 85 86 ?> -
extensions/LLGBO2/language/fr_FR/plugin.lang.php
r4603 r4713 83 83 $lang['llgbo_always_displayexif'] = 'Toujours afficher les Metadata:' ; 84 84 $lang['Reset_To_Default'] = 'Rétablir les valeurs par défaut'; 85 $lang['llgo_warning_setting'] = 'Le cadre et la navigation sur image ne sont pas disponibles avec Gally'; 85 86 ?> -
extensions/LLGBO2/language/hu_HU/plugin.lang.php
r4603 r4713 82 82 $lang['previewsamples']= 'Minta megtekintése'; 83 83 $lang['llgbo_always_displayexif'] = 'Mindig megjelenő METAADATOK (EXIF):' ; 84 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 84 85 ?> -
extensions/LLGBO2/language/pl_PL/plugin.lang.php
r4603 r4713 83 83 $lang['llgbo_always_displayexif'] = 'Zawsze wyświetlaj metadane:' ; 84 84 /* TODO */$lang['Reset_To_Default'] = 'Przywróć wartości domyślne'; 85 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 85 86 ?> -
extensions/LLGBO2/main.inc.php
r4604 r4713 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.0. K4 Version: 2.0.L 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: Ex-Ftb … … 17 17 /* 2.0.J add sample display and fix bug in admin with chrome */ 18 18 /* 2.0.K fix warning du to language file */ 19 /* 2.0.l Avoid problem with Gally */ 19 20 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 20 21 /* création d'une instance de la classe */ … … 22 23 global $conf; 23 24 24 define ('LLGBO_INFO_VERSION','2.0. K');25 define ('LLGBO_INFO_VERSION','2.0.L'); 25 26 if (!defined('LLGBO_PATH')) 26 27 {define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');} … … 31 32 $conf['LLGBO_HEADER'] = explode (",",$conf['LLGBOHEADER']); 32 33 ///////////////////////////////////////////////////// 33 /* plugin Class */ 34 /* PLUGIN CLASS */ 35 ///////////////////////////////////////////////////// 34 36 class look_like_gbo 35 37 {/* Set the administration panel of the plugin */ … … 41 43 return $menu; } 42 44 43 44 /* always display metadata */ 45 //------------------------------------------------------------- 46 /* ALWAYS DISPLAY METADATA */ 47 //------------------------------------------------------------- 45 48 function AutoDisplayMetadata() 46 49 {global $conf; … … 52 55 { pwg_set_session_var('show_metadata', 1 );}} 53 56 } 54 55 // reset nofollow, noindex 57 //------------------------------------------------------------- 58 // RESET NOFOLLOW, NOINDEX 59 //------------------------------------------------------------- 56 60 function MyBeginheader() 57 61 { global $page,$conf; … … 59 63 { unset ($page['meta_robots']);} 60 64 } 61 // manage H E A D E R 65 //------------------------------------------------------------- 66 // MANAGE H E A D E R 67 //------------------------------------------------------------- 62 68 function Myheader() 63 69 {global $template,$conf; … … 104 110 105 111 } // end header 106 107 //* improve functionnalities --> picture.tpl 112 113 //------------------------------------------------------------- 114 //* IMPROVE FUNCTIONNALITIES --> PICTURE.TPL 115 //------------------------------------------------------------- 108 116 function DisplayGboLook() 109 117 { global $template,$conf; … … 119 127 } } 120 128 $template->assign( 'U_METADATA', $u_metadata.'"'.$swt); 121 $template-> clear_assign('metadata');129 $template->Clear_assign('metadata'); 122 130 } // hide original metadata 123 131 } 124 132 125 133 } 126 127 /* ------ Manage picture page---------------- */ 134 //----------------------------------------------------------------- 135 /* ------ MANAGE PICTURE PAGE---------------- */ 136 //----------------------------------------------------------------- 128 137 function MyPictureOptions($content ) 129 {global $template,$conf,$user ;138 {global $template,$conf,$user,$lang; 130 139 $sweetcss = ' <! --- LLGBO tooltip css--> 131 140 <style type="text/css"> … … 135 144 div#toolTip p.title {color:'.$conf['LLGBO_TOOLTIP'][4].';text-align:center;padding:0 0 3px 0;} 136 145 </style>'; 137 // ----------- add JS tooltip in footer ---------------------- 146 //----------------------------------------------------------------- 147 // ----------- add JS tooltip in footer -------------------- 148 //----------------------------------------------------------------- 138 149 If (($conf['LLGBO'][1] == 'true' ) /* tooltip */ or ($conf['LLGBO_SETTINGS'] [2] == 'true' ) /* exif under bt */ 139 150 or ($conf['LLGBO_SETTINGS'] [4] === 'true' ) /* usemap and Display Thumb */) … … 141 152 $linkcss = '<link rel="stylesheet" type="text/css" href="'.LLGBO_PATH; 142 153 $sweetcss = $sweetcss."\n".$javacss.'js/sweettitlesn.js"></script>'."\n"; 143 // $template->append('head_elements',$sweetcss); 144 $template->append('footer_elements',$sweetcss); } 145 154 $template->append('footer_elements',$sweetcss); } 155 //----------------------------------------------------------------- 146 156 // Navigation improvement are always available 157 //----------------------------------------------------------------- 147 158 $ThePicture = $template->get_template_vars('current'); 148 159 $next = $template->get_template_vars('next'); … … 154 165 $prevthumb_title = $prev['TITLE']; 155 166 $usemap =''; 167 //---------------------------------------------------- 168 //------- Tooltip ------------- 169 //---------------------------------------------------- 156 170 If ($conf['LLGBO_SETTINGS'][1] == 'true' )/* tooltip */ 157 171 { $nextthumb_title = $next['TITLE']; … … 166 180 'U_IMG' => $last['U_IMG']));} 167 181 } 182 ///// YOGA or SIMPLE ///////////////////// 183 $themeconf = $template->get_template_vars('themeconf'); 184 $tpl_name = $themeconf['template']; 168 185 ///////////////////////////////////////////// 169 // an other plugin is working -> go back 186 // AN OTHER PLUGIN IS WORKING -> GO BACK 187 // - - - - - - - - - - - - - - - - - - - - 170 188 if ( !empty($content) ) { return $content; } 171 189 ////////////////////////////////////////////////////////////////////// 172 190 // frame and navigation on picture are only available on picture extension 173 191 ///////////////////////////////////////////////////////////////// 174 if ($ThePicture['is_picture'] <> 1 ) { return ; } 192 if ($ThePicture['is_picture'] <> 1 ) { return $content; ; } 193 if ( strtoupper($tpl_name) == 'GALLY') { 194 return $content; ; } // Not compliant with Gally 175 195 ///////////////////////////////////////////////////////////////// 176 196 If (($conf['LLGBO_SETTINGS'] [1] == 'true' )/* tooltip display */ or ($conf['LLGBO_SETTINGS'] [0] == 'true') /* frame */ ) 177 197 {$linkcss = '<link rel="stylesheet" type="text/css" href="'.LLGBO_PATH; 178 $template->append('head_elements',$linkcss.'css/gbolook.css">');} 179 198 $template->append('head_elements',$linkcss.'css/gbolook.css">'); 199 $template->append('head_elements',"\n".' <STYLE type="text/css">#theImage{margin:auto;overflow: hidden;z-index:1} 200 </STYLE>'); 201 } 202 //---------------------------------------------------- 203 //------- Usemap values ------------- 204 //---------------------------------------------------- 180 205 If ($conf['LLGBO_SETTINGS'] [3] == 'true' ) // usemap 181 206 { $usemap = '" usemap="#prevnext' ; 182 $imgw = $ThePicture['scaled_width'];207 $imgw = $ThePicture['scaled_width']; 183 208 $imgh = $ThePicture['scaled_height']; 184 209 $template->assign(array( … … 198 223 'PREVTHUMB' => $swtimg.$prev['THUMB_SRC'].'>"', 199 224 'PREVTHUMBTITLE' => $prevthumb_title));} 200 } // end usemap 201 $alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']); 225 } // end usemap 226 227 //---------------------------------------------------- 228 // improve alt 229 //---------------------------------------------------- 230 $alt=""; 231 /* 232 $related_cats = $template->get_template_vars('related_categories'); 233 if (isset($related_cats)) 234 {$related_cat = strip_tags($related_cats[0]); 235 $related_cat = str_replace(' '," ",$related_cat); 236 $related_cat = str_replace($conf['level_separator'],"-",$related_cat); 237 } 238 $alt1 = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']); 239 $alt= $related_cat.' - '.$alt1; */ 240 //----------------------------------------------------------------- 202 241 $template->assign( array( 203 242 'SRC_IMG' => $ThePicture['image_url'], … … 218 257 { $template->assign('SHOW_PICTURE_NAME_ON_TITLE', false); 219 258 $template->assign('TITLE_FRAME_COLOR', $conf['LLGBO_FRAME'][0]); } 220 221 /* HTML frame */ 259 //---------------------------------------------------- 260 /* HTML frame */ 261 //---------------------------------------------------- 222 262 If (($conf['LLGBO_SETTINGS'] [0] == 'true') ) 223 263 { $bds = 0; … … 240 280 {$template->assign( array( 'TITLE_FRAME' => $ThePicture['name'] )); } 241 281 } // end frame 242 else // no frame 282 else 283 // no frame 243 284 {$template->clear_assign('FRAME_BEGIN') ;} 244 285 -
extensions/LLGBO2/template/picture_content.tpl
r4527 r4713 12 12 {/if}> 13 13 {/if} 14 14 15 {if isset($FRAME_BEGIN)} 15 16 {if isset($TITLE_FRAME)} … … 17 18 {/if} 18 19 <div id="gbo" {$FRAME_SIZE}> 20 <div id="theImgContainer"> 19 21 {$FRAME_BEGIN} 20 22 {if isset($high) } … … 29 31 {/if}> 30 32 {$FRAME_END} 33 </div> 31 34 </div> 32 35 {/if}
Note: See TracChangeset
for help on using the changeset viewer.