File: /home/zwafgyp/lacalita/wp-content/plugins/rey-core/inc/customizer/options/cover/page.php
<?php
namespace ReyCore\Customizer\Options\Cover;
if ( ! defined( 'ABSPATH' ) ) exit;
use \ReyCore\Customizer\Controls;
class Page extends \ReyCore\Customizer\SectionsBase {
public static function get_id(){
return 'cover-page';
}
public function get_title(){
return esc_html__('Pages', 'rey-core');
}
public function get_priority(){
return 10;
}
public function get_icon(){
return 'cover-pages';
}
public function help_link(){
return reycore__support_url('kb/customizer-page-cover/#pages');
}
public function controls(){
$this->add_title( esc_html__('Site Pages', 'rey-core'), [
'description' => esc_html__('These settings will apply on all pages of your website. You can always disable or change the Page Cover of a specific page, in the page options.', 'rey-core') . '<br><br>' . \ReyCore\Customizer\Options\Cover::get_main_desc(),
]);
$this->add_control( [
'type' => 'select',
'settings' => 'cover__pages',
'label' => esc_html__( 'Select a Page Cover layout', 'rey-core' ),
'default' => 'no',
'choices' => [
'no' => 'Disabled',
],
'ajax_choices' => [
'action' => 'get_global_sections',
'params' => [
'type' => 'cover',
]
],
'edit_preview' => true,
] );
}
}