Changeset 2960949
- Timestamp:
- 08/31/2023 06:34:20 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
simple-masonry-layout/trunk/simple-masonry-layout.php
r2960636 r2960949 1 1 <?php 2 3 2 /* 4 3 * Plugin Name: Simple Masonry Layout … … 14 13 15 14 /* Plugin version */ 15 define( 'SIMPLEMASONRYLAYOUT', '2.0' ); 16 16 17 define('SIMPLEMASONRYLAYOUT', '2.0'); 18 19 define('SIMPLEMASONRYLAYOUT_DIR_PATH', plugin_dir_path(__FILE__)); 20 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__ ) ); 21 19 22 20 require_once SIMPLEMASONRYLAYOUT_DIR_PATH . 'includes/class.simple.masonry.admin.php'; 23 21 require_once SIMPLEMASONRYLAYOUT_DIR_PATH . 'includes/class.simple.masonry.front.php'; 24 22 25 SimpleMasonryLayout\SimpleMasonryAdmin::getInstance(); 26 SimpleMasonryLayout\SimpleMasonryFront::getInstance(); 23 // Check if the required classes exist before using them 24 if ( class_exists( 'SimpleMasonryLayout\SimpleMasonryAdmin' ) ) { 25 SimpleMasonryLayout\SimpleMasonryAdmin::getInstance(); 26 } 27 28 if ( class_exists( 'SimpleMasonryLayout\SimpleMasonryFront' ) ) { 29 SimpleMasonryLayout\SimpleMasonryFront::getInstance(); 30 }
Note: See TracChangeset
for help on using the changeset viewer.