Changeset 1460932
- Timestamp:
- 07/26/2016 04:12:55 PM (10 years ago)
- Location:
- quickiebar
- Files:
-
- 6 edited
- 1 copied
-
tags/1.8.2 (copied) (copied from quickiebar/trunk)
-
tags/1.8.2/admin/controllers/setup.php (modified) (3 diffs)
-
tags/1.8.2/quickiebar.php (modified) (8 diffs)
-
tags/1.8.2/readme.txt (modified) (2 diffs)
-
trunk/admin/controllers/setup.php (modified) (3 diffs)
-
trunk/quickiebar.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quickiebar/tags/1.8.2/admin/controllers/setup.php
r1085695 r1460932 9 9 10 10 class qb_setup{ 11 11 12 12 var $action; 13 13 14 14 function __construct(){ 15 15 //If setup is not complete, show the setup page in addition to the other pages 16 16 add_action('admin_menu', array($this, 'admin_menu')); 17 17 } 18 18 19 19 function admin_menu(){ 20 20 $page = add_submenu_page('quickiebar', 'Setup', 'Setup', 'manage_options', 'quickiebar', array($this, 'html') ); 21 21 } 22 22 23 23 static function complete_setup($email_address, $subscribed = false, $format = 'php'){ 24 24 25 25 update_option('qb_setup_complete', true); 26 26 update_option('qb_email', $email_address); 27 27 update_option('qb_subscribed', ($subscribed == "true" ? true : false)); 28 28 29 29 $result = true; 30 30 31 31 if($format == 'json'){ 32 32 return json_encode($result); … … 36 36 } 37 37 } 38 38 39 39 //echo out the settings view (html file) file when loading the bars admin page 40 40 function html(){ 41 41 readfile(QB_PLUGIN_PATH . 'admin/views/setup.html'); 42 42 43 43 //enqueue scripts for this view 44 44 $this->enqueue_scripts_for_view(); 45 45 } 46 46 47 47 function enqueue_scripts_for_view(){ 48 48 49 49 //get the current user's email address for populating the setup form 50 global $current_user; 51 get_currentuserinfo(); 50 $current_user = wp_get_current_user(); 52 51 $user_email = $current_user->user_email; 53 52 54 53 wp_enqueue_script('qb-setup', QB_PLUGIN_URL . 'admin/js/setup.js', array('jquery', 'knockout', 'underscore'), microtime(), true); 55 54 wp_localize_script('qb-setup', 'QB_GLOBALS', array( 'QB_ADMIN_NONCE' => wp_create_nonce('qb_admin_nonce') ) ); 56 55 57 56 wp_localize_script('qb-setup', 'qb_setup', array( 58 57 'email' => wp_get_current_user()->user_email, … … 60 59 'website' => get_site_url() 61 60 ) ); 62 61 63 62 } 64 63 } -
quickiebar/tags/1.8.2/quickiebar.php
r1329319 r1460932 4 4 Plugin URI: https://quickiebar.com 5 5 Description: QuickieBar makes it easy for you to convert visitors by adding an attractive and easily customizable conversion bar to the top or bottom of your site. 6 Version: 1.8. 16 Version: 1.8.2 7 7 Author: Phil Baylog 8 8 Author URI: https://quickiebar.com … … 17 17 18 18 global $QB_VERSION; 19 $QB_VERSION = '1.8. 1';19 $QB_VERSION = '1.8.2'; 20 20 21 21 class QuickieBar{ … … 194 194 update_option('qb_bar_zindex', '100'); 195 195 } 196 196 197 197 //New options with 1.8.0 198 198 if(!get_option('qb_custom_post_type_visibility')){ … … 230 230 button_style varchar(55) DEFAULT 'rounded' NOT NULL, 231 231 close_button_visibility varchar(55) DEFAULT 'onhover' NOT NULL, 232 bar_uuid varchar(13) NOT NULL UNIQUE,233 PRIMARY KEY (id) ,234 UNIQUE KEY (bar_uuid)232 bar_uuid varchar(13) NOT NULL, 233 PRIMARY KEY (id) 234 UNIQUE KEY bar_uuid_index (bar_uuid) 235 235 ) " . $charset_collate . " AUTO_INCREMENT=1;"; 236 236 … … 241 241 bar_uuid varchar(13) NOT NULL, 242 242 PRIMARY KEY (id), 243 KEY (user_uuid, bar_uuid) 243 KEY user_uuid_index (user_uuid), 244 KEY bar_uuid_index (bar_uuid) 244 245 ) " . $charset_collate . " AUTO_INCREMENT=1;"; 245 246 … … 250 251 bar_uuid varchar(13) NOT NULL, 251 252 PRIMARY KEY (id), 252 KEY (user_uuid, bar_uuid) 253 KEY user_uuid_index (user_uuid), 254 KEY bar_uuid_index (bar_uuid) 253 255 ) " . $charset_collate . " AUTO_INCREMENT=1;"; 254 256 … … 260 262 //1.7.1 updated lengths of varchar column types for bar_text, button_text, and destination 261 263 //to increase support for html + foreign characters 262 add_option('qb_db_version', '1.7.1'); 264 //1.8.2 added names for primary, unique, and key columns to fix bug w/ duplicated entries being created on dbDelta db updating 265 add_option('qb_db_version', '1.8.2'); 263 266 } 264 267 … … 512 515 else if(is_singular() && !is_singular('post') && !is_page() && !is_attachment()){ 513 516 //custom post type 514 517 515 518 $custom_post_type_visibility = get_option('qb_custom_post_type_visibility'); 516 519 517 520 if($custom_post_type_visibility == 'show'){ 518 521 return true; -
quickiebar/tags/1.8.2/readme.txt
r1329319 r1460932 4 4 Requires at least: 3.8 5 5 Donate Link: https://quickiebar.com/pricing 6 Tested up to: 4. 4.17 Stable tag: 1.8. 16 Tested up to: 4.5.3 7 Stable tag: 1.8.2 8 8 License: GPLv2 9 9 … … 134 134 == Changelog == 135 135 136 = 1.8.2 | Jul 26, 2016 = 137 * Fix: Fixed issue w/ duplicated db records being created in some WP instances on db update 138 * Fix: Removed deprecated get_currentuserinfo call 139 136 140 = 1.8.1 | Jan 15, 2016 = 137 141 * Fix: Links to "call", "sms", and "skype" prefixes can now be added as QuickieBar actions -
quickiebar/trunk/admin/controllers/setup.php
r1085695 r1460932 9 9 10 10 class qb_setup{ 11 11 12 12 var $action; 13 13 14 14 function __construct(){ 15 15 //If setup is not complete, show the setup page in addition to the other pages 16 16 add_action('admin_menu', array($this, 'admin_menu')); 17 17 } 18 18 19 19 function admin_menu(){ 20 20 $page = add_submenu_page('quickiebar', 'Setup', 'Setup', 'manage_options', 'quickiebar', array($this, 'html') ); 21 21 } 22 22 23 23 static function complete_setup($email_address, $subscribed = false, $format = 'php'){ 24 24 25 25 update_option('qb_setup_complete', true); 26 26 update_option('qb_email', $email_address); 27 27 update_option('qb_subscribed', ($subscribed == "true" ? true : false)); 28 28 29 29 $result = true; 30 30 31 31 if($format == 'json'){ 32 32 return json_encode($result); … … 36 36 } 37 37 } 38 38 39 39 //echo out the settings view (html file) file when loading the bars admin page 40 40 function html(){ 41 41 readfile(QB_PLUGIN_PATH . 'admin/views/setup.html'); 42 42 43 43 //enqueue scripts for this view 44 44 $this->enqueue_scripts_for_view(); 45 45 } 46 46 47 47 function enqueue_scripts_for_view(){ 48 48 49 49 //get the current user's email address for populating the setup form 50 global $current_user; 51 get_currentuserinfo(); 50 $current_user = wp_get_current_user(); 52 51 $user_email = $current_user->user_email; 53 52 54 53 wp_enqueue_script('qb-setup', QB_PLUGIN_URL . 'admin/js/setup.js', array('jquery', 'knockout', 'underscore'), microtime(), true); 55 54 wp_localize_script('qb-setup', 'QB_GLOBALS', array( 'QB_ADMIN_NONCE' => wp_create_nonce('qb_admin_nonce') ) ); 56 55 57 56 wp_localize_script('qb-setup', 'qb_setup', array( 58 57 'email' => wp_get_current_user()->user_email, … … 60 59 'website' => get_site_url() 61 60 ) ); 62 61 63 62 } 64 63 } -
quickiebar/trunk/quickiebar.php
r1329319 r1460932 4 4 Plugin URI: https://quickiebar.com 5 5 Description: QuickieBar makes it easy for you to convert visitors by adding an attractive and easily customizable conversion bar to the top or bottom of your site. 6 Version: 1.8. 16 Version: 1.8.2 7 7 Author: Phil Baylog 8 8 Author URI: https://quickiebar.com … … 17 17 18 18 global $QB_VERSION; 19 $QB_VERSION = '1.8. 1';19 $QB_VERSION = '1.8.2'; 20 20 21 21 class QuickieBar{ … … 194 194 update_option('qb_bar_zindex', '100'); 195 195 } 196 196 197 197 //New options with 1.8.0 198 198 if(!get_option('qb_custom_post_type_visibility')){ … … 230 230 button_style varchar(55) DEFAULT 'rounded' NOT NULL, 231 231 close_button_visibility varchar(55) DEFAULT 'onhover' NOT NULL, 232 bar_uuid varchar(13) NOT NULL UNIQUE,233 PRIMARY KEY (id) ,234 UNIQUE KEY (bar_uuid)232 bar_uuid varchar(13) NOT NULL, 233 PRIMARY KEY (id) 234 UNIQUE KEY bar_uuid_index (bar_uuid) 235 235 ) " . $charset_collate . " AUTO_INCREMENT=1;"; 236 236 … … 241 241 bar_uuid varchar(13) NOT NULL, 242 242 PRIMARY KEY (id), 243 KEY (user_uuid, bar_uuid) 243 KEY user_uuid_index (user_uuid), 244 KEY bar_uuid_index (bar_uuid) 244 245 ) " . $charset_collate . " AUTO_INCREMENT=1;"; 245 246 … … 250 251 bar_uuid varchar(13) NOT NULL, 251 252 PRIMARY KEY (id), 252 KEY (user_uuid, bar_uuid) 253 KEY user_uuid_index (user_uuid), 254 KEY bar_uuid_index (bar_uuid) 253 255 ) " . $charset_collate . " AUTO_INCREMENT=1;"; 254 256 … … 260 262 //1.7.1 updated lengths of varchar column types for bar_text, button_text, and destination 261 263 //to increase support for html + foreign characters 262 add_option('qb_db_version', '1.7.1'); 264 //1.8.2 added names for primary, unique, and key columns to fix bug w/ duplicated entries being created on dbDelta db updating 265 add_option('qb_db_version', '1.8.2'); 263 266 } 264 267 … … 512 515 else if(is_singular() && !is_singular('post') && !is_page() && !is_attachment()){ 513 516 //custom post type 514 517 515 518 $custom_post_type_visibility = get_option('qb_custom_post_type_visibility'); 516 519 517 520 if($custom_post_type_visibility == 'show'){ 518 521 return true; -
quickiebar/trunk/readme.txt
r1329319 r1460932 4 4 Requires at least: 3.8 5 5 Donate Link: https://quickiebar.com/pricing 6 Tested up to: 4. 4.17 Stable tag: 1.8. 16 Tested up to: 4.5.3 7 Stable tag: 1.8.2 8 8 License: GPLv2 9 9 … … 134 134 == Changelog == 135 135 136 = 1.8.2 | Jul 26, 2016 = 137 * Fix: Fixed issue w/ duplicated db records being created in some WP instances on db update 138 * Fix: Removed deprecated get_currentuserinfo call 139 136 140 = 1.8.1 | Jan 15, 2016 = 137 141 * Fix: Links to "call", "sms", and "skype" prefixes can now be added as QuickieBar actions
Note: See TracChangeset
for help on using the changeset viewer.