File "class-wpml-pp-business-hours.php"

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

Download   Open   Edit   Advanced Editor   Back

<?php

class WPML_PP_Business_Hours extends WPML_Elementor_Module_With_Items
{
    public function get_items_field()
    {
        return 'business_hours';
    }
    public function get_fields()
    {
        return array('day', 'closed_text');
    }
    protected function get_title($field)
    {
        switch ($field) {
            case 'day':
                return esc_html__('Business Hours - Day', 'powerpack');
            case 'closed_text':
                return esc_html__('Business Hours - Closed Text', 'powerpack');
            default:
                return '';
        }
    }
    protected function get_editor_type($field)
    {
        switch ($field) {
            case 'day':
                return 'LINE';
            case 'closed_text':
                return 'LINE';
            default:
                return '';
        }
    }
}