PATH:
home
/
lab2454c
/
archfort.com
/
wp-content
/
plugins
/
update-urls
/
lite
/
includes
<?php /** * The public-facing functionality of the plugin. * * @link https://kaizencoders.com * @since 1.2 * * @package Plugin_Name * @subpackage Plugin_Name/Frontend */ namespace Kaizencoders\Update_Urls; /** * The public-facing functionality of the plugin. * * Defines the plugin name, version, and two examples hooks for how to * enqueue the dashboard-specific stylesheet and JavaScript. * * @package Plugin_Name * @subpackage Plugin_Name/Frontend * @author KaizenCoders <hello@kaizencoders.com> */ class Frontend { /** * The plugin's instance. * * @since 1.2 * @access private * @var Plugin $plugin This plugin's instance. */ private $plugin; /** * Initialize the class and set its properties. * * @since 1.2 * * @param Plugin $plugin This plugin's instance. */ public function __construct( Plugin $plugin ) { $this->plugin = $plugin; } /** * Register the stylesheets for the public-facing side of the site. * * @since 1.2 */ public function enqueue_styles() { /** * This function is provided for demonstration purposes only. * * An instance of this class should be passed to the run() function * defined in Loader as all of the hooks are defined in that particular * class. * * The Loader will then create the relationship between the defined * hooks and the functions defined in this class. */ \wp_enqueue_style( $this->plugin->get_plugin_name(), \plugin_dir_url( dirname( __FILE__ ) ) . 'dist/styles/plugin-name.css', array(), $this->plugin->get_version(), 'all' ); } /** * Register the stylesheets for the public-facing side of the site. * * @since 1.2 */ public function enqueue_scripts() { /** * This function is provided for demonstration purposes only. * * An instance of this class should be passed to the run() function * defined in Loader as all of the hooks are defined in that particular * class. * * The Loader will then create the relationship between the defined * hooks and the functions defined in this class. */ \wp_enqueue_script( $this->plugin->get_plugin_name(), \plugin_dir_url( dirname( __FILE__ ) ) . 'dist/scripts/plugin-name.js', array( 'jquery' ), $this->plugin->get_version(), false ); } }
[-] Settings.php
[edit]
[-] Plugin.php
[edit]
[-] Activator.php
[edit]
[-] index.php
[edit]
[+]
Upgrade
[-] Option.php
[edit]
[+]
..
[-] Frontend.php
[edit]
[-] Deactivator.php
[edit]
[-] Notice.php
[edit]
[-] I18n.php
[edit]
[+]
Admin
[-] Loader.php
[edit]
[+]
Common
[-] Tracker.php
[edit]
[-] Install.php
[edit]
[-] Feedback.php
[edit]
[+]
Frontend
[-] Admin.php
[edit]
[-] Cache.php
[edit]
[-] Helper.php
[edit]