get_section( $section_id );
// Move Site Title & Tagline section to General panel
$section->panel = $panel;
// Set Site Title & Tagline section priority
$section->priority = 10;
// Reset priorities on Site Title control
//$wp_customize->get_control( 'blogname' )->priority = 12;
// Reset priorities on Tagline control
//$wp_customize->get_control( 'blogdescription' )->priority = 14;
/**
* Static Front Page
*/
$section_id = 'static_front_page';
$section = $wp_customize->get_section( $section_id );
// Bail if the section isn't registered
if ( is_object( $section ) && 'WP_Customize_Section' === get_class( $section ) ) {
$section->panel = $panel; // Move Static Front Page section to General panel
$section->priority = 16; // Set Static Front Page section priority
}
// add our own stuff....
$general_sections['general_admin'] = array(
'panel' => $panel,
'title' => esc_html__( 'Admin', 'absolute-weaver' ),
'options' => array(
'_inline_style' => array(
'setting' => array(
'transport' => 'postMessage' // no visual effect, so don't refresh
),
'control' => array(
'label' => __( 'Inline CSS', 'absolute-weaver' ),
'description' => __( 'Generate inline CSS code for current options rather than using generated style file.
By default, Absolute Weaver will create and use the wp-content/uploads/absolute-wvr-css/style-absolute-wvr-gen.css file. ♦', 'absolute-weaver' ),
'type' => 'checkbox',
),
),
/* will likely be supported in future version
'_no_schemea' => array(
'setting' => array(
'transport' => 'postMessage' // no visual effect, so don't refresh
),
'control' => array(
'label' => esc_html__( 'Disable Schema.org Structured Data', 'absolute-weaver' ),
'description' => esc_html__( 'Disable adding Schema.org structured data microformat codes. (We do not recommend removing this microformat data.) ♦', 'absolute-weaver' ),
'type' => 'checkbox',
),
),
*/
'_print_show_widgets' => array(
'setting' => array(
'transport' => 'postMessage' // no visual effect, so don't refresh
),
'control' => array(
'label' => __( 'Include Widget Areas in Print', 'absolute-weaver' ),
'description' => __( 'Include all widget areas and full Footer content on browser Print page operation. ♦', 'absolute-weaver' ),
'type' => 'checkbox',
),
),
'_sitemap_exclude_pages' => array(
'setting' => array(
'sanitize_callback' => 'aweaver_cz_sanitize_head_code',
'transport' => 'refresh',
'default' => '',
),
'control' => array(
'control_type' => 'AWeaver_Textarea_Control',
'label' => __( 'Exclude Pages from SiteMap', 'absolute-weaver' ) . AWEAVER_REFRESH_ICON,
'description' => aweaver_sanitize_markup( __(
'You can specify a comma separated list of Page IDs to be excluded from the SiteMap Page list.
To exclude pages from Search results, use a plugin such as "Search Exclude".
You can hide different sections of the SiteMap by adding rules to the "Custom CSS Rules" box.
To hide authors, for example, add the rule #sitemap-authors{display:none;}.
The IDs for the SiteMap sections are: #sitemap-pages, #sitemap-posts, #sitemap-categories, #sitemap-tags, #sitemap-authors. ♦', 'absolute-weaver' ) ),
'type' => 'textarea',
'input_attrs' => array(
'rows' => '2',
'placeholder' => __( 'Comma separated list of Page IDs', 'absolute-weaver' ),
),
),
),
'_hide_donate' => array(
'setting' => array(
'transport' => 'postMessage' // no visual effect, so don't refresh
),
'control' => array(
'label' => __( 'I\'ve Donated', 'absolute-weaver' ),
'description' => __( 'Thank you for donating to the Absolute Weaver theme.
This will hide the Donate button. Purchasing Absolute Weaver Plus also hides the Donate button. ♦', 'absolute-weaver' ),
'type' => 'checkbox',
),
),
'_hide_editor_style' => array(
'setting' => array(
'transport' => 'postMessage' // no visual effect, so don't refresh
),
'control' => array(
'label' => __( 'Disable Page/Post Editor Styling', 'absolute-weaver' ),
'description' => __( 'Disable the Absolute Weaver theme based styling in the Page/Post editor.
If you have a theme using transparent backgrounds, this option will likely improve the Post/Page editor visibility. ♦', 'absolute-weaver' ),
'type' => 'checkbox',
),
),
'general_admin-roles' => aweaver_cz_group_title( __( 'Per Page and Per Post Option Panels', 'absolute-weaver' ),
__( 'Control when Per Page and Per Post options are displayed. Single site Administrator and Multi-Site Super Administrator will always have the Per Page and Per Post options panel displayed.
You may selectively disable these options for other User Roles using the check boxes below.', 'absolute-weaver' ) ),
'_hide_mu_admin_per' => aweaver_cz_checkbox(
__( 'Hide Per Page/Post Options for MultiSite Admins ♦', 'absolute-weaver' )
),
'_hide_editor_per' => aweaver_cz_checkbox(
__( 'Hide Per Page/Post Options for Editors ♦', 'absolute-weaver' )
),
'_hide_author_per' => aweaver_cz_checkbox(
__( 'Hide Per Page/Post Options for Authors and Contributors ♦', 'absolute-weaver' )
),
'_show_per_post_all' => aweaver_cz_checkbox(
__( 'Show Per Post Options for Custom Post Types ♦', 'absolute-weaver' )
),
'general_admin-names' => aweaver_cz_group_title( __( 'Theme Name and Description', 'absolute-weaver' ),
__( 'To help you manage your own subtheme design, you can change the name and description of your current settings if you would like to create a new theme theme file for sharing with others, or for you own identification. This information is not included in the visitor view of your site.', 'absolute-weaver' ) ),
'themename' => array(
'setting' => array(
'sanitize_callback' => 'aweaver_cz_sanitize_head_code',
'transport' => 'refresh',
'default' => '',
),
'control' => array(
'control_type' => 'AWeaver_Textarea_Control',
'label' => __( 'Theme Name', 'absolute-weaver' ) . AWEAVER_REFRESH_ICON,
'type' => 'textarea',
'input_attrs' => array(
'rows' => '1',
'placeholder' => __( 'Theme Name', 'absolute-weaver' ),
),
),
),
'theme_description' => array(
'setting' => array(
'sanitize_callback' => 'aweaver_cz_sanitize_head_code',
'transport' => 'refresh',
'default' => '',
),
'control' => array(
'control_type' => 'AWeaver_Textarea_Control',
'label' => __( 'Theme Description', 'absolute-weaver' ) . AWEAVER_REFRESH_ICON,
'type' => 'textarea',
'input_attrs' => array(
'rows' => '1',
'placeholder' => __( 'Theme Description', 'absolute-weaver' ),
),
),
),
'subtheme_notes' => array(
'setting' => array(
'sanitize_callback' => 'aweaver_cz_sanitize_head_code',
'transport' => 'refresh',
'default' => '',
),
'control' => array(
'control_type' => 'AWeaver_Textarea_Control',
'label' => __( 'Subtheme Notes', 'absolute-weaver' ) . AWEAVER_REFRESH_ICON,
'description' => __( 'This box may be used to keep notes and instructions about settings made for a custom subtheme.', 'absolute-weaver' ),
'type' => 'textarea',
'input_attrs' => array(
'rows' => '1',
'placeholder' => __( 'Theme Notes', 'absolute-weaver' ),
),
),
),
),
);
$general_sections['general_save_settings'] = array(
'panel' => $panel,
'title' => esc_html__( 'Save / Restore Settings', 'absolute-weaver' ),
'description' => esc_html__( 'You can save and restore your settings to your own computer with these options.', 'absolute-weaver' ) ,
'options' => array(
'save_settings' => array(
'setting' => array(
'transport' => 'postMessage',
),
'control' => array(
'control_type' => 'AWeaver_Save_WV_Settings',
'label' => __( 'Save Current Theme Settings to your Computer', 'absolute-weaver' ),
'description' => __( 'You can download the current theme settings to a file on your computer.
**IMPORTANT NOTE:** If you have not "Saved" your options yet, you will get a notice
asking if you want to leave this page or stay. If you leave, you will not save the most recent changes.', 'absolute-weaver' ),
),
),
'restore_settings' => array(
'setting' => array(
'transport' => 'postMessage',
),
'control' => array(
'control_type' => 'AWeaver_Restore_WV_Settings',
'label' => __( 'Restore settings from file on your computer', 'absolute-weaver' ),
'description' => __( 'You can restore the saved theme settings from a file on your computer.
Select a theme .wxt, backup .wxb, or full settings .wxall file to upload, then click the Upload.