Changeset 10453 for extensions/LLGBO2


Ignore:
Timestamp:
04/17/11 20:15:02 (9 years ago)
Author:
gbo
Message:

version 2.2.b + fix bug in admin

Location:
extensions/LLGBO2
Files:
1 added
6 edited

Legend:

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

    r6283 r10453  
    4141$me = get_plugin_data($plugin_id); 
    4242$template->assign('LLGBOINFO',''); 
     43$template->assign('LLGBO_PATH',LLGBO_PATH); 
    4344//   
    4445$query =" SELECT ID FROM ".$prefixeTable."themes where id like '%gally%' " ; 
     
    110111$tabsheet->select($page['tab']); 
    111112 
    112 $template->append('head_elements', 
    113                    '<script type="text/javascript" src="./plugins/look_like_gbo2/farbtastic/farbtastic.js"></script> 
    114 <link rel="stylesheet" type="text/css" 
    115       href="./plugins/look_like_gbo2/farbtastic/farbtastic.css" /> 
    116 <link rel="stylesheet" type="text/css" 
    117       href="./plugins/look_like_gbo2/css/look_like_gbo2_admin.css" />  
    118 <! --- LLGBO tooltip css--> 
    119 <style type="text/css">  
    120 #toolTip {background:'.$conf['LLGBO_TOOLTIP'][3].';color:'.$conf['LLGBO_TOOLTIP'][5].';border:'.$conf['LLGBO_TOOLTIP'][1].'px solid '.$conf['LLGBO_TOOLTIP'][2].';padding:5px;min-height:1em;-moz-border-radius:5px}  
    121 #toolTip p {margin:0;padding:0;color:'.$conf['LLGBO_TOOLTIP'][5].';font-size:0.8em;font-family:Verdana,Arial,Helvetica,sans-serif;text-align:left} 
    122 #toolTip title {color:'.$conf['LLGBO_TOOLTIP'][4].';text-align:center;padding:0 0 3px 0;font-weight:bold} 
    123 </style>'); 
    124  
     113 
     114  
    125115  
    126116// Update configuration settings in database 
     
    195185          {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));}  else  { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));} 
    196186 
    197           } 
     187} 
    198188/////////////////////////////////////////////////////////////////////////////////////// 
    199189//// TOOLTIP             
     
    237227 if (isset($conf['LLGBO_TOOLTIP'][4])) {$template->assign(array( 'LLGBO_TOOLTIP_TITLECOLOR' => $conf['LLGBO_TOOLTIP'][4]));} 
    238228 if (isset($conf['LLGBO_TOOLTIP'][5])) {$template->assign(array( 'LLGBO_TOOLTIP_COLOR' => $conf['LLGBO_TOOLTIP'][5]));} 
    239 } 
     229$template ->assign ('stylett','    
     230          <! --- LLGBO tooltip css--> 
     231<style type="text/css">  
     232div#toolTip {background:'.$conf['LLGBO_TOOLTIP'][3].';color:'.$conf['LLGBO_TOOLTIP'][5].';border:'.$conf['LLGBO_TOOLTIP'][1].'px solid '.$conf['LLGBO_TOOLTIP'][2].';padding:8px;min-height:1em; 
     233-moz-border-radius:20px;border-radius:20px;-moz-box-shadow: 0px 0px 35px '.$conf['LLGBO_TOOLTIP'][2].' inset ;-webkit-box-shadow:0px 0px  35px '.$conf['LLGBO_TOOLTIP'][2].' inset }  
     234div#toolTip p {margin:0;padding:0;color:'.$conf['LLGBO_TOOLTIP'][5].';font-size:0.8em;font-family:Verdana,Arial,Helvetica,sans-serif;text-align:left} 
     235div#toolTip p em {display:block;margin-top:3px;font-style:normal;font-weight:bold;text-align:left} 
     236div#toolTip p.title {color:'.$conf['LLGBO_TOOLTIP'][4].';text-align:center;padding:0 0 3px 0;} 
     237</style>'); 
     238 } 
    240239 
    241240/////////////////////////////////////////////// 
  • extensions/LLGBO2/admin/llgbo_adminframe.tpl

    r6259 r10453  
    33 <h2> {'Title'|@translate} -> {$LLGBO_VERSION}</h2> 
    44 <h3>{'Step3_Title'|@translate}</h3> 
     5{combine_css path=$LLGBO_PATH|@cat:"css/look_like_gbo2_admin.css" order="+02"}  
     6{combine_css path=$LLGBO_PATH|@cat:"farbtastic/farbtastic.css" order="+0"}  
     7{combine_script id='jquery.farbtastic'  require='jquery'   path=$LLGBO_PATH|@cat:"farbtastic/farbtastic.js"} 
    58<form method="post" action="" class="properties"> 
    69<fieldset> 
  • extensions/LLGBO2/admin/llgbo_adminheader.tpl

    r6259 r10453  
     1{combine_css path=$LLGBO_PATH|@cat:"css/look_like_gbo2_admin.css" order="+02"}  
    12{if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if} 
    23<h2> {'Title'|@translate} -> {$LLGBO_VERSION}</h2> 
     
    8283</fieldset> 
    8384</form> 
     85 
    8486  
  • extensions/LLGBO2/admin/llgbo_admintooltip.tpl

    r6234 r10453  
     1{$stylett} 
    12{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> 
     
    45<form method="post" action="" class="properties"> 
    56<fieldset> 
     7{combine_css path=$LLGBO_PATH|@cat:"css/look_like_gbo2_admin.css" order="+02"}  
     8{combine_css path=$LLGBO_PATH|@cat:"farbtastic/farbtastic.css" order="+0"}  
     9{combine_script id='jquery.farbtastic'  require='jquery'   path=$LLGBO_PATH|@cat:"farbtastic/farbtastic.js"} 
     10<div id="picker"></div> 
    611 
    7 <div id="picker"></div> 
    812<!--           T O O L T I P  --> 
    9 <div id="tooltip"   style= "border:{$LLGBO_TOOLTIP_SIZE}px solid {$LLGBO_TOOLTIP_BORDERCOLOR};{$LLGBODISPTOOLTIP};background:{$LLGBO_TOOLTIP_BACKGROUNDCOLOR};color:{$LLGBO_TOOLTIP_COLOR};">    
     13<div id="toolTip"   >    
    1014         
    1115        <table align="center"  > 
     
    6266  {rdelim}); 
    6367</script>    
    64 <script type="text/javascript" charset="utf-8"> 
    65   $(document).ready(function() {ldelim} 
    66     var f = $.farbtastic('#framepicker'); 
    67     var p = $('#framepicker').css('opacity', 0.45); 
    68     var selected; 
    69     $('.colorwellf') 
    70       .each(function () {ldelim}   f.linkTo(this);   $(this).css('opacity', 0.85);  {rdelim}) 
    71       .focus(function() {ldelim} 
    72         if (selected) {ldelim} 
    73          $(selected).css('opacity', 0.85).removeClass('colorwell-selected'); 
    74                 {rdelim} 
    75         f.linkTo(this);  
    76         p.css('opacity', 1); 
    77                 $(selected = this).css('opacity', 1).addClass('colorwell-selected');  
    78          
    79            {rdelim}); 
    80          
    81   {rdelim}); 
    82 </script> 
  • extensions/LLGBO2/main.inc.php

    r9954 r10453  
    22/* 
    33Plugin Name: Look_like_gbo2  
    4 Version:  2.2.a 
     4Version:  2.2.b 
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 
    66Author: GBo  
     
    88Description:  Display thumbnail under button. Add navigation on picture look like GBo Gallery  
    99Add a border around  picture ...... 
    10   2.2.a compliant 2.2 Piwigo 
     10  2.2.a compliant 2.2rc Piwigo 
     11  2.2.b Full compliant 2.2 Piwigo + fix bug in admin 
    1112*/ 
    1213if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
     
    1516global $conf;  
    1617 
    17 define ('LLGBO_INFO_VERSION','2.2.a'); 
     18define ('LLGBO_INFO_VERSION','2.2.b'); 
    1819if (!defined('LLGBO_PATH')) 
    1920{define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');} 
     
    155156function MyPictureOptions($content ) 
    156157{global $template,$conf,$user,$lang;     
    157 $llgbo_path = get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/'; 
     158$template->assign('LLGBO_PATH',LLGBO_PATH); 
    158159$sweetcss = ' <! --- LLGBO tooltip css--> 
    159160<style type="text/css">  
     
    162163div#toolTip p em {display:block;margin-top:3px;font-style:normal;font-weight:bold;text-align:left} 
    163164div#toolTip p.title {color:'.$conf['LLGBO_TOOLTIP'][4].';text-align:center;padding:0 0 3px 0;} 
     165#theImage{margin:auto;overflow: hidden;} 
    164166</style>'; 
    165167//----------------------------------------------------------------- 
     
    168170 If (($conf['LLGBO'][1]  == 'true' ) /*  tooltip  */  or  ($conf['LLGBO_SETTINGS'] [2]  == 'true' )  /* exif under bt */  
    169171 or  ($conf['LLGBO_SETTINGS'] [4]  === 'true' ) /* usemap and Display Thumb  */) 
    170             {  $javacss = '<script type="text/javascript" charset="utf-8"  src="'.$llgbo_path; 
    171               $sweetcss =  $sweetcss."\n".$javacss.'js/sweettitlesn.js"></script>'."\n";  
    172                   $template->append('footer_elements',$sweetcss); } 
     172            {  $template->assign('LLGBOTOOLTIP', 1 );     
     173                $template->append('footer_elements',$sweetcss); 
     174        } 
    173175//----------------------------------------------------------------- 
    174176// Navigation improvement are always available 
     
    215217/////////////////////////////////////////////////////////////////        
    216218If (($conf['LLGBO_SETTINGS'] [1]  == 'true' )/*  tooltip display  */  or ($conf['LLGBO_SETTINGS'] [0] == 'true') /*  frame  */  ) 
    217                         { $linkcss = '<link rel="stylesheet" type="text/css" href="'.$llgbo_path; 
    218                         $template->append('head_elements',$linkcss.'css/gbolook.css">'); 
    219                          $template->append('head_elements',"\n".' <STYLE type="text/css">#theImage{margin:auto;overflow: hidden;}</STYLE>'); 
    220                           } 
     219                        { $template->assign('LLGBOCSS', 2 );  } 
    221220//----------------------------------------------------    
    222221//-------      Usemap   values         -------------      
  • extensions/LLGBO2/template/picture_content.tpl

    r6649 r10453  
    5252        {if isset($high) and !isset($USEMAP) }  
    5353                <!-- HihgDef and navigation on picture off   --> 
    54                         <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"> 
    55                         <p>{'Click on the picture to see it in high definition'|@translate}</p> </a> 
     54                        <a  id="gboahigh" href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"> 
     55                        <p id="gbophigh">{'Click on the photo to see it in high definition'|@translate}</p></a> 
    5656         {/if} 
    57  
    58  
    59          
     57{if  isset($LLGBOCSS)}    
     58 {combine_css  path=$LLGBO_PATH|@cat:"css/gbolook.css"}  
     59 {/if} 
     60{if  isset($LLGBOTOOLTIP)}        
     61 {combine_script id='llgoSwtTooltip'   path=$LLGBO_PATH|@cat:"js/sweettitlesn1_comment.js"} 
     62{/if} 
Note: See TracChangeset for help on using the changeset viewer.