File "class-wpml-pp-offcanvas-content.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/powerpack-elements142/classes/wpml/class-wpml-pp-offcanvas-content.php
File size: 883 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

class WPML_PP_Offcanvas_Content extends WPML_Elementor_Module_With_Items
{
    public function get_items_field()
    {
        return 'custom_content';
    }
    public function get_fields()
    {
        return array('title', 'description');
    }
    protected function get_title($field)
    {
        switch ($field) {
            case 'title':
                return esc_html__('Offcanvas Content - Box Title', 'powerpack');
            case 'description':
                return esc_html__('Offcanvas Content - Box Description', 'powerpack');
            default:
                return '';
        }
    }
    protected function get_editor_type($field)
    {
        switch ($field) {
            case 'title':
                return 'LINE';
            case 'description':
                return 'LINE';
            default:
                return '';
        }
    }
}