本文整理汇总了PHP中PBHelper::getFormName方法的典型用法代码示例。如果您正苦于以下问题:PHP PBHelper::getFormName方法的具体用法?PHP PBHelper::getFormName怎么用?PHP PBHelper::getFormName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PBHelper
的用法示例。
在下文中一共展示了PBHelper::getFormName方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: esc_attr
</td>
<td>
<div class="pb-clear-fix">
<input type="text" name="<?php
PBHelper::getFormName('team_social_url[]');
?>
" value="<?php
echo esc_attr($value['team_social_url']);
?>
"/>
</div>
</td>
<td>
<div class="pb-clear-fix">
<input type="text" name="<?php
PBHelper::getFormName('team_social_order[]');
?>
" value="<?php
echo esc_attr($value['team_social_order']);
?>
"/>
</div>
</td>
<td>
<div class="pb-clear-fix">
<a href="#" class="pb-table-button-remove"><?php
esc_attr_e('Remove', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</a>
</div>
</td>
示例2: adminPluginOptionSave
function adminPluginOptionSave()
{
$response = array('global' => array('error' => 1));
$option = PBHelper::getPostOption();
$Notice = new PBNotice();
$Validation = new PBValidation($Notice);
$invalidValue = __('Invalid value', PLUGIN_PAGE_BUILDER_DOMAIN);
if ($this->isVisualModeEnable()) {
$Validation->notice('isNumber', array($option['enable_page'], 0, 1), array(PBHelper::getFormName('enable_page', false), $invalidValue));
$Validation->notice('isNumber', array($option['enable_post'], 0, 1), array(PBHelper::getFormName('enable_post', false), $invalidValue));
}
if ($Notice->isError()) {
$response['local'] = $Notice->getError();
} else {
PBOption::updateOption($option);
$this->createCSSFile();
$response['global']['error'] = 0;
}
$response['global']['notice'] = $Notice->createHTML(PLUGIN_PAGE_BUILDER_TEMPLATE_PATH . 'notice.php');
echo json_encode($response);
exit;
}
示例3:
" id="<?php
PBHelper::getFormName('option_save');
?>
" class="pb-plugin-option-button"/>
</div>
</div>
<input type="hidden" name="action" id="action" value="page_builder_option_save" />
<script type="text/javascript">
jQuery(document).ready(function($)
{
$('#<?php
PBHelper::getFormName('option_cache_clear');
?>
').bind('click',function()
{
$('#action').val('page_builder_option_cache_clear');
$('#pb_plugin_option_form').submit();
$('#action').val('page_builder_option_save');
});
$('.pb-plugin-option').pluginOption();
$('.pb-plugin-option').pluginOptionElement({init:true});
});
</script>
示例4: esc_html_e
echo PBHelper::returnIf($this->data['option']['enable_post'], 1);
?>
/>
<label for="<?php
PBHelper::getFormName('enable_post_1');
?>
"><?php
esc_html_e('Enable', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</label>
<input type="radio" name="<?php
PBHelper::getFormName('enable_post');
?>
" id="<?php
PBHelper::getFormName('enable_post_2');
?>
" value="0" <?php
echo PBHelper::returnIf($this->data['option']['enable_post'], 0);
?>
/>
<label for="<?php
PBHelper::getFormName('enable_post_2');
?>
"><?php
esc_html_e('Disable', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</label>
</div>
</div>
</li>
</ul>
示例5: esc_attr
</td>
<td>
<div class="pb-clear-fix">
<input type="text" name="<?php
PBHelper::getFormName('team_skill_level[]');
?>
" value="<?php
echo esc_attr($value['team_skill_level']);
?>
"/>
</div>
</td>
<td>
<div class="pb-clear-fix">
<input type="text" name="<?php
PBHelper::getFormName('team_skill_order[]');
?>
" value="<?php
echo esc_attr($value['team_skill_order']);
?>
"/>
</div>
</td>
<td>
<div class="pb-clear-fix">
<a href="#" class="pb-table-button-remove"><?php
esc_html_e('Remove', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</a>
</div>
</td>
示例6: esc_html_e
</h5>
<span class="pb-group-subheader">
<?php
esc_html_e('URL of page, which has to be open after clicking on team member image/name.', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
<br/>
<?php
esc_html_e('An image is opening by default (when URL isn\'t specified).', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</span>
<div>
<input type="text" name="<?php
PBHelper::getFormName('team_url');
?>
" id="<?php
PBHelper::getFormName('team_url');
?>
" value="<?php
echo esc_attr($this->data['option']['team_url']);
?>
"/>
</div>
</li>
</ul>
</div>
<script type="text/javascript">
jQuery(document).ready(function($)
示例7: esc_html_e
<li>
<h5 class="pb-group-header"><?php
esc_html_e('Position', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</h5>
<span class="pb-group-subheader"><?php
esc_html_e('Enter company position of team member.', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</span>
<div>
<input type="text" name="<?php
PBHelper::getFormName('team_position');
?>
" id="<?php
PBHelper::getFormName('team_position');
?>
" value="<?php
echo esc_attr($this->data['option']['team_position']);
?>
" maxlength="255" />
</div>
</li>
</ul>
</div>
<script type="text/javascript">
jQuery(document).ready(function($)