Exemplo n.º 1
0
    public static function prev($href = '#', $text = true, $command = '', $onclick = '')
    {
        return self::imgbtn('prev', $href, $text, $command, $onclick);
    }
    public static function tooltip($text, $id = 'gwf_tt')
    {
        return str_replace(array('%TEXT_HTML%', '%TEXT_JS%', '%ID%'), array(htmlspecialchars($text), GWF_HTML::displayJS($text), $id), self::$templateTooltip);
    }
    public static function up($href)
    {
        return self::generic('^', $href, 'up');
    }
    public static function down($href)
    {
        return self::generic('v', $href, 'down');
    }
    public static function wrapStart($class = '')
    {
        return '<div class="gwf_buttons_outer"><div class="gwf_buttons ' . $class . '">' . PHP_EOL;
    }
    public static function wrapEnd()
    {
        return '</div></div>' . PHP_EOL;
    }
    public static function wrap($html, $class = '')
    {
        return self::wrapStart($class) . $html . self::wrapEnd();
    }
}
GWF_Button::init();