-
Notifications
You must be signed in to change notification settings - Fork 0
/
alpha-single-product-for-elementor.php
59 lines (48 loc) · 2.05 KB
/
alpha-single-product-for-elementor.php
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
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* Plugin Name: Alpha Single Product For Elementor
* Plugin URI: https://alphatrio.net
* Description: Single WooCommerce Product Widget Addon For Elementor.
* Author: Ali Ali
* Author URI: https://github.com/Ali7Ali
* Version: 1.0.5
* Text Domain: alpha-single-product-for-elementor
* Domain Path: /languages
* License: GPLv3
*
*
*/
/* Copyright 2021 Ali Ali (email : ali.abdalhadi.ali@gmail.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 3 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
*/
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
define('ALPHASP_VERSION', '1.0.5');
define('ALPHASP_ADDONS_PL_ROOT', __FILE__);
define('ALPHASP_PL_URL', plugins_url('/', ALPHASP_ADDONS_PL_ROOT));
define('ALPHASP_PL_PATH', plugin_dir_path(ALPHASP_ADDONS_PL_ROOT));
define('ALPHASP_PL_ASSETS', trailingslashit(ALPHASP_PL_URL . 'assets'));
define('ALPHASP_PL_INCLUDE', trailingslashit(ALPHASP_PL_PATH . 'include'));
define('ALPHASP_PL_LANGUAGES', trailingslashit(ALPHASP_PL_PATH . 'languages'));
define('ALPHASP_PLUGIN_BASE', plugin_basename(ALPHASP_ADDONS_PL_ROOT));
// Required File
include(ALPHASP_PL_INCLUDE . '/class-alpha-single-product.php');
function alpha_single_product_addon()
{
// Load plugin file
require_once(ALPHASP_PL_INCLUDE . '/class-alpha-single-product.php');
// Run the plugin
\Elementor_Alpha_Single_Product_Addon\Alpha_Single_Product_For_Elementor::instance();
}
add_action('plugins_loaded', 'alpha_single_product_addon');