HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/lacalita/wp-content/plugins/rey-core/inc/customizer/options/various/cei-section.php
<?php
namespace ReyCore\Customizer\Options\Various;

if ( ! defined( 'ABSPATH' ) ) exit;

use \ReyCore\Customizer\Controls;

class CeiSection extends \ReyCore\Customizer\SectionsBase {

	public static function get_id(){
		return 'rey-cei-section';
	}

	public static function part_of(){
		return 'cei-section';
	}

	public function get_title(){
		return esc_html__('CEI', 'rey-core');
	}

	public function get_priority(){
		return 1;
	}

	public function controls(){

		$this->add_control( [
			'type'        => 'rey-button',
			'settings'    => 'rey_transfer_mods_from_parent',
			'label'       => esc_html__( 'Copy settings from Parent theme', 'rey-core' ),
			'description' => esc_html__( 'In case you just switched from the Parent theme, you can easily transfer the settings. Make sure to export your current settings first.', 'rey-core' ),
			'default'     => 'parent',
			'choices'     => [
				'text' => esc_html__('Copy Settings', 'rey-core'),
				'action' => 'rey_transfer_mods',
				'class' => '--btn-full',
			],
		] );

		$this->add_control( [
			'type'        => 'rey-button',
			'settings'    => 'rey_transfer_mods_from_child',
			'label'       => esc_html__( 'Copy settings from Child theme', 'rey-core' ),
			'description' => esc_html__( 'In case you just switched from the Child theme, you can easily transfer the settings. Make sure to export your current settings first.', 'rey-core' ),
			'default'     => 'child',
			'choices'     => [
				'text' => esc_html__('Copy Settings', 'rey-core'),
				'action' => 'rey_transfer_mods',
				'class' => '--btn-full',
			],
		] );


	}
}