| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The public-facing functionality of the plugin. |
| 5 |
* |
| 6 |
* @link https://kaizencoders.com |
| 7 |
* @since 1.2 |
| 8 |
* |
| 9 |
* @package Plugin_Name |
| 10 |
* @subpackage Plugin_Name/Frontend |
| 11 |
*/ |
| 12 |
|
| 13 |
namespace KaizenCoders\UpdateURLS; |
| 14 |
|
| 15 |
/** |
| 16 |
* The public-facing functionality of the plugin. |
| 17 |
* |
| 18 |
* Defines the plugin name, version, and two examples hooks for how to |
| 19 |
* enqueue the dashboard-specific stylesheet and JavaScript. |
| 20 |
* |
| 21 |
* @package Plugin_Name |
| 22 |
* @subpackage Plugin_Name/Frontend |
| 23 |
* @author KaizenCoders <hello@kaizencoders.com> |
| 24 |
*/ |
| 25 |
class Frontend { |
| 26 |
|
| 27 |
/** |
| 28 |
* The plugin's instance. |
| 29 |
* |
| 30 |
* @since 1.2 |
| 31 |
* @access private |
| 32 |
* @var Plugin $plugin This plugin's instance. |
| 33 |
*/ |
| 34 |
private $plugin; |
| 35 |
|
| 36 |
/** |
| 37 |
* Initialize the class and set its properties. |
| 38 |
* |
| 39 |
* @since 1.2 |
| 40 |
* |
| 41 |
* @param Plugin $plugin This plugin's instance. |
| 42 |
*/ |
| 43 |
public function __construct( Plugin $plugin ) { |
| 44 |
$this->plugin = $plugin; |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* Register the stylesheets for the public-facing side of the site. |
| 49 |
* |
| 50 |
* @since 1.2 |
| 51 |
*/ |
| 52 |
public function enqueue_styles() { |
| 53 |
|
| 54 |
/** |
| 55 |
* This function is provided for demonstration purposes only. |
| 56 |
* |
| 57 |
* An instance of this class should be passed to the run() function |
| 58 |
* defined in Loader as all of the hooks are defined in that particular |
| 59 |
* class. |
| 60 |
* |
| 61 |
* The Loader will then create the relationship between the defined |
| 62 |
* hooks and the functions defined in this class. |
| 63 |
*/ |
| 64 |
} |
| 65 |
|
| 66 |
/** |
| 67 |
* Register the stylesheets for the public-facing side of the site. |
| 68 |
* |
| 69 |
* @since 1.2 |
| 70 |
*/ |
| 71 |
public function enqueue_scripts() { |
| 72 |
|
| 73 |
/** |
| 74 |
* This function is provided for demonstration purposes only. |
| 75 |
* |
| 76 |
* An instance of this class should be passed to the run() function |
| 77 |
* defined in Loader as all of the hooks are defined in that particular |
| 78 |
* class. |
| 79 |
* |
| 80 |
* The Loader will then create the relationship between the defined |
| 81 |
* hooks and the functions defined in this class. |
| 82 |
*/ |
| 83 |
} |
| 84 |
|
| 85 |
} |
| 86 |
|