|
@@ -1286,13 +1286,13 @@ class Display {
|
|
|
return 'data_table';
|
|
|
}
|
|
|
|
|
|
- public static function page_header($title, $second_title = null) {
|
|
|
+ public static function page_header($title, $second_title = null, $size = 'h1') {
|
|
|
$title = Security::remove_XSS($title);
|
|
|
if (!empty($second_title)) {
|
|
|
$second_title = Security::remove_XSS($second_title);
|
|
|
$title .= "<small> $second_title<small>";
|
|
|
}
|
|
|
- return '<div class="page-header"><h1>'.$title.'</h1></div>';
|
|
|
+ return '<div class="page-header"><'.$size.'>'.$title.'</'.$size.'></div>';
|
|
|
}
|
|
|
|
|
|
public static function page_header_and_translate($title, $second_title = null) {
|
|
@@ -1306,11 +1306,15 @@ class Display {
|
|
|
}
|
|
|
|
|
|
public static function page_subheader($title, $second_title = null) {
|
|
|
- if (!empty($second_title)) {
|
|
|
- $second_title = Security::remove_XSS($second_title);
|
|
|
- $title .= "<small> $second_title<small>";
|
|
|
- }
|
|
|
- return '<div class="page-header"><h2>'.Security::remove_XSS($title).'</h2></div>';
|
|
|
+ return self::page_header($title, $second_title, 'h2');
|
|
|
+ }
|
|
|
+
|
|
|
+ public static function page_subheader2($title, $second_title = null) {
|
|
|
+ return self::page_header($title, $second_title, 'h3');
|
|
|
+ }
|
|
|
+
|
|
|
+ public static function page_subheader3($title, $second_title = null) {
|
|
|
+ return self::page_header($title, $second_title, 'h4');
|
|
|
}
|
|
|
|
|
|
public static function description($list) {
|
|
@@ -1377,7 +1381,7 @@ class Display {
|
|
|
return $html;
|
|
|
}
|
|
|
|
|
|
- public static function label($content, $type = null) {
|
|
|
+ public static function label($content, $type = null, $full_content = null) {
|
|
|
$class = '';
|
|
|
switch ($type) {
|
|
|
case 'success':
|
|
@@ -1398,8 +1402,8 @@ class Display {
|
|
|
}
|
|
|
|
|
|
$html = '';
|
|
|
- if (!empty($content)) {
|
|
|
- $html = '<span class="label '.$class.'">';
|
|
|
+ if (!empty($content)) {
|
|
|
+ $html = '<span title="'.$full_content.'" class="label '.$class.'">';
|
|
|
$html .= $content;
|
|
|
$html .='</span>';
|
|
|
}
|