| 1 |
<?php |
| 2 |
/** |
| 3 |
* The public-facing functionality of the module. |
| 4 |
* |
| 5 |
* @link https://codesupply.co |
| 6 |
* @since 1.0.0 |
| 7 |
* |
| 8 |
* @package Powerkit |
| 9 |
* @subpackage Modules/public |
| 10 |
*/ |
| 11 |
|
| 12 |
/** |
| 13 |
* The public-facing functionality of the module. |
| 14 |
*/ |
| 15 |
class Powerkit_Widget_About_Public extends Powerkit_Module_Public { |
| 16 |
|
| 17 |
/** |
| 18 |
* Initialize |
| 19 |
*/ |
| 20 |
public function initialize() { |
| 21 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); |
| 22 |
} |
| 23 |
|
| 24 |
/** |
| 25 |
* Register the stylesheets for the public-facing side of the site. |
| 26 |
*/ |
| 27 |
public function wp_enqueue_scripts() { |
| 28 |
wp_enqueue_style( 'powerkit-widget-about', powerkit_style( plugin_dir_url( __FILE__ ) . 'css/public-powerkit-widget-about.css' ), array(), powerkit_get_setting( 'version' ), 'all' ); |
| 29 |
|
| 30 |
// Add RTL support. |
| 31 |
wp_style_add_data( 'powerkit-widget-about', 'rtl', 'replace' ); |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* Register the stylesheets for the admin-facing side of the site. |
| 36 |
*/ |
| 37 |
public function admin_enqueue_scripts() { |
| 38 |
wp_enqueue_style( 'powerkit-widget-about', powerkit_style( plugin_dir_url( __FILE__ ) . 'css/public-powerkit-widget-about.css' ), array(), powerkit_get_setting( 'version' ), 'all' ); |
| 39 |
|
| 40 |
// Add RTL support. |
| 41 |
wp_style_add_data( 'powerkit-widget-about', 'rtl', 'replace' ); |
| 42 |
} |
| 43 |
} |
| 44 |
|