<?php
/**
 * Excerpt
 *
 * @package technology_software_firm
 */

$wp_customize->add_section(
	'technology_software_firm_excerpt_options',
	array(
		'panel' => 'technology_software_firm_theme_options',
		'title' => esc_html__( 'Excerpt', 'technology-software-firm' ),
	)
);

// Excerpt - Excerpt Length.
$wp_customize->add_setting(
	'technology_software_firm_excerpt_length',
	array(
		'default'           => 50,
		'sanitize_callback' => 'absint',
		'transport'         => 'refresh',
	)
);

$wp_customize->add_control(
	'technology_software_firm_excerpt_length',
	array(
		'label'       => esc_html__( 'Excerpt Length (no. of words)', 'technology-software-firm' ),
		'section'     => 'technology_software_firm_excerpt_options',
		'settings'    => 'technology_software_firm_excerpt_length',
		'type'        => 'number',
		'input_attrs' => array(
			'min'  => 10,
			'max'  => 200,
			'step' => 1,
		),
	)
);