HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/loginpress/classes/customizer/loginpress-promo.php
<?php
/**
 * LoginPress Promo Controls
 *
 * Create controller for promotion.
 *
 * @package LoginPress
 * @since 1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	// Exit if accessed directly.
	exit;
}
require_once ( defined( 'LOGINPRESS_ROOT_PATH' ) ? LOGINPRESS_ROOT_PATH : '' ) . 'classes/customizer/class-loginpress-promo.php'; //phpcs:ignore

$wp_customize->add_section(
	'lpcustomize_google_font',
	array(
		'title'    => __( 'Google Fonts', 'loginpress' ),
		'priority' => 49,
		'panel'    => 'loginpress_panel',
	)
);

$wp_customize->add_setting(
	'loginpress_customization[google_font]',
	array(
		'default'    => '',
		'type'       => 'option',
		'capability' => 'manage_options',
		'transport'  => 'postMessage',
	)
);

$wp_customize->add_control(
	new LoginPress_Promo(
		$wp_customize,
		'loginpress_customization[google_font]',
		array(
			'section'    => 'lpcustomize_google_font',
			'thumbnail'  => plugins_url( 'img/promo/font_promo.png', defined( 'LOGINPRESS_ROOT_FILE' ) ? LOGINPRESS_ROOT_FILE : '' ),
			'promo_text' => __( 'Unlock Premium Feature', 'loginpress' ),
			'link'       => 'https://loginpress.pro/pricing/?utm_source=loginpress-lite&utm_medium=customizer-google-fonts&utm_campaign=pro-upgrade&utm_content=Unlock+Premium+Feature+CTA',
		)
	)
);

$wp_customize->add_section(
	'customize_recaptcha',
	array(
		'title'    => __( 'reCAPTCHA', 'loginpress' ),
		'priority' => 24,
		'panel'    => 'loginpress_panel',
	)
);

$wp_customize->add_setting(
	'loginpress_customization[recaptcha_error_message]',
	array(
		'type'       => 'option',
		'capability' => 'manage_options',
		'transport'  => 'postMessage',
	)
);

$wp_customize->add_control(
	new LoginPress_Promo(
		$wp_customize,
		'loginpress_customization[recaptcha_error_message]',
		array(
			'section'    => 'customize_recaptcha',
			'thumbnail'  => plugins_url( 'img/promo/recaptcha_option_promo.png', defined( 'LOGINPRESS_ROOT_FILE' ) ? LOGINPRESS_ROOT_FILE : '' ),
			'promo_text' => __( 'Unlock Premium Feature', 'loginpress' ),
			'link'       => 'https://loginpress.pro/pricing/?utm_source=loginpress-lite&utm_medium=customizer-recaptcha&utm_campaign=pro-upgrade&utm_content=Unlock+Premium+Feature+CTA',
		)
	)
);