You are here

heartbeat-message-row.tpl.php in Drupal Commons 6.2

Template file for one row, rendered by heartbeat

  • $time_info : information about the time of activity
  • $class : extra classes to use on the row
  • $attachments : attachment on the message id (of the grouped message)

@remarks beat-item-<uaid> is necessairy. The beat item id is used to toggle visibility of the "number more" messages when grouping exceeded the maximum allowed grouped property.

File

themes/commons_roots/heartbeat-message-row.tpl.php
View source
<?php

// $Id: heartbeat-message-row.tpl.php,v 1.1.2.10 2010/02/21 22:45:26 stalski Exp $

/**
 * @file
 *   Template file for one row, rendered by heartbeat
 *
 * @var
 * - $message : after it was parsed by heartbeat (grouped)
 * - $time_info : information about the time of activity
 * - $class : extra classes to use on the row
 * - $attachments : attachment on the message id (of the grouped message)
 *
 * @remarks
 *   beat-item-<uaid> is necessairy. The beat item id is used to toggle
 *   visibility of the "number more" messages when grouping exceeded the
 *   maximum allowed grouped property.
 */
?>
<div class="heartbeat-message-block <?php

print $message->message_id . ' ' . $zebra;
?>">

  <div class="beat-item" id="beat-item-<?php

print $message->uaid;
?>">

<div class="beat-item-info">
   <span class="heartbeat_times"><?php

print commons_roots_thumb_user_picture($message->actor->picture, 'user_picture_meta', $message->actor->name, $message->actor->uid);
?>
   </span>
   <?php

if (!empty($message->content['time_info'])) {
  ?>
    <span class="heartbeat_times"><?php

  print $message->content['time_info'];
  ?></span>
    <?php

}
?>
    </div>

    <?php

print $message->content['message'];
?>


    <div class="clear"></div>

    <?php

if (!empty($message->content['widgets'])) {
  ?>
    <div class="heartbeat-attachments">
      <?php

  print $message->content['widgets'];
  ?>
    </div>
    <?php

}
?>

    <?php

if (!empty($message->content['buttons'])) {
  ?>
    <div class="heartbeat-buttons">
      <?php

  print $message->content['buttons'];
  ?>
    </div>
    <?php

}
?>

    <br class="clearfix" />

  </div>

</div>