Changeset 29808 for extensions


Ignore:
Timestamp:
Sep 27, 2014, 9:54:32 AM (10 years ago)
Author:
gbo
Message:

fix issue for admin translation and title on frame

Location:
extensions/LLGBO2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/include/manage_picture_content.php

    r29484 r29808  
    7070                        $PictSizeWH[1] = $PictSizeWH[1] + $frame_border;
    7171                        $frame_size = "\n".'<div   id="llgbo0" class="llgbo" style="border:0 ;width:'.$PictSizeWH[0].'px; height:'.$PictSizeWH[1].'px;">';
    72        
     72                $frame_title = "";
    7373                        if ($conf['LLGBO2']['titleframe']) {
    74                                 $frame_title =  "\n".'<!-- Begin LLGBO -->'."\n".'<span  id="llgboh2" style ="background:transparent;z-index:3;color:'.$conf['LLGBO2']['FR-titlecolor'].'">'.$element_info['name'].'</span>';   
     74                                $frame_title =  "\n".'<!-- Begin LLGBO -->'."\n".'<span  id="llgboh2" style ="background:transparent;z-index:3;color:'.$conf['LLGBO2']['FR-titlecolor'].'">';   
    7575                                }
    7676                       
    7777                        $template->append('llgbo', array(   
    78                                                         'FRAME_TITLE' => $frame_title,
     78                                                        'FRAME_TITLE1' => $frame_title,
     79                                                        'FRAME_TITLE3' => '</span>',
    7980                                                        'FRAME_SIZE' => $frame_size ,
    8081                                                        'FRAME_BEGIN' => $frame_begin,
     
    115116        // --------------------------------------   
    116117                $patern = '/'.'<img(.*)id="theMainImage"(.*)>'.'/';     
    117         $replacement =  $replacement.'{$llgbo.FRAME_TITLE}'.'{$llgbo.FRAME_SIZE}'.'{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}';
     118        $replacement =  $replacement.'{if !empty($llgbo.FRAME_TITLE1)}{$llgbo.FRAME_TITLE1}{$current.TITLE} {$llgbo.FRAME_TITLE3}{/if}{$llgbo.FRAME_SIZE}{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}';
    118119                $content = preg_replace($patern, $replacement, $content); 
    119120        return $content;
  • extensions/LLGBO2/language/fr_FR/plugin.lang.php

    r28990 r29808  
    66// +-----------------------------------------------------------------------+
    77$lang['submit'] = 'Valider';
    8 $lang['Title'] = 'Look like GBo';
     8$lang['llgbo_title'] = 'Look like GBo';
    99$lang['llgbo_admin_plugin_title'] = 'Ce plugin gère la présentation de la page Image.<br>';
    1010$lang['llgbo_adim_settings_title'] = 'Paramétrage du Plugin ';
  • extensions/LLGBO2/language/hu_HU/plugin.lang.php

    r28990 r29808  
    66// +-----------------------------------------------------------------------+
    77$lang['submit'] = 'Küldés';
    8 $lang['Title'] = 'Look like GBo';
     8$lang['llgbo_title'] = 'Look like GBo';
    99$lang['llgbo_admin_plugin_title'] = 'Ez a bővítmény lehetővé teszi, hogy módosítsa az oldalon lévő képek megjelenését.<br>';
    1010$lang['llgbo_adim_settings_title'] = 'Bővítmény beállítások';
  • extensions/LLGBO2/language/pl_PL/plugin.lang.php

    r28990 r29808  
    66// +-----------------------------------------------------------------------+
    77$lang['submit'] = 'Zatwierdź';
    8 $lang['Title'] = 'Look like GBo';
     8$lang['llgbo_title'] = 'Look like GBo';
    99$lang['llgbo_admin_plugin_title'] = 'Ta wtyczka umożliwia zmianę prezentacji strony ze zdjęciami.';
    1010$lang['llgbo_adim_settings_title'] = 'Ustawienia wtyczki';
  • extensions/LLGBO2/main.inc.php

    r29484 r29808  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.7.A
     4Version:  2.7.B
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: GBo
     
    1212        -- 10-09-2014   
    1313                2.7.A Compliance Piwigo 2.7rc1  new administration management
     14                2.7.A fix issue with extended description and improve translation
    1415 */
    1516if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    1819// | Plugin constants                                               |
    1920// +-----------------------------------------------------------------------+
    20 define('LLGBO_VERSION', '2.7.A');
     21define('LLGBO_VERSION', '2.7.B');
    2122define('LLGBO_ID',       basename(dirname(__FILE__)));
    2223define('LLGBO_PATH' ,    PHPWG_PLUGINS_PATH . LLGBO_ID . '/');
Note: See TracChangeset for help on using the changeset viewer.