add appropriate icons to checkin/checkout rendered activities

This commit is contained in:
Mike Macgirvin 2022-11-22 08:29:13 +11:00
parent 5126156b80
commit 98b981af47
2 changed files with 7 additions and 2 deletions

View file

@ -372,6 +372,11 @@ class ThreadItem
$pinned_items = ($allowed_type ? get_pconfig($item['uid'], 'pinned', $item['item_type'], []) : []);
$pinned = ((! empty($pinned_items) && in_array($item['mid'], $pinned_items)) ? true : false);
$locicon = ($item['verb'] === 'Arrive') ? '<i class="fa fa-fw fa-map-marker"></i>&nbsp' : '';
if (!$locicon) {
$locicon = ($item['verb'] === 'Leave') ? '<i class="fa fa-fw fa-sign-out"></i>&nbsp' : '';
}
$tmp_item = array(
'template' => $this->get_template(),
'mode' => $mode,
@ -413,7 +418,7 @@ class ThreadItem
'thumb' => $profile_avatar,
'osparkle' => $osparkle,
'sparkle' => $sparkle,
'title' => $item['title'],
'title' => $locicon . $item['title'],
'title_tosource' => get_pconfig($conv->get_profile_owner(), 'system', 'title_tosource'),
'ago' => relative_date($item['created']),
'app' => $item['app'],

View file

@ -1350,7 +1350,7 @@ function z_status_editor($x, $popup = false)
'$discombed' => t('Load remote media players'),
'$discombed2' => t('This <em>may</em> subject viewers of this post to behaviour tracking'),
'$embedchecked' => ((get_pconfig($x['profile_uid'], 'system', 'linkinfo_embed', true)) ? ' checked ' : ''),
'$disczot' => t('Find shareable objects (Zot)'),
'$disczot' => t('Find shareable objects'),
'$checkin_checked' => $checkin_checked,
'$checkout_checked' => $checkout_checked,
'$reset' => $reset