initial commit
This commit is contained in:
29
inc/classes/inContact/Enqueue.php
Normal file
29
inc/classes/inContact/Enqueue.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace inContact;
|
||||
|
||||
/**
|
||||
* Klasa Enqueue
|
||||
*
|
||||
* @link https://krzysztof-turek.com
|
||||
*
|
||||
* @package tylkofotografia.pl
|
||||
* @version 0.2
|
||||
*/
|
||||
|
||||
class Enqueue {
|
||||
|
||||
use Singleton;
|
||||
|
||||
function __construct() {
|
||||
add_action('wp_enqueue_scripts',[ $this, 'enqueueScripts']);
|
||||
}
|
||||
|
||||
public function enqueueScripts() {
|
||||
global $pluginDirUrl, $pluginPath;
|
||||
wp_register_style('ContactCss', $pluginDirUrl.'css/inContact.css', [], filemtime( $pluginPath . 'css/inContact.css'), 'all');
|
||||
|
||||
wp_enqueue_style('ContactCss');
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user