mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-25 10:59:15 +02:00
Change menu header title truncate
(cherry picked from commit 775644c247e8a825763fc0f2ce2fe17caf13b77a)
This commit is contained in:
parent
e457deaaf1
commit
b4f8926e75
@ -450,8 +450,11 @@ function ui_print_timestamp ($unixtime, $return = false, $option = array ()) {
|
|||||||
$data = __('Unknown');
|
$data = __('Unknown');
|
||||||
}
|
}
|
||||||
elseif ($prominent == "timestamp") {
|
elseif ($prominent == "timestamp") {
|
||||||
|
pandora_setlocale();
|
||||||
|
|
||||||
$title = human_time_comparation ($unixtime);
|
$title = human_time_comparation ($unixtime);
|
||||||
$data = date ($config["date_format"], $unixtime);
|
$data = strftime(date2strftime_format($config["date_format"]),
|
||||||
|
$unixtime);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$title = date ($config["date_format"], $unixtime);
|
$title = date ($config["date_format"], $unixtime);
|
||||||
@ -632,8 +635,7 @@ function ui_print_os_icon ($id_os, $name = true, $return = false,
|
|||||||
return "-";
|
return "-";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if ($apply_skin) {
|
||||||
if ($apply_skin) {
|
|
||||||
if ($only_src) {
|
if ($only_src) {
|
||||||
$output = html_print_image("images/" . $subfolter . "/" . $icon, true, $options, true, $relative);
|
$output = html_print_image("images/" . $subfolter . "/" . $icon, true, $options, true, $relative);
|
||||||
}
|
}
|
||||||
@ -2408,7 +2410,7 @@ function ui_print_page_header ($title, $icon = "", $return = false, $help = "",
|
|||||||
|
|
||||||
$buffer .= '<ul class="mn"><li class="' . $type . '"> ' . ' ';
|
$buffer .= '<ul class="mn"><li class="' . $type . '"> ' . ' ';
|
||||||
$buffer .= '<span style="">' .
|
$buffer .= '<span style="">' .
|
||||||
ui_print_truncate_text($title, 38);
|
ui_print_truncate_text($title, 46);
|
||||||
if ($modal){
|
if ($modal){
|
||||||
$buffer .= "
|
$buffer .= "
|
||||||
<div id='publienterprise' class='".$message."' title='Community version' style='float: right;margin-top: -2px !important; margin-left: 2px !important;'><img data-title='Enterprise version' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>
|
<div id='publienterprise' class='".$message."' title='Community version' style='float: right;margin-top: -2px !important; margin-left: 2px !important;'><img data-title='Enterprise version' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user