-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathin-analytics.php
More file actions
48 lines (45 loc) · 2.1 KB
/
Copy pathin-analytics.php
File metadata and controls
48 lines (45 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Plugin Name: IN-Analytics
* Plugin URI: http://in-analytics.com/
* Description: Just another Google Analytics Plugin for WooCommerce and other sites
* Version: 1.0.1
* Author: Ivan Nikitin and partners
* Author URI: http://ivannikitin.com
* Text Domain: in-analytics
*
* Copyright 2016 Ivan Nikitin (email: info@ivannikitin.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
/* ------------------------ Определения плагина ------------------------ */
define('INA_FOLDER', plugin_dir_path(__FILE__));
define('INA_URL', plugin_dir_url(__FILE__));
define('INA_TEXT_DOMAIN', 'in-analytics');
/* ------------------------- Загрузка классов -------------------------- */
require( INA_FOLDER . 'classes/INA_ModuleManager.php');
require( INA_FOLDER . 'classes/INA_ModuleBase.php');
require( INA_FOLDER . 'classes/INA_Tracker.php');
require( INA_FOLDER . 'classes/INA_MeasurementProtocol.php');
/* ---------------- Локализация и инициализация плагина ---------------- */
add_action( 'init', 'ina_load_textdomain' );
function ina_load_textdomain()
{
// Загрузка переводов
load_plugin_textdomain( INA_TEXT_DOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
// Инициализация плагина
new INA_ModuleManager( INA_FOLDER, INA_URL );
}