HEX
Server: Apache
System: Linux mx52.hostgator.mx 5.14.0-687.12.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jun 7 14:39:27 EDT 2026 x86_64
User: narrativ (1644)
PHP: 8.2.33
Disabled: NONE
Upload Files
File: /home4/narrativ/wp.narrativa.mx/wp-content/themes/jnews/class/Customizer/sections/global_api.php
<?php

$options = array();

$options[] = array(
	'id'          => 'jnews_youtube_api',
	'transport'   => 'refresh',
	'default'     => '',
	'type'        => 'jnews-text',
	'label'       => esc_html__( 'Youtube API', 'jnews' ),
	'description' => sprintf(
		__( 'Insert your youtube API right here. For more information, <a href="%s">please go here</a>', 'jnews' ),
		'https://developers.google.com/youtube/v3/getting-started'
	),
);


$options[] = array(
	'id'              => 'jnews_enable_recaptcha',
	'transport'       => 'postMessage',
	'default'         => false,
	'type'            => 'jnews-toggle',
	'label'           => esc_html__( 'Enable Recaptcha', 'jnews' ),
	'description'     => esc_html__( 'Enable this feature to use recaptcha on login section.', 'jnews' ),
);

$options[] = array(
	'id'          => 'jnews_recaptcha_site_key',
	'transport'   => 'refresh',
	'default'     => '',
	'type'        => 'jnews-text',
	'label'       => esc_html__( 'Google Recaptcha Site Key', 'jnews' ),
	'description' => sprintf(
		__( 'Create your recaptcha site key, <a href="%s">please go here</a>', 'jnews' ),
		'https://www.google.com/recaptcha/admin'
	),
	'active_callback' => array(
		array(
			'setting'  => 'jnews_enable_recaptcha',
			'operator' => '==',
			'value'    => true,
		),
	),
);

$options[] = array(
	'id'          => 'jnews_recaptcha_secret_key',
	'transport'   => 'refresh',
	'default'     => '',
	'type'        => 'jnews-text',
	'label'       => esc_html__( 'Google Recaptcha Secret Key', 'jnews' ),
	'description' => sprintf(
		__( 'Create your recaptcha site key, <a href="%s">please go here</a>', 'jnews' ),
		'https://www.google.com/recaptcha/admin'
	),
	'active_callback' => array(
		array(
			'setting'  => 'jnews_enable_recaptcha',
			'operator' => '==',
			'value'    => true,
		),
	),
);

return $options;