Changeset 6234
- Timestamp:
- May 18, 2010, 10:15:25 PM (14 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r4713 r6234 135 135 if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';} 136 136 if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';} 137 if (!isset($_POST['llgbo_default_navthumb'])) {$_POST['llgbo_default_navthumb'] = 'false';} 137 $_POST['llgbo_hdlightbox'] = 'false'; 138 // compliance HD Shadowbox 139 $query =" SELECT ID FROM piwigo_plugins where id ="."'HDShadowbox'"."and state ='active'" ; 140 $result = pwg_query($query); 141 while ($row = pwg_db_fetch_assoc($result)) 142 { $_POST['llgbo_hdlightbox'] = 'true';} 138 143 if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10 139 144 $param_llgbo = array($_POST['llgbo_frame'], … … 142 147 $_POST['llgbo_title_frame'], $_POST['llgbo_header'], 143 148 $_POST['llgbo_maintain_header'], $_POST['llgbo_allinfo'], 144 $_POST['llgbo_ default_navthumb'] ,$_POST['llgbo_always_displayexif']149 $_POST['llgbo_hdlightbox'] ,$_POST['llgbo_always_displayexif'] 145 150 ); 146 151 $llgbo_new_value = implode ("," , $param_llgbo); … … 176 181 {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));} else { $template->assign( array( 'LLGBO_ALLINFO' => "false"));} 177 182 if ($conf['LLGBO_SETTINGS'][9] == 'true') 178 {$template->assign(array( 'LLGBO_ DEFAULT_NAVTHUMB' => 'true'));} else { $template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => "false"));}183 {$template->assign(array( 'LLGBO_HDLIGHTBOX' => 'true'));} else { $template->assign(array( 'LLGBO_HDLIGHTBOX' => "false"));} 179 184 if ($conf['LLGBO_SETTINGS'][10] == 'true') 180 185 {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));} else { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));} -
extensions/LLGBO2/admin/llgbo_adminframe.tpl
r4603 r6234 1 1 2 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 2 {if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if} 3 3 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2> 4 4 <h3>{'Step3_Title'|@translate}</h3> 5 <form method="post" action=" {$llgbo_F_ACTION}" class="properties">5 <form method="post" action="" class="properties"> 6 6 <fieldset> 7 7 <div id="framepicker"> </div> -
extensions/LLGBO2/admin/llgbo_adminheader.tpl
r4603 r6234 1 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 1 {if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if} 2 2 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2> 3 3 <h3>{'Step4_Title'|@translate}</h3> -
extensions/LLGBO2/admin/llgbo_adminsettings.tpl
r4713 r6234 1 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 1 2 {if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if} 2 3 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2> 3 4 <h3>{'Howto'|@translate}</h3> 4 <span>{'llgo_warning_setting'|@translate} </span> 5 <form method="post" action="{$llgbo_F_ACTION}" class="properties"> 5 {if !empty($GALLY)} 6 <span>{'llgo_warning_setting'|@translate} </span>{/if} 7 <form method="post" action="" class="properties"> 6 8 <fieldset> 7 9 8 <table id="llgbotable" style="{$LLGBODISPMANAGE}">10 <table id="llgbotable"> 9 11 <tr> 10 12 <td id="llgbotitle">{'llgo_global_setting'|@translate} </td> … … 38 40 <td class="llgboinput">{html_radios name='llgbo_title_frame' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_TITLE_FRAME}</td> 39 41 </tr> 42 <!-- <tr> 43 <td class="llgbolabel">{'llgbo_hdlightbox'|@translate}</td> 44 <td class="llgboinput">{html_radios name='llgbo_hdlightbox' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HDLIGHTBOX}</td> 45 </tr> --> 40 46 <tr> 41 <tr>42 <td class="llgbolabel">{'llgbo_default_navthumb'|@translate}</td>43 <td class="llgboinput">{html_radios name='llgbo_default_navthumb' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_DEFAULT_NAVTHUMB}</td>44 </tr>45 47 <td class="llgbolabel">{'llgbo_header'|@translate}</td> 46 48 <td class="llgboinput">{html_radios name='llgbo_header' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER}</td> -
extensions/LLGBO2/admin/llgbo_admintooltip.tpl
r4603 r6234 1 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 1 {if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if} 2 2 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2> 3 3 <h3>{'Step2_Title'|@translate}</h3> 4 <form method="post" action=" {$llgbo_F_ACTION}" class="properties">4 <form method="post" action="" class="properties"> 5 5 <fieldset> 6 6 -
extensions/LLGBO2/css/look_like_gbo2_admin.css
r4579 r6234 33 33 #llgbotable{ 34 34 margin:1em; 35 width:5 00px;35 width:550px; 36 36 margin:auto} 37 37 #llgboHeadertable{ -
extensions/LLGBO2/defaultvalues.php
r4603 r6234 2 2 3 3 // valeurs par défaut 4 $plugvalues = "false,true,true,true,true,true,false,theAboutPage;theTagsPage;theCommentsPage;theIdentificationPage;theAdminPage,true, true,flase";4 $plugvalues = "false,true,true,true,true,true,false,theAboutPage;theTagsPage;theCommentsPage;theIdentificationPage;theAdminPage,true,false,false"; 5 5 $ttvalues = "150,2,#fff,#000,#c92,#dadada"; 6 6 $frvalues = "#16195f,#ffffff,3,#040404,1,#ffffff,7,#ffffff,1,#fdfdfd,1,#fcfcfc,1,#fafafa,1,#eaeaea,1,#d3d3d3,1,#bababa,1,#9f9f9f,1,#858585,1,#777777,1,#646464,1,#575757,1,#474747,1"; -
extensions/LLGBO2/language/en_UK/plugin.lang.php
r4713 r6234 84 84 $lang['Reset_To_Default'] = 'Reset to default values'; 85 85 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 86 /*TODO*/$lang['llgbo_hdlightbox'] ='Compliance HD lightbox and navigation on picture'; 86 87 ?> -
extensions/LLGBO2/language/es_ES/plugin.lang.php
r5787 r6234 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | Piwigo - a PHP based picture gallery | 4 // | Copyright(C) 2008-2010 Piwigo Team http://piwigo.org | 5 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 6 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2009 PhpWebGallery Team - http://phpwebgallery.net | 6 // +-----------------------------------------------------------------------+ 7 <?php 8 // +-----------------------------------------------------------------------+ 9 // | PhpWebGallery - a PHP based picture gallery | 10 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 11 // | Copyright (C) 2003-2009 PhpWebGallery Team - http://phpwebgallery.net | 7 12 // +-----------------------------------------------------------------------+ 8 13 $lang['submit'] = 'Validar'; 9 14 $lang['Title'] = 'Look like GBo'; 10 $lang['Howto'] = 'Este plugin permite modificar la presentación de la página de imágenes.';11 $lang['Step1_Title'] = 'Parametraje de lPlugin ';15 $lang['Howto'] = 'Este plugin permite modificar la presentación de la página llena de imágenes.'; 16 $lang['Step1_Title'] = 'Parametraje de Plugin '; 12 17 $lang['Step2_Title'] = 'Parametraje de la burbuja info'; 13 18 $lang['Step3_Title'] = 'Parametraje del marco'; 14 19 $lang['Step4_Title'] = 'Parámetros de la burbuja info'; 15 $lang['llgbo_tooltip']=' Burbuja info específica(miniaturas de las fotos) al sobrevuelo de los botones:';16 $lang['llgbo_exifunderbt']=' Visualiza los EXTEJOS al sobrevuelo del botón :';20 $lang['llgbo_tooltip']='Infobulles específico (miniaturas de las fotos) al sobrevuelo de los botones:'; 21 $lang['llgbo_exifunderbt']='Fija los EXTEJOS al sobrevuelo del botón :'; 17 22 $lang['llgbo_frame']='Fija un marco blanco alrededor de la imagen :'; 18 $lang['llgbo_header']=' El encabezadoes fijado sólo sobre la página inicial :';19 $lang['llgbo_maintain_header']='Conservar el encabezadosobre las páginas siguientes :';23 $lang['llgbo_header']='La marea es fijado sólo sobre la página inicial :'; 24 $lang['llgbo_maintain_header']='Conservar la marea sobre las páginas siguientes :'; 20 25 $lang['llgbo_usemap']='Añade la navegación sobre la imagen :'; 21 $lang['llgbo_usemap_thumb']=' Visualiza las miniaturas en el momento de la navegación sobre la imagen :';22 $lang['llgbo_info']=' (^_^) Sus parámetros estan registrados !';23 $lang['llgbo_title_frame'] = ' Visualizar el título de la imagen sobre el marco';24 $lang['llgbo_default_navthumb'] = ' Elimine la Visualización estándar de las miniaturas de navegación :';26 $lang['llgbo_usemap_thumb']='Fija las miniaturas en el momento de la navegación sobre la imagen :'; 27 $lang['llgbo_info']=' (^_^) Sus parámetros son registrados !'; 28 $lang['llgbo_title_frame'] = 'Fijar el título de la imagen sobre el marco'; 29 $lang['llgbo_default_navthumb'] = 'Suprime la fijación estándar de las miniaturas de navegación :'; 25 30 $lang['save'] = 'Registrar'; 26 31 $lang['preview'] = 'Hacer visible'; 27 32 $lang['llgo_tooltip_width']= 'Anchura de la burbuja info'; 28 33 $lang['llgo_tooltip_size']= 'Anchura del ribete de la burbuja info'; 29 $lang['llgbo_tooltip_bordercolor']= 'Anchura del borde de la burbuja info';30 $lang['llgbo_tooltip_backgroundcolor']= 'Color de fondo de la burbuja info';34 $lang['llgbo_tooltip_bordercolor']= 'Anchura del ribete de la burbuja info'; 35 $lang['llgbo_tooltip_backgroundcolor']= 'Color del fondo de la burbuja info'; 31 36 $lang['llgbo_tooltip_titlecolor']= 'Color del título de la burbuja info'; 32 37 $lang['llgbo_tooltip_color']= 'Color del texto de la burbuja info'; 33 $lang['llgo_global_setting']= 'Parm etrosgenerales de la página picture de Piwigo';38 $lang['llgo_global_setting']= 'Parmètres a generales de la página picture de Piwigo'; 34 39 $lang['llgo_tooltip_setting']= 'Título de la burbuja info'; 35 40 $lang['llgo_frame_setting']= 'Parámetros del marco :' ; 36 $lang['llgbo_title_frame_color']= 'Color del título visualizado sobre el marco';41 $lang['llgbo_title_frame_color']= 'Color del título fijado sobre el marco'; 37 42 $lang['llgbo_frame_bdcolor0']= 'Linea 1 color : '; 38 43 $lang['llgbo_frame_bdcolor1']= 'Linea 2 color : '; … … 54 59 $lang['llgbo_M_frame'] = 'Gestión del marco'; 55 60 $lang['llgbo_M_tooltip'] = 'Gestión de de la burbuja info'; 56 $lang['llgbo_M_manage'] = 'Param etros generales';61 $lang['llgbo_M_manage'] = 'Paramétres generales'; 57 62 $lang['llgbo_samples'] = 'Ejemplos : '; 58 63 $lang['llgbo_frame']='Administrar un marco alrededor de la imagen :'; 59 $lang['llgbo_header']='Administrar la visualización del encabezado '; 60 $lang['llgbo_M_header'] = 'Gestión de la visualización del encabezadoa'; 61 $lang['llgbo_header_home'] = 'Visualización sobre la página inicial'; 62 $lang['llgbo_header_category'] = 'Visualización sobre la página categoría'; 63 $lang['llgbo_header_category_filter_recent']= 'Visualización sobre la página categoría (filtrada por reciente)'; 64 $lang['llgbo_header_category_flat']= 'Visualización sobre la página categoría (en plano)' ; 65 $lang['llgbo_header_category_posted_monthly']= 'Visualización sobre la página categoría opción calendario' ; 66 $lang['llgbo_header_picture']= 'Visualización sobre la página Image' ; 67 $lang['llgbo_header_additional_page'] = 'Visualización sobre las páginas Adicionales'; 68 $lang['llgbo_header_most_visited'] = 'Visualización sobre la página Imágenes más vistas '; 69 $lang['llgbo_header_best_rated'] = 'Visualización sobre la página Mejor valoradas '; 70 $lang['llgbo_header_list']= 'Visualización sobre la página Selección aleatoria '; 71 $lang['llgbo_header_recent_pics']= 'Visualización sobre la página Últimas imágenes añadidas '; 72 $lang['llgbo_header_created_monthly_calendar'] = 'Visualización sobre la página Calendario'; 73 $lang['llgbo_header_tags']= 'Visualización sobre la página Etiquetas '; 74 $lang['llgbo_header_search']= 'Visualización sobre la página Búsqueda avanzada'; 75 $lang['llgbo_header_comments']= 'Visualización sobre la página Comentarios'; 76 $lang['llgbo_header_about']= 'Visualización sobre la página Acerca de'; 77 $lang['llgbo_header_notification']= 'Visualización sobre la página Notificación RSS'; 78 $lang['llgbo_header_register'] = 'Visualización sobre la página Regístrese '; 79 $lang['llgbo_header_identification']= 'Visualización sobre la página Identificarse'; 80 $lang['llgbo_header_favorites']= 'Visualización sobre la página Mis favoritos'; 81 $lang['llgbo_header_recent_cats']= 'Visualización sobre la página Últimas categorías '; 82 $lang['llgbo_frame_sample']= 'Lista ejemplos '; 83 $lang['previewsamples']= 'Visualizar este ejemplo'; 84 $lang['llgbo_always_displayexif'] = 'Siempre visualizar el METADATO:' ; 85 $lang['Reset_To_Default'] = 'Restaurar los valores predeterminados'; 86 $lang['llgo_warning_setting'] = 'El marco y la navegación sobre imagen no están disponibles con Gally'; 64 $lang['llgbo_header']='Administrar la fijación de la marea '; 65 $lang['llgbo_M_header'] = 'Gestión de la fijación de la marea'; 66 $lang['llgbo_header_home'] = 'Fijación sobre la página inicial'; 67 $lang['llgbo_header_category'] = 'Fijación sobre la página categoría'; 68 $lang['llgbo_header_category_filter_recent']= 'Fijación sobre la página categoría (filtrada por reciente)'; 69 $lang['llgbo_header_category_flat']= 'Fijación sobre la página categoría (a plato)' ; 70 $lang['llgbo_header_category_posted_monthly']= 'Fijación sobre la página categoría opción calendario' ; 71 $lang['llgbo_header_picture']= 'Fijación sobre la página Image' ; 72 $lang['llgbo_header_additional_page'] = 'Fijación sobre las páginas Adicionales'; 73 $lang['llgbo_header_most_visited'] = 'Fijación sobre la página Imágenes más vistas '; 74 $lang['llgbo_header_best_rated'] = 'Fijación sobre la página Mejor valoradas '; 75 $lang['llgbo_header_list']= 'Fijación sobre la página Selección aleatoria '; 76 $lang['llgbo_header_recent_pics']= 'Fijación sobre la página Últimas imágenes añadidas '; 77 $lang['llgbo_header_created_monthly_calendar'] = 'Fijación sobre la página Calendario'; 78 $lang['llgbo_header_tags']= 'Fijación sobre la página Tags '; 79 $lang['llgbo_header_search']= 'Fijación sobre la página Búsqueda avanzada'; 80 $lang['llgbo_header_comments']= 'Fijación sobre la página Comentarios'; 81 $lang['llgbo_header_about']= 'Fijación sobre la página Acerca de'; 82 $lang['llgbo_header_notification']= 'Fijación sobre la página Notificación RSS'; 83 $lang['llgbo_header_register'] = 'Fijación sobre la página Regístrese '; 84 $lang['llgbo_header_identification']= 'Fijación sobre la página Identificarse'; 85 $lang['llgbo_header_favorites']= 'Fijación sobre la página Mis favoritos'; 86 $lang['llgbo_header_recent_cats']= 'Fijación sobre la página Últimas categorías '; 87 $lang['llgbo_frame_sample']= 'Lista ejemplost '; 88 $lang['previewsamples']= 'Fijar este ejemplo'; 89 $lang['llgbo_always_displayexif'] = 'Siempre fijar el METADATA:' ; 90 /* TODO */$lang['Reset_To_Default'] = 'Restaurar los valores por defecto'; 91 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 92 /*TODO*/$lang['llgbo_hdlightbox'] ='Compliance HD lightbox and navigation on picture'; 87 93 ?> -
extensions/LLGBO2/language/fr_FR/plugin.lang.php
r4713 r6234 84 84 $lang['Reset_To_Default'] = 'Rétablir les valeurs par défaut'; 85 85 $lang['llgo_warning_setting'] = 'Le cadre et la navigation sur image ne sont pas disponibles avec Gally'; 86 $lang['llgbo_hdlightbox'] ='Compatibilité de HD lightbox avec la navigation sur image '; 86 87 ?> -
extensions/LLGBO2/language/hu_HU/plugin.lang.php
r4922 r6234 82 82 $lang['previewsamples']= 'Minta megtekintése'; 83 83 $lang['llgbo_always_displayexif'] = 'Mindig megjelenő METAADATOK (EXIF):' ; 84 /*TODO*/$lang['llgo_warning_setting'] = 'Keret a kép körül és a navigáció a képre nem elérhetők Gally esetén'; 84 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 85 /*TODO*/$lang['llgbo_hdlightbox'] ='Compliance HD lightbox and navigation on picture'; 85 86 ?> -
extensions/LLGBO2/language/pl_PL/plugin.lang.php
r4713 r6234 84 84 /* TODO */$lang['Reset_To_Default'] = 'Przywróć wartości domyślne'; 85 85 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 86 /*TODO*/$lang['llgbo_hdlightbox'] ='Compliance HD lightbox and navigation on picture'; 86 87 ?> -
extensions/LLGBO2/main.inc.php
r4869 r6234 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2. 0.O4 Version: 2.1.a 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: Ex-Ftb … … 8 8 Description: Display thumbnail under button. Add navigation on picture look like GBo Gallery 9 9 Add a border around picture ...... 10 */ 11 /* 2.0.d fix notice when HD picture is desactivate*/ 12 /* 2.0.e fix notice with redirec.tpl */ 13 /* 2.0.f Tooltip and frame define by plugin vs Css*/ 14 /* 2.0.g always display metadata + maintain IPTC */ 15 /* 2.0.h new languages PL, ES, HU */ 16 /* 2.0.i Manage tab for tooltip and frame settings */ 17 /* 2.0.J add sample display and fix bug in admin with chrome */ 18 /* 2.0.K fix warning du to language file */ 19 /* 2.0.L Avoid problem with Gally */ 20 /* 2.0.M - fix bug on image alt attribute 21 - fix bug on active -> erase the paramater when it's not mandatory. */ 22 /* 2.0.N - fix bug no navigation on picture, whit out frame */ 23 /* 2.0.O - compliant with extended description */ 10 2.1.a compliant 2.1 Piwigo */ 11 24 12 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 25 13 /* création d'une instance de la classe */ … … 27 15 global $conf; 28 16 29 define ('LLGBO_INFO_VERSION','2. 0.O');17 define ('LLGBO_INFO_VERSION','2.1.a'); 30 18 if (!defined('LLGBO_PATH')) 31 19 {define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');} … … 35 23 $conf['LLGBO_FRAME'] = explode (",",$conf['LLGBOFRAME']); 36 24 $conf['LLGBO_HEADER'] = explode (",",$conf['LLGBOHEADER']); 37 38 25 ///////////////////////////////////////////////////// 39 26 /* PLUGIN CLASS */ … … 58 45 If ($conf['LLGBO_SETTINGS'][10] == 'true' ) //always display metadata 59 46 {if ( pwg_get_session_var('show_metadata') == null ) 60 { pwg_set_session_var('show_metadata', 1 );}} 47 { pwg_set_session_var('show_metadata', 1 ); 48 }} 61 49 } 62 50 //------------------------------------------------------------- … … 110 98 {$template->append('head_elements',"\n".' <STYLE type="text/css">#theHeader{display: none}</STYLE>');} 111 99 } 112 //113 If ($conf['LLGBO_SETTINGS'] [9] == 'true' )114 {$template->append('head_elements',"\n".' <STYLE type="text/css">.navThumb{display: none} </STYLE>');}115 100 101 102 116 103 } // end header 117 104 … … 120 107 //------------------------------------------------------------- 121 108 function DisplayGboLook() 122 { global $template,$conf; 109 { global $template,$conf,$lang; 110 $meta = ""; 123 111 $u_metadata = $template->get_template_vars('U_METADATA'); 124 112 $swt = ' swttips="'; … … 128 116 {foreach($metadata[0] as $cle =>$tableau) 129 117 { if(is_array($tableau)) 130 {foreach($tableau as $cle=>$valeur) 131 { $swt= $swt.$cle.' : '.$valeur.'<br>'; } 118 { foreach($tableau as $cle=>$valeur) 119 { $swt= $swt.$cle.' : '.$valeur.'<br>'; 120 $meta = 1;} 132 121 } } 122 if ( pwg_get_session_var('show_metadata') == 1 ) 123 { $lang['picture_show_metadata'] = 'EXIF Metadata'; 124 if ($meta != 1 ) {$lang['picture_show_metadata'] = 'No Metadata';}} 125 133 126 $template->assign( 'U_METADATA', $u_metadata.'"'.$swt); 134 $template->Clear_assign('metadata'); 127 $template->Clear_assign('metadata'); 128 135 129 } // hide original metadata 136 130 } … … 186 180 } 187 181 ///// YOGA or SIMPLE ///////////////////// 188 $themeconf = $template->get_template_vars('themeconf'); 189 $tpl_name = $themeconf['template']; 182 $tpl_name = ""; 183 $currenttheme = $template->get_template_vars('themes'); 184 $tpl_id = $currenttheme[0]['id']; 190 185 ///////////////////////////////////////////// 191 186 // AN OTHER PLUGIN IS WORKING -> GO BACK … … 196 191 ///////////////////////////////////////////////////////////////// 197 192 if ($ThePicture['is_picture'] <> 1 ) { return $content; ; } 198 // 199 if ( strtoupper($tpl_name) == 'GALLY') { 193 //echo $tpl_id; 194 195 $template->assign('GALLY',''); 196 if (( strpos(strtoupper($tpl_id) , 'GALLY') === true) ) 197 { $template->assign('GALLY','ok'); 200 198 return $content; ; } // Not compliant with Gally 201 199 ///////////////////////////////////////////////////////////////// … … 203 201 {$linkcss = '<link rel="stylesheet" type="text/css" href="'.LLGBO_PATH; 204 202 $template->append('head_elements',$linkcss.'css/gbolook.css">'); 205 if ( strtoupper($tpl_name) == 'SIMPLE') { 206 $template->append('head_elements',"\n".' <STYLE type="text/css">#theImage{margin:auto;overflow: hidden;} </STYLE>');} 207 } 208 203 $template->append('head_elements',"\n".' <STYLE type="text/css">#theImage{margin:auto;overflow: hidden;}</STYLE>'); 204 } 209 205 //---------------------------------------------------- 210 206 //------- Usemap values ------------- … … 236 232 //---------------------------------------------------- 237 233 $alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']); 238 /* 234 235 /* */ 239 236 $related_cats = $template->get_template_vars('related_categories'); 240 237 if (isset($related_cats)) … … 243 240 $related_cat = str_replace($conf['level_separator'],"-",$related_cat); 244 241 } 245 $alt= $related_cat.' '.$alt; 246 */ 242 $alt = $alt.' - ['.$related_cat.']'; 247 243 //----------------------------------------------------------------- 248 244 $template->assign( array( … … 259 255 'high', array( 260 256 'U_HIGH' => $ThePicture['high_url'] , 261 'UUID' => $uuid, ));} 257 'UUID' => $uuid, )); 258 // compliance HD LIGHTBOX 259 If ($conf['LLGBO_SETTINGS'] [9] == 'true' ) 260 {$template->assign('HDHREF', ' href="'.$ThePicture['high_url'].'"'.' title= " HD --> '.$ThePicture['name'].'"'); 261 $template->append('head_elements', "/n".'<script type="text/javascript"> 262 window.onload = function() { 263 Shadowbox.setup(document.getElementById("prevnext").getElementsByTagName("area")[3]); 264 } 265 </script>' );} 266 else 267 {$template->assign('HDHREF','href="javascript:phpWGOpenWindow('."'".$ThePicture['high_url']."','".$uuid."','"."scrollbars=yes,toolbar=no,status=no,resizable=yes'".')"');} 268 269 } 262 270 263 271 If (($conf['LLGBO_SETTINGS'] [5] == 'true' ) /* title on frame */ and ($conf['LLGBO_SETTINGS'] [0] == 'true' )) // display frame … … 266 274 267 275 // compatibility with extended description 268 $ThePicture = $template->get_template_vars('current');269 276 $comment = $template->get_template_vars('COMMENT_IMG'); 270 277 if (!isset($comment) ) … … 297 304 {$template->clear_assign('FRAME_BEGIN') ;} 298 305 299 $template->set_filenames( array(' gbo_content'=> dirname(__FILE__).'/template/picture_content.tpl') );300 return $template->parse( ' gbo_content', true);306 $template->set_filenames( array('default_content'=> dirname(__FILE__).'/template/picture_content.tpl') ); 307 return $template->parse( 'default_content', true); 301 308 } //end --> MyPictureOptions 302 309 } // End class -
extensions/LLGBO2/maintain.inc.php
r4729 r6234 71 71 or (!isset($conf['LLGBOTOOLTIP'])) or (substr_count($conf['LLGBOTOOLTIP'], ',') != 5) 72 72 or (!isset($conf['LLGBOFRAME'])) or (substr_count($conf['LLGBOFRAME'], ',') != 32) 73 or (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',') != 2 0))73 or (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',') != 21)) 74 74 { plugin_install(); } 75 75 } -
extensions/LLGBO2/template/picture_content.tpl
r4823 r6234 1 1 <!-- LLGBO2 picture_content --> 2 2 {if !isset($FRAME_BEGIN)} 3 {if isset($high) } 4 {if !isset($USEMAP) } 5 <!-- HihgDef and navigation on picture off --> 6 <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"> 7 {/if} 8 {/if} 9 <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" {$MAP_TO_USED} 10 {if isset($COMMENT_IMG)} 11 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" 12 {/if}> 3 {if isset($high) and !isset($USEMAP) } 4 <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"> 5 {/if} 6 <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG|@strip_tags:false}" {$MAP_TO_USED} 7 title="{$ALT_IMG|@strip_tags:false}" > 8 {if isset($high) and !isset($USEMAP) } 9 </a> 10 {/if} 13 11 {/if} 14 12 … … 19 17 <div id="gbo" {$FRAME_SIZE}> 20 18 {$FRAME_BEGIN} 21 {if isset($high) } 22 {if !isset($USEMAP) } 23 <!-- HihgDef and navigation on picture off --> 24 <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"> 25 {/if} 19 {if isset($high) and !isset($USEMAP) } 20 <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"> 26 21 {/if} 27 22 <img src="{$SRC_IMG}" align="center" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" {$MAP_TO_USED} 23 28 24 {if isset($COMMENT_IMG)} 29 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" 30 {/if}> 25 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" > 26 {/if} 27 {if isset($high) and !isset($USEMAP) } 28 </a> 29 {/if} 30 31 31 {$FRAME_END} 32 32 </div> 33 33 {/if} 34 34 {if isset($high) } 35 {if !isset($USEMAP) } 36 <p>{'picture_high'|@translate}</p> 37 {/if} 38 35 <!-- HihgDef and navigation on picture off --> 36 <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"> 37 <p>{'Click on the picture to see it in high definition'|@translate}</p> </a> 39 38 {/if} 40 39 … … 43 42 <map id="prevnext" name="prevnext"> 44 43 {if isset($previous)} 45 <area shape="rect" coords="{$LEFT_X1},{$LEFT_Y1},{$LEFT_X2},{$LEFT_Y2}" href="{$previous.U_IMG}" title="{' previous_page'|@translate} : {$PREVTHUMBTITLE}" {if isset($PREVTHUMB)}{$PREVTHUMB} {/if} alt="" rel="prev">44 <area shape="rect" coords="{$LEFT_X1},{$LEFT_Y1},{$LEFT_X2},{$LEFT_Y2}" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$PREVTHUMBTITLE}" {if isset($PREVTHUMB)}{$PREVTHUMB} {/if} alt="" rel="prev"> 46 45 {/if} 47 <area shape="rect" coords="{$UP_X1},{$UP_Y1},{$UP_X2},{$UP_Y2}" href="{$U_UP}" title="{' thumbnails'|@translate}" alt="" rel="up" >46 <area shape="rect" coords="{$UP_X1},{$UP_Y1},{$UP_X2},{$UP_Y2}" href="{$U_UP}" title="{'Thumbnails'|@translate}" alt="" rel="up" > 48 47 {if isset($next) } 49 <area shape="rect" coords="{$RIGHT_X1},{$RIGHT_Y1},{$RIGHT_X2},{$RIGHT_Y2}" href="{$next.U_IMG}" title="{' next_page'|@translate} : {$NEXTTHUMBTITLE}" {if isset($NEXTTHUMB)}{$NEXTTHUMB} {/if} alt="" rel="next">48 <area shape="rect" coords="{$RIGHT_X1},{$RIGHT_Y1},{$RIGHT_X2},{$RIGHT_Y2}" href="{$next.U_IMG}" title="{'Next'|@translate} : {$NEXTTHUMBTITLE}" {if isset($NEXTTHUMB)}{$NEXTTHUMB} {/if} alt="" rel="next"> 50 49 {/if} 51 {if isset($high) } 52 <area shape="rect" coords="{$HIGH_X1},{$HIGH_Y1},{$HIGH_X2},{$HIGH_Y2}" 53 href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')" 54 TITLE = "{'picture_high'|@translate}" > 55 {/if} 50 {if isset($high) } 51 <area shape="rect" coords="{$HIGH_X1},{$HIGH_Y1},{$HIGH_X2},{$HIGH_Y2}" 52 {$HDHREF} 53 > 54 {/if} 55 56 56 </map> 57 57 {/if}
Note: See TracChangeset
for help on using the changeset viewer.