Plugin Directory

Changeset 216836


Ignore:
Timestamp:
03/13/2010 04:30:51 AM (16 years ago)
Author:
dugbug
Message:

0.9.5

Location:
easy-chart-builder/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • easy-chart-builder/trunk/dyerware-adm.php

    r216041 r216836  
    6767
    6868<div class="dyerware-adminfobar">
    69     <center>Helpful Links</center>
     69    <center>Support</center>
    7070    <hr size="0" />
    7171    <ul>
  • easy-chart-builder/trunk/easy-chart-builder-settings.php

    r214448 r216836  
    11<?php
     2// This source originated from Hackadellic's TOC plugin
    23if ( !defined('ABSPATH') )
    34    exit("Sorry, you are not allowed to access this page directly.");
     
    1213    'title' => 'Group ' . $index . ' Color',
    1314    'key' => 'DEF_COLORS_' . $index,
    14     'help' => 'HTML Color code for Group '.$index
     15    'help' => 'HTML Color code for Group '.$index,
     16    'class' => 'dyerware-color'
    1517    );
    1618}
     
    6870                'title' => 'Chart Color',
    6971                'key' => 'DEF_CHARTCOLOR',
     72                'class' => 'dyerware-color',
    7073                'help' => 'HTML Color code for the chart background color (chartcolor).' ),
    7174            (object) array(
    7275                'title' => 'Chart Fade Color',
    7376                'key' => 'DEF_CHARTFADECOLOR',
     77                'class' => 'dyerware-color',
    7478                'help' => 'HTML Color code for the chart background fade color (chartfadecolor).' ),
    7579            (object) array(
    7680                'title' => 'Watermark Color',
    77                 'key' => 'DEF_WATERMARKCOLOR',
     81                'key' => 'DEF_WATERMARKCOLOR',
     82                'class' => 'dyerware-color',
    7883                'help' => 'HTML Color code for watermarks (watermarkcolor).' ),
    7984            (object) array(
    8085                'title' => 'Marker Color',
    8186                'key' => 'DEF_MARKERCOLOR',
     87                'class' => 'dyerware-color',
    8288                'help' => 'HTML Color code for markers (markercolor).' ),                                   
    8389        )),
     
    98104                'help' => 'CSS class attributes for the data table (datatablecss).' ),
    99105            (object) array(
    100                 'title' => 'Chart Image CSS',
     106                'title' => 'Chart Image Style',
    101107                'key' => 'DEF_IMGSTYLE',
    102                 'help' => 'CSS Class for the Chart Image (imgstyle).' ),                       
     108                'help' => 'Style for the Chart Image (imgstyle).' ),                       
    103109        )),
    104110               
     
    186192   
    187193    $v = $options->$key; $t = gettype($v);
    188     $style = $o->style ? " style=\"$o->style\"" : 'style="width:100%"';
    189194    $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 .= '"'; 
    190213   
    191214    if ($o->pick)
     
    200223    else
    201224    {
    202         $type = ' type="' . (is_bool($v) ? 'checkbox' : 'text') . '"';
     225        $type = ' type="' . (is_bool($v) ? 'checkbox' : 'text') . '" ';
    203226        $value = is_bool($v) ? ($v ? ' checked="checked"' : '') : ' value="'.$v.'"';
    204         $attr = '<input ' . $type . $style . $name . $value . '/>';
     227        $attr = '<input ' . $type . $style . $class . $name . $value . '/>';
    205228    }
    206229   
    207     unset($type, $style, $name, $value);
     230    unset($type, $style, $name, $value, $class);
    208231   
    209232    $text = $o->text ? " <span>$o->text</span>" : '';
  • easy-chart-builder/trunk/easy-chart-builder.php

    r216165 r216836  
    22/*
    33Plugin Name: Easy Chart Builder
    4 Version: 0.9.3
     4Version: 0.9.4
    55Plugin URI: http://www.dyerware.com/main/easy-chart-builder
    66Description: Creates a chart directly in your post or page via shortcut.  Manages sizing of chart to support wptouch and other mobile themes.
     
    216216 
    217217    private function translate_numerics(&$value, $key)
    218     {
    219        
    220         if ($value == 'false') {
     218    {     
     219        if ($value == 'false')
     220        {
    221221            $value = false;
    222         } elseif ($value == 'true') {
     222        } elseif ($value == 'true')
     223        {
    223224            $value = true;
    224         }
    225        
     225        }       
    226226    }       
    227227           
     
    232232        $nearValue = "";
    233233        $header = "";
    234        
     234
    235235        if ($this->installScripts == false)
    236236        {
     
    387387   
    388388   // This is for support in widgets
    389    public function do_shortcode($content) {
     389   public function do_shortcode($content)
     390   {
    390391        global $shortcode_tags;
    391392   
  • easy-chart-builder/trunk/readme.txt

    r216165 r216836  
    66Requires at least: 2.8
    77Tested up to: 2.9.2
    8 Stable tag: 0.9.3
     8Stable tag: 0.9.4
    99
    1010This plugin allows you to easily create charts within your blog by use of shortcodes.
     
    7171== Upgrade Notice ==
    7272
     73= 0.9.4 =
     74Some installs did not see color picker guy in admin panel
     75
    7376= 0.9.3 =
    7477Compatibility issue with plugin dir.
     
    106109
    107110== Changelog ==
     111
     112= 0.9.4 =
     113 * Fix: some installs did not see color picker gui in admin panel
    108114
    109115= 0.9.3 =
Note: See TracChangeset for help on using the changeset viewer.