本文整理汇总了PHP中do_accordion_sections函数的典型用法代码示例。如果您正苦于以下问题:PHP do_accordion_sections函数的具体用法?PHP do_accordion_sections怎么用?PHP do_accordion_sections使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了do_accordion_sections函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: esc_attr
?>
">
<div class="clear"></div>
<form id="nav-menu-meta" action="" class="nav-menu-meta" method="post" enctype="multipart/form-data">
<input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php
echo esc_attr($nav_menu_selected_id);
?>
" />
<input type="hidden" name="action" value="add-menu-item" />
<?php
wp_nonce_field('add-menu_item', 'menu-settings-column-nonce');
?>
<?php
do_accordion_sections('nav-menus', 'side', null);
?>
</form>
</div><!-- /#menu-settings-column -->
<div id="menu-management-liquid">
<div id="menu-management">
<form id="update-nav-menu" action="" method="post" enctype="multipart/form-data">
<div class="menu-edit <?php
if ($add_new_screen) {
echo 'blank-slate';
}
?>
">
<?php
wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
示例2: steps
public function steps()
{
?>
<?php
do_accordion_sections('listify_setup_steps', 'normal', null);
?>
<?php
}
示例3: do_accordion_sections
/**
* Fallback for WP < 3.6
*/
public static function do_accordion_sections($screen, $context, $object)
{
if (function_exists('do_accordion_sections')) {
return do_accordion_sections($screen, $context, $object);
}
global $wp_meta_boxes;
$screen = 'formidable_page_formidable-styles';
$screen = convert_to_screen($screen);
$page = $screen->id;
$hidden = get_hidden_meta_boxes($screen);
?>
<div id="side-sortables" class="accordion-container">
<?php
$i = 0;
$first_open = false;
do {
if (!isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context])) {
break;
}
foreach (array('high', 'core', 'default', 'low') as $priority) {
if (isset($wp_meta_boxes[$page][$context][$priority])) {
foreach ($wp_meta_boxes[$page][$context][$priority] as $box) {
if (false == $box || !$box['title']) {
continue;
}
$i++;
$hidden_class = in_array($box['id'], $hidden) ? 'hide-if-js' : '';
if (!$first_open && empty($hidden_class)) {
$first_open = true;
}
?>
<div class="postbox <?php
echo esc_attr($box['id']);
?>
">
<div class="handlediv" title="<?php
esc_attr_e('Click to toggle', 'formidable');
?>
"><br/></div>
<h3 class='hndle'><span><?php
echo esc_html($box['title']);
?>
</span></h3>
<div class="accordion-section-content <?php
postbox_classes($box['id'], $page);
?>
">
<div class="inside">
<?php
call_user_func($box['callback'], $object, $box);
?>
</div><!-- .inside -->
</div><!-- .accordion-section-content -->
</div><!-- .postbox -->
<?php
}
}
}
} while (0);
?>
</div><!-- .accordion-container -->
<?php
return $i;
}
示例4: editor_page
/**
* Handles the display of the editor page in the backend.
*
* @access public
* @return void
*/
public static function editor_page()
{
ob_start();
?>
<div class="wrap wpum-fields-editor-wrap">
<h2 class="wpum-page-title">
<?php
_e('WP User Manager - Fields Editor', 'wpum');
?>
<?php
do_action('wpum/fields/editor/title');
?>
</h2>
<div class="wp-filter">
<?php
echo self::navbar();
?>
<?php
do_action('wpum/fields/editor/navbar');
?>
</div>
<?php
echo self::primary_message();
?>
<div id="nav-menus-frame">
<!-- Sidebar -->
<div id="menu-settings-column" class="metabox-holder">
<div class="clear"></div>
<?php
do_accordion_sections(self::editor_hook, 'side', null);
?>
</div>
<!-- End Sidebar -->
<div id="menu-management-liquid" class="wpum-editor-container">
<?php
echo self::group_table();
?>
<div class="wpum-table-loader">
<span id="wpum-spinner" class="spinner wpum-spinner"></span>
</div>
</div>
</div>
</div>
<?php
echo ob_get_clean();
}
示例5: steps
public function steps()
{
do_accordion_sections('hnm_setup_steps', 'normal', null);
}
示例6: view_settings_page
/**
* Render the settings page.
*/
public function view_settings_page()
{
?>
<div class="wrap" id="wp_seo_settings">
<h2><?php
esc_html_e('WP SEO Settings', 'wp-seo');
?>
</h2>
<form action="options.php" method="POST">
<?php
settings_fields($this::SLUG);
?>
<?php
/**
* Filter the type of UI to use with settings sections.
*
* @param bool Whether to enhance the page with accordions.
*/
if (apply_filters('wp_seo_use_settings_accordions', true)) {
global $wp_settings_sections;
foreach ((array) $wp_settings_sections[$this::SLUG] as $section) {
add_meta_box($section['id'], $section['title'], array($this, 'settings_meta_box'), 'wp-seo', 'advanced', 'default', $section);
}
do_accordion_sections('wp-seo', 'advanced', null);
} else {
do_settings_sections($this::SLUG);
}
?>
<?php
submit_button();
?>
</form>
</div>
<?php
}
示例7: admin_url
?>
<form id="cc-form-settings" action="<?php
echo admin_url('admin.php?page=constant-contact-forms' . $formURL);
?>
" method="post" enctype="multipart/form-data" class="hide-if-no-js">
<div id="nav-menus-frame">
<div id="menu-settings-column" class="metabox-holder">
<div id="settings">
<div id="side-sortables" class="meta-box-sortables ui-sortable">
<?php
do_meta_boxes('constant-contact-form', 'core', null);
?>
<?php
do_accordion_sections('constant-contact-form', 'side', null);
?>
</div>
</div>
</div><!-- /#menu-settings-column -->
<div id="menu-management-liquid">
<div id="menu-management">
<div class="menu-edit">
<div id="form-fields">
<div id="nav-menu-header">
<?php
wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
wp_nonce_field('update-cc-form-' . (int) $cc_form_selected_id, 'update-cc-form-nonce', false);
示例8: block_output
//.........这里部分代码省略.........
}
?>
</select>
<span class="submit-btn">
<input type="submit" class="button-secondary" value="Select"/>
</span>
</form>
</div><!-- /manage-menus -->
<?php
}
?>
<div id="nav-menus-frame">
<div id="menu-settings-column"
class="metabox-holder<?php
echo $this->menu_ID && !$creating ? '' : ' metabox-holder-disabled';
?>
">
<div class="clear"></div>
<form id="nav-menu-meta" action="" class="nav-menu-meta" method="post" enctype="multipart/form-data">
<input type="hidden" name="menu" id="nav-menu-meta-object-id"
value="<?php
echo esc_attr($this->menu_ID);
?>
"/>
<input type="hidden" name="action" value="add-menu-item"/>
<?php
wp_nonce_field('add-menu_item', 'menu-settings-column-nonce');
?>
<?php
do_accordion_sections('nav-menus', 'side', null);
?>
</form>
<div class="clear"></div>
<?php
// Only show if menus exist
if ($this->menu_ID) {
?>
<div id="cd-nav-menu-statuses" class="accordion-container">
<div class="control-section accordion-section open add-post-types" id="add-post-types">
<h3 class="accordion-section-title">
Menu Statuses
</h3>
<div class="accordion-section-content ">
<div class="inside">
<table class="cd-nav-menu-statuses-table">
<tr>
<th>Menu</th>
<th>Active</th>
</tr>
<?php
// Cycle through all role menus and show them
foreach ($this->all_menu_IDs as $role => $menu_ID) {
// Skip if no menu ID present
if (!$menu_ID) {
continue;
}
$on_off = get_option('cd_adminmenu_disabled_' . $this->all_menu_IDs[$role], false) ? 'off' : 'on';
?>
<tr>