File "class-wpml-pp-table.php"

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

Download   Open   Edit   Advanced Editor   Back

<?php

class WPML_PP_Table extends WPML_Elementor_Module_With_Items
{
    public function get_items_field()
    {
        return 'table_body_content';
    }
    public function get_fields()
    {
        return array('cell_text', 'link' => array('url'));
    }
    protected function get_title($field)
    {
        switch ($field) {
            case 'cell_text':
                return esc_html__('Table - Cell Text', 'powerpack');
            case 'url':
                return esc_html__('Table - Cell Link', 'powerpack');
            default:
                return '';
        }
    }
    protected function get_editor_type($field)
    {
        switch ($field) {
            case 'cell_text':
                return 'AREA';
            case 'url':
                return 'LINE';
            default:
                return '';
        }
    }
}