aboutsummaryrefslogtreecommitdiffstats
path: root/GWP_bs3_panel_shortcode.php
diff options
context:
space:
mode:
authorHeckyel <heckyel@openmailbox.org>2017-02-08 12:37:45 -0500
committerHeckyel <heckyel@openmailbox.org>2017-02-08 12:37:45 -0500
commite707968dde70de7cedf7f0ada672f59bd8db902e (patch)
treeac19b1dfdbe9f3e2758105df49c9b1f1152d4a06 /GWP_bs3_panel_shortcode.php
parent1b6a7f73aeb1b664cb7d2dc54dfd2a2758c2631f (diff)
downloadlibrevideojs-html5-player-e707968dde70de7cedf7f0ada672f59bd8db902e.tar.lz
librevideojs-html5-player-e707968dde70de7cedf7f0ada672f59bd8db902e.tar.xz
librevideojs-html5-player-e707968dde70de7cedf7f0ada672f59bd8db902e.zip
order source code
Diffstat (limited to 'GWP_bs3_panel_shortcode.php')
-rw-r--r--GWP_bs3_panel_shortcode.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/GWP_bs3_panel_shortcode.php b/GWP_bs3_panel_shortcode.php
index 01ac7e9..d82b98b 100644
--- a/GWP_bs3_panel_shortcode.php
+++ b/GWP_bs3_panel_shortcode.php
@@ -25,14 +25,14 @@ class GWP_bs3_panel_shortcode{
* calls your functions into the correct filters
* @return void
*/
- function admin_head() {
+ function admin_head(){
// check user permissions
- if (!current_user_can('edit_posts') && !current_user_can('edit_pages')) {
+ if (!current_user_can('edit_posts') && !current_user_can('edit_pages')){
return;
}
// check if WYSIWYG is enabled
- if ('true' == get_user_option('rich_editing')) {
+ if ('true' == get_user_option('rich_editing')){
add_filter('mce_external_plugins', array($this ,'mce_external_plugins'));
add_filter('mce_buttons', array($this, 'mce_buttons'));
}
@@ -44,7 +44,7 @@ class GWP_bs3_panel_shortcode{
* @param array $plugin_array
* @return array
*/
- function mce_external_plugins($plugin_array) {
+ function mce_external_plugins($plugin_array){
$plugin_array[$this->shortcode_tag] = plugins_url('librevideojs/js/mce-button.js', __FILE__);
return $plugin_array;
}
@@ -55,7 +55,7 @@ class GWP_bs3_panel_shortcode{
* @param array $buttons
* @return array
*/
- function mce_buttons($buttons) {
+ function mce_buttons($buttons){
array_push($buttons, $this->shortcode_tag);
return $buttons;
}
@@ -65,7 +65,7 @@ class GWP_bs3_panel_shortcode{
* Used to enqueue custom styles
* @return void
*/
- function admin_enqueue_scripts() {
+ function admin_enqueue_scripts(){
wp_enqueue_style('librevideojs_shortcode', plugins_url('librevideojs/css/mce-button.css', __FILE__));
}
}