Changeset 216836
- Timestamp:
- 03/13/2010 04:30:51 AM (16 years ago)
- Location:
- easy-chart-builder/trunk
- Files:
-
- 4 edited
-
dyerware-adm.php (modified) (1 diff)
-
easy-chart-builder-settings.php (modified) (6 diffs)
-
easy-chart-builder.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-chart-builder/trunk/dyerware-adm.php
r216041 r216836 67 67 68 68 <div class="dyerware-adminfobar"> 69 <center> Helpful Links</center>69 <center>Support</center> 70 70 <hr size="0" /> 71 71 <ul> -
easy-chart-builder/trunk/easy-chart-builder-settings.php
r214448 r216836 1 1 <?php 2 // This source originated from Hackadellic's TOC plugin 2 3 if ( !defined('ABSPATH') ) 3 4 exit("Sorry, you are not allowed to access this page directly."); … … 12 13 'title' => 'Group ' . $index . ' Color', 13 14 'key' => 'DEF_COLORS_' . $index, 14 'help' => 'HTML Color code for Group '.$index 15 'help' => 'HTML Color code for Group '.$index, 16 'class' => 'dyerware-color' 15 17 ); 16 18 } … … 68 70 'title' => 'Chart Color', 69 71 'key' => 'DEF_CHARTCOLOR', 72 'class' => 'dyerware-color', 70 73 'help' => 'HTML Color code for the chart background color (chartcolor).' ), 71 74 (object) array( 72 75 'title' => 'Chart Fade Color', 73 76 'key' => 'DEF_CHARTFADECOLOR', 77 'class' => 'dyerware-color', 74 78 'help' => 'HTML Color code for the chart background fade color (chartfadecolor).' ), 75 79 (object) array( 76 80 'title' => 'Watermark Color', 77 'key' => 'DEF_WATERMARKCOLOR', 81 'key' => 'DEF_WATERMARKCOLOR', 82 'class' => 'dyerware-color', 78 83 'help' => 'HTML Color code for watermarks (watermarkcolor).' ), 79 84 (object) array( 80 85 'title' => 'Marker Color', 81 86 'key' => 'DEF_MARKERCOLOR', 87 'class' => 'dyerware-color', 82 88 'help' => 'HTML Color code for markers (markercolor).' ), 83 89 )), … … 98 104 'help' => 'CSS class attributes for the data table (datatablecss).' ), 99 105 (object) array( 100 'title' => 'Chart Image CSS',106 'title' => 'Chart Image Style', 101 107 'key' => 'DEF_IMGSTYLE', 102 'help' => ' CSS Classfor the Chart Image (imgstyle).' ),108 'help' => 'Style for the Chart Image (imgstyle).' ), 103 109 )), 104 110 … … 186 192 187 193 $v = $options->$key; $t = gettype($v); 188 $style = $o->style ? " style=\"$o->style\"" : 'style="width:100%"';189 194 $name = ' name="'.$key.'"'; 195 $class = $o->class ? " class=\"$o->class\"" : ""; 196 197 $style = $o->style ? " style=\"$o->style;" : 'style="width:100%;'; 198 if ($o->class == 'dyerware-color') 199 { 200 $style .= " background-color:#" . $v . ";"; 201 $hsb = $this->RGBtoHSB($v); 202 203 if ($hsb[2] < 50 || ($hsb[1] > 75 && $hsb[2] < 75)) 204 { 205 $style .= " color:#FFF;"; 206 } 207 else 208 { 209 $style .= " color:#000;"; 210 } 211 } 212 $style .= '"'; 190 213 191 214 if ($o->pick) … … 200 223 else 201 224 { 202 $type = ' type="' . (is_bool($v) ? 'checkbox' : 'text') . '" ';225 $type = ' type="' . (is_bool($v) ? 'checkbox' : 'text') . '" '; 203 226 $value = is_bool($v) ? ($v ? ' checked="checked"' : '') : ' value="'.$v.'"'; 204 $attr = '<input ' . $type . $style . $ name . $value . '/>';227 $attr = '<input ' . $type . $style . $class . $name . $value . '/>'; 205 228 } 206 229 207 unset($type, $style, $name, $value );230 unset($type, $style, $name, $value, $class); 208 231 209 232 $text = $o->text ? " <span>$o->text</span>" : ''; -
easy-chart-builder/trunk/easy-chart-builder.php
r216165 r216836 2 2 /* 3 3 Plugin Name: Easy Chart Builder 4 Version: 0.9. 34 Version: 0.9.4 5 5 Plugin URI: http://www.dyerware.com/main/easy-chart-builder 6 6 Description: Creates a chart directly in your post or page via shortcut. Manages sizing of chart to support wptouch and other mobile themes. … … 216 216 217 217 private function translate_numerics(&$value, $key) 218 { 219 220 if ($value == 'false'){218 { 219 if ($value == 'false') 220 { 221 221 $value = false; 222 } elseif ($value == 'true') { 222 } elseif ($value == 'true') 223 { 223 224 $value = true; 224 } 225 225 } 226 226 } 227 227 … … 232 232 $nearValue = ""; 233 233 $header = ""; 234 234 235 235 if ($this->installScripts == false) 236 236 { … … 387 387 388 388 // This is for support in widgets 389 public function do_shortcode($content) { 389 public function do_shortcode($content) 390 { 390 391 global $shortcode_tags; 391 392 -
easy-chart-builder/trunk/readme.txt
r216165 r216836 6 6 Requires at least: 2.8 7 7 Tested up to: 2.9.2 8 Stable tag: 0.9. 38 Stable tag: 0.9.4 9 9 10 10 This plugin allows you to easily create charts within your blog by use of shortcodes. … … 71 71 == Upgrade Notice == 72 72 73 = 0.9.4 = 74 Some installs did not see color picker guy in admin panel 75 73 76 = 0.9.3 = 74 77 Compatibility issue with plugin dir. … … 106 109 107 110 == Changelog == 111 112 = 0.9.4 = 113 * Fix: some installs did not see color picker gui in admin panel 108 114 109 115 = 0.9.3 =
Note: See TracChangeset
for help on using the changeset viewer.