-
Notifications
You must be signed in to change notification settings - Fork 0
/
stunning-post-grids-addon-elementor.php
55 lines (47 loc) · 1.68 KB
/
stunning-post-grids-addon-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
<?php
/**
* Plugin Name: Stunning Post Grids Addon for Elementor
* Description: Prettify your Blog and Custom Post Types with the Stunning Post Grids Addon for Elementor plugin. Let the others wonder while you beautify yours posts instantly.
* Version: 1.0.3
* Author: Quamruzzaman
* Author URI: https://profiles.wordpress.org/zamanq/
* Contributors: zamanq
* Requires at least: 5.6
* Tested up to: 6.1
* Elementor tested up to: 3.7.8
* Tags: content, post grids, elementor post grids, custom post types grid
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: spga-elementor
*
* @package SPGA Elementor
*/
defined( 'ABSPATH' ) || exit;
// Plugin specific constants.
define( 'SPGA_EL_LICENSE', 'free' );
define( 'SPGA_EL_VERSION', '1.0.3' );
define( 'SPGA_EL_DIR_URL', plugin_dir_url( __FILE__ ) );
define( 'SPGA_EL_DIR_PATH', plugin_dir_path( __FILE__ ) );
// Require autoload.
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) :
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
endif;
// Initialize classes.
if ( class_exists( 'SPGA_Elementor\\Init' ) ) :
SPGA_Elementor\Init::register_services();
endif;
// Handles stuff at plugin activation.
register_activation_hook( __FILE__, 'spga_elementor_activated' );
/**
* Activation callback
*
* @return void
*/
function spga_elementor_activated() {
$installed_time = get_option( 'spga_el_installed_at' );
if ( ! $installed_time ) {
update_option( 'spga_el_installed_at', time() );
}
update_option( 'spga_el_version', SPGA_EL_VERSION );
update_option( 'spga_el_license', SPGA_EL_LICENSE );
}