Changeset 10453 for extensions
- Timestamp:
- Apr 17, 2011, 8:15:02 PM (13 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r6283 r10453 41 41 $me = get_plugin_data($plugin_id); 42 42 $template->assign('LLGBOINFO',''); 43 $template->assign('LLGBO_PATH',LLGBO_PATH); 43 44 // 44 45 $query =" SELECT ID FROM ".$prefixeTable."themes where id like '%gally%' " ; … … 110 111 $tabsheet->select($page['tab']); 111 112 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 125 115 126 116 // Update configuration settings in database … … 195 185 {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));} else { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));} 196 186 197 187 } 198 188 /////////////////////////////////////////////////////////////////////////////////////// 199 189 //// TOOLTIP … … 237 227 if (isset($conf['LLGBO_TOOLTIP'][4])) {$template->assign(array( 'LLGBO_TOOLTIP_TITLECOLOR' => $conf['LLGBO_TOOLTIP'][4]));} 238 228 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"> 232 div#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 } 234 div#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} 235 div#toolTip p em {display:block;margin-top:3px;font-style:normal;font-weight:bold;text-align:left} 236 div#toolTip p.title {color:'.$conf['LLGBO_TOOLTIP'][4].';text-align:center;padding:0 0 3px 0;} 237 </style>'); 238 } 240 239 241 240 /////////////////////////////////////////////// -
extensions/LLGBO2/admin/llgbo_adminframe.tpl
r6259 r10453 3 3 <h2> {'Title'|@translate} -> {$LLGBO_VERSION}</h2> 4 4 <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"} 5 8 <form method="post" action="" class="properties"> 6 9 <fieldset> -
extensions/LLGBO2/admin/llgbo_adminheader.tpl
r6259 r10453 1 {combine_css path=$LLGBO_PATH|@cat:"css/look_like_gbo2_admin.css" order="+02"} 1 2 {if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if} 2 3 <h2> {'Title'|@translate} -> {$LLGBO_VERSION}</h2> … … 82 83 </fieldset> 83 84 </form> 85 84 86 -
extensions/LLGBO2/admin/llgbo_admintooltip.tpl
r6234 r10453 1 {$stylett} 1 2 {if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if} 2 3 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2> … … 4 5 <form method="post" action="" class="properties"> 5 6 <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> 6 11 7 <div id="picker"></div>8 12 <!-- T O O L T I P --> 9 <div id="tool tip" style= "border:{$LLGBO_TOOLTIP_SIZE}px solid {$LLGBO_TOOLTIP_BORDERCOLOR};{$LLGBODISPTOOLTIP};background:{$LLGBO_TOOLTIP_BACKGROUNDCOLOR};color:{$LLGBO_TOOLTIP_COLOR};">13 <div id="toolTip" > 10 14 11 15 <table align="center" > … … 62 66 {rdelim}); 63 67 </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 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.2. a4 Version: 2.2.b 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: GBo … … 8 8 Description: Display thumbnail under button. Add navigation on picture look like GBo Gallery 9 9 Add 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 11 12 */ 12 13 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 15 16 global $conf; 16 17 17 define ('LLGBO_INFO_VERSION','2.2. a');18 define ('LLGBO_INFO_VERSION','2.2.b'); 18 19 if (!defined('LLGBO_PATH')) 19 20 {define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');} … … 155 156 function MyPictureOptions($content ) 156 157 {global $template,$conf,$user,$lang; 157 $ llgbo_path = get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/';158 $template->assign('LLGBO_PATH',LLGBO_PATH); 158 159 $sweetcss = ' <! --- LLGBO tooltip css--> 159 160 <style type="text/css"> … … 162 163 div#toolTip p em {display:block;margin-top:3px;font-style:normal;font-weight:bold;text-align:left} 163 164 div#toolTip p.title {color:'.$conf['LLGBO_TOOLTIP'][4].';text-align:center;padding:0 0 3px 0;} 165 #theImage{margin:auto;overflow: hidden;} 164 166 </style>'; 165 167 //----------------------------------------------------------------- … … 168 170 If (($conf['LLGBO'][1] == 'true' ) /* tooltip */ or ($conf['LLGBO_SETTINGS'] [2] == 'true' ) /* exif under bt */ 169 171 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 } 173 175 //----------------------------------------------------------------- 174 176 // Navigation improvement are always available … … 215 217 ///////////////////////////////////////////////////////////////// 216 218 If (($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 ); } 221 220 //---------------------------------------------------- 222 221 //------- Usemap values ------------- -
extensions/LLGBO2/template/picture_content.tpl
r6649 r10453 52 52 {if isset($high) and !isset($USEMAP) } 53 53 <!-- 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> 56 56 {/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.