PluginProbe
Borderless – Addons and Templates for Elementor / trunk
Borderless – Addons and Templates for Elementor vtrunk
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 All 78 releases
borderless / includes / class-borderless-public.php

class-borderless-public.php in Borderless – Addons and Templates for Elementor trunk, at includes/class-borderless-public.php

99 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The public-facing functionality of the plugin.
5 *
6 * @link https://visualmodo.com
7 * @since 1.0.0
8 *
9 * @package Borderless
10 * @subpackage Borderless/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 Borderless
20 * @subpackage Borderless/public
21 * @author Visualmodo <contact@visualmodo'>
22 */
23 class Borderless_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
55 }
56
57 /**
58 * Register the stylesheets for the public-facing side of the site.
59 *
60 * @since 1.0.0
61 */
62 public function enqueue_styles() {
63
64 /**
65 * An instance of this class should be passed to the run() function
66 * defined in Borderless_Loader as all of the hooks are defined
67 * in that particular class.
68 *
69 * The Borderless_Loader will then create the relationship
70 * between the defined hooks and the functions defined in this
71 * class.
72 */
73
74 wp_enqueue_style( $this->plugin_name, BORDERLESS__URL . 'assets/styles/borderless.min.css', array(), $this->version, 'all' );
75
76 }
77
78 /**
79 * Register the JavaScript for the public-facing side of the site.
80 *
81 * @since 1.0.0
82 */
83 public function enqueue_scripts() {
84
85 /**
86 * An instance of this class should be passed to the run() function
87 * defined in Borderless_Loader as all of the hooks are defined
88 * in that particular class.
89 *
90 * The Borderless_Loader will then create the relationship
91 * between the defined hooks and the functions defined in this
92 * class.
93 */
94 wp_enqueue_script( $this->plugin_name, BORDERLESS__URL . 'assets/scripts/borderless.min.js', array( 'jquery' ), BORDERLESS__VERSION, true );
95
96 }
97
98 }
99