Esempio n. 1
0
 public function setUpTheme()
 {
     parent::setUpPlugin();
     $this->swift_page_builder->addAction('edit_post', 'saveMetaBoxes');
     $this->swift_page_builder->addAction('wp_ajax_spb_get_element_backend_html', 'elementBackendHtmlJavascript_callback');
     $this->swift_page_builder->addAction('wp_ajax_spb_shortcodes_to_builder', 'spbShortcodesJS_callback');
     $this->swift_page_builder->addAction('wp_ajax_spb_show_edit_form', 'showEditFormJavascript_callback');
     $this->swift_page_builder->addAction('wp_ajax_spb_save_template', 'saveTemplateJavascript_callback');
     $this->swift_page_builder->addAction('wp_ajax_spb_load_template', 'loadTemplateJavascript_callback');
     $this->swift_page_builder->addAction('wp_ajax_sf_load_template', 'loadSFTemplateJavascript_callback');
     $this->swift_page_builder->addAction('wp_ajax_spb_delete_template', 'deleteTemplateJavascript_callback');
     /* Add specific CSS class by filter */
     $this->addFilter('body_class', 'pageBuilderBodyClass');
     $this->addFilter('get_media_item_args', 'jsForceSend');
     $this->addAction('admin_init', 'swiftPageBuilderRedirect');
     $this->addAction('admin_init', 'swiftPageBuilderEditPage', 5);
     $this->addAction('admin_init', 'registerCss');
     $this->addAction('admin_init', 'registerJavascript');
     $this->addAction('admin_print_scripts-post.php', 'swiftPageBuilderScripts');
     $this->addAction('admin_print_scripts-post-new.php', 'swiftPageBuilderScripts');
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
 }