Changeset 1838239
- Timestamp:
- 03/11/2018 08:51:39 PM (8 years ago)
- Location:
- leadboxer/trunk
- Files:
-
- 4 edited
-
init.php (modified) (1 diff)
-
leadboxer.class.php (modified) (6 diffs)
-
leadboxer.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
leadboxer/trunk/init.php
r1224856 r1838239 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) exit; 2 3 3 // Exit if accessed directly 4 if ( ! defined( 'ABSPATH' ) ) exit; 4 if ( ! defined( 'LEADBOXER_DIR' ) ) { 5 define( 'LEADBOXER_DIR', plugin_dir_path( __FILE__ ) ); 6 } 5 7 6 /** 7 * Plugin version 8 * 9 * @var string 10 */ 11 12 if ( ! defined( 'LEADBOXER_DIR' ) ) { 13 define( 'LEADBOXER_DIR', plugin_dir_path( __FILE__ ) ); 14 } 15 16 if ( ! defined( 'LEADBOXER_URL' ) ) { 17 define( 'LEADBOXER_URL', plugins_url( '/', __FILE__ ) ); 18 } 19 8 if ( ! defined( 'LEADBOXER_URL' ) ) { 9 define( 'LEADBOXER_URL', plugins_url( '/', __FILE__ ) ); 10 } 20 11 ?> -
leadboxer/trunk/leadboxer.class.php
r1306257 r1838239 1 1 <?php 2 /**3 * The Main class of the LeadBoxer Plug-in4 */5 6 2 if ( ! defined( 'ABSPATH' ) ) { 7 3 exit; 8 4 } 9 5 10 6 //The Main class of the LeadBoxer Plug-in 11 7 if (!class_exists('Leadboxer')) { 12 8 class Leadboxer { … … 14 10 public function __construct() { 15 11 16 add_action( 'plugins_loaded', array( $this, 'true_load_plugin_textdomain'));17 add_action('admin_menu', array( $this, 'plugin_admin_add_page' ));18 add_action( 'wp_enqueue_scripts', array( 'Leadboxer', 'register_plugin_scripts' ) );19 12 } 20 13 21 public function register_plugin_scripts() {14 public static function register_plugin_scripts() { 22 15 23 16 $dataset = get_option('leadboxer_dataset'); … … 25 18 26 19 if ( !is_admin() ) { 27 wp_register_script( 'leadboxerscript', '//script.leadboxer.com/?dataset=' . $dataset, array(), null, true); 28 wp_enqueue_script( 'leadboxerscript' ); 20 wp_enqueue_script( 'leadboxerscript', '//script.leadboxer.com/?dataset=' . $dataset, array(), null, true ); 29 21 } 30 22 } … … 39 31 public function add_settings() { 40 32 41 global $wpdb;42 33 $option = 'leadboxer_dataset'; 43 34 $save = isset($_GET['save']) ? $_GET['save'] : ''; … … 71 62 72 63 </form> 73 <p>You can verify a succesfull install by first visiting the homepage of this Wordpress site, then login at <a href="https:// product.leadboxer.com?utm_source=wp-plugin">product.leadboxer.com</a><br>64 <p>You can verify a succesfull install by first visiting the homepage of this Wordpress site, then login at <a href="https://app.leadboxer.com?utm_source=wp-plugin">app.leadboxer.com</a><br> 74 65 You should see your visit there as a first lead.</p> 75 66 … … 82 73 } 83 74 75 76 public function run() { 77 78 add_action( 'plugins_loaded', array( $this, 'true_load_plugin_textdomain')); 79 add_action('admin_menu', array( $this, 'plugin_admin_add_page' )); 80 add_action( 'wp_enqueue_scripts', array( 'Leadboxer', 'register_plugin_scripts' ) ); 81 } 84 82 } 85 83 } 86 84 87 88 85 ?> -
leadboxer/trunk/leadboxer.php
r1306239 r1838239 1 1 <?php 2 /* *2 /* 3 3 * Plugin Name: LeadBoxer 4 * Plugin URI: https://w ww.leadboxer.com?wordPressPlugin4 * Plugin URI: https://wordpress.org/plugins/leadboxer/ 5 5 * Description: LeadBoxer Plugin 6 * Version: 1.2 6 7 * Author: LeadBoxer 7 * Author URI: https://www.leadboxer.com?wordPressPlugin 8 * Version: 1.1 9 * 10 * Text Domain: leadboxer 11 */ 12 13 /* Copyright 2015 Elena Karaush (email: [email protected]) 8 * Author URI: https://wordpress.org/plugins/leadboxer/ 9 * Text Domain: leadboxer-en 10 * Domain Path: /languages/ 11 * Copyright 2015 Elena Karaush 14 12 15 13 This program is free software; you can redistribute it and/or modify … … 28 26 */ 29 27 28 if ( ! defined( 'WPINC' ) ) { 29 die; 30 } 30 31 /** 31 32 defines … … 36 37 main plug-in class 37 38 */ 38 require_once ('leadboxer.class.php');39 require_once plugin_dir_path( __FILE__ ) . 'leadboxer.class.php'; 39 40 40 41 register_activation_hook( __FILE__, 'leadboxer_activate'); … … 42 43 register_uninstall_hook( __FILE__, 'leadboxer_uninstall'); 43 44 44 try { 45 $otApplication = new LeadBoxer(); 46 } catch (Exception $e) { 47 echo $e->getMessage(); 48 } 45 //Call the Main class of the LeadBoxer Plug-in 46 $otApplication = new LeadBoxer(); 47 $otApplication->run(); 49 48 50 49 /** -
leadboxer/trunk/readme.txt
r1485570 r1838239 1 1 === LeadBoxer === 2 2 Contributors: LeadBoxer 3 Tags: leads, lead, generation, capture, sales, form tracking, tracker 3 Tags: leads, lead, generation, capture, sales, form tracking, tracker, customer data, identify, identification 4 4 Requires at least: 3.0.1 5 Tested up to: 4. 66 Stable tag: 1. 15 Tested up to: 4.9 6 Stable tag: 1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 == Changelog == 39 39 40 = 1.2 = 41 * Fixed bugs and compatibility issues 42 40 43 = 1.1 = 41 44 * fixed incorrect link to settings page 42 45 43 46 = 1.0 = 44 * Initial relea ase47 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.