<?php
namespace Wpupgrader\Libraries\WordPress\Plugins\Core\Settings\Page\Callback;

use Wpupgrader\Libraries\WordPress\Plugins\Core\Settings\Page\Callback;

class Input extends Callback
{
    public function callbackAction()
    {
        if (isset($this->args['icon']) && \strlen($this->args['icon'])) {
            echo '<i class="'.\esc_attr($this->args['icon']).'"></i>';
        }
        echo '<input type="text" value="'.\esc_attr($this->getValue()).'" '.$this->getNameIdString().' class="regular-text" /> '.$this->getTranslateLink().'<p>'.$this->getDescription().'</p>';
    }
}