本文整理匯總了PHP中FrmAppHelper::locales方法的典型用法代碼示例。如果您正苦於以下問題:PHP FrmAppHelper::locales方法的具體用法?PHP FrmAppHelper::locales怎麽用?PHP FrmAppHelper::locales使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FrmAppHelper
的用法示例。
在下文中一共展示了FrmAppHelper::locales方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: display_form
public static function display_form($errors = array(), $message = '')
{
global $frm_vars;
$frm_settings = FrmAppHelper::get_settings();
$frm_roles = FrmAppHelper::frm_capabilities();
$uploads = wp_upload_dir();
$target_path = $uploads['basedir'] . '/formidable/css';
$sections = apply_filters('frm_add_settings_section', array());
$captcha_lang = FrmAppHelper::locales('captcha');
require FrmAppHelper::plugin_path() . '/classes/views/frm-settings/form.php';
}
示例2: display_form
public static function display_form($errors = array(), $message = '')
{
global $frm_vars;
$frm_settings = FrmAppHelper::get_settings();
$frm_roles = FrmAppHelper::frm_capabilities();
$uploads = wp_upload_dir();
$target_path = $uploads['basedir'] . '/formidable/css';
$sections = array();
if (apply_filters('frm_include_addon_page', false)) {
$sections['licenses'] = array('class' => 'FrmAddonsController', 'function' => 'license_settings', 'name' => __('Plugin Licenses', 'formidable'));
}
$sections = apply_filters('frm_add_settings_section', $sections);
$captcha_lang = FrmAppHelper::locales('captcha');
require FrmAppHelper::plugin_path() . '/classes/views/frm-settings/form.php';
}
示例3: options_form
public static function options_form($field, $display, $values)
{
remove_action('frm_field_options_form', 'FrmFieldsController::add_conditional_update_msg', 50);
global $frm_vars;
$frm_settings = FrmAppHelper::get_settings();
$form_fields = false;
if ($display['logic'] && !empty($field['hide_field']) && is_array($field['hide_field'])) {
$form_fields = FrmField::get_all_for_form($values['id']);
}
if ('data' == $field['type']) {
$frm_field_selection = FrmField::pro_field_selection();
}
if ($field['type'] == 'date') {
$locales = FrmAppHelper::locales('date');
} else {
if ($field['type'] == 'file') {
$mimes = get_allowed_mime_types();
}
}
require FrmAppHelper::plugin_path() . '/pro/classes/views/frmpro-fields/options-form.php';
}