/** * Starts the plugin widgets. * @return void */ static function load_widgets() { if (!class_exists('CFP_Featured_Post_Widget')) { require_once cfp_path('includes/libs/class-cfp-featured-post-widget.php'); } // register the slideshow widget register_widget('CFP_Featured_Post_Widget'); }
/** * Add tinyMce plugin translations */ public function tinymce_languages($locales) { $locales['cf_featured_post'] = cfp_path('assets/admin/js/tinymce/featured_post/langs/langs.php'); return $locales; }