?> </span><br><br> <span class="content"><?php echo nl2br($status->format_message($detail, array('creation_time' => $ctime))); ?> </span> <br><br><br><span class="sec_title"><?php echo _("Suggested Actions"); ?> </span> <ul> <?php foreach ($detail['actions'] as $action) { echo "<li>" . $status->format_action_link($action, $component_id) . "</li>"; } ?> </ul> <p><button type="button"><?php echo _("Close"); ?> </button></p> </div> </body> </html>
if ($msg["viewed"] == false) { $class .= ' bold'; } echo "<div data-id='" . $msg['message_id'] . "' class='suggestion_message {$class}'>\n <div style='padding-right:9px'>" . $msg['description'] . "</div>\n <div class='carrot green'></div>\n </div>\n <div id='{$sid}' class='hidden'>"; // Get details try { list($detail) = $status->get_message_detail($msg['message_id']); } catch (Exception $e) { $detail = array("content" => $e->getMessage(), "actions" => array()); } echo "<div class='suggestion_detail'>" . $status->format_message($detail, $msg) . "</div>\n"; if (count($detail["actions"])) { echo '<ul class="suggestion_action">'; } foreach ($detail["actions"] as $action) { echo "<li>" . $status->format_action_link($action, $id) . "</li>\n"; } if (count($detail["actions"])) { echo '</ul>'; } echo "</div>"; } } ?> </div> </div> </body> </html>