本文整理汇总了PHP中GFForms::form_switcher方法的典型用法代码示例。如果您正苦于以下问题:PHP GFForms::form_switcher方法的具体用法?PHP GFForms::form_switcher怎么用?PHP GFForms::form_switcher使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GFForms
的用法示例。
在下文中一共展示了GFForms::form_switcher方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: form_page_title
public static function form_page_title($form)
{
$editable_class = GFCommon::current_user_can_any('gravityforms_edit_forms') ? ' gform_settings_page_title_editable' : '';
?>
<h1>
<span id='gform_settings_page_title' class='gform_settings_page_title<?php
echo $editable_class;
?>
' onclick='GF_ShowEditTitle()'><?php
echo esc_html(rgar($form, 'title'));
?>
</span>
<?php
GFForms::form_switcher();
?>
<span class="gf_admin_page_formid">ID: <?php
echo absint($form['id']);
?>
</span>
</h1>
<?php
GFForms::edit_form_title($form);
?>
<?php
}
示例2: lead_detail_page
//.........这里部分代码省略.........
});
}
}
</script>
<?php
$editable_class = GFCommon::current_user_can_any('gravityforms_edit_forms') ? ' gform_settings_page_title_editable' : '';
?>
<form method="post" id="entry_form" enctype='multipart/form-data'>
<?php
wp_nonce_field('gforms_save_entry', 'gforms_save_entry');
?>
<input type="hidden" name="action" id="action" value="" />
<input type="hidden" name="screen_mode" id="screen_mode" value="<?php
echo esc_attr(rgpost('screen_mode'));
?>
" />
<input type="hidden" name="entry_id" id="entry_id" value="<?php
echo absint($lead['id']);
?>
" />
<div class="wrap gf_entry_wrap">
<h2 class="gf_admin_page_title">
<span id='gform_settings_page_title' class='gform_settings_page_title<?php
echo $editable_class;
?>
' onclick='GF_ShowEditTitle()'><?php
echo esc_html(rgar($form, 'title'));
?>
</span>
<?php
GFForms::form_switcher();
?>
<?php
if (isset($_GET['pos'])) {
?>
<div class="gf_entry_detail_pagination">
<ul>
<li class="gf_entry_count">
<span>entry <strong><?php
echo $position + 1;
?>
</strong> of <strong><?php
echo $total_count;
?>
</strong></span>
</li>
<li class="gf_entry_prev gf_entry_pagination"><?php
echo GFEntryDetail::entry_detail_pagination_link($prev_pos, 'Previous Entry', 'gf_entry_prev_link', 'fa fa-arrow-circle-o-left');
?>
</li>
<li class="gf_entry_next gf_entry_pagination"><?php
echo GFEntryDetail::entry_detail_pagination_link($next_pos, 'Next Entry', 'gf_entry_next_link', 'fa fa-arrow-circle-o-right');
?>
</li>
</ul>
</div>
<?php
}
?>
<span class="gf_admin_page_subtitle">
<span class="gf_admin_page_formid">ID: <?php
echo absint($form['id']);
示例3: form_page_title
public static function form_page_title($form)
{
?>
<h1>
<span id='gform_settings_page_title' class='gform_settings_page_title' onclick='GF_ShowEditTitle()'><?php
echo esc_html(rgar($form, 'title'));
?>
</span>
<?php
GFForms::form_switcher();
?>
<span class="gf_admin_page_formid">ID: <?php
echo absint($form['id']);
?>
</span>
</h1>
<?php
GFForms::edit_form_title($form);
?>
<?php
}
示例4: form_page_title
public static function form_page_title($form)
{
?>
<h1>
<?php
echo esc_html(rgar($form, 'title'));
?>
<span class="gf_admin_page_formid">ID: <?php
echo absint($form['id']);
?>
</span>
<?php
GFForms::form_switcher();
?>
</h1>
<?php
}