<?php 
    namespace Pixebuilder\Element;
    
    // prevent direct file access
	if( !defined( 'ABSPATH' ) ) exit;
    
    class Out_Of_Service extends Item{

        static function get_name(){
            return 'out-of-service';
        }

        static function get_type(){
            return 'hidden';
        }

        static function get_title(){
            return esc_html__('Out Of Service', 'pixebuilder');
        }

        static function get_icon(){
            return 'title';
        }
        
        static function render_content($settings){
            $ret = '';

            if( pixe_is_admin() ){
                $ret  = 'Out Of Service';
                $ret .= '<pre>' . json_encode($settings['data']) . '</pre>';
            }

            return $ret;
        }

    }

    \Pixe_Builder::register_element('Pixebuilder\Element\Out_Of_Service');
    