HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/framework/options/api-integrations.php
<?php
/**
 * General framework options
 *
 * @package xts
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Direct access not allowed.
}

use XTS\Framework\Options;

/**
 * Google map API.
 */
Options::add_field(
	array(
		'id'          => 'google_map_api_key',
		'type'        => 'text_input',
		'name'        => esc_html__( 'Google map API key', 'xts-theme' ),
		'description' => 'کلید API را <a href="https://developers.google.com/maps/documentation/javascript/get-api-key" target="_blank">اینجا</a> دریافت کنید تا از عنصر Google Map Elementor ما استفاده کنید.',
		'section'     => 'google_map_api_section',
		'priority'    => 10,
	)
);

/**
 * Instagram.
 */
Options::add_field(
	array(
		'id'          => 'instagram_api',
		'type'        => 'instagram_api',
		'name'        => esc_html__( 'Connect instagram account', 'xts-theme' ),
		'description' => 'راهنمای <a href="' . esc_url( XTS_DOCS_URL ) . 'how-to-set-up-the-instagram-api" target="_blank">داکیومنت</a> ما را در مورد نحوه آماده سازی حساب خود و اتصال به وب سایت دنبال کنید.',
		'section'     => 'instagram_api_section',
		'priority'    => 20,
	)
);

Options::add_field(
	array(
		'id'          => 'insta_delete_outdated_images',
		'name'        => esc_html__( 'Delete outdated images', 'xts-theme' ),
		'description' => esc_html__( 'This option will delete outdated images from the Media library automatically and keep only the latest from your account. Works with images added to the Media library starting from 1.5.0 version.', 'xts-theme' ),
		'type'        => 'switcher',
		'section'     => 'instagram_api_section',
		'priority'    => 30,
	)
);
/**
 * Social authentication social_authentication_section (30).
 */