Changeset 2960959
- Timestamp:
- 08/31/2023 07:05:41 AM (3 years ago)
- Location:
- simple-masonry-layout/trunk
- Files:
-
- 4 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
simple-masonry-layout/trunk/simple-masonry-layout.php
r2960956 r2960959 10 10 */ 11 11 12 if ( !defined('ABSPATH')) exit; // Exit if accessed directly12 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 13 13 14 14 /* Plugin version */ 15 define( 'SIMPLEMASONRYLAYOUT', '2.0');15 define( 'SIMPLEMASONRYLAYOUT', '2.0' ); 16 16 17 define( 'SIMPLEMASONRYLAYOUT_DIR_PATH', plugin_dir_path(__FILE__));18 define( 'SIMPLEMASONRYLAYOUT_DIR_URL', plugin_dir_url(__FILE__));17 define( 'SIMPLEMASONRYLAYOUT_DIR_PATH', plugin_dir_path( __FILE__ ) ); 18 define( 'SIMPLEMASONRYLAYOUT_DIR_URL', plugin_dir_url( __FILE__ ) ); 19 19 20 require_once (dirname(__FILE__) . '/includes/class.simple.masonry.admin.php');21 require_once (dirname(__FILE__) . '/includes/class.simple.masonry.front.php');20 require_once SIMPLEMASONRYLAYOUT_DIR_PATH . 'includes/class.simple.masonry.admin.php'; 21 require_once SIMPLEMASONRYLAYOUT_DIR_PATH . 'includes/class.simple.masonry.front.php'; 22 22 23 23 // Check if the required classes exist before using them 24 if ( class_exists('SimpleMasonryLayout\SimpleMasonryAdmin')) {24 if ( class_exists( 'SimpleMasonryLayout\SimpleMasonryAdmin' ) ) { 25 25 SimpleMasonryLayout\SimpleMasonryAdmin::getInstance(); 26 26 } 27 27 28 if ( class_exists('SimpleMasonryLayout\SimpleMasonryFront')) {28 if ( class_exists( 'SimpleMasonryLayout\\SimpleMasonryFront' ) ) { 29 29 SimpleMasonryLayout\SimpleMasonryFront::getInstance(); 30 30 }
Note: See TracChangeset
for help on using the changeset viewer.