<?php if ($bot->get('status') == 'error') { ?> <?php echo Controller::byName('htmltemplate')->renderView('errorbar', array('message' => "This bot is offline with the following error: " . $bot->get('error_text'))); ?> <?php } ?> <div class="row"> <div class="span6"> <?php if ($webcam->isHydrated()) { ?> <h3>Latest Image - <span class="muted"><?php echo Utility::getTimeAgo($webcam->get('add_date')); ?> </span></h3> <img src="<?php echo $webcam->getDownloadURL(); ?> "> <?php } else { ?> <img src="/img/colorbars.gif"> <?php } ?> </div> <div class="span6">
<th>Last active</th> <td><?php echo Utility::getTimeAgo($user->get('last_active')); ?> (<?php echo Utility::formatDate($user->get('last_active')); ?> )</td> </tr> <?php } ?> <tr> <th>I joined</th> <td><?php echo Utility::getTimeAgo($user->get('registered_on')); ?> (<?php echo Utility::formatDate($user->get('registered_on')); ?> )</td> </tr> </tbody> </table> <?php if ($user->get('bio')) { ?> <p> <?php echo Utility::convertToHTML($user->get('bio')); ?>
<?php foreach ($activities as $row) { ?> <?php $datetime = $row['DateTime']; ?> <tr> <td><?php echo $row['user_link']; ?> </td> <td><?php echo $row['activity']; ?> </td> <td><span class="muted"><?php echo Utility::getTimeAgo($datetime->format("Y-m-d H:i:s")); ?> </span></td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <b>No activity found.</b> <?php }
<?php $activity = $row['Activity']; ?> <?php $datetime = $activity->get('action_date'); ?> <tr> <td><?php echo $user->getLink(); ?> </td> <td><?php echo $activity->get('activity'); ?> </td> <td><span class="muted"><?php echo Utility::getTimeAgo($datetime); ?> </span></td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <b>No activity found.</b> <?php }
<?php $user = $row['User']; ?> <?php $activity = $row['Activity']; ?> <tr> <td><?php echo $user->getLink(); ?> </td> <td><?php echo $activity->get('activity'); ?> </td> <td><?php echo Utility::getTimeAgo($activity->get('action_date')); ?> </td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <b>No activity found.</b> <?php }