Changeset 1969690
- Timestamp:
- 11/06/2018 10:00:36 AM (7 years ago)
- Location:
- storespot
- Files:
-
- 10 edited
- 1 copied
-
tags/1.0.8 (copied) (copied from storespot/trunk)
-
tags/1.0.8/admin/class-storespot-api.php (modified) (1 diff)
-
tags/1.0.8/includes/class-storespot.php (modified) (2 diffs)
-
tags/1.0.8/public/class-storespot-facebook-pixel.php (modified) (2 diffs)
-
tags/1.0.8/readme.txt (modified) (2 diffs)
-
tags/1.0.8/storespot.php (modified) (2 diffs)
-
trunk/admin/class-storespot-api.php (modified) (1 diff)
-
trunk/includes/class-storespot.php (modified) (2 diffs)
-
trunk/public/class-storespot-facebook-pixel.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/storespot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
storespot/tags/1.0.8/admin/class-storespot-api.php
r1955784 r1969690 58 58 public function get_storespot_settings($request) { 59 59 if ( wp_next_scheduled( 'stsp_product_feed_update' ) ) { 60 $cronjob = wp_next_scheduled( 'stsp_product_feed_update' ); 60 $cronjob = date( 61 'Y-m-d h:i:s', 62 wp_next_scheduled( 'stsp_product_feed_update' ) 63 ); 61 64 } else { 62 65 $cronjob = false; 63 66 } 64 67 68 if ( ! function_exists( 'get_plugins' ) ) { 69 require_once ABSPATH . 'wp-admin/includes/plugin.php'; 70 } 71 72 $plugins = get_plugins(); 73 $plugins_view = array(); 74 foreach( $plugins as $plugin ) { 75 array_push($plugins_view, array( 76 'name' => $plugin['Name'], 77 'version' => $plugin['Version'], 78 )); 79 } 80 65 81 $data = array( 66 'cronjob' => $cronjob, 67 'plugin_version' => STORESPOT_VERSION, 68 'settings' => get_option( ' storespot_settings' ), 82 'cronjob' => $cronjob, 83 'plugin_version' => STORESPOT_VERSION, 84 'settings' => get_option( ' storespot_settings' ), 85 'wp_version' => get_bloginfo( 'version' ), 86 'wc_version' => get_option( 'woocommerce_version' ), 87 'plugins' => $plugins_view, 69 88 ); 89 70 90 $response = rest_ensure_response($data); 71 91 $response->set_status(200); -
storespot/tags/1.0.8/includes/class-storespot.php
r1957373 r1969690 31 31 public function init() { 32 32 if ( class_exists( 'WC_Integration' ) ) { 33 $this->load_dependencies(); 34 $this->define_admin_hooks(); 35 $this->define_public_hooks(); 36 $this->define_api_hooks(); 37 $this->run(); 33 $loaded = $this->load_dependencies(); 34 if( $loaded ) { 35 $this->define_admin_hooks(); 36 $this->define_public_hooks(); 37 $this->define_api_hooks(); 38 $this->run(); 39 } 38 40 } 39 41 } … … 41 43 private function load_dependencies() { 42 44 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-storespot-loader.php'; 43 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-product -feed.php';45 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-productfeed.php'; 44 46 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-messages.php'; 45 47 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-api.php'; 46 48 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-storespot-events.php'; 47 49 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-storespot-facebook-pixel.php'; 48 $this->loader = new StoreSpot_Loader(); 50 51 if( 52 ! class_exists( 'StoreSpot_Loader' ) || 53 ! class_exists( 'StoreSpot_Product_Feed' ) || 54 ! class_exists( 'StoreSpot_Messages' ) || 55 ! class_exists( 'StoreSpot_API' ) || 56 ! class_exists( 'StoreSpot_Events' ) || 57 ! class_exists( 'StoreSpot_Facebook_Pixel' ) 58 ) { 59 return false; 60 } else { 61 $this->loader = new StoreSpot_Loader(); 62 return true; 63 } 49 64 } 50 65 -
storespot/tags/1.0.8/public/class-storespot-facebook-pixel.php
r1957373 r1969690 12 12 public function pixel_code() { 13 13 return sprintf(" 14 <!-- StoreSpot Facebook Integration Begin ---> 14 15 <script type='text/javascript'> 15 16 !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? … … 21 22 fbq('track', 'PageView'); 22 23 </script> 24 <!-- StoreSpot Facebook Integration End ---> 23 25 ", 24 26 self::get_pixel_id() -
storespot/tags/1.0.8/readme.txt
r1957373 r1969690 5 5 Tested up to: 4.9 6 6 Requires PHP: 5.6 7 Stable tag: 1.0. 77 Stable tag: 1.0.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 1.0.8 = 53 * Improve memory usage in feed generation 54 52 55 = 1.0.7 = 53 56 * Compatibility with Facebook for WooCommerce plugin -
storespot/tags/1.0.8/storespot.php
r1957373 r1969690 4 4 * Plugin URI: https://storespot.io/ 5 5 * Description: Stop leaving money on the table. Automate your retargeting ads with StoreSpot. 6 * Version: 1.0. 76 * Version: 1.0.8 7 7 * Author: StoreSpot 8 8 **/ … … 11 11 if ( ! defined( 'WPINC' ) ) { die; } 12 12 13 define( 'STORESPOT_VERSION', '1.0. 7' );13 define( 'STORESPOT_VERSION', '1.0.8' ); 14 14 15 15 function activate_storespot() { -
storespot/trunk/admin/class-storespot-api.php
r1955784 r1969690 58 58 public function get_storespot_settings($request) { 59 59 if ( wp_next_scheduled( 'stsp_product_feed_update' ) ) { 60 $cronjob = wp_next_scheduled( 'stsp_product_feed_update' ); 60 $cronjob = date( 61 'Y-m-d h:i:s', 62 wp_next_scheduled( 'stsp_product_feed_update' ) 63 ); 61 64 } else { 62 65 $cronjob = false; 63 66 } 64 67 68 if ( ! function_exists( 'get_plugins' ) ) { 69 require_once ABSPATH . 'wp-admin/includes/plugin.php'; 70 } 71 72 $plugins = get_plugins(); 73 $plugins_view = array(); 74 foreach( $plugins as $plugin ) { 75 array_push($plugins_view, array( 76 'name' => $plugin['Name'], 77 'version' => $plugin['Version'], 78 )); 79 } 80 65 81 $data = array( 66 'cronjob' => $cronjob, 67 'plugin_version' => STORESPOT_VERSION, 68 'settings' => get_option( ' storespot_settings' ), 82 'cronjob' => $cronjob, 83 'plugin_version' => STORESPOT_VERSION, 84 'settings' => get_option( ' storespot_settings' ), 85 'wp_version' => get_bloginfo( 'version' ), 86 'wc_version' => get_option( 'woocommerce_version' ), 87 'plugins' => $plugins_view, 69 88 ); 89 70 90 $response = rest_ensure_response($data); 71 91 $response->set_status(200); -
storespot/trunk/includes/class-storespot.php
r1957373 r1969690 31 31 public function init() { 32 32 if ( class_exists( 'WC_Integration' ) ) { 33 $this->load_dependencies(); 34 $this->define_admin_hooks(); 35 $this->define_public_hooks(); 36 $this->define_api_hooks(); 37 $this->run(); 33 $loaded = $this->load_dependencies(); 34 if( $loaded ) { 35 $this->define_admin_hooks(); 36 $this->define_public_hooks(); 37 $this->define_api_hooks(); 38 $this->run(); 39 } 38 40 } 39 41 } … … 41 43 private function load_dependencies() { 42 44 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-storespot-loader.php'; 43 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-product -feed.php';45 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-productfeed.php'; 44 46 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-messages.php'; 45 47 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-storespot-api.php'; 46 48 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-storespot-events.php'; 47 49 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-storespot-facebook-pixel.php'; 48 $this->loader = new StoreSpot_Loader(); 50 51 if( 52 ! class_exists( 'StoreSpot_Loader' ) || 53 ! class_exists( 'StoreSpot_Product_Feed' ) || 54 ! class_exists( 'StoreSpot_Messages' ) || 55 ! class_exists( 'StoreSpot_API' ) || 56 ! class_exists( 'StoreSpot_Events' ) || 57 ! class_exists( 'StoreSpot_Facebook_Pixel' ) 58 ) { 59 return false; 60 } else { 61 $this->loader = new StoreSpot_Loader(); 62 return true; 63 } 49 64 } 50 65 -
storespot/trunk/public/class-storespot-facebook-pixel.php
r1957373 r1969690 12 12 public function pixel_code() { 13 13 return sprintf(" 14 <!-- StoreSpot Facebook Integration Begin ---> 14 15 <script type='text/javascript'> 15 16 !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? … … 21 22 fbq('track', 'PageView'); 22 23 </script> 24 <!-- StoreSpot Facebook Integration End ---> 23 25 ", 24 26 self::get_pixel_id() -
storespot/trunk/readme.txt
r1957373 r1969690 5 5 Tested up to: 4.9 6 6 Requires PHP: 5.6 7 Stable tag: 1.0. 77 Stable tag: 1.0.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 1.0.8 = 53 * Improve memory usage in feed generation 54 52 55 = 1.0.7 = 53 56 * Compatibility with Facebook for WooCommerce plugin -
storespot/trunk/storespot.php
r1957373 r1969690 4 4 * Plugin URI: https://storespot.io/ 5 5 * Description: Stop leaving money on the table. Automate your retargeting ads with StoreSpot. 6 * Version: 1.0. 76 * Version: 1.0.8 7 7 * Author: StoreSpot 8 8 **/ … … 11 11 if ( ! defined( 'WPINC' ) ) { die; } 12 12 13 define( 'STORESPOT_VERSION', '1.0. 7' );13 define( 'STORESPOT_VERSION', '1.0.8' ); 14 14 15 15 function activate_storespot() {
Note: See TracChangeset
for help on using the changeset viewer.