The options for the Wordpress menus, allowing you to quickly view and edit any page.
' , 'admin-page-spider' );
break;
case 'posts_section':
//check there is more than 1 post so that the user actually blogs.
$count_posts = wp_count_posts();
$published_posts = $count_posts->publish;
if ( $published_posts > 0 ){
echo __( 'Control the settings for the "Posts" menu.
' , 'admin-page-spider' );
}
else {
echo __( 'You may need to add a blog/post first before this will display!
' , 'admin-page-spider' );
}
break;
case 'acf_section':
echo __( 'Adds a menu to your advanced custom field types!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'beaverbuilder_section':
echo __( 'Adds a menu to open any page in the editor AND links to quickly clear the BB cache!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'custompts_section':
echo __( 'Adds ability to create a menu for ANY!!!! Custom Post Type you have defined in your WordPress!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'divi_section':
echo __( 'Adds a menu to open any page in the Divi editor!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'oxygen_section':
echo __( 'Adds a menu to open any page in the Oxygen builder!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'csshero_section':
echo __( 'Adds a menu to open any page in the CSS Hero editor!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'edd_downloads_section':
echo __( 'Adds a menu to open any of your downloads directly!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'microthemer_section':
echo __( 'Adds a menu to open any page in the MicroThemer editor!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'woo_section':
echo __( 'Adds a menu to open any of your Products directly and see a nice easy list of everything in your store!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'elementor_section':
echo __( 'Adds a menu to open any page in the Elementor builder!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
case 'yellowpencil_section':
echo __( 'Adds a menu to open any page in the Yellowpencil editor!
Get Pro To Enable!
Check It Out Now
' , 'admin-page-spider' );
break;
}
}
global $fields;
//Settings fields array containing all settings used in the plugin
$fields = array(
// Wordpress Pages
array(
'uid' => 'apspider_editmenu_name',
'label' => __( 'Name for the Wordpress Pages Menu?', 'admin-page-spider'),
'section' => 'first_section',
'type' => 'text',
'supplemental' => __( 'The name of the menu item in the Admin Bar', 'admin-page-spider'),
'default' => 'Edit Page'
),
array(
'uid' => 'apspider_radio_editmenu',
'label' => __( 'Display The Wordpress Pages Menu?' , 'admin-page-spider' ),
'section' => 'first_section',
'type' => 'radio',
'supplemental' => __( 'Easy access to edit each page.', 'admin-page-spider'),
'options' => array(
'option1' => __( 'Display' , 'admin-page-spider' ),
'option2' => __( 'Hide' , 'admin-page-spider' ),
),
'default' => array('option1')
),
//Wordpress section: display POSTS
//The name of the Posts Menu
array(
'uid' => 'apspp_posts_name',
'label' => __( 'Name for the Posts Menu?', 'admin-page-spider' ),
'section' => 'posts_section',
'type' => 'text',
'supplemental' => __( 'The name of the menu item.', 'admin-page-spider' ),
'default' => 'Edit Post'
),
array(
'uid' => 'apspp_radio_viewposts',
'label' => __( 'Display The "Posts" Menu?' , 'admin-page-spider' ),
'section' => 'posts_section',
'type' => 'radio',
'supplemental' => __('Lists all your posts with edit links', 'admin-page-spider' ),
'options' => array(
'option1' => __( 'Display' , 'admin-page-spider' ),
'option2' => __( 'Hide' , 'admin-page-spider' ),
),
'default' => array('option1')
),
);
return $fields;