Merge branch 'ent-13737-modo-interpretar-enlaces' into 'develop'
Ent 13737 modo interpretar enlaces See merge request artica/pandorafms!7405
This commit is contained in:
commit
aff3726269
|
@ -5362,8 +5362,11 @@ function events_page_comments($event, $groupedComments=[], $filter=null)
|
||||||
'<br><br><i>%s</i>',
|
'<br><br><i>%s</i>',
|
||||||
date($config['date_format'], $comm['utimestamp'])
|
date($config['date_format'], $comm['utimestamp'])
|
||||||
);
|
);
|
||||||
|
if (isset($config['events_format_urls']) === true && (bool) $config['events_format_urls'] === true) {
|
||||||
$data[1] = '<p class="break_word">'.stripslashes(str_replace(['\n', '\r'], '<br/>', $comm['comment'])).'</p>';
|
$data[1] = io_safe_output($comm['comment']);
|
||||||
|
} else {
|
||||||
|
$data[1] = '<p class="break_word">'.stripslashes(str_replace(['\n', '\r'], '<br/>', $comm['comment'])).'</p>';
|
||||||
|
}
|
||||||
|
|
||||||
$table_comments->data[] = $data;
|
$table_comments->data[] = $data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7270,24 +7270,27 @@ function ui_print_comments($comment, $truncate_limit=255)
|
||||||
|
|
||||||
$short_comment = substr($comment['comment'], 0, 20);
|
$short_comment = substr($comment['comment'], 0, 20);
|
||||||
$comentario = $comment['comment'];
|
$comentario = $comment['comment'];
|
||||||
|
if (isset($config['events_format_urls']) === true && (bool) $config['events_format_urls'] === true) {
|
||||||
|
$comentario = '<i class="forced_title" data-use_title_for_force_title="1" data-title="'.date($config['date_format'], $comment['utimestamp']).'">'.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$comment['comment'].'';
|
||||||
|
} else {
|
||||||
|
if (strlen($comentario) >= $truncate_limit) {
|
||||||
|
$comentario = ui_print_truncate_text(
|
||||||
|
$comentario,
|
||||||
|
$truncate_limit,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
'…',
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (strlen($comentario) >= $truncate_limit) {
|
$comentario = '<i class="forced_title" data-use_title_for_force_title="1" data-title="'.date($config['date_format'], $comment['utimestamp']).'">'.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$comment['comment'].'';
|
||||||
$comentario = ui_print_truncate_text(
|
|
||||||
$comentario,
|
|
||||||
$truncate_limit,
|
|
||||||
false,
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
'…',
|
|
||||||
true,
|
|
||||||
true,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$comentario = '<i class="forced_title" data-use_title_for_force_title="1" data-title="'.date($config['date_format'], $comment['utimestamp']).'">'.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$comment['comment'].'';
|
if (strlen($comentario) > '200px' && $truncate_limit >= 255) {
|
||||||
|
$comentario = '<i class="forced_title" data-use_title_for_force_title="1" data-title="'.date($config['date_format'], $comment['utimestamp']).'">'.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$short_comment.'...';
|
||||||
if (strlen($comentario) > '200px' && $truncate_limit >= 255) {
|
}
|
||||||
$comentario = '<i class="forced_title" data-use_title_for_force_title="1" data-title="'.date($config['date_format'], $comment['utimestamp']).'">'.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$short_comment.'...';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $comentario;
|
return $comentario;
|
||||||
|
|
|
@ -560,16 +560,20 @@ if (is_ajax() === true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($tmp->event_custom_id) === false) {
|
if (empty($tmp->event_custom_id) === false) {
|
||||||
$tmp->event_custom_id = ui_print_truncate_text(
|
if (isset($config['events_format_urls']) === true && (bool) $config['events_format_urls'] === true) {
|
||||||
$tmp->event_custom_id,
|
$tmp->event_custom_id = io_safe_output($tmp->event_custom_id);
|
||||||
30,
|
} else {
|
||||||
false,
|
$tmp->event_custom_id = ui_print_truncate_text(
|
||||||
true,
|
$tmp->event_custom_id,
|
||||||
false,
|
30,
|
||||||
'…',
|
false,
|
||||||
true,
|
true,
|
||||||
true,
|
false,
|
||||||
);
|
'…',
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($tmp->module_custom_id) === false) {
|
if (empty($tmp->module_custom_id) === false) {
|
||||||
|
|
Loading…
Reference in New Issue