kopia lustrzana https://github.com/friendica/friendica
tag display with item
rodzic
3b33c0d075
commit
790c4a4e1a
|
@ -787,6 +787,15 @@ function prepare_body($item,$attach = false) {
|
|||
$s .= '<div class="clear"></div></div>';
|
||||
}
|
||||
|
||||
$arr = explode(',',$item['tag']);
|
||||
if(count($arr)) {
|
||||
$s .= '<div class="body-tag">';
|
||||
foreach($arr as $r) {
|
||||
$s .= bbcode($r) . ' ';
|
||||
}
|
||||
$s .= '</div>';
|
||||
}
|
||||
|
||||
$prep_arr = array('item' => $item, 'html' => $s);
|
||||
call_hooks('prepare_body_final', $prep_arr);
|
||||
return $prep_arr['html'];
|
||||
|
|
|
@ -11,7 +11,9 @@ function tagger_content(&$a) {
|
|||
return;
|
||||
}
|
||||
|
||||
$term= notags(trim($_GET['term']));
|
||||
$term = notags(trim($_GET['term']));
|
||||
// no commas allowed
|
||||
$term = str_replace(',','',$term);
|
||||
|
||||
if(! $term)
|
||||
return;
|
||||
|
|
Ładowanie…
Reference in New Issue