Ignore:
Timestamp:
Dec 30, 2009, 11:20:00 PM (14 years ago)
Author:
EXFTB
Message:

LLGBO - version J - fix bug + language adaptation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/main.inc.php

    r4578 r4591  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.0.I
     4Version:  2.0.J
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: Ex-Ftb 
     
    1414 /* 2.0.h new languages PL, ES, HU */
    1515 /* 2.0.i Manage tab for tooltip and frame settings */
     16 /* 2.0.J  add sample display and fix bug in admin with chrome */
    1617if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1718/* création d'une instance de la classe   */
    1819$obj = new look_like_gbo(); /* class loading */
    1920global $conf,$ttvalues,$plugvalues,$frvalues;
    20 define ('LLGBO_INFO_VERSION','2.0.Ia');
     21define ('LLGBO_INFO_VERSION','2.0.J');
    2122define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
    2223         
     
    210211 /* HTML  frame  */
    211212If (($conf['LLGBO_SETTINGS'] [0] == 'true') )
    212         {   $bd = 0;
     213        {   $bds = 0;
    213214                $frame_begin ='';
    214215                $frame_end='';
    215216                for ($x = 1   ;$x < 32  ; $x =$x +2)
    216217                {       if ((isset($conf['LLGBO_FRAME'][$x+1])) and  ($conf['LLGBO_FRAME'][$x+1] > 0))  // boder value > 0     
    217                           {$frame_begin = '<div style="border: '.$conf['LLGBO_FRAME'][$x+1].'px solid '.$conf['LLGBO_FRAME'][$x].'">'."\n".$frame_begin;
    218                                 $bd =  $bd + $conf['LLGBO_FRAME'][$x+1];        //define border sum     
     218                          {$frame_begin = '<div id ="llgboframe'.$x.'" style="border: '.$conf['LLGBO_FRAME'][$x+1].'px solid '.$conf['LLGBO_FRAME'][$x].'">'."\n".$frame_begin;
     219                                $bds =  $bds + $conf['LLGBO_FRAME'][$x+1];      //define border sum     
    219220                                $frame_end = $frame_end .' </div>';
    220221                        }
    221222                }
    222                 $frame_width = $ThePicture["scaled_width"] + (2 * $bd);
    223                 $frame_height = $ThePicture["scaled_height"] + (2 * $bd);
     223                $frame_width = $ThePicture["scaled_width"] + (2 * $bds);
     224                $frame_height = $ThePicture["scaled_height"] + (2 * $bds);
    224225        $template->assign('FRAME_SIZE','style="width:'.$frame_width .'px; height:'.$frame_height.'px;"');
    225226        $template->assign('FRAME_BEGIN', $frame_begin);
Note: See TracChangeset for help on using the changeset viewer.