Skip to content

Releases: wpsf/wpsf

V 0.8 - Beta

08 Feb 11:33
Compare
Choose a tag to compare

New Features

  • Added option to list icons as checkbox / radio
  • Added social_icons field
  • Added Url validation option
  • Added Animation CSS Field
  • Added FlatPickr (DatePicker)
  • Added Exclude Options in shortcode args
  • Added wpsf-ajax.php to handle all ajax requests
  • Added wpsf-query.php to handle all wp query requests
  • Added wpsf_js_vars function to convert php array into json which can be used in

Tweaks

  • Changed From init to after_setup_theme
  • Removed Unused Functions
  • Fixed issue with Tab & General Saving Field
  • Formatted Source Code in settings.php and called get_db_options in set_defaults function
  • Added _unarray_value function in options.php to manage issue with un_array fields
  • Formatted Source code for accordion.php
  • Removed Unused function in options.php

Updates / Fixes

  • Radio / Checkbox Options array function
  • Fixed Issue with Accordion Values
  • Fixed ; issue @ settings.php : is_page_active
  • modified config/settings.php to add extra fileds for ajax select
  • Modified Source code for select.php to work with ajax select

V 0.7 - Beta

31 Jan 11:18
Compare
Choose a tag to compare
  • Formatted Source Code
  • Added Doc Blocks in php code
  • Added New Checkbox / Radio Style

image

V 0.6 - Beta

30 Jan 12:23
31b0820
Compare
Choose a tag to compare

Added

  • Column Support For Fields
  • Nested Group Support
  • Text Limiter For Text field & text area
  • Checkbox , Radio Supports Options with Attribtues(Ref Code 1)
  • Checkbox , Radio Supports Options to be disabled (Ref Code 1)
  • Horizontal View Added For Fields
  • Now Create widgets with WPSF
  • Create WP Help Tabs With WPSF

Tweaks

  • Combined Framework.js & fields.js and improved coding
  • Code cleanup done
  • Tweaked WC Metabox & Tab field source
  • Reduced No of loops
  • removed icheck

Checkbox,Radio,Select Options With Attribtues

array(
    'id'      => 'unique_checkbox_4',
    'type'    => 'checkbox',
    'title'   => 'Checkbox Field with Options',
    'options' => array(
        'blue'   => array(
            'label'      => 'Blue',
            'disabled'   => TRUE,
            'attributes' => array( 'data-help' => 'yes' ),
        ),
        'green'  => 'Green',
        'yellow' => 'Yellow',
    ),
)

Help Tab Sample Code

new WPSFramework_Help_Tabs(array(
    'toplevel_page_wpsf-modern' => array(
        array(
            'id'     => 'tab1',
            'title'  => 'TAB 1',
            'fields' => array(
                array( 
                    'type'    => 'content',
                    'content' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry',
                ),
            ),
        ),

    ),
));

Sample Widget Using WPSF

add_action('wpsf_widgets', 'wpsf_sample_widget');


function wpsf_sample_widget() {
    require_once __DIR__.'/config/widget.php';
    register_widget('wpsf_sample_1');
}

Widget Class Code

class wpsf_sample_1 extends WPSFramework_Widget {
    public function __construct() {
        parent::__construct('wpsf_sample_1', 'WPSF Sample 1');
    }

    public function widget($args, $instance) {
    }

    public function form_fields() {
        return array(
            array(
                'id'       => 'title',
                'type'     => 'text',
                'validate' => 'required',
                'title'    => __("Title"),
            ),
        );
    }
}

V 0.5 - Beta

22 Jan 10:00
Compare
Choose a tag to compare

First Version Released