WPDKUI::view PHP Method

view() public static method

Return a standard HTML markup view for WordPress backend, with wrap, icon, title and main container
Deprecation: Use WPDKView and WPDKViewController
public static view ( string $id, string $title, string $icon_class, string $content ) : string
$id string Class to add to main content container
$title string Head title
$icon_class string Icon class
$content string HTML content
return string
    public static function view($id, $title, $icon_class, $content)
    {
        $html = <<<HTML
<div class="wrap">
    <div class="{$icon_class}"></div>
    <h2>{$title}</h2>
    <div class="wpdk-border-container {$id}">
        {$content}
    </div>
</div>
HTML;
        return $html;
    }