Changeset 3269698
- Timestamp:
- 04/09/2025 12:44:52 PM (12 months ago)
- Location:
- ghl-connect
- Files:
-
- 80 added
- 15 edited
-
tags/2.0.8 (added)
-
tags/2.0.8/LICENSE.txt (added)
-
tags/2.0.8/README.txt (added)
-
tags/2.0.8/admin (added)
-
tags/2.0.8/admin/class-ghl-connect-admin.php (added)
-
tags/2.0.8/admin/css (added)
-
tags/2.0.8/admin/css/admin-styles.css (added)
-
tags/2.0.8/admin/css/ghl-connect-admin.css (added)
-
tags/2.0.8/admin/css/select2.min.css (added)
-
tags/2.0.8/admin/index.php (added)
-
tags/2.0.8/admin/js (added)
-
tags/2.0.8/admin/js/admin-scripts.js (added)
-
tags/2.0.8/admin/js/ghl-connect-admin.js (added)
-
tags/2.0.8/admin/js/select2.min.js (added)
-
tags/2.0.8/admin/partials (added)
-
tags/2.0.8/admin/partials/ghl-connect-admin-display.php (added)
-
tags/2.0.8/admin/uploads (added)
-
tags/2.0.8/admin/uploads/customization.jpg (added)
-
tags/2.0.8/admin/uploads/customization.png (added)
-
tags/2.0.8/admin/uploads/documentation.jpg (added)
-
tags/2.0.8/admin/uploads/documentation.png (added)
-
tags/2.0.8/admin/uploads/like.png (added)
-
tags/2.0.8/admin/uploads/remove.png (added)
-
tags/2.0.8/admin/uploads/support.jpg (added)
-
tags/2.0.8/admin/uploads/support.png (added)
-
tags/2.0.8/admin/uploads/yes.png (added)
-
tags/2.0.8/definitions.php (added)
-
tags/2.0.8/ghl-connect.php (added)
-
tags/2.0.8/ghl_api (added)
-
tags/2.0.8/ghl_api/ghl-all-apis.php (added)
-
tags/2.0.8/ghl_api/ghl-contacts.php (added)
-
tags/2.0.8/ghl_api/ghl-create-invoice-number.php (added)
-
tags/2.0.8/ghl_api/ghl-get-campaigns.php (added)
-
tags/2.0.8/ghl_api/ghl-get-tags.php (added)
-
tags/2.0.8/ghl_api/ghl-get-token.php (added)
-
tags/2.0.8/ghl_api/ghl-get-workflows.php (added)
-
tags/2.0.8/ghl_api/ghl-invoice.php (added)
-
tags/2.0.8/ghl_api/ghl-location-name.php (added)
-
tags/2.0.8/images (added)
-
tags/2.0.8/images/Boom-Fest-logo.png (added)
-
tags/2.0.8/images/GHL-Conn-Woo-Free.png (added)
-
tags/2.0.8/images/GHL-Conn-Woo-Pro.png (added)
-
tags/2.0.8/images/Rev-for-Woo-logo.png (added)
-
tags/2.0.8/images/ghl-cf7-free.png (added)
-
tags/2.0.8/images/ghl-cf7-pro.png (added)
-
tags/2.0.8/images/ghl-gf-free.png (added)
-
tags/2.0.8/images/ghl-gf-pro.png (added)
-
tags/2.0.8/images/ghl-jotform-free.png (added)
-
tags/2.0.8/images/ghl-jotform-pro.png (added)
-
tags/2.0.8/images/ghlconnect-logo.png (added)
-
tags/2.0.8/includes (added)
-
tags/2.0.8/includes/class-ghl-connect-activator.php (added)
-
tags/2.0.8/includes/class-ghl-connect-deactivator.php (added)
-
tags/2.0.8/includes/class-ghl-connect-i18n.php (added)
-
tags/2.0.8/includes/class-ghl-connect-loader.php (added)
-
tags/2.0.8/includes/class-ghl-connect.php (added)
-
tags/2.0.8/includes/ghl-connect-sync-users.php (added)
-
tags/2.0.8/includes/ghl-connect-upgrade-to-premium.php (added)
-
tags/2.0.8/includes/help-page.php (added)
-
tags/2.0.8/includes/helpers.php (added)
-
tags/2.0.8/includes/index.php (added)
-
tags/2.0.8/includes/our-products.php (added)
-
tags/2.0.8/includes/settings-form.php (added)
-
tags/2.0.8/includes/settings-page.php (added)
-
tags/2.0.8/includes/woo-ghl.php (added)
-
tags/2.0.8/includes/woo-product-page-settings.php (added)
-
tags/2.0.8/includes/woo-trigger-form.php (added)
-
tags/2.0.8/index.php (added)
-
tags/2.0.8/languages (added)
-
tags/2.0.8/languages/ghl-connect.pot (added)
-
tags/2.0.8/public (added)
-
tags/2.0.8/public/class-ghl-connect-public.php (added)
-
tags/2.0.8/public/css (added)
-
tags/2.0.8/public/css/ghl-connect-public.css (added)
-
tags/2.0.8/public/index.php (added)
-
tags/2.0.8/public/js (added)
-
tags/2.0.8/public/js/ghl-connect-public.js (added)
-
tags/2.0.8/public/partials (added)
-
tags/2.0.8/public/partials/ghl-connect-public-display.php (added)
-
tags/2.0.8/uninstall.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/class-ghl-connect-admin.php (modified) (6 diffs)
-
trunk/admin/partials/ghl-connect-admin-display.php (modified) (1 diff)
-
trunk/ghl-connect.php (modified) (4 diffs)
-
trunk/ghl_api/ghl-get-token.php (modified) (2 diffs)
-
trunk/includes/class-ghl-connect-activator.php (modified) (3 diffs)
-
trunk/includes/class-ghl-connect-deactivator.php (modified) (3 diffs)
-
trunk/includes/class-ghl-connect-i18n.php (modified) (3 diffs)
-
trunk/includes/class-ghl-connect-loader.php (modified) (8 diffs)
-
trunk/includes/class-ghl-connect.php (modified) (15 diffs)
-
trunk/includes/helpers.php (modified) (1 diff)
-
trunk/includes/settings-form.php (modified) (1 diff)
-
trunk/public/class-ghl-connect-public.php (modified) (6 diffs)
-
trunk/public/partials/ghl-connect-public-display.php (modified) (1 diff)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ghl-connect/trunk/README.txt
r3268297 r3269698 5 5 Requires at least: 4.0 6 6 Tested up to: 6.7 7 Stable tag: 2.0. 77 Stable tag: 2.0.8 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 116 116 117 117 == Changelog == 118 = 2.0.8 = 119 Bugs Fixes. 120 118 121 = 2.0.7 = 119 122 UI enhancements for an improved user experience. … … 151 154 152 155 == Upgrade Notice == 156 = 2.0.8 = 157 Bugs Fixes. 158 153 159 = 2.0.7 = 154 160 UI enhancements for an improved user experience. -
ghl-connect/trunk/admin/class-ghl-connect-admin.php
r3268297 r3269698 5 5 * 6 6 * @link https://https://www.ibsofts.com 7 * @since 2.0. 77 * @since 2.0.8 8 8 * 9 9 * @package GHLCONNECT … … 27 27 * The ID of this plugin. 28 28 * 29 * @since 2.0. 729 * @since 2.0.8 30 30 * @access private 31 31 * @var string $plugin_name The ID of this plugin. … … 36 36 * The version of this plugin. 37 37 * 38 * @since 2.0. 738 * @since 2.0.8 39 39 * @access private 40 40 * @var string $version The current version of this plugin. … … 45 45 * Initialize the class and set its properties. 46 46 * 47 * @since 2.0. 747 * @since 2.0.8 48 48 * @param string $plugin_name The name of this plugin. 49 49 * @param string $version The version of this plugin. … … 59 59 * Register the stylesheets for the admin area. 60 60 * 61 * @since 2.0. 761 * @since 2.0.8 62 62 */ 63 63 public function enqueue_styles() … … 84 84 * Register the JavaScript for the admin area. 85 85 * 86 * @since 2.0. 786 * @since 2.0.8 87 87 */ 88 88 public function enqueue_scripts() -
ghl-connect/trunk/admin/partials/ghl-connect-admin-display.php
r3268297 r3269698 7 7 * 8 8 * @link https://https://www.ibsofts.com 9 * @since 2.0. 79 * @since 2.0.8 10 10 * 11 11 * @package GHLCONNECT -
ghl-connect/trunk/ghl-connect.php
r3268297 r3269698 10 10 * 11 11 * @link https://www.ibsofts.com 12 * @since 2.0. 712 * @since 2.0.8 13 13 * @package GHLCONNECT 14 14 * … … 17 17 * Plugin URI: https://www.ibsofts.com/plugins/ghl-connect 18 18 * Description: This plugin will connect the popular CRM Go High Level(GHL) to the most popular content management software WordPress. 19 * Version: 2.0. 719 * Version: 2.0.8 20 20 * Author: iB Softs 21 21 * Author URI: https://www.ibsofts.com/ … … 33 33 /** 34 34 * Currently plugin version. 35 * Start at version 2.0. 7and use SemVer - https://semver.org35 * Start at version 2.0.8 and use SemVer - https://semver.org 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('GHLCONNECT_VERSION', '2.0. 7');38 define('GHLCONNECT_VERSION', '2.0.8'); 39 39 define('GHLCONNECT_PLUGIN_BASENAME', plugin_basename(__FILE__)); 40 40 define('GHLCONNECT_LOCATION_CONNECTED', false); … … 95 95 * not affect the page life cycle. 96 96 * 97 * @since 2.0. 797 * @since 2.0.8 98 98 */ 99 99 if (! function_exists('ghlconnect_run')) { -
ghl-connect/trunk/ghl_api/ghl-get-token.php
r3203187 r3269698 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 add_action('init', function() {4 5 if ( isset( $_GET['code'] ) ) {6 $code = sanitize_text_field( $_GET['code'] );7 $ghlconnect_client_id = get_option( 'ghlconnect_client_id' );8 $ghlconnect_client_secret = get_option( 'ghlconnect_client_secret' );9 10 $result = ghlconnect_get_first_auth_code($code, $ghlconnect_client_id, $ghlconnect_client_secret);11 12 $ghlconnect_access_token = $result->access_token;13 $ghlconnect_refresh_token = $result->refresh_token;14 $ghlconnect_locationId = $result->locationId;15 // Save data16 update_option( 'ghlconnect_access_token', $ghlconnect_access_token );17 update_option( 'ghlconnect_refresh_token', $ghlconnect_refresh_token );18 update_option( 'ghlconnect_locationId', $ghlconnect_locationId );19 update_option( 'ghlconnect_location_connected', 1 );20 21 // delete old transient (if exists any)22 delete_transient('ghlconnect_location_tags');23 delete_transient('ghlconnect_location_workflow');24 25 wp_redirect('admin.php?page=ib-ghlconnect&tab=cwghl');26 exit();27 }28 });29 3 30 4 add_action('init', function() { … … 83 57 return null; 84 58 } 85 86 function ghlconnect_get_first_auth_code($code, $client_id, $client_secret){87 88 $endpoint = GHLCONNECT_GET_TOKEN_API;89 $body = array(90 'client_id' => $client_id,91 'client_secret' => $client_secret,92 'grant_type' => 'authorization_code',93 'code' => $code94 );95 96 $request_args = array(97 'body' => $body,98 'headers' => array(99 'Content-Type' => 'application/x-www-form-urlencoded',100 ),101 );102 103 $response = wp_remote_post( $endpoint, $request_args );104 $http_code = wp_remote_retrieve_response_code( $response );105 106 if ( 200 === $http_code ) {107 108 $body = json_decode( wp_remote_retrieve_body( $response ) );109 return $body;110 }111 } -
ghl-connect/trunk/includes/class-ghl-connect-activator.php
r3268297 r3269698 5 5 * 6 6 * @link https://https://www.ibsofts.com 7 * @since 2.0. 77 * @since 2.0.8 8 8 * 9 9 * @package GHLCONNECT … … 16 16 * This class defines all code necessary to run during the plugin's activation. 17 17 * 18 * @since 2.0. 718 * @since 2.0.8 19 19 * @package GHLCONNECT 20 20 * @subpackage GHLCONNECT/includes … … 29 29 * Long Description. 30 30 * 31 * @since 2.0. 731 * @since 2.0.8 32 32 */ 33 33 public static function activate() {} -
ghl-connect/trunk/includes/class-ghl-connect-deactivator.php
r3268297 r3269698 5 5 * 6 6 * @link https://https://www.ibsofts.com 7 * @since 2.0. 77 * @since 2.0.8 8 8 * 9 9 * @package GHLCONNECT … … 16 16 * This class defines all code necessary to run during the plugin's deactivation. 17 17 * 18 * @since 2.0. 718 * @since 2.0.8 19 19 * @package GHLCONNECT 20 20 * @subpackage GHLCONNECT/includes … … 29 29 * Long Description. 30 30 * 31 * @since 2.0. 731 * @since 2.0.8 32 32 */ 33 33 public static function deactivate() {} -
ghl-connect/trunk/includes/class-ghl-connect-i18n.php
r3268297 r3269698 8 8 * 9 9 * @link https://https://www.ibsofts.com 10 * @since 2.0. 710 * @since 2.0.8 11 11 * 12 12 * @package GHLCONNECT … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 2.0. 722 * @since 2.0.8 23 23 * @package GHLCONNECT 24 24 * @subpackage GHLCONNECT/includes … … 32 32 * Load the plugin text domain for translation. 33 33 * 34 * @since 2.0. 734 * @since 2.0.8 35 35 */ 36 36 public function load_plugin_textdomain() -
ghl-connect/trunk/includes/class-ghl-connect-loader.php
r3268297 r3269698 5 5 * 6 6 * @link https://https://www.ibsofts.com 7 * @since 2.0. 77 * @since 2.0.8 8 8 * 9 9 * @package GHLCONNECT … … 28 28 * The array of actions registered with WordPress. 29 29 * 30 * @since 2.0. 730 * @since 2.0.8 31 31 * @access protected 32 32 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 37 37 * The array of filters registered with WordPress. 38 38 * 39 * @since 2.0. 739 * @since 2.0.8 40 40 * @access protected 41 41 * @var array $filters The filters registered with WordPress to fire when the plugin loads. … … 46 46 * Initialize the collections used to maintain the actions and filters. 47 47 * 48 * @since 2.0. 748 * @since 2.0.8 49 49 */ 50 50 public function __construct() … … 58 58 * Add a new action to the collection to be registered with WordPress. 59 59 * 60 * @since 2.0. 760 * @since 2.0.8 61 61 * @param string $hook The name of the WordPress action that is being registered. 62 62 * @param object $component A reference to the instance of the object on which the action is defined. … … 73 73 * Add a new filter to the collection to be registered with WordPress. 74 74 * 75 * @since 2.0. 775 * @since 2.0.8 76 76 * @param string $hook The name of the WordPress filter that is being registered. 77 77 * @param object $component A reference to the instance of the object on which the filter is defined. … … 89 89 * collection. 90 90 * 91 * @since 2.0. 791 * @since 2.0.8 92 92 * @access private 93 93 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). … … 116 116 * Register the filters and actions with WordPress. 117 117 * 118 * @since 2.0. 7118 * @since 2.0.8 119 119 */ 120 120 public function run() -
ghl-connect/trunk/includes/class-ghl-connect.php
r3268297 r3269698 8 8 * 9 9 * @link https://https://www.ibsofts.com 10 * @since 2.0. 710 * @since 2.0.8 11 11 * 12 12 * @package GHLCONNECT … … 23 23 * version of the plugin. 24 24 * 25 * @since 2.0. 725 * @since 2.0.8 26 26 * @package GHLCONNECT 27 27 * @subpackage GHLCONNECT/includes … … 35 35 * the plugin. 36 36 * 37 * @since 2.0. 737 * @since 2.0.8 38 38 * @access protected 39 39 * @var GHLCONNECT_Loader $loader Maintains and registers all hooks for the plugin. … … 44 44 * The unique identifier of this plugin. 45 45 * 46 * @since 2.0. 746 * @since 2.0.8 47 47 * @access protected 48 48 * @var string $plugin_name The string used to uniquely identify this plugin. … … 53 53 * The current version of the plugin. 54 54 * 55 * @since 2.0. 755 * @since 2.0.8 56 56 * @access protected 57 57 * @var string $version The current version of the plugin. … … 66 66 * the public-facing side of the site. 67 67 * 68 * @since 2.0. 768 * @since 2.0.8 69 69 */ 70 70 public function __construct() … … 73 73 $this->version = GHLCONNECT_VERSION; 74 74 } else { 75 $this->version = '2.0. 7';75 $this->version = '2.0.8'; 76 76 } 77 77 $this->plugin_name = 'ghl-connect'; … … 96 96 * with WordPress. 97 97 * 98 * @since 2.0. 798 * @since 2.0.8 99 99 * @access private 100 100 */ … … 140 140 * with WordPress. 141 141 * 142 * @since 2.0. 7142 * @since 2.0.8 143 143 * @access private 144 144 */ … … 155 155 * of the plugin. 156 156 * 157 * @since 2.0. 7157 * @since 2.0.8 158 158 * @access private 159 159 */ … … 173 173 * of the plugin. 174 174 * 175 * @since 2.0. 7175 * @since 2.0.8 176 176 * @access private 177 177 */ … … 188 188 * Run the loader to execute all of the hooks with WordPress. 189 189 * 190 * @since 2.0. 7190 * @since 2.0.8 191 191 */ 192 192 public function run() … … 199 199 * WordPress and to define internationalization functionality. 200 200 * 201 * @since 2.0. 7201 * @since 2.0.8 202 202 * @return string The name of the plugin. 203 203 */ … … 210 210 * The reference to the class that orchestrates the hooks with the plugin. 211 211 * 212 * @since 2.0. 7212 * @since 2.0.8 213 213 * @return GHLCONNECT_Loader Orchestrates the hooks of the plugin. 214 214 */ … … 221 221 * Retrieve the version number of the plugin. 222 222 * 223 * @since 2.0. 7223 * @since 2.0.8 224 224 * @return string The version number of the plugin. 225 225 */ -
ghl-connect/trunk/includes/helpers.php
r3268297 r3269698 1 1 <?php 2 // includes /helpers.php2 // includes helpers function 3 3 4 4 function send_plugin_data($plugin_slug, $endpoint, $user_email = null) -
ghl-connect/trunk/includes/settings-form.php
r3203187 r3269698 34 34 $connect_url = GHLCONNECT_AUTH_URL . "?get_code=1&redirect_page={$redirect_page}"; 35 35 36 // if ( ! empty( $ghlconnect_client_id ) && ! str_contains( $ghlconnect_client_id, 'lq4sb5tt' ) ) {37 38 // $connect_url = $auth_end_point . "?response_type=code&redirect_uri={$redirect_uri}&client_id={$ghlconnect_client_id}&scope={$scopes}";39 // }40 36 41 37 ?> -
ghl-connect/trunk/public/class-ghl-connect-public.php
r3268297 r3269698 5 5 * 6 6 * @link https://https://www.ibsofts.com 7 * @since 2.0. 77 * @since 2.0.8 8 8 * 9 9 * @package GHLCONNECT … … 26 26 /** 27 27 * The ID of this plugin. 28 *2.0. 729 * @since 2.0. 728 *2.0.8 29 * @since 2.0.8 30 30 * @access private 31 31 * @var string $plugin_name The ID of this plugin. … … 35 35 /** 36 36 * The version of this plugin. 37 *2.0. 738 * @since 2.0. 737 *2.0.8 38 * @since 2.0.8 39 39 * @access private 40 40 * @var string $version The current version of this plugin. … … 44 44 /** 45 45 * Initialize the class and set its properties. 46 *2.0. 747 * @since 2.0. 746 *2.0.8 47 * @since 2.0.8 48 48 * @param string $plugin_name The name of the plugin. 49 49 * @param string $version The version of this plugin. … … 58 58 /** 59 59 * Register the stylesheets for the public-facing side of the site. 60 *2.0. 761 * @since 2.0. 760 *2.0.8 61 * @since 2.0.8 62 62 */ 63 63 public function enqueue_styles() … … 82 82 * Register the JavaScript for the public-facing side of the site. 83 83 * 84 * @since 2.0. 784 * @since 2.0.8 85 85 */ 86 86 public function enqueue_scripts() -
ghl-connect/trunk/public/partials/ghl-connect-public-display.php
r3268297 r3269698 7 7 * 8 8 * @link https://https://www.ibsofts.com 9 * @since 2.0. 79 * @since 2.0.8 10 10 * 11 11 * @package GHLCONNECT -
ghl-connect/trunk/uninstall.php
r3268297 r3269698 21 21 * 22 22 * @link https://www.ibsofts.com 23 * @since 2.0. 723 * @since 2.0.8 24 24 * 25 25 * @package GHLCONNECT
Note: See TracChangeset
for help on using the changeset viewer.