WordPress.org

Plugin Directory

Changeset 748355


Ignore:
Timestamp:
07/30/13 16:03:15 (4 years ago)
Author:
naifamoodi
Message:

v0.6 of plugin.

Location:
fields-framework/tags/0.6
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • fields-framework/tags/0.6/index.php

    r746960 r748355  
    44Plugin URI: http://www.rhyzz.com/fields-framework.html 
    55Description: A framework which can be used by developers to add fields to various sections of the administration panel. 
    6 Version: 0.53 
     6Version: 0.6 
    77Author: Naif Amoodi 
    88Author URI: http://www.rhyzz.com/ 
  • fields-framework/tags/0.6/js/backend.js

    r746953 r748355  
    55        }); 
    66    } 
     7 
     8    jQuery('.ff-colorpicker').ColorPicker({ 
     9        onSubmit: function(hsb, hex, rgb, el) { 
     10            jQuery(el).val('#' + hex); 
     11 
     12            jQuery(el).ColorPickerHide(); 
     13        }, 
     14        onBeforeShow: function () { 
     15            jQuery(this).ColorPickerSetColor(this.value); 
     16        } 
     17    }).bind('keyup', function() { 
     18        jQuery(this).ColorPickerSetColor(this.value); 
     19    }); 
    720 
    821    jQuery('.ff-repeatable').each(function() { 
  • fields-framework/tags/0.6/php/classes.php

    r746953 r748355  
    405405} 
    406406 
    407 if(!class_exists('FF_Field_URL')) { 
    408     class FF_Field_URL extends FF_Field { 
    409         protected $class = 'large-text'; 
    410      
    411         public function html($saved_value = null) { 
    412             echo '<input type="url" name="' . esc_attr($this->name) . '" id="' . esc_attr($this->id) . '" placeholder="' . esc_attr($this->placeholder) . '" value="' . esc_url($saved_value) . '" class="' . esc_attr($this->class) . '" />'; 
    413         } 
    414     } 
    415 } 
    416  
    417 if(!class_exists('FF_Field_Email')) { 
    418     class FF_Field_Email extends FF_Field { 
    419         protected $class = 'large-text'; 
    420      
    421         public function html($saved_value = null) { 
    422             echo '<input type="email" name="' . esc_attr($this->name) . '" id="' . esc_attr($this->id) . '" placeholder="' . esc_attr($this->placeholder) . '" value="' . esc_attr($saved_value) . '" class="' . esc_attr($this->class) . '" />'; 
     407if(!class_exists('FF_Field_ColorPicker')) { 
     408    class FF_Field_ColorPicker extends FF_Field { 
     409        protected $class = 'ff-colorpicker'; 
     410 
     411        public function __construct($arguments) { 
     412            parent::__construct($arguments); 
     413 
     414            wp_enqueue_style('ff-colorpicker', plugins_url('css/colorpicker.css', dirname(__FILE__))); 
     415 
     416            wp_enqueue_script('ff-colorpicker', plugins_url('js/colorpicker.js', dirname(__FILE__)), array('jquery')); 
     417        } 
     418 
     419        public function html($saved_value = null) { 
     420            echo '<input type="text" name="' . esc_attr($this->name) . '" id="' . esc_attr($this->id) . '" placeholder="' . esc_attr($this->placeholder) . '" value="' . esc_attr($saved_value) . '" class="' . esc_attr($this->class) . '" data-date-format="' . esc_attr($this->date_format) . '" data-time-format="' . esc_attr($this->time_format) . '" />'; 
    423421        } 
    424422    } 
  • fields-framework/tags/0.6/readme.txt

    r746960 r748355  
    55Requires at least: 3.3 
    66Tested up to: 3.5.2 
    7 Stable tag: 0.53 
     7Stable tag: 0.6 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1212 
    1313== Description == 
     14 
     15[WordPress Fields Framework Documentation](http://www.rhyzz.com/fields-framework.html "WordPress Fields Framework Documentation") 
    1416 
    1517A framework which can be used by developers to add fields to various sections of the administration panel. 
     
    2022* Categories, Tags and [Custom Taxonomies](http://codex.wordpress.org/Taxonomies) 
    2123* Custom Administration Menus and Sub Menus 
    22 * Users Profile 
     24* User Profiles 
    2325 
    2426Sections for Posts and Pages can also be loaded conditionally depending on whether a Page uses a certain [Page Template](http://codex.wordpress.org/Page_Templates) or if a Post uses a certain [Post Format](http://codex.wordpress.org/Post_Formats) 
     
    3032* **Group** - A group of fields 
    3133* Text Field 
    32 * URL Field 
    33 * Email Field 
    3434* Hidden Field 
    3535* Media Field - Let's you upload an attachment or enter a custom URL. You can use this field for uploading of any type of file 
     
    4242* Editor - A WYSIWYG editor 
    4343* DateTime 
     44* ColorPicker 
    4445 
    4546Most fields including the Group field can be made repeatable. 
     47 
     48= Support = 
     49 
     50Please show your support towards the development of this plugin by giving it a rating! 
     51 
     52And if you feel the need for an additional type of field then please use the [support form](http://wordpress.org/support/plugin/fields-framework) and leave a message. 
    4653 
    4754== Installation == 
     
    6774== Changelog == 
    6875 
     76= 0.6 = 
     77* Added ColorPicker Field 
     78* Removed URL and Email fields because a regular Text Field seems to serve just fine for any such field 
     79 
    6980= 0.51 = 
    7081* Added new DateTime field 
Note: See TracChangeset for help on using the changeset viewer.