<?php

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

class AIEO_DMM_Complementary_Display extends AIEO_DMM_Module_Base {

    public function get_id()       { return 'complementary_display'; }
    public function get_label()    { return __('Complementary Display', 'ai-eshop-optimizer'); }
    public function get_priority() { return 25; }
    public function get_group()    { return 'visuals'; }

    public function register_hooks() {
        
        
    }

    public function enqueue_admin_assets() {
        wp_enqueue_style('wp-color-picker');
        wp_enqueue_script('wp-color-picker');
        wp_add_inline_script('wp-color-picker',
            'jQuery(function($){$(".aieo-dmm-compl-color").wpColorPicker();});'
        );
    }

    public function render_subtab() {
        $a = AIEO_DMM_Complementary::get_appearance_settings();
        $this->render_template('complementary-display.php', array(
            'appearance' => $a,
        ));
    }
}
