| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The public-facing functionality of the plugin. |
| 5 |
* |
| 6 |
* @link https://themeatelier.net |
| 7 |
* @since 1.0.0 |
| 8 |
* |
| 9 |
* @package Darkify |
| 10 |
* @subpackage Darkify/public |
| 11 |
*/ |
| 12 |
|
| 13 |
/** |
| 14 |
* The public-facing functionality of the plugin. |
| 15 |
* |
| 16 |
* Defines the plugin name, version, and two examples hooks for how to |
| 17 |
* enqueue the public-facing stylesheet and JavaScript. |
| 18 |
* |
| 19 |
* @package Darkify |
| 20 |
* @subpackage Darkify/public |
| 21 |
* @author ThemeAtelier <themeatelierbd@gmail.com> |
| 22 |
*/ |
| 23 |
class Darkify_Public { |
| 24 |
|
| 25 |
/** |
| 26 |
* The ID of this plugin. |
| 27 |
* |
| 28 |
* @since 1.0.0 |
| 29 |
* @access private |
| 30 |
* @var string $plugin_name The ID of this plugin. |
| 31 |
*/ |
| 32 |
private $plugin_name; |
| 33 |
|
| 34 |
/** |
| 35 |
* The version of this plugin. |
| 36 |
* |
| 37 |
* @since 1.0.0 |
| 38 |
* @access private |
| 39 |
* @var string $version The current version of this plugin. |
| 40 |
*/ |
| 41 |
private $version; |
| 42 |
|
| 43 |
/** |
| 44 |
* Initialize the class and set its properties. |
| 45 |
* |
| 46 |
* @since 1.0.0 |
| 47 |
* @param string $plugin_name The name of the plugin. |
| 48 |
* @param string $version The version of this plugin. |
| 49 |
*/ |
| 50 |
public function __construct( $plugin_name, $version ) { |
| 51 |
|
| 52 |
$this->plugin_name = $plugin_name; |
| 53 |
$this->version = $version; |
| 54 |
$this->load_dependencies(); |
| 55 |
} |
| 56 |
|
| 57 |
|
| 58 |
private function load_dependencies(){ |
| 59 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-darkify-shortcode.php'; |
| 60 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-darkify-client.php'; |
| 61 |
|
| 62 |
} |
| 63 |
|
| 64 |
} |
| 65 |
|