Changeset 3160026
- Timestamp:
- 09/30/2024 05:52:19 PM (18 months ago)
- Location:
- memberfindme
- Files:
-
- 3 added
- 2 edited
-
tags/6.12 (added)
-
tags/6.12/memberfindme.php (added)
-
tags/6.12/readme.txt (added)
-
trunk/memberfindme.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
memberfindme/trunk/memberfindme.php
r3155935 r3160026 4 4 Plugin URI: https://membershipworks.com 5 5 Description: Membership Works plugin 6 Version: 6.1 16 Version: 6.12 7 7 Author: MembershipWorks 8 8 Author URI: https://membershipworks.com … … 577 577 if (empty($instance['org'])) 578 578 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'=>'')); 580 580 $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())); 581 581 if (empty($dat)) … … 630 630 $instance['grp']=isset($new_instance['grp'])?$new_instance['grp']:''; 631 631 $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'; 636 636 return $instance; 637 637 } 638 638 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'=>'')); 640 640 $title=strip_tags($instance['title']); 641 641 $grp=$instance['grp']; … … 646 646 .'<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>' 647 647 .'<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>'; 650 650 } 651 651 } … … 711 711 $instance['act']=strval(intval($new_instance['act'])); 712 712 $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'; 717 714 return $instance; 718 715 } -
memberfindme/trunk/readme.txt
r3155935 r3160026 5 5 Requires at least: 3.0.2 6 6 Tested up to: 6.6.2 7 Stable tag: 6.1 07 Stable tag: 6.12 8 8 License: GPL2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 346 346 * Adds support for WP ext object cache core functions 347 347 * 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.