Initial Commit - Plugin v1.0.0
This commit is contained in:
25
includes/admin/enqueue.php
Normal file
25
includes/admin/enqueue.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
function fbr_admin_enqueue(){
|
||||
|
||||
if( !isset($_GET['page']) || $_GET['page'] != 'fbr_plugin_opts' ){
|
||||
return;
|
||||
}
|
||||
|
||||
wp_register_style(
|
||||
'fbr_bootstrap',
|
||||
plugins_url( '/assets/styles/bootstrap.min.css', FBR_PLUGIN_URL )
|
||||
);
|
||||
|
||||
wp_enqueue_style( 'fbr_bootstrap' );
|
||||
|
||||
wp_register_script(
|
||||
'fbr_bootstrap',
|
||||
plugins_url( '/assets/scripts/bootstrap.min.js', FBR_PLUGIN_URL ),
|
||||
array('jquery'),
|
||||
'1.0.0',
|
||||
true
|
||||
);
|
||||
|
||||
wp_enqueue_script( 'fbr_bootstrap' );
|
||||
}
|
||||
Reference in New Issue
Block a user