| @@ -44,10 +44,8 @@ | ||
| 44 | 44 | |
| 45 | 45 | add_shortcode('maxsocial', array($this->admin()->namespaceit('collections'), 'shortcode') ); |
| 46 | 46 | |
| 47 | 47 | add_action('maxbuttons/ajax/save_collection', array( $this->admin()->namespaceit('collections'), 'ajax_save') ); |
| 48 | - add_action('maxbuttons/ajax/remove-collection', array( $this->admin()->namespaceit('collections'), 'ajax_remove_collection') ); | |
| 49 | - | |
| 50 | 48 | add_action('maxbuttons/ajax/refreshblock', array($this->admin()->namespaceit('collections'), 'ajax_refreshblock') ); |
| 51 | 49 | add_action('maxbuttons/ajax/get_presets', array($this->admin()->namespaceit('collections'), 'ajax_getpresets') ); |
| 52 | 50 | add_action('maxbuttons/ajax/set_preset', array($this->admin()->namespaceit('collections'), 'ajax_setpreset') ); |
| 53 | 51 | |
| @@ -56,8 +54,10 @@ | ||
| 56 | 54 | add_action('maxbuttons/ajax/remove-networksettings', array($this->networks(), 'ajax_removesettings')); |
| 57 | 55 | add_action('maxbuttons/ajax/show-customnetworks', array($this->networks(), 'ajax_showcustomnetworks')); |
| 58 | 56 | add_action('maxbuttons/ajax/import-customnetworks', array($this->networks(), 'ajax_importcustomnetworks')); |
| 59 | 57 | |
| 58 | + | |
| 59 | + | |
| 60 | 60 | // FRONT AJAX |
| 61 | 61 | add_action('wp_ajax_mbsocial_get_count', array($this->admin()->namespaceit("collections"), "ajax_action_front")); // front end for all users |
| 62 | 62 | add_action('wp_ajax_nopriv_mbsocial_get_count', array($this->admin()->namespaceit("collections"), "ajax_action_front")); |
| 63 | 63 | |
| @@ -197,11 +197,10 @@ | ||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | public function admin_styles($hook) |
| 200 | 200 | { |
| 201 | + wp_register_style('mbsocial-global', $this->plugin_url . 'css/global-admin.css', array(), $this->version); | |
| 201 | 202 | |
| 202 | - wp_register_style('mbsocial-global', $this->plugin_url . 'css/global-admin.css', array(), $this->version); | |
| 203 | - | |
| 204 | 203 | if ( strpos($hook,'maxbuttons-social') === false ) |
| 205 | 204 | return; |
| 206 | 205 | |
| 207 | 206 | wp_enqueue_style('mbsocial-admin', $this->plugin_url . 'css/admin.css', array(), $this->version); |
| @@ -206,24 +205,15 @@ | ||
| 206 | 205 | |
| 207 | 206 | wp_enqueue_style('mbsocial-admin', $this->plugin_url . 'css/admin.css', array(), $this->version); |
| 208 | 207 | |
| 209 | 208 | if (Install::isPro()) |
| 210 | - { | |
| 211 | 209 | $deps = array('maxbuttons-pro-init','maxbuttons-ajax', 'mb-media-button', 'jquery-ui-sortable'); // pro init |
| 212 | - wp_register_script('maxbuttons-mbcustom', $this->plugin_url . 'js/maxbuttons-custom.js', $deps, $this->version, true); | |
| 213 | - wp_enqueue_script('maxbuttons-mbcustom'); | |
| 214 | - | |
| 215 | - wp_register_script('mbsocial-icons', $this->plugin_url . 'js/images.js', $deps, $this->version, true); | |
| 216 | - wp_enqueue_script('mbsocial-icons'); | |
| 217 | - } | |
| 218 | 210 | else |
| 219 | - { | |
| 220 | 211 | $deps = array('maxbutton-js-init', 'maxbuttons-ajax', 'mb-media-button', 'jquery-ui-sortable'); // free init |
| 221 | - } | |
| 212 | + | |
| 222 | 213 | wp_register_script('maxbuttons-social', $this->plugin_url . 'js/maxbuttons-social.js', $deps , $this->version, true); |
| 223 | 214 | wp_enqueue_script('maxbuttons-social'); |
| 224 | 215 | |
| 225 | - | |
| 226 | 216 | wp_register_script('mbsocial-editor', $this->plugin_url . 'js/network-editor.js', $deps, $this->version, true); |
| 227 | 217 | wp_enqueue_script('mbsocial-editor'); |
| 228 | 218 | |
| 229 | 219 | MB()->load_media_script(); |
| @@ -238,10 +228,10 @@ | ||
| 238 | 228 | $this->version, true); |
| 239 | 229 | |
| 240 | 230 | wp_register_style('mbsocial-buttons', $this->plugin_url . 'css/buttons.css'); |
| 241 | 231 | |
| 242 | - //wp_register_style('nucleo_icons', $this->plugin_url . 'libraries/nucleo_icons/nucleo_icons.css', array(), $this->version); | |
| 243 | - //wp_enqueue_style('nucleo_icons'); | |
| 232 | + wp_register_style('nucleo_icons', $this->plugin_url . 'libraries/nucleo_icons/nucleo_icons.css', array(), $this->version); | |
| 233 | + wp_enqueue_style('nucleo_icons'); | |
| 244 | 234 | } |
| 245 | 235 | |
| 246 | 236 | public function meta_boxes($post_type, $post) |
| 247 | 237 | { |