<?php

if ( ! function_exists( 'ginevra_core_add_portfolio_title_options' ) ) {
	/**
	 * Function that add title options for portfolio module
	 */
	function ginevra_core_add_portfolio_title_options( $tab ) {

		if ( $tab ) {
			$tab->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_enable_portfolio_title',
					'title'       => esc_html__( 'Enable Title on Portfolio Single', 'ginevra-core' ),
					'description' => esc_html__( 'Use this option to enable/disable portfolio single title', 'ginevra-core' ),
					'options'     => ginevra_core_get_select_type_options_pool( 'yes_no' ),
				)
			);

			$tab->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_set_portfolio_title_area_in_grid',
					'title'       => esc_html__( 'Portfolio Title in Grid', 'ginevra-core' ),
					'description' => esc_html__( 'Enabling this option will set portfolio title area to be in grid', 'ginevra-core' ),
					'options'     => ginevra_core_get_select_type_options_pool( 'yes_no' ),
				)
			);
		}
	}

	add_action( 'ginevra_core_action_after_portfolio_options_single', 'ginevra_core_add_portfolio_title_options' );
}
