本文整理汇总了PHP中EE_Registry::localize_i18n_js_strings方法的典型用法代码示例。如果您正苦于以下问题:PHP EE_Registry::localize_i18n_js_strings方法的具体用法?PHP EE_Registry::localize_i18n_js_strings怎么用?PHP EE_Registry::localize_i18n_js_strings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EE_Registry
的用法示例。
在下文中一共展示了EE_Registry::localize_i18n_js_strings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ticket_selector_iframe
/**
* ticket_selector_iframe
*
* @access public
* @return void
*/
public function ticket_selector_iframe()
{
self::$_in_iframe = true;
/** @type EEM_Event $EEM_Event */
$EEM_Event = EE_Registry::instance()->load_model('Event');
$event = $EEM_Event->get_one_by_ID(EE_Registry::instance()->REQ->get('event', 0));
EE_Registry::instance()->REQ->set_espresso_page(true);
$template_args['ticket_selector'] = EED_Ticket_Selector::display_ticket_selector($event);
$template_args['css'] = apply_filters('FHEE__EED_Ticket_Selector__ticket_selector_iframe__css', array(TICKET_SELECTOR_ASSETS_URL . 'ticket_selector_embed.css?ver=' . EVENT_ESPRESSO_VERSION, TICKET_SELECTOR_ASSETS_URL . 'ticket_selector.css?ver=' . EVENT_ESPRESSO_VERSION, includes_url('css/dashicons.min.css?ver=' . $GLOBALS['wp_version']), EE_GLOBAL_ASSETS_URL . 'css/espresso_default.css?ver=' . EVENT_ESPRESSO_VERSION));
EE_Registry::$i18n_js_strings['ticket_selector_iframe'] = true;
EE_Registry::$i18n_js_strings['EEDTicketSelectorMsg'] = __('Please choose at least one ticket before continuing.', 'event_espresso');
$template_args['eei18n'] = apply_filters('FHEE__EED_Ticket_Selector__ticket_selector_iframe__eei18n_js_strings', EE_Registry::localize_i18n_js_strings());
$template_args['js'] = apply_filters('FHEE__EED_Ticket_Selector__ticket_selector_iframe__js', array(includes_url('js/jquery/jquery.js?ver=' . $GLOBALS['wp_version']), EE_GLOBAL_ASSETS_URL . 'scripts/espresso_core.js?ver=' . EVENT_ESPRESSO_VERSION, TICKET_SELECTOR_ASSETS_URL . 'ticket_selector_iframe_embed.js?ver=' . EVENT_ESPRESSO_VERSION));
$template_args['notices'] = EEH_Template::display_template(EE_TEMPLATES . 'espresso-ajax-notices.template.php', array(), true);
EEH_Template::display_template(TICKET_SELECTOR_TEMPLATES_PATH . 'ticket_selector_chart_iframe.template.php', $template_args);
exit;
}