src/sb/Controller/HTML/HTML5.php
public function includeJavascript($scripts)
    {

        $src = (!is_array($scripts)) ? Array($scripts) : $scripts;
        $html = '';
        foreach ($scripts as $s) {
            if (!strstr($s, '/')) {
                $s = '/js/' . $s;
            }
            $html .= "\n" . '<script type="text/javascript" src="' . $s . '"></script>';
        }

        return $html;
    }
public function includeJavascript($scripts)
    {

        $src = (!is_array($scripts)) ? Array($scripts) : $scripts;
        $html = '';
        foreach ($scripts as $s) {
            if (!strstr($s, '/')) {
                $s = '/js/' . $s;
            }
            $html .= "\n" . '<script type="text/javascript" src="' . $s . '"></script>';
        }

        return $html;
    }
public function includeJavascript ( $ scripts ) { $ src = ( ! is_array ( $ scripts ) ) ? Array ( $ scripts ) : $ scripts ; $ html = '' ; foreach ( $ scripts as $ s ) { if ( ! strstr ( $ s , '/' ) ) { $ s = '/js/' . $ s ; } $ html .= "\n" . '<script type="text/javascript" src="' . $ s . '"></script>' ; } return $ html ; }
Creates a javascript include tag
@param $scripts array/string The file names or an array of file names to include
Creates a javascript include tag