Changeset 17242


Ignore:
Timestamp:
Jul 31, 2012, 8:33:03 AM (12 years ago)
Author:
gbo
Message:

Compliance Map & earth

Location:
extensions/LLGBO2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/js/jquery_llgboframeresize.js

    r16754 r17242  
    2929                                 var frbdr = 0;
    3030                                 if (Fr) {
    31                                         frbdr = parseInt(Fr.style.borderWidth);
    32                                         nFrH = nFrH + FrLstBdr ;
    33                                         nFrW = nFrW + FrLstBdr ;
    34                                         Fr.style.height = nFrH + "px";
    35                                         Fr.style.width = nFrW + "px";}
    36                                         FrLstBdr = (frbdr * 2); 
     31                                        frbdr = parseInt(Fr.style.borderWidth);}
     32                                        FrLstBdr = (frbdr * 2)+FrLstBdr; 
    3733                                }
    3834                                elGbo.style.width = (nFrW + FrLstBdr) + "px";
  • extensions/LLGBO2/main.inc.php

    r16791 r17242  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.4.D
     4Version:  2.4.G
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: GBo
     
    1414        2.4.F Improvement on frame management first size
    1515                  Frame available on SlideShow.
     16        2.4.G Compliance with plugin RV MAP & EARTH
    1617 */
    1718if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1819
    1920global $conf;
    20 define ('LLGBO_INFO_VERSION','2.4.F');
     21define ('LLGBO_INFO_VERSION','2.4.G');
    2122if (!defined('LLGBO_PATH'))
    2223{define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');}
     
    7273$infofile = $template->get_template_vars('INFO_FILE');
    7374$current = $template->get_template_vars('current');
    74 
    7575//----------------------------------------------------   
    7676/*       HTML End  frame   on Picture.tpl       */
    7777//---------------------------------------------------- 
    78 If (($conf['LLGBO_SETTINGS'] [0] == 'true')  ) //Frame
     78If (($conf['LLGBO_SETTINGS'] [0] == 'true')    //Frame
     79     and ($conf['LLGBO_RENDERCONTENT'] == 'true') )     // $content ok for update
    7980        {       $target = 'picture';
    8081            if ($page['slideshow'] and $conf['light_slideshow'])
     
    100101                                $frame_height = $frame_height + ( 2* $lastbrdpx);
    101102                            $bordcolor = $conf['LLGBO_FRAME'][$x];
    102                             $frame_begin = '<div   id="llgboframe'.$x.'" class="llgbo" style="border:'.$bordpx.'px solid '.$bordcolor.';width:'.$frame_width.'px; height:'.$frame_height.'px;">'."\n".$frame_begin;
     103                            $frame_begin = '<div   id="llgboframe'.$x.'" class="llgbo" style="border:'.$bordpx.'px solid '.$bordcolor.'">'."\n".$frame_begin;
    103104                                $lastbrdpx = $bordpx;}
    104105                }
     
    122123        {$lang['Show file metadata'] =  'No Metadata';}
    123124        else
     125        {
     126        if ($conf['show_exif']  == true) // No exif ?
    124127        {$meta = "";
    125128        $u_metadata = $template->get_template_vars('U_METADATA');
     
    151154                   }
    152155                }
    153         }       
     156          }
     157        }
    154158        // Add llgbo requirement to ELEMENT_CONTENT
    155159        $template->set_filenames( array('llgbo_content'=> dirname(__FILE__).'/template/llgbo_content.tpl') );
     
    172176       
    173177/*       If ($conf['LLGBO_SETTINGS'] [3]  == 'true' )    switch free    {}  */
    174 
     178$conf['LLGBO_RENDERCONTENT']   = 'false';
    175179//-----------------------------------------------------------------
    176180// AN OTHER PLUGIN IS WORKING -> GO BACK
     
    178182// frame and navigation on picture  are only available on picture extension     
    179183$pictExt = substr($element_info['file'],-3);
    180 if (!in_array ( $pictExt,$conf['picture_ext'])) {  return $content;  ; }       
     184if (!in_array ( $pictExt,$conf['picture_ext'])) {  return $content;  ; }
     185$conf['LLGBO_RENDERCONTENT']  = 'true'; // $content ok for update
    181186 include_once(LLGBO_PATH.'include/manage_picture_content.php');
    182187} //end --> llgbo_RenderContent
Note: See TracChangeset for help on using the changeset viewer.