get_section('header_image')->priority = 10515;
$wp_customize->get_section('header_image')->title = __('Header Media (image, video)', 'absolute-weaver');
$wp_customize->get_section('header_image')->panel = $panel;
$wp_customize->get_section('background_image')->priority = 10590;
$wp_customize->get_section('background_image')->title = __('Site BG Image', 'absolute-weaver');
$wp_customize->get_section('background_image')->panel = $panel;
/**
* General
*/
$image_sections['images-global'] = array(
'panel' => $panel,
'title' => __( 'Global Image Settings', 'absolute-weaver' ),
'description' => 'Set Image options for Site Wrapper & Container. Use Colors to set colors.',
'options' => array(
'images-heading-global' => aweaver_cz_group_title( __( 'Global Image Settings', 'absolute-weaver' ),
__( 'These settings control images in both the Container (including content and sidebars) and Footer Areas. They do not include the Header Area.', 'absolute-weaver' )),
'media_lib_border_color' => aweaver_cz_coloropt(
'media_lib_border_color',
__('Image Border Color', 'absolute-weaver'),
__('Border color for images in Container and Footer.', 'absolute-weaver')
),
'media_lib_border_int' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'postMessage', 'default' => 0 ),
'control' => array(
'control_type' => 'WeaverA_Range_Control',
'label' => __( 'Image Border Width (px)', 'absolute-weaver' ),
'description' => __( 'Border width for images in Container and Footer. There will be no borders unless you set this value above 0px.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 0,
'max' => 50,
'step' => 1,
),
),
),
'show_img_shadows'=> array(
'setting' => array(
'sanitize_callback' => 'aweaver_cz_sanitize_int',
'transport' => 'postMessage'
),
'control' => array(
'label' => __( 'Add Image Shadow', 'absolute-weaver' ),
'description' => __( 'Add a shadow to images in Container and Footer. Add custom CSS for custom shadow.', 'absolute-weaver' ),
'type' => 'checkbox',
),
),
'media_lib_border_color_css' => aweaver_cz_css(__( 'Custom CSS for Images.', 'absolute-weaver' ),
__('Note: this custom CSS will live-update for ALL images, even if the above Restrict Borders is checked.
The normal site view will respect the Restrict Borders setting.','absolute-weaver')),
'caption_color' => aweaver_cz_coloropt(
'caption_color',
__('Caption Text Color', 'absolute-weaver'),
__('Color of captions - e.g., below media images.', 'absolute-weaver')
),
'caption_color_css' => aweaver_cz_css(__( 'Custom CSS for Captions.', 'absolute-weaver' )),
),
);
/**
* Site Header
*/
$logo_html = aweaver_get_logo_html();
$image_sections['images-header'] = array(
'panel' => $panel,
'title' => __( 'Header Media (Layout)', 'absolute-weaver' ),
'options' => array(
'images-heading-header' => aweaver_cz_group_title( __( 'Site Header Media', 'absolute-weaver' ),
__('You can set the header image or video on the Images : Header Media (image, video) menu, one level up from here. The Site Logo is set on the General Options & Admin : Site Identity menu.', 'absolute-weaver') ),
'images-heading-altimg' => aweaver_cz_heading(
__( 'Alternate Header Images', 'absolute-weaver' ),
__( 'You can specify alternate header images using the Content and Post Specific Featured Image Location option on the Images panel, as well as Per Page and Per Post options.', 'absolute-weaver' )
),
'images-header-image-title' => aweaver_cz_group_title( __( 'Header Image', 'absolute-weaver' ),
__('Settings for Site Header Image. These Image settings DO NOT apply to the Header Video.', 'absolute-weaver')),
'link_site_image' => aweaver_cz_checkbox_refresh( __( 'Header Image Links to Site', 'absolute-weaver' ),
__( 'Check to add a link to site home page for Header Image. Note: If used with Move Title/Tagline over Image, parts of the header image will not be clickable.', 'absolute-weaver')),
'header_image_align' => aweaver_cz_select(
__( 'Align Header Image', 'absolute-weaver' ),
__( 'How to align header image. Wide and Full do not apply to BG header image.', 'absolute-weaver' ),
'aweaver_cz_choices_align', 'float-left', 'refresh'
),
'header_image_render' => aweaver_cz_is_old_plus()
? aweaver_cz_heading(__( 'Header Image Rendering', 'absolute-weaver' ) . ' ( WX+ V3 )',
__('"Render Header Image as BG Image" requires Absolute Weaver Plus V2.90 or later.', 'absolute-weaver'))
: aweaver_cz_select_plus(
__( 'Header Image Rendering', 'absolute-weaver' ),
__('How to render header image: as img in header or as header area bg image. When rendered as a BG image, other options such as moving Title/Tagline or having image link to home page are not meaningful. Optionally, use Suggested Header Image Height above to control BG image height.', 'absolute-weaver' /*adm*/),
'aweaver_cz_choices_render_header', 'header-as-img', 'refresh'
),
'header_min_height' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 0 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Minimum Header Height (px)', 'absolute-weaver' ) . ABSOLUTE_WVR_PLUS_ICON . ABSOLUTE_WVR_REFRESH_ICON,
'description' => __( 'Set Minimum Height for Header Area. Most useful used with Parallax Header BG Image. Adding Top Margin to Primary Menu bar can also add height.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 0,
'max' => 1000,
'step' => 10,
),
),
),
),
);
$level = array( // for standard + full level
'header_image_max_width_dec' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'postMessage', 'default' => 100.0 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Maximum Image Width (%)', 'absolute-weaver' ) . ABSOLUTE_WVR_PLUS_ICON,
'description' => __( 'Maximum width of Header Image. Can be useful to change Header Image alignment.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 10,
'max' => 100,
'step' => .5,
),
),
),
'header_actual_size' => aweaver_cz_checkbox( __( 'Use Actual Image Size', 'absolute-weaver' ),
__( 'Check to use actual header image size. (Default: theme width)', 'absolute-weaver' ), 'plus'),
'header-image-html-rep-head' => aweaver_cz_group_title(__('Replace Header Image with HTML', 'absolute-weaver' ), ''),
'header_image_html_text' => aweaver_cz_html_textarea(__( 'Image HTML Replacement', 'absolute-weaver' ),
__( 'Replace Header image with arbitrary HTML. Useful for slider shortcodes in place of image. FI as Header Image has priority over HTML replacement.', 'absolute-weaver' ),
'1', 'refresh'),
'header_image_html_home_only' => aweaver_cz_checkbox_refresh( __( 'Show Replacement only on Front Page', 'absolute-weaver' ),
__( 'Check to use the Image HTML Replacement only on your Front/Home page.', 'absolute-weaver')),
);
$image_sections['images-header']['options'] = array_merge($image_sections['images-header']['options'],$level);
$level = array( // for standard + full level
'header_image_html_plus_bg' => aweaver_cz_is_old_plus()
? aweaver_cz_heading(__( 'Also show BG Header Image', 'absolute-weaver' ) . ' ( WX+ V3 )',
__('"Also show BG Header Image" requires Absolute Weaver Plus V2.90 or later.', 'absolute-weaver'))
: aweaver_cz_checkbox( __( 'Also show BG Header Image', 'absolute-weaver' ),
__( 'If you have Image HTML Replacement defined - including Per Page/Post - and also have have set the standard Header Image to display as a BG image, then show both the BG image and the replacement HTML.', 'absolute-weaver' ), 'plus','refresh'),
'header_image_height_int' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 188 ),
'control' => array(
'control_type' => 'WeaverA_Range_Control',
'label' => __( 'Suggested Header Image Height (px)', 'absolute-weaver' ) . ABSOLUTE_WVR_REFRESH_ICON,
'description' => __( 'Change the suggested height of the Header Image. Standard size is 188. This height is only a suggestion, and only affects the clipping window on the Customizer Images → Header Banner Images panel after you refresh the whole Customize interface. Header images will always be responsively sized. (Default header image width: theme width)', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 10,
'max' => 2400,
'step' => 5,
),
),
),
);
$image_sections['images-header']['options'] = array_merge($image_sections['images-header']['options'],$level);
$level = array(
'images-heading-header-video' => aweaver_cz_group_title( __( 'Header Video', 'absolute-weaver' ),
__('You can set the Header Video on the Customize : Images : Header Media menu.', 'absolute-weaver')),
'header_video_render' => aweaver_cz_select(
__( 'Header Video Rendering', 'absolute-weaver' ),
__('How to render Header Video: as image substitute in header or as full browser background cover image will parallax effect. Note that the Header Image options above do not apply to the Header Video media.', 'absolute-weaver' /*adm*/),
'aweaver_cz_choices_render_header_video', 'has-header-video', 'refresh'
),
'header_video_aspect' => aweaver_cz_select(
__( 'Header Video Aspect Ratio', 'absolute-weaver' ),
__('CRITICAL SETTING! It is critical to select aspect ratio of your video. HD 16:9 is the default. This setting should correspond to the native aspect ratio of your video. YouTube allows you to upload any aspect ratio. Most aspect ratios work will for the full cover BG display, or a Banner ratio may work better for the header only view. Ideally, the matching header image will have the same aspect ratio, but it is not critical. If you see letterboxing black bars, you have the wrong aspect ratio selected.', 'absolute-weaver' /*adm*/),
'aweaver_cz_choices_header_video_aspect', '16:9', 'refresh'
),
'images-heading-header-logo' => aweaver_cz_group_title( __( 'Site Logo', 'absolute-weaver' ),
__('You can set the Site Logo on the Customize : General Options : Site Identity menu.', 'absolute-weaver')
. $logo_html),
'hide_wp_site_logo' => aweaver_cz_select(
__( 'Hide Site Logo', 'absolute-weaver' ),
__( 'IMPORTANT! This option only applies to the Site Logo when used in the Header. It does NOT apply to the Site Logo on the Menu, nor as the replacement for the Site Title.','absolute-weaver'),
'aweaver_cz_choices_hide', 'hide-none', 'refresh'
),
'wplogo_for_title' => aweaver_cz_checkbox_refresh( __( 'Replace Title with Site Logo', 'absolute-weaver' ),
__( 'Replace the Site Title text with the WP Custom Logo Image', 'absolute-weaver')),
'header_logo_height_dec' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 32
),
'control' => array(
'control_type' => 'WeaverA_Range_Control',
'label' => __( 'Logo as Title Replacement Height (px)', 'absolute-weaver' ) . ABSOLUTE_WVR_REFRESH_ICON,
'description' => __( 'Set height of Logo on Menu. Will interact with padding. (Default: 32px)', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 10,
'max' => 200,
'step' => 1,
),
),
),
'images-heading-other' => aweaver_cz_group_title( __( 'Related Settings', 'absolute-weaver' )),
'images-heading-srch' => aweaver_cz_heading(
__( 'Search Box Icon', 'absolute-weaver' ),
__( 'The icon used in search boxes can be changed in the Colors → Content section.', 'absolute-weaver' )
),
);
$image_sections['images-header']['options'] = array_merge($image_sections['images-header']['options'],$level);
/**
* Content
*/
$image_sections['images-content'] = array(
'panel' => $panel,
'title' => __( 'Content', 'absolute-weaver' ),
'description' => __('Featured Image display on page content.', 'absolute-weaver'),
'options' => array(
'images-content-heading' => aweaver_cz_heading( __( 'General Image Settings', 'absolute-weaver' ),
__( 'General image settings found on the Global Image Settings panel.', 'absolute-weaver' )),
'images-pgextendbg-heading' => aweaver_cz_heading( __( 'Full Width Featured Image BG', 'absolute-weaver' ),
__( 'Check the Content Full Width BG Attributes option on the Spacing, Width, Alignment : Full Width Site menu to get full width Featured Image BG.', 'absolute-weaver' )),
'images-content-FI' => aweaver_cz_group_title( __( 'Featured Image - Pages', 'absolute-weaver' ),
__( 'Display of Page Featured Images', 'absolute-weaver' )),
'page_fi_location' => aweaver_cz_select(
__( 'Featured Image Location', 'absolute-weaver' ),
__( 'Where to display Featured Image for Pages', 'absolute-weaver' ),
'aweaver_cz_choices_fi_location', 'content-top', 'refresh'
),
'page_min_height' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 0 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Page Content Height (px)', 'absolute-weaver' ) . ABSOLUTE_WVR_PLUS_ICON,
'description' => __( 'Minimum Height Page Content with Parallax BG.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 10,
'max' => 2000,
'step' => 10,
),
),
),
'page_fi_align' => aweaver_cz_select(
__( 'Align Featured Image', 'absolute-weaver' ),
'',
'aweaver_cz_choices_fi_align', 'fi-alignleft', 'refresh'
),
'page_fi_hide' => aweaver_cz_select(
__( 'Hide Featured Image', 'absolute-weaver' ),
'',
'aweaver_cz_choices_hide', 'hide-none', 'refresh'
),
'page_fi_size' => aweaver_cz_select(
__( 'Page Featured Image Size', 'absolute-weaver' ),
__( 'Media Library Image Size for Featured Image on pages. (Header uses full size).', 'absolute-weaver' ),
'aweaver_cz_choices_fi_size', 'thumbnail', 'refresh'
),
'page_fi_width' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 0 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Featured Image Width (%)', 'absolute-weaver' ) . ABSOLUTE_WVR_PLUS_ICON,
'description' => __( 'Width of Featured Image on Pages. Max Width in %, overrides FI Size selection. Set to 0 to avoid overriding above Featured Image Size setting.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 0,
'max' => 100,
'step' => 0.5,
),
),
),
'page_fi_nolink' => aweaver_cz_checkbox_refresh( __( "Don't add link to FI", 'absolute-weaver' ),
__( 'Do not add link to Featured Image.', 'absolute-weaver' ), 'plus')
),
);
/**
* Post Specific
*/
$image_sections['images-post-specific'] = array(
'panel' => $panel,
'title' => __( 'Post Specific', 'absolute-weaver' ),
'description' => __('Featured Image display with posts.', 'absolute-weaver'),
'options' => array(
'images-postspecific-heading' => aweaver_cz_group_title( __( 'General Image Settings', 'absolute-weaver' ),
__( 'General image settings found on the Global Image Settings panel.', 'absolute-weaver' )),
'post_avatar_int' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'postMessage', 'default' => 28 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Author Avatar Size (px)', 'absolute-weaver' ),
'description' => __( 'Size of Author Avatar in px - only for Post Info line. (Default: 28px)', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 10,
'max' => 60,
'step' => 1,
),
),
),
'images-fi-post-h' => aweaver_cz_group_title( __( 'Post Featured Image Options', 'absolute-weaver' ),
__( 'Options for Post Featured Images.', 'absolute-weaver' )),
'post_fi_nolink' => aweaver_cz_checkbox_refresh( __( "Don't add link to FI", 'absolute-weaver' ),
__( 'Do not add link to Featured Image for any post layout.', 'absolute-weaver' ), 'plus'),
'images-extendbg-heading' => aweaver_cz_heading( __( 'Full Width Featured Image BG', 'absolute-weaver' ),
__( 'Check the Extend Width BG Attributes for all Posts option on the Spacing, Width, Alignment : Full Width Site menu to get full width Featured Image BG.', 'absolute-weaver' )),
'images-content-FI-full' => aweaver_cz_group_title( __( 'Featured Image - Full Blog Posts', 'absolute-weaver' ),
__( 'Display of Post Featured Images when Post is displayed as a Full Post.', 'absolute-weaver' )),
'post_full_fi_location' => aweaver_cz_select(
__( 'Featured Image Location - Full Post', 'absolute-weaver' ),
__( 'Where to display Featured Image.', 'absolute-weaver' ),
'aweaver_cz_choices_fi_location', 'content-top', 'refresh'
),
'post_blog_min_height' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 0 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Post Height - Blog View (px)', 'absolute-weaver' ) . ABSOLUTE_WVR_PLUS_ICON,
'description' => __( 'Minimum Height of Post, full or excerpt, with Parallax BG in blog views.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 10,
'max' => 2000,
'step' => 10,
),
),
),
'post_full_fi_align' => aweaver_cz_select(
__( 'Align Featured Image - Full Post', 'absolute-weaver' ),
'',
'aweaver_cz_choices_fi_align', 'fi-alignleft', 'refresh'
),
'post_full_fi_hide' => aweaver_cz_select(
__( 'Hide Featured Image - Full Post', 'absolute-weaver' ),
'',
'aweaver_cz_choices_hide', 'hide-none', 'refresh'
),
'post_full_fi_size' => aweaver_cz_select(
__( 'Page Featured Image Size - Full Post', 'absolute-weaver' ),
__( 'Media Library Image Size for Featured Image. (Header uses full size).', 'absolute-weaver' ),
'aweaver_cz_choices_fi_size', 'thumbnail', 'refresh'
),
'post_full_fi_width' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 0 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Featured Image Width (%) - Full Post', 'absolute-weaver' ) . ABSOLUTE_WVR_PLUS_ICON,
'description' => __( 'Width of Featured Image. Max Width in %, overrides FI Size selection. Set to 0 to avoid overriding above Featured Image Size setting.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 0,
'max' => 100,
'step' => 0.5,
),
),
),
'images-content-FI-excerpt' => aweaver_cz_group_title( __( 'Featured Image - Excerpt Posts', 'absolute-weaver' ),
__( 'Display of Post Featured Images when Post is displayed as an Excerpt.', 'absolute-weaver' )),
'post_excerpt_fi_location' => aweaver_cz_select(
__( 'Featured Image Location - Excerpt', 'absolute-weaver' ),
__( 'Where to display Featured Image.', 'absolute-weaver' ),
'aweaver_cz_choices_fi_location', 'content-top', 'refresh'
),
'post_excerpt_fi_align' => aweaver_cz_select(
__( 'Align Featured Image - Excerpt', 'absolute-weaver' ),
'',
'aweaver_cz_choices_fi_align', 'fi-alignleft', 'refresh'
),
'post_excerpt_fi_hide' => aweaver_cz_select(
__( 'Hide Featured Image - Excerpt', 'absolute-weaver' ),
'',
'aweaver_cz_choices_hide', 'hide-none', 'refresh'
),
'post_excerpt_fi_size' => aweaver_cz_select(
__( 'Page Featured Image Size - Excerpt', 'absolute-weaver' ),
__( 'Media Library Image Size for Featured Image. (Header uses full size).', 'absolute-weaver' ),
'aweaver_cz_choices_fi_size', 'thumbnail', 'refresh'
),
'post_excerpt_fi_width' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 0 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Featured Image Width (%) - Excerpt', 'absolute-weaver' ) . ABSOLUTE_WVR_PLUS_ICON,
'description' => __( 'Width of Featured Image. Max Width in %, overrides FI Size selection. Set to 0 to avoid overriding above Featured Image Size setting.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 0,
'max' => 100,
'step' => 0.5,
),
),
),
'images-content-FI-single' => aweaver_cz_group_title( __( 'Featured Image - Single Page', 'absolute-weaver' ),
__( 'Display of Post Featured Images when Post is displayed on the Single Page.', 'absolute-weaver' )),
'post_fi_location' => aweaver_cz_select(
__( 'Featured Image Location - Single Page', 'absolute-weaver' ),
__( 'Where to display Featured Image.', 'absolute-weaver' ),
'aweaver_cz_choices_fi_location', 'content-top', 'refresh'
),
'post_min_height' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 0 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Post Height - Single Page (px)', 'absolute-weaver' ) . ABSOLUTE_WVR_PLUS_ICON,
'description' => __( 'Minimum Height of Post with Parallax BG in Single Page view.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 10,
'max' => 2000,
'step' => 10,
),
),
),
'post_fi_align' => aweaver_cz_select(
__( 'Align Featured Image - Single Page', 'absolute-weaver' ),
'',
'aweaver_cz_choices_fi_align', 'fi-alignleft', 'refresh'
),
'post_fi_hide' => aweaver_cz_select(
__( 'Hide Featured Image - Single Page', 'absolute-weaver' ),
'',
'aweaver_cz_choices_hide', 'hide-none', 'refresh'
),
'post_fi_size' => aweaver_cz_select(
__( 'Page Featured Image Size - Single Page', 'absolute-weaver' ),
__( 'Media Library Image Size for Featured Image. (Header uses full size).', 'absolute-weaver' ),
'aweaver_cz_choices_fi_size', 'thumbnail', 'refresh'
),
'post_fi_width' => array(
'setting' => array( 'sanitize_callback' => 'aweaver_cz_sanitize_int', 'transport' => 'refresh', 'default' => 0 ),
'control' => array(
'control_type' => ABSOLUTE_WVR_PLUS_RANGE_CONTROL,
'label' => __( 'Featured Image Width (%) - Single Page', 'absolute-weaver' ) . ABSOLUTE_WVR_PLUS_ICON . ABSOLUTE_WVR_REFRESH_ICON,
'description' => __( 'Width of Featured Image. Max Width in %, overrides FI Size selection. Set to 0 to avoid overriding above Featured Image Size setting.', 'absolute-weaver' ),
'type' => 'range',
'input_attrs' => array(
'min' => 0,
'max' => 100,
'step' => 0.5,
),
),
),
),
);
return $image_sections;
}
endif;
?>