本文整理汇总了PHP中FrmAppHelper::esc_textarea方法的典型用法代码示例。如果您正苦于以下问题:PHP FrmAppHelper::esc_textarea方法的具体用法?PHP FrmAppHelper::esc_textarea怎么用?PHP FrmAppHelper::esc_textarea使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrmAppHelper
的用法示例。
在下文中一共展示了FrmAppHelper::esc_textarea方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: esc_attr
<td>
<input type="text" id="limit" name="options[page_size]" value="<?php
echo esc_attr($values['page_size']);
?>
" size="4" />
</td>
</tr>
<tr class="form-field">
<th valign="top" scope="row"><?php
_e('Message if nothing to display', 'formidable');
?>
</th>
<td>
<textarea id="empty_msg" name="options[empty_msg]" style="width:98%"><?php
echo FrmAppHelper::esc_textarea($values['empty_msg']);
?>
</textarea>
</td>
</tr>
<?php
if (IS_WPMU) {
if (FrmAppHelper::is_super_admin()) {
?>
<tr class="form-field">
<th valign="top" scope="row"><?php
_e('Copy', 'formidable');
?>
</th>
示例2: esc_attr
if ($field['type'] == 'textarea') {
?>
<textarea name="<?php
echo esc_attr($field_name);
?>
" <?php
echo FrmField::is_option_true($field, 'size') ? esc_attr('style="width:' . $field['size'] . (is_numeric($field['size']) ? 'px' : '') . ';"') : '';
?>
rows="<?php
echo esc_attr($field['max']);
?>
" id="<?php
echo esc_attr($html_id);
?>
" class="dyn_default_value"><?php
echo FrmAppHelper::esc_textarea(force_balance_tags($field['default_value']));
?>
</textarea>
<?php
} else {
if ($field['type'] == 'radio' || $field['type'] == 'checkbox') {
$field['default_value'] = maybe_unserialize($field['default_value']);
if (isset($field['post_field']) && $field['post_field'] == 'post_category') {
do_action('frm_after_checkbox', array('field' => $field, 'field_name' => $field_name, 'type' => $field['type']));
} else {
do_action('frm_add_multiple_opts_labels', $field);
?>
<ul id="frm_field_<?php
echo esc_attr($field['id']);
?>
示例3: _e
<?php
} else {
if ($field['type'] == 'html') {
?>
<tr><td colspan="2"><?php
_e('Content', 'formidable');
?>
<br/>
<textarea name="field_options[description_<?php
echo $field['id'];
?>
]" style="width:98%;" rows="8"><?php
if (FrmField::is_option_true($field, 'stop_filter')) {
echo $field['description'];
} else {
echo FrmAppHelper::esc_textarea($field['description']);
}
?>
</textarea>
</td>
</tr>
<?php
} else {
if ($field['type'] == 'form') {
?>
<tr><td><?php
_e('Insert Form', 'formidable');
?>
</td>
<td><?php
FrmFormsHelper::forms_dropdown('field_options[form_select_' . $field['id'] . ']', $field['form_select'], array('exclude' => $field['form_id']));
示例4: esc_attr
?>
" />
<input type="hidden" name="style_name" value="frm_style_<?php
echo esc_attr($style->post_name);
?>
" />
<input type="hidden" name="frm_action" value="save_css" />
<?php
wp_nonce_field('frm_custom_css_nonce', 'frm_custom_css');
?>
<textarea name="<?php
echo esc_attr($frm_style->get_field_name('custom_css'));
?>
" id="frm_custom_css_box" class="hide-if-js"><?php
echo FrmAppHelper::esc_textarea($style->post_content['custom_css']);
?>
</textarea>
<?php
foreach ($style->post_content as $k => $v) {
if ($k == 'custom_css') {
continue;
}
?>
<input type="hidden" value="<?php
echo esc_attr($v);
?>
" name="<?php
echo esc_attr($frm_style->get_field_name($k));
?>
示例5: stripslashes
FrmProFieldsHelper::get_shortcode_select($values['id'], 'frm_dyncontent');
}
?>
<br/>
<?php
if ($display) {
?>
<input type="hidden" value="<?php
echo $display->id;
?>
" name="frm_display_id" />
<textarea id="frm_dyncontent" name="frm_<?php
echo $display->show_count == 'single' ? 'single_' : 'dyn';
?>
content" rows="10" style="width:98%"><?php
echo stripslashes(FrmAppHelper::esc_textarea($display->show_count == 'single' ? $display->content : $display->dyncontent));
?>
</textarea>
<?php
} else {
?>
<textarea id="frm_dyncontent" name="frm_dyncontent" rows="10" style="width:98%"></textarea>
<?php
}
?>
</td>
</tr>
<tr class="frm_hide_post" <?php
echo $hide_post;
示例6: _e
}
}
?>
</div>
</div>
</td>
</tr>
<tr class="form-field">
<td><?php
_e('No Entries Message', 'formidable');
?>
</td>
<td>
<textarea id="empty_msg" name="options[empty_msg]" style="width:98%"><?php
echo FrmAppHelper::esc_textarea($post->frm_empty_msg);
?>
</textarea>
</td>
</tr>
</table>
<h3><?php
_e('Advanced', 'formidable');
?>
</h3>
<table class="form-table frm-no-margin">
<tr class="hide_dyncontent <?php
echo in_array($post->frm_show_count, array('dynamic', 'calendar')) ? '' : 'frm_hidden';
?>
">
示例7: esc_attr
echo esc_attr($notification['email_subject']);
?>
" /></p>
<p><label><?php
_e('Message', 'formidable');
?>
</label><br/>
<textarea name="notification[<?php
echo $email_key;
?>
][email_message]" class="frm_not_email_message frm_long_input" id="email_message_<?php
echo $email_key;
?>
" cols="50" rows="5"><?php
echo FrmAppHelper::esc_textarea($notification['email_message']);
?>
</textarea></p>
<h4><?php
_e('Options', 'formidable');
?>
</h4>
<label for="inc_user_info_<?php
echo $email_key;
?>
"><input type="checkbox" name="notification[<?php
echo $email_key;
?>
][inc_user_info]" class="frm_not_inc_user_info" id="inc_user_info_<?php
echo $email_key;
示例8: _e
</div>
*/
?>
<div class="frm_rte">
<p class="howto"><?php
_e('These buttons are for illustrative purposes only. They will be functional in your form.', 'formidable');
?>
</p>
<textarea name="<?php
echo $field_name;
?>
" rows="<?php
echo $field['max'];
?>
"><?php
echo FrmAppHelper::esc_textarea($field['default_value']);
?>
</textarea>
</div>
<?php
} else {
if ($field['type'] == 'html') {
global $frmpro_settings;
?>
<div style="width:<?php
echo $frmpro_settings->field_width;
?>
;margin-bottom:10px;text-align:center;">
<div class="howto button-secondary frm_html_field"><?php
_e('This is a placeholder for your custom HTML.', 'formidable');
?>
示例9: _e
" style="width:98%"/></td>
</tr>
<tr valign="top" class="hide_ar">
<td><label><?php
_e('Message', 'formidable');
?>
</label></td>
<td><?php
if (isset($values['id'])) {
FrmProFieldsHelper::get_shortcode_select($values['id'], 'ar_email_message', 'email');
}
?>
<br/>
<textarea name="options[ar_email_message]" id="ar_email_message" cols="50" rows="5" style="width:98%"><?php
echo FrmAppHelper::esc_textarea($values['ar_email_message']);
?>
</textarea>
</td>
</tr>
<tr valign="top" class="hide_ar">
<td><label><?php
_e('Email Format', 'formidable');
?>
</label></td>
<td><input type="checkbox" name="options[ar_plain_text]" id="ar_plain_text" value="1" <?php
checked($values['ar_plain_text'], 1);
?>
/> <?php
_e('Send Emails in Plain Text', 'formidable');
示例10: unset
?>
</textarea></p>
<?php
}
unset($field);
}
}
?>
</div>
<p><label class="frm_primary_label"><?php
_e('After Fields', 'formidable');
?>
</label>
<textarea name="options[after_html]" rows="3" class="frm_long_input"><?php
echo FrmAppHelper::esc_textarea($values['after_html']);
?>
</textarea></p>
</div>
</div>
<div id="post_settings" class="post_settings tabs-panel" style="display:none;">
<?php
if ($frmpro_is_installed) {
FrmProFormsController::post_options($values);
} else {
FrmAppController::update_message('create and edit posts, pages, and custom post types through your forms');
}
?>
</div>
<?php
示例11: _e
">
<td colspan="2">
<label><?php
_e('Customize Content', 'formidable');
?>
</label>
<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php
esc_attr_e('The content shown on your single post page. If nothing is entered here, the regular post content will be used.', 'formidable');
?>
" ></span><br/>
<textarea id="frm_dyncontent" placeholder="<?php
esc_attr_e('Add text, HTML, and fields from your form to build your post content.', 'formidable');
?>
" name="dyncontent" rows="10" class="frm_not_email_message large-text"><?php
if ($display) {
echo FrmAppHelper::esc_textarea($display->frm_show_count == 'one' ? $display->post_content : $display->frm_dyncontent);
}
?>
</textarea>
<p class="howto"><?php
_e('Editing this box will update your existing view or create a new one.', 'formidable');
?>
</p>
</td>
</tr>
<tr>
<th>
<label><?php
_e('Excerpt', 'formidable');
?>
示例12: _e
echo FrmAppHelper::esc_textarea($values['edit_msg']);
?>
</textarea>
</td>
</tr>
<tr class="hide_save_draft <?php
echo $values['save_draft'] ? '' : ' frm_hidden';
?>
">
<td>
<div><?php
_e('Saved Draft', 'formidable');
?>
</div>
<textarea name="options[draft_msg]" id="draft_msg" cols="50" rows="2" class="frm_long_input"><?php
echo FrmAppHelper::esc_textarea($values['draft_msg']);
?>
</textarea>
<!--
<select name="options[save_draft]" id="save_draft" class="hide_save_draft">
<option value="0"><?php
_e('No one', 'formidable');
?>
</option>
<option value="1" <?php
echo $values['save_draft'] == 1 ? ' selected="selected"' : '';
?>
><?php
_e('Logged-in Users', 'formidable');
?>
</option>
示例13: esc_attr
echo esc_attr($form_action->post_content['email_subject']);
?>
" /></p>
<p><label><?php
_e('Message', 'formidable');
?>
</label><br/>
<textarea name="<?php
echo esc_attr($this->get_field_name('email_message'));
?>
" class="frm_not_email_message large-text" id="<?php
echo esc_attr($this->get_field_id('email_message'));
?>
" cols="50" rows="5"><?php
echo FrmAppHelper::esc_textarea($form_action->post_content['email_message']);
?>
</textarea></p>
<h4><?php
_e('Options', 'formidable');
?>
</h4>
<label for="<?php
echo esc_attr($this->get_field_id('inc_user_info'));
?>
"><input type="checkbox" name="<?php
echo esc_attr($this->get_field_name('inc_user_info'));
?>
" class="frm_not_inc_user_info" id="<?php
echo esc_attr($this->get_field_id('inc_user_info'));
示例14: _e
<p><label><?php
_e('After Fields', 'formidable');
?>
</label>
<textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php
echo FrmAppHelper::esc_textarea($values['after_html']);
?>
</textarea></p>
<p><label><?php
_e('Submit Button', 'formidable');
?>
</label>
<textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php
echo FrmAppHelper::esc_textarea($values['submit_html']);
?>
</textarea></p>
</div>
</div>
<?php
foreach ($sections as $key => $section) {
if (isset($section['anchor'])) {
$sec_anchor = $section['anchor'];
} else {
$sec_anchor = $key;
}
?>
<div id="<?php
echo esc_attr($sec_anchor);
示例15:
<textarea id="excerpt" name="excerpt" style="width:98%;"><?php
echo FrmAppHelper::esc_textarea($post->post_excerpt);
?>
</textarea>
<p class="howto"><?php
_e('This is not displayed anywhere, but is just for your reference. (optional)', 'formidable');
?>
</p>