<?php
/**
 * Portfolio Icon Hero Content Options
 * @package Portfolio Icon
 */

/**
 * Add hero content options to theme options
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function portfolioicon_hero_content_options( $wp_customize ) {
    $wp_customize->add_section( 'portfolioicon_hero_content_options', array(
        'title' => esc_html__( 'Second Section Widget', 'portfolio-icon' ),
        'panel' => 'portfolioicon_theme_settings',
        'priority' => 120
    ) );

    /* Hero Content Selector */
    $wp_customize->add_setting( 'portfolioicon_hero_content', array(
        'sanitize_callback' => 'absint',
    ) );
    
    $wp_customize->add_control( 'portfolioicon_hero_content', array(
        'label'           => esc_html__( 'Select Page', 'portfolio-icon' ),
        'section'         => 'portfolioicon_hero_content_options',
        'type'            => 'dropdown-pages'
    ) );
}
add_action( 'customize_register', 'portfolioicon_hero_content_options' );