Пример #1
0
 function __construct()
 {
     include DLN_ABE_PLUGIN_DIR . '/dln-block/includes/block-cache.php';
     include DLN_ABE_PLUGIN_DIR . '/dln-block/includes/block-ajax.php';
     include DLN_ABE_PLUGIN_DIR . '/dln-block/includes/blocks.php';
     if (is_admin()) {
         include DLN_ABE_PLUGIN_DIR . '/dln-block/includes/admin/photo-post-type.php';
     }
     // Init classes
     $this->blocks = DLN_Blocks::get_instance();
     add_action('wp_enqueue_scripts', array($this, 'register_assets'));
     add_action('init', array($this, 'init'));
     add_action('admin_init', array($this, 'admin_init'));
 }
Пример #2
0
 function __construct()
 {
     include 'includes/block-cache.php';
     include 'includes/block-ajax.php';
     include 'includes/blocks.php';
     if (is_admin()) {
         //include( 'admin/class-dln-form-admin.php' );
     }
     // Init classes
     $this->blocks = DLN_Blocks::get_instance();
     add_action('wp_enqueue_scripts', array($this, 'register_assets'));
     add_action('init', array($this, 'init'));
     //add_action( 'admin_init', array( $this, 'admin_init' ) );
 }