PluginProbe
Easy Image Gallery / trunk
Easy Image Gallery vtrunk
1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.2 1.2.1 1.3 1.3.1 1.4 1.4.1 1.4.2 1.4.3 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 trunk 1.0.1 1.0.2 All 26 releases
easy-image-gallery / easy-image-gallery.php

easy-image-gallery.php in Easy Image Gallery trunk, at easy-image-gallery.php

88 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Easy Image Gallery
4 Plugin URI: https://devrix.com/
5 Description: An easy to use image gallery with drag & drop re-ordering
6 Version: 1.5.5
7 Author: DevriX
8 Author URI: https://devrix.com/
9 Text Domain: easy-image-gallery
10 License: GPL-2.0+
11 License URI: http://www.opensource.org/licenses/gpl-license.php
12 */
13
14 // Exit if accessed directly
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18
19 if ( ! class_exists( 'Easy_Image_Gallery' ) ) {
20
21 /**
22 * PHP5 constructor method.
23 *
24 * @since 1.0
25 */
26 class Easy_Image_Gallery {
27
28 public function __construct() {
29 add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
30 add_action( 'plugins_loaded', array( $this, 'constants' ) );
31 add_action( 'plugins_loaded', array( $this, 'includes' ) );
32 // add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'easy_image_gallery_plugin_action_links' );
33 }
34
35 /**
36 * Internationalization
37 *
38 * @since 1.0
39 */
40 public function load_textdomain() {
41 load_plugin_textdomain( 'easy-image-gallery', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
42 }
43
44
45 /**
46 * Constants
47 *
48 * @since 1.0
49 */
50 public function constants() {
51
52 if ( ! defined( 'EASY_IMAGE_GALLERY_DIR' ) ) {
53 define( 'EASY_IMAGE_GALLERY_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
54 }
55
56 if ( ! defined( 'EASY_IMAGE_GALLERY_URL' ) ) {
57 define( 'EASY_IMAGE_GALLERY_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
58 }
59
60 if ( ! defined( 'EASY_IMAGE_GALLERY_VERSION' ) ) {
61 define( 'EASY_IMAGE_GALLERY_VERSION', '1.2' );
62 }
63
64 if ( ! defined( 'EASY_IMAGE_GALLERY_INCLUDES' ) ) {
65 define( 'EASY_IMAGE_GALLERY_INCLUDES', EASY_IMAGE_GALLERY_DIR . trailingslashit( 'includes' ) );
66 }
67
68 }
69
70 /**
71 * Loads the initial files needed by the plugin.
72 *
73 * @since 1.0
74 */
75 public function includes() {
76
77 require_once EASY_IMAGE_GALLERY_INCLUDES . 'template-functions.php';
78 require_once EASY_IMAGE_GALLERY_INCLUDES . 'scripts.php';
79 require_once EASY_IMAGE_GALLERY_INCLUDES . 'metabox.php';
80 require_once EASY_IMAGE_GALLERY_INCLUDES . 'admin-page.php';
81 require_once EASY_IMAGE_GALLERY_INCLUDES . 'gutenberg-block/plugin.php';
82 }
83
84 }
85 }
86
87 $easy_image_gallery = new Easy_Image_Gallery();
88