|
13 | 13 | $sortFields = $this->getSortFields();
|
14 | 14 | $listOrder = $this->escape($this->state->get('list.ordering'));
|
15 | 15 | $listDirn = $this->escape($this->state->get('list.direction'));
|
| 16 | + |
| 17 | +$document = JFactory::getDocument(); |
| 18 | +$document->addScript(JUri::root() . 'media/com_activitystream/scripts/mustache.min.js'); |
| 19 | +$document->addScript(JUri::root() . 'media/com_activitystream/scripts/activities.jQuery.js'); |
| 20 | + |
| 21 | +$languageTag = JFactory::getLanguage()->get('tag', 'en-GB'); |
| 22 | + |
| 23 | +// Load theme related CSS |
| 24 | +if (!empty($this->items)) |
| 25 | +{ |
| 26 | + foreach ($this->items as $item) |
| 27 | + { |
| 28 | + $document->addStyleSheet(JUri::root() . 'media/com_jgive/themes/' . $item->default_theme . '/css/theme.css'); |
| 29 | + } |
| 30 | +} |
16 | 31 | ?>
|
17 | 32 | <form action="<?php echo JRoute::_('index.php?option=com_activitystream&view=activities&client=' . $this->input->get('client', '', 'STRING')); ?>" method="post" id="adminForm" name="adminForm">
|
18 | 33 | <div class="row-fluid">
|
|
33 | 48 | <th width="5%">
|
34 | 49 | <?php echo JHtml::_('searchtools.sort', JText::_('COM_ACTIVITYSTREAM_ACTIVITY_STATE'), 'state', $listDirn, $listOrder); ?>
|
35 | 50 | </th>
|
| 51 | + <th width="5%"> |
| 52 | + <?php echo JText::_('COM_ACTIVITYSTREAM_ACTIVITY'); ?> |
| 53 | + </th> |
36 | 54 | <th width="5%">
|
37 | 55 | <?php echo JHtml::_('searchtools.sort', JText::_('COM_ACTIVITYSTREAM_ACTIVITY_TYPE'), 'type', $listDirn, $listOrder);?>
|
38 | 56 | </th>
|
|
60 | 78 | <?php if (!empty($this->items) && empty($this->items['error'])) : ?>
|
61 | 79 | <?php foreach ($this->items as $i => $row) :
|
62 | 80 | $link = JRoute::_('index.php?option=com_activitystream&task=activity.edit&id=' . $row->id);
|
63 |
| - ?> |
| 81 | + ?> |
64 | 82 | <tr>
|
65 | 83 | <td>
|
66 | 84 | <?php echo JHtml::_('grid.id', $i, $row->id); ?>
|
67 | 85 | </td>
|
68 | 86 | <td align="center">
|
69 | 87 | <?php echo JHtml::_('jgrid.published', $row->state, $i, 'activities.', true, 'cb'); ?>
|
70 | 88 | </td>
|
| 89 | + <td align="center"> |
| 90 | + <div tj-activitystream-single-activity-widget tj-activitystream-theme="<?php echo $row->default_theme;?>" tj-activitystream-bs="bs3" tj-activitystream-language="<?php echo $languageTag;?>" tj-activitystream-single-activity-data='<?php echo json_encode($row);?>'> |
| 91 | + </div> |
| 92 | + </td> |
71 | 93 | <td>
|
72 | 94 | <?php echo $row->type; ?>
|
73 | 95 | </td>
|
|
0 commit comments