@@ 409-416 (lines=8) @@ | ||
406 | * |
|
407 | * @return string html output |
|
408 | */ |
|
409 | public static function script($uHref, array $uAttributes = []) |
|
410 | { |
|
411 | $uAttributes["src"] = $uHref; |
|
412 | ||
413 | $tOutput = "<script " . self::attributes($uAttributes) . "></script>"; |
|
414 | ||
415 | return $tOutput; |
|
416 | } |
|
417 | ||
418 | /** |
|
419 | * Creates an inline script element |
|
@@ 426-433 (lines=8) @@ | ||
423 | * |
|
424 | * @return string html output |
|
425 | */ |
|
426 | public static function scriptInline($uScriptContent, array $uAttributes = []) |
|
427 | { |
|
428 | $uAttributes["src"] = $uHref; |
|
429 | ||
430 | $tOutput = "<script " . self::attributes($uAttributes) . ">{$uScriptContent}</script>"; |
|
431 | ||
432 | return $tOutput; |
|
433 | } |
|
434 | ||
435 | /** |
|
436 | * Creates a link element |
|
@@ 444-452 (lines=9) @@ | ||
441 | * |
|
442 | * @return string html output |
|
443 | */ |
|
444 | public static function link($uRelation, $uHref, array $uAttributes = []) |
|
445 | { |
|
446 | $uAttributes["rel"] = $uRelation; |
|
447 | $uAttributes["href"] = $uHref; |
|
448 | ||
449 | $tOutput = "<link " . self::attributes($uAttributes) . " />"; |
|
450 | ||
451 | return $tOutput; |
|
452 | } |
|
453 | ||
454 | /** |
|
455 | * Creates a link element to link a stylesheet file |