/** * Localize for js files */ public static function wr_localize() { WR_Pb_Init_Assets::localize('wr-pb-handleelement', 'Wr_Translate', WR_Pb_Helper_Functions::js_translation()); WR_Pb_Init_Assets::localize('wr-pb-handleelement', 'Wr_Js_Html', WR_Pb_Helper_Shortcode::$item_html_template); WR_Pb_Init_Assets::localize('wr-pb-handleelement', 'Wr_Ajax', WR_Pb_Helper_Functions::localize_js()); // Localize scripts for premade layout modal. WR_Pb_Init_Assets::localize('wr-pb-premade-pages', 'Wr_Translate', WR_Pb_Helper_Functions::js_translation()); WR_Pb_Init_Assets::localize('wr-pb-premade-pages', 'Wr_Ajax', WR_Pb_Helper_Functions::localize_js()); WR_Pb_Init_Assets::localize('wr-pb-layout', 'Wr_Translate', WR_Pb_Helper_Functions::js_translation()); WR_Pb_Init_Assets::localize('wr-pb-widget', 'Wr_Preview_Html', WR_Pb_Helper_Functions::get_element_item_html(array('element_wrapper' => 'div', 'modal_title' => '', 'element_type' => 'data-el-type="element"', 'name' => 'Widget Element Setting', 'shortcode' => 'WR_SHORTCODE_CONTENT', 'shortcode_data' => 'WR_SHORTCODE_DATA', 'content_class' => 'wr-pb-element', 'content' => 'Widget Element Setting'))); }