2014-04-09 16:22:44 -04:00
|
|
|
<?php
|
2014-04-30 22:54:25 -04:00
|
|
|
|
2014-04-09 16:22:44 -04:00
|
|
|
/**
|
2014-05-03 15:27:01 -04:00
|
|
|
* Define a short description for what this class does (no period)
|
2014-04-09 16:22:44 -04:00
|
|
|
*
|
2014-05-03 15:27:01 -04:00
|
|
|
* @package Plugin_Name
|
|
|
|
* @subpackage Plugin_Name/public
|
|
|
|
* @author Your Name <email@example.com>
|
|
|
|
* @license GPL-2.0+
|
|
|
|
* @link http://example.com
|
|
|
|
* @copyright 2014 Your Name or Company Name
|
|
|
|
* @since 1.0.0
|
2014-04-09 16:22:44 -04:00
|
|
|
*/
|
|
|
|
|
2014-04-30 22:54:25 -04:00
|
|
|
/**
|
|
|
|
* Define a short description for what this class does.
|
|
|
|
*
|
|
|
|
* Define a longer description for the purpose of this class.
|
|
|
|
*
|
2014-05-03 15:27:01 -04:00
|
|
|
* @package Plugin_Name
|
|
|
|
* @subpackage Plugin_Name/public
|
|
|
|
* @author Your Name <email@example.com>
|
2014-04-30 22:54:25 -04:00
|
|
|
*/
|
2014-05-08 18:09:10 -04:00
|
|
|
class Plugin_Name_Public {
|
|
|
|
|
2014-06-26 16:19:57 -04:00
|
|
|
/**
|
|
|
|
* Short description. (use period)
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
|
|
|
* @access private
|
|
|
|
* @var type $var Description.
|
|
|
|
*/
|
2014-05-08 18:09:10 -04:00
|
|
|
private $version;
|
|
|
|
|
2014-06-26 16:19:57 -04:00
|
|
|
/**
|
|
|
|
* Short description. (use period)
|
|
|
|
*
|
|
|
|
* Long description.
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
|
|
|
* @param float $version TODO
|
|
|
|
*/
|
2014-05-08 18:09:10 -04:00
|
|
|
public function __construct( $version ) {
|
|
|
|
$this->version = $version;
|
|
|
|
}
|
2014-04-09 16:22:44 -04:00
|
|
|
|
2014-04-30 22:54:25 -04:00
|
|
|
/**
|
|
|
|
* Short description. (use period)
|
|
|
|
*
|
|
|
|
* Long description.
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
|
|
|
*/
|
2014-05-03 15:27:01 -04:00
|
|
|
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 Plugin_Name_Public_Loader as all of the hooks are defined
|
|
|
|
* in that particular class.
|
|
|
|
*
|
|
|
|
* The Plugin_Name_Public_Loader will then create the relationship
|
|
|
|
* between the defined hooks and the functions defined in this
|
|
|
|
* class.
|
|
|
|
*/
|
|
|
|
|
2014-05-05 00:17:13 -04:00
|
|
|
wp_enqueue_style( 'plugin-name-public', plugin_dir_url( __FILE__ ) . 'css/plugin-name-public.css', array(), $this->version, 'all' );
|
2014-05-03 15:27:01 -04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Short description. (use period)
|
|
|
|
*
|
|
|
|
* Long description.
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
|
|
|
*/
|
|
|
|
public function enqueue_scripts() {
|
2014-04-30 22:54:25 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This function is provided for demonstration purposes only.
|
|
|
|
*
|
|
|
|
* An instance of this class should be passed to the run() function
|
|
|
|
* defined in Plugin_Name_Public_Loader as all of the hooks are defined
|
|
|
|
* in that particular class.
|
|
|
|
*
|
|
|
|
* The Plugin_Name_Public_Loader will then create the relationship
|
|
|
|
* between the defined hooks and the functions defined in this
|
|
|
|
* class.
|
|
|
|
*/
|
|
|
|
|
2014-05-05 00:17:13 -04:00
|
|
|
wp_enqueue_script( 'plugin-name-public', plugin_dir_url( __FILE__ ) . 'js/plugin-name-public.js', array( 'jquery' ), $this->version, FALSE );
|
2014-04-30 22:54:25 -04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-04-25 18:39:31 -04:00
|
|
|
}
|