section
$content_sections['content-head'] = array(
'panel' => $panel,
'title' => esc_html__( 'Site <HEAD> Section', 'absolute-weaver' ),
'options' => array(
'content-headsec-heading' => aweaver_cz_heading( esc_html__( 'Introductory Help for <HEAD> Section', 'absolute-weaver' ),
aweaver_filter_text( __( 'This panel allows you to add HTML to the <HEAD> Section of every page on your site.
PLEASE NOTE: Only minimal validation is made on the field values, so be careful not to use invalid code. Invalid code is usually harmless, but it can make your site display incorrectly. If your site looks broken after make changes here, please double check that what you entered uses valid HTML or CSS rules.', 'absolute-weaver' ) ) ),
'head_opts' => aweaver_cz_textarea( esc_html__( '<HEAD> Section Content', 'absolute-weaver' ),
/* $description = */
aweaver_filter_text( __( 'This input area allows you to enter allowed HTML head elements to the <head> section, including <title>, <base>, <link>, <meta>, <script>, and <style>.
Code entered into this box is included right before the </head> HTML tag on each page of your site.
We recommend using dedicated WordPress plugins to add things like ad tracking, SEO tags, Facebook code, and so on.
Note: You can add CSS Rules using the "Custom CSS Rules" option on the Main Options tab.', 'absolute-weaver' ) ),
/* $rows = */
'4', /* $placeholder = */
esc_html__( 'Any HTML allowed in
.custom-logo-on-menu to style. (Use Customize : Site Identity to set Site Logo.)', 'absolute-weaver' ) ) . $logo_html
),
'm_primary_logo_height_dec' => array(
'setting' => array(
'sanitize_callback' => 'aweaver_cz_sanitize_float',
'transport' => 'refresh',
'default' => 0,
),
'control' => array(
'control_type' => 'AWeaver_Range_Control',
'label' => esc_html__( 'Logo on Menu Bar Height (em)', 'absolute-weaver' ) . AWEAVER_REFRESH_ICON,
'description' => esc_html__( 'Set height of Logo on Menu. Will interact with padding. Default 0 uses current line height.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 0,
'max' => 10,
'step' => .1,
),
),
),
'm_primary_logo_home_link' => aweaver_cz_checkbox_refresh(
esc_html__( 'Logo Links to Home', 'absolute-weaver' ),
esc_html__( 'Add a link to home page to logo on menu bar ( must use with defined custom menu ).', 'absolute-weaver' )
),
),
);
/**
* Post Specific
*/
$content_sections['content-post-specific'] = array(
'panel' => $panel,
'title' => esc_html__( 'Post Specific', 'absolute-weaver' ),
'description' => esc_html__( 'Post Specific Content - override Content Content.', 'absolute-weaver' ),
'options' => array(
'excerpt_more_msg' => aweaver_cz_html_textarea( esc_html__( '"Continue reading" Message', 'absolute-weaver' ),
__( 'Change default Continue reading → message for excerpts. You can include HTML ( e.g., <img> ).', 'absolute-weaver' ),
'1' ),
),
);
/**
* Footer
*/
$content_sections['content-footer'] = array(
'panel' => $panel,
'title' => esc_html__( 'Footer Area', 'absolute-weaver' ),
'options' => array(
'footer_html_text' => array(
'setting' => array(
'sanitize_callback' => 'aweaver_filter_code',
'transport' => 'postMessage',
'default' => '',
),
'control' => array(
'control_type' => 'AWeaver_Textarea_Control',
'label' => esc_html__( 'Footer HTML Content', 'absolute-weaver' ),
'description' => esc_html__( 'Add arbitrary HTML to Footer Area (in <div id="footer-html">)', 'absolute-weaver' ),
'type' => 'textarea',
'input_attrs' => array(
'rows' => '3',
'placeholder' => esc_html__( '', 'absolute-weaver' ),
),
),
),
'copyright' => array(
'setting' => array(
'sanitize_callback' => 'aweaver_filter_code',
'transport' => 'postMessage',
'default' => '',
),
'control' => array(
'control_type' => 'AWeaver_Textarea_Control',
'label' => esc_html__( '© Site Copyright', 'absolute-weaver' ),
'description' => esc_html__( 'If you fill this in, the default copyright notice in the footer will be replaced with the text here. It will not automatically update from year to year. Use © to display ©. You can use other HTML and shortcodes as well.
Use to hide the copyright notice. ♦', 'absolute-weaver' ),
'type' => 'textarea',
'input_attrs' => array(
'rows' => '2',
'placeholder' => esc_html__( '', 'absolute-weaver' ),
),
),
),
'postfooter_insert' => array(
'setting' => array(
'sanitize_callback' => 'aweaver_filter_code',
'transport' => 'refresh', //'postMessage',
'default' => '',
),
'control' => array(
'control_type' => 'AWeaver_Textarea_Control',
'label' => esc_html__( 'Post Footer HTML/Javascript Content', 'absolute-weaver' ),
'description' => esc_html__( 'Add arbitrary HTML or Javascript after the Footer Area ( in <div id="footer-html"> ). Suitable for adding scripts at bottom of site HTML.', 'absolute-weaver' ),
'type' => 'textarea',
'input_attrs' => array(
'rows' => '3',
'placeholder' => esc_html__( '', 'absolute-weaver' ),
),
),
),
),
);
return $content_sections;
}
endif;
if ( false ) : // injection areas
function aweaver_cz_add_injection( $root, $label = '', $description = '', $version = 'XPlus' ) {
$opt = array();
if ( $version == 'XPlus' ) {
$label .= AWEAVER_PLUS_ICON;
}
$opt[ $root . '-heading' ] = aweaver_cz_group_title( $label );
if ( $description ) {
$opt[ $root . '-desc' ] = array(
'control' => array(
'control_type' => 'AWeaver_Misc_Control',
'description' => $description,
'type' => 'text',
),
);
}
if ( $version != 'XPlus' || aweaver_cz_is_plus() ) {
$opt["{$root}_insert"] = array(
'setting' => array(
'sanitize_callback' => 'aweaver_cz_sanitize_html',
'transport' => 'postMessage',
'default' => '',
),
'control' => array(
'control_type' => 'AWeaver_Textarea_Control',
'label' => esc_html__( 'HTML', 'absolute-weaver' ), // . AWEAVER_REFRESH_ICON,
'type' => 'textarea',
'input_attrs' => array(
'rows' => '3',
'placeholder' => esc_html__( 'Any HTML, including shortcodes.', 'absolute-weaver' ),
),
),
);
$opt["inject_{$root}_bgcolor"] = array(
'setting' => array(
'sanitize_callback' => AWEAVER_CZ_SANITIZE_COLOR,
'transport' => 'postMessage',
'default' => aweaver_cz_getopt( "inject_{$root}_bgcolor" ),
),
'control' => array(
'control_type' => AWEAVER_COLOR_CONTROL,
'label' => esc_html__( 'BG Color', 'absolute-weaver' ),
'description' => '',
),
);
$opt["inject_{$root}_bgcolor_css"] = aweaver_cz_css( esc_html__( 'Custom CSS', 'absolute-weaver' ) );
$opt["inject_add_class_{$root}"] = array(
'setting' => array(
'sanitize_callback' => 'aweaver_cz_sanitize_html',
'transport' => 'refresh',
'default' => '',
),
'control' => array(
'control_type' => AWEAVER_PLUS_TEXT_CONTROL,
'label' => esc_html__( 'Add Classes', 'absolute-weaver' ) . AWEAVER_PLUS_ICON . AWEAVER_REFRESH_ICON,
'description' => esc_html__( 'Space separated class names to add to this area (Advanced option) (★Plus)', 'absolute-weaver' ),
'type' => 'text',
'input_attrs' => array(),
),
);
$opt["hide_front_{$root}"] = aweaver_cz_checkbox_refresh(
esc_html__( 'Hide on front page', 'absolute-weaver' ),
esc_html__( 'If you check this box, then the code from this area will not be displayed on the front ( home ) page.', 'absolute-weaver' )
);
$opt["hide_rest_{$root}"] = aweaver_cz_checkbox_refresh(
esc_html__( 'Hide on non-front pages', 'absolute-weaver' ),
esc_html__( 'If you check this box, then the code from this area will not be displayed on non-front pages.', 'absolute-weaver' )
);
} // is plus
$opt[ $root . '-line-break' ] = array(
'control' => array(
'control_type' => 'AWeaver_Misc_Control',
'label' => '',
'type' => 'line',
),
);
return $opt;
}
endif;