本文整理汇总了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';
}