Plugin Directory

Changeset 3160026


Ignore:
Timestamp:
09/30/2024 05:52:19 PM (18 months ago)
Author:
sourcefound
Message:

Version 6.12

Location:
memberfindme
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • memberfindme/trunk/memberfindme.php

    r3155935 r3160026  
    44Plugin URI: https://membershipworks.com
    55Description: Membership Works plugin
    6 Version: 6.11
     6Version: 6.12
    77Author: MembershipWorks
    88Author URI: https://membershipworks.com
     
    577577    if (empty($instance['org']))
    578578        return '<div>Organization ID not setup. Please update settings.</div>';
    579     $instance=wp_parse_args($instance,array('grp'=>'','cnt'=>'3'));
     579    $instance=wp_parse_args($instance,array('grp'=>'','cnt'=>'3','lgo'=>'','adn'=>'','szp'=>'','ezp'=>''));
    580580    $dat=sf_api(empty($set)||empty($set['ssl'])?'https':'http','GET','v1/evt',array('org'=>$instance['org'],'wee'=>1,'grp'=>$instance['grp'],'cnt'=>$instance['cnt'],'sdp'=>time()));
    581581    if (empty($dat))
     
    630630        $instance['grp']=isset($new_instance['grp'])?$new_instance['grp']:'';
    631631        $instance['cnt']=$new_instance['cnt']?strval(intval($new_instance['cnt'])):'0';
    632         if (empty($new_instance['lgo'])) unset($instance['lgo']); else $instance['lgo']=1;
    633         if (empty($new_instance['adn'])) unset($instance['adn']); else $instance['adn']=1;
    634         if (empty($new_instance['szp'])) $instance['szp']=1; else unset($instance['szp']);
    635         if (empty($new_instance['ezp'])) $instance['ezp']=1; else unset($instance['ezp']);
     632        $instance['lgo']=empty($new_instance['lgo'])?'':'1';
     633        $instance['adn']=empty($new_instance['adn'])?'':'1';
     634        $instance['szp']=empty($new_instance['szp'])?'':'1';
     635        $instance['ezp']=empty($new_instance['ezp'])?'':'1';
    636636        return $instance;
    637637    }
    638638    public function form($instance) {
    639         $instance=wp_parse_args($instance,array('title'=>'','grp'=>'','cnt'=>'3'));
     639        $instance=wp_parse_args($instance,array('title'=>'','grp'=>'','cnt'=>'3','lgo'=>'','adn'=>'','szp'=>'','ezp'=>''));
    640640        $title=strip_tags($instance['title']);
    641641        $grp=$instance['grp'];
     
    646646            .'<p><label for="'.esc_attr($this->get_field_id('lgo')).'">Display images:</label> <input id="'.esc_attr($this->get_field_id('lgo')).'" name="'.esc_attr($this->get_field_name('lgo')).'" type="checkbox" value="1"'.(empty($instance['lgo'])?'':' checked').'/></p>'
    647647            .'<p><label for="'.esc_attr($this->get_field_id('adn')).'">Display location:</label> <input id="'.esc_attr($this->get_field_id('adn')).'" name="'.esc_attr($this->get_field_name('adn')).'" type="checkbox" value="1"'.(empty($instance['adn'])?'':' checked').'/></p>'
    648             .'<p><label for="'.esc_attr($this->get_field_id('szp')).'">Display start date/time:</label> <input id="'.esc_attr($this->get_field_id('szp')).'" name="'.esc_attr($this->get_field_name('szp')).'" type="checkbox" value="1"'.(empty($instance['szp'])?' checked':'').'/></p>'
    649             .'<p><label for="'.esc_attr($this->get_field_id('ezp')).'">Display end date/time:</label> <input id="'.esc_attr($this->get_field_id('ezp')).'" name="'.esc_attr($this->get_field_name('ezp')).'" type="checkbox" value="1"'.(empty($instance['ezp'])?' checked':'').'/></p>';
     648            .'<p><label for="'.esc_attr($this->get_field_id('szp')).'">Hide start date/time:</label> <input id="'.esc_attr($this->get_field_id('szp')).'" name="'.esc_attr($this->get_field_name('szp')).'" type="checkbox" value="1"'.(empty($instance['szp'])?'':' checked').'/></p>'
     649            .'<p><label for="'.esc_attr($this->get_field_id('ezp')).'">Hide end date time:</label> <input id="'.esc_attr($this->get_field_id('ezp')).'" name="'.esc_attr($this->get_field_name('ezp')).'" type="checkbox" value="1"'.(empty($instance['ezp'])?'':' checked').'/></p>';
    650650    }
    651651}
     
    711711        $instance['act']=strval(intval($new_instance['act']));
    712712        $instance['delay']=strval(intval($new_instance['delay']));
    713         if (empty($new_instance['nam']))
    714             unset($instance['nam']);
    715         else
    716             $instance['nam']=1;
     713        $instance['nam']=empty($new_instance['nam'])?'':'1';
    717714        return $instance;
    718715    }
  • memberfindme/trunk/readme.txt

    r3155935 r3160026  
    55Requires at least: 3.0.2
    66Tested up to: 6.6.2
    7 Stable tag: 6.10
     7Stable tag: 6.12
    88License: GPL2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    346346* Adds support for WP ext object cache core functions
    347347* Added meta crawler user agent
     348
     349= 6.12 =
     350* Fixes issues with event widget in block editor
Note: See TracChangeset for help on using the changeset viewer.