HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/appointmentbook.me/wp-content/plugins/floating-awesome-button/src/Plugin/Form.php
<?php

namespace Fab;

!defined( 'WPINC ' ) or die;

/**
 * Helper library for Fab plugins
 *
 * @package    Fab
 * @subpackage Fab\Includes
 */

use FAB\View;

class Form {

    /**
     * Option Container
     * @param string $type  Container path type
     * @param array $label  Container label config
     * @param object $content  HTML Content Object
     */
    public function container($type, $content, $args = array()){
        View::RenderStatic(
            sprintf( 'Template/form/container/%s', $type ),
            compact('content', 'args')
        );
    }

    /** Render DOM HTML Element */
    public function heading($text, $args = array()){
        View::RenderStatic(
            'Template/form/html/heading',
            compact('text', 'args')
        );
    }

    /** Render DOM HTML Element */
    public function select($name, $options = array(), $args = array()){
        View::RenderStatic(
            'Template/form/html/select',
            compact('name', 'options', 'args')
        );
    }

    /** Render DOM HTML Element */
    public function number($name, $args = array()){
        View::RenderStatic(
            'Template/form/html/number',
            compact('name', 'args')
        );
    }

    /** Render DOM HTML Element */
    public function switch($name, $args = array()){
        View::RenderStatic(
            'Template/form/html/switch',
            compact('name', 'args')
        );
    }

    /** Render DOM HTML Element */
    public function text($name, $args = array()){
        View::RenderStatic(
            'Template/form/html/text',
            compact('name', 'args')
        );
    }

}