Changeset 6234


Ignore:
Timestamp:
May 18, 2010, 10:15:25 PM (14 years ago)
Author:
EXFTB
Message:

2.1.a compliant hdshadowbox

Location:
extensions/LLGBO2
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/admin/llgbo_admin.php

    r4713 r6234  
    135135        if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';}
    136136        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';} 
    138143        if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10   
    139144         $param_llgbo = array($_POST['llgbo_frame'],
     
    142147                                $_POST['llgbo_title_frame'],                    $_POST['llgbo_header'],
    143148                                $_POST['llgbo_maintain_header'],                        $_POST['llgbo_allinfo'],
    144                                 $_POST['llgbo_default_navthumb']        ,$_POST['llgbo_always_displayexif']
     149                                $_POST['llgbo_hdlightbox']      ,$_POST['llgbo_always_displayexif']
    145150                        );               
    146151        $llgbo_new_value = implode ("," , $param_llgbo);
     
    176181          {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));}  else {  $template->assign( array( 'LLGBO_ALLINFO' => "false"));}
    177182        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"));}
    179184        if ($conf['LLGBO_SETTINGS'][10] == 'true')
    180185          {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));}  else  { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));}
  • extensions/LLGBO2/admin/llgbo_adminframe.tpl

    r4603 r6234  
    11
    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}
    33 <h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2>
    44 <h3>{'Step3_Title'|@translate}</h3>
    5 <form method="post" action="{$llgbo_F_ACTION}" class="properties">
     5<form method="post" action="" class="properties">
    66<fieldset>
    77        <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}
    22<h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2>
    33<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}
    23 <h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2>
    34<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">
    68<fieldset>
    79
    8 <table id="llgbotable" style="{$LLGBODISPMANAGE}">
     10<table id="llgbotable">
    911        <tr>
    1012                <td id="llgbotitle">{'llgo_global_setting'|@translate} </td>
     
    3840                <td class="llgboinput">{html_radios name='llgbo_title_frame' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_TITLE_FRAME}</td> 
    3941        </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>    -->
    4046        <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>
    4547                <td class="llgbolabel">{'llgbo_header'|@translate}</td>
    4648                <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}
    22 <h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2>
    33<h3>{'Step2_Title'|@translate}</h3>
    4 <form method="post" action="{$llgbo_F_ACTION}" class="properties">
     4<form method="post" action="" class="properties">
    55<fieldset>
    66
  • extensions/LLGBO2/css/look_like_gbo2_admin.css

    r4579 r6234  
    3333#llgbotable{
    3434        margin:1em;
    35         width:500px;
     35        width:550px;
    3636margin:auto}
    3737#llgboHeadertable{
  • extensions/LLGBO2/defaultvalues.php

    r4603 r6234  
    22
    33// 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";
    55$ttvalues = "150,2,#fff,#000,#c92,#dadada";
    66$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  
    8484$lang['Reset_To_Default'] = 'Reset to default values';
    8585/*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';
    8687?>
  • extensions/LLGBO2/language/es_ES/plugin.lang.php

    r5787 r6234  
    11<?php
    22// +-----------------------------------------------------------------------+
    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 |
    712// +-----------------------------------------------------------------------+
    813$lang['submit'] = 'Validar';
    914$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 del Plugin ';
     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 ';
    1217$lang['Step2_Title'] = 'Parametraje de la burbuja info';
    1318$lang['Step3_Title'] = 'Parametraje del marco';
    1419$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 :';
    1722$lang['llgbo_frame']='Fija un marco blanco alrededor de la imagen :';
    18 $lang['llgbo_header']='El encabezado es fijado sólo sobre la página inicial  :';
    19 $lang['llgbo_maintain_header']='Conservar el encabezado sobre 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 :';
    2025$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 :';
    2530$lang['save'] = 'Registrar';
    2631$lang['preview'] = 'Hacer visible';
    2732$lang['llgo_tooltip_width']= 'Anchura de la burbuja info'; 
    2833$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';
    3136$lang['llgbo_tooltip_titlecolor']= 'Color del título de la burbuja info';
    3237$lang['llgbo_tooltip_color']= 'Color del texto de la burbuja info';
    33 $lang['llgo_global_setting']= 'Parmetros generales de la página picture de Piwigo';
     38$lang['llgo_global_setting']= 'Parmètres a generales de la página picture de Piwigo';
    3439$lang['llgo_tooltip_setting']= 'Título de la burbuja info';
    3540$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';
    3742$lang['llgbo_frame_bdcolor0']= 'Linea 1 color : ';
    3843$lang['llgbo_frame_bdcolor1']= 'Linea 2 color : ';
     
    5459$lang['llgbo_M_frame'] = 'Gestión del marco';
    5560$lang['llgbo_M_tooltip'] = 'Gestión de de la burbuja info';
    56 $lang['llgbo_M_manage'] = 'Parametros generales';
     61$lang['llgbo_M_manage'] = 'Paramétres generales';
    5762$lang['llgbo_samples'] = 'Ejemplos : ';
    5863$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';
    8793?>
  • extensions/LLGBO2/language/fr_FR/plugin.lang.php

    r4713 r6234  
    8484$lang['Reset_To_Default'] = 'Rétablir les valeurs par défaut';
    8585$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 ';
    8687?>
  • extensions/LLGBO2/language/hu_HU/plugin.lang.php

    r4922 r6234  
    8282$lang['previewsamples']= 'Minta megtekintése';
    8383$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';
    8586?>
  • extensions/LLGBO2/language/pl_PL/plugin.lang.php

    r4713 r6234  
    8484/* TODO */$lang['Reset_To_Default'] = 'Przywróć wartości domyślne';
    8585/*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';
    8687?>
  • extensions/LLGBO2/main.inc.php

    r4869 r6234  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.0.O
     4Version:  2.1.a
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: Ex-Ftb 
     
    88Description:  Display thumbnail under button. Add navigation on picture look like GBo Gallery
    99Add 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
    2412if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    2513/* création d'une instance de la classe   */
     
    2715global $conf;
    2816
    29 define ('LLGBO_INFO_VERSION','2.0.O');
     17define ('LLGBO_INFO_VERSION','2.1.a');
    3018if (!defined('LLGBO_PATH'))
    3119{define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');}
     
    3523 $conf['LLGBO_FRAME'] = explode (",",$conf['LLGBOFRAME']);
    3624 $conf['LLGBO_HEADER'] = explode (",",$conf['LLGBOHEADER']);   
    37  
    3825/////////////////////////////////////////////////////
    3926/*  PLUGIN CLASS  */
     
    5845        If ($conf['LLGBO_SETTINGS'][10]  == 'true' )  //always display metadata
    5946        {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                 }}
    6149}
    6250//-------------------------------------------------------------
     
    11098{$template->append('head_elements',"\n".' <STYLE type="text/css">#theHeader{display: none}</STYLE>');}
    11199}       
    112 //
    113 If ($conf['LLGBO_SETTINGS'] [9]  == 'true' )
    114 {$template->append('head_elements',"\n".' <STYLE type="text/css">.navThumb{display: none} </STYLE>');}
    115100 
     101
     102 
    116103}  // end header
    117104 
     
    120107//-------------------------------------------------------------
    121108function  DisplayGboLook()
    122 { global $template,$conf;
     109{ global $template,$conf,$lang;
     110    $meta = "";
    123111        $u_metadata = $template->get_template_vars('U_METADATA');
    124112        $swt =   ' swttips="'; 
     
    128116                {foreach($metadata[0] as $cle =>$tableau)
    129117                         { 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;}
    132121                        }       }
     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                       
    133126                        $template->assign( 'U_METADATA', $u_metadata.'"'.$swt);
    134                 $template->Clear_assign('metadata');
     127                        $template->Clear_assign('metadata');
     128                       
    135129        } // hide original metadata
    136130                }
     
    186180        }       
    187181///// 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'];
    190185/////////////////////////////////////////////
    191186// AN OTHER PLUGIN IS WORKING -> GO BACK
     
    196191/////////////////////////////////////////////////////////////////       
    197192if ($ThePicture['is_picture'] <> 1 )    {  return $content;  ; }       
    198 //
    199 if ( strtoupper($tpl_name) == 'GALLY') {
     193//echo  $tpl_id;
     194
     195$template->assign('GALLY','');
     196if (( strpos(strtoupper($tpl_id) , 'GALLY') === true) )
     197 {      $template->assign('GALLY','ok');
    200198                                        return $content;  ; }   // Not compliant with Gally
    201199/////////////////////////////////////////////////////////////////       
     
    203201                        {$linkcss = '<link rel="stylesheet" type="text/css" href="'.LLGBO_PATH;
    204202                        $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                          }
    209205//----------------------------------------------------   
    210206//-------      Usemap   values         -------------     
     
    236232//----------------------------------------------------   
    237233$alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']);
    238 /*
     234
     235/* */
    239236$related_cats =   $template->get_template_vars('related_categories');
    240237if (isset($related_cats))
     
    243240        $related_cat = str_replace($conf['level_separator'],"-",$related_cat);
    244241        }
    245 $alt= $related_cat.' '.$alt; 
    246 */
     242 $alt = $alt.' - ['.$related_cat.']';
    247243//-----------------------------------------------------------------
    248244$template->assign( array(
     
    259255                 'high', array(
    260256                                '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}
    262270
    263271If (($conf['LLGBO_SETTINGS'] [5]  == 'true' )  /* title on frame */ and ($conf['LLGBO_SETTINGS'] [0]  == 'true' )) // display frame
     
    266274               
    267275// compatibility with extended description
    268 $ThePicture = $template->get_template_vars('current');
    269276$comment = $template->get_template_vars('COMMENT_IMG');
    270277if (!isset($comment) )
     
    297304{$template->clear_assign('FRAME_BEGIN') ;}
    298305
    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') );
     307return $template->parse( 'default_content', true);
    301308} //end --> MyPictureOptions
    302309} // End class
  • extensions/LLGBO2/maintain.inc.php

    r4729 r6234  
    7171 or  (!isset($conf['LLGBOTOOLTIP'])) or (substr_count($conf['LLGBOTOOLTIP'], ',')  != 5)
    7272 or  (!isset($conf['LLGBOFRAME'])) or (substr_count($conf['LLGBOFRAME'], ',')  != 32)
    73  or  (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',')  != 20)) 
     73 or  (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',')  != 21)) 
    7474        {         plugin_install(); }
    7575}
  • extensions/LLGBO2/template/picture_content.tpl

    r4823 r6234  
    11<!-- LLGBO2 picture_content -->
    22{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}
    1311{/if}
    1412
     
    1917        <div  id="gbo" {$FRAME_SIZE}>
    2018        {$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')">
    2621                        {/if}
    2722                   <img    src="{$SRC_IMG}" align="center" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" {$MAP_TO_USED}
     23                       
    2824                        {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                       
    3131        {$FRAME_END}
    3232</div>
    3333{/if}
    3434        {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>
    3938         {/if}
    4039
     
    4342                <map id="prevnext" name="prevnext"> 
    4443                {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">
    4645                {/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" >
    4847                {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">
    5049                {/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                   
    5656                </map>
    5757{/if}
Note: See TracChangeset for help on using the changeset viewer.