Server IP : 184.154.167.98 / Your IP : 3.17.165.235 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/mesa/include/staff/templates/ |
Upload File : |
<?php $entryTypes = ThreadEntry::getTypes(); $entries = $ticket->getThread()->getEntries(); $entries->filter(array('type__in' => array_keys($entryTypes)))->order_by('-created')->limit(6); $i = 0; foreach ($entries as $entry) { $user = $entry->getUser() ?: $entry->getStaff(); $name = $user ? $user->getName() : $entry->poster; $i++; ?> <div id="thread-entry-<?php echo $enry->id; ?>"> <div class="thread-preview-entry <?php echo $i>2 ? 'collapsed ' : ' '; echo $entryTypes[$entry->type]; ?>"> <div class="header"> <div class="thread-info"> <div class="thread-name"> <span><?php echo $name; ?></span> <span><?php echo Format::datetime($entry->created) ?></span> <?php if ($entry->number) { ?> <span data-toggle="tooltip" title="<?php echo sprintf(__('Ticket #%s'), $entry->number); ?>" class="label label-bare"> <i class="icon-code-fork"></i></span> <?php } ?> </div> </div> </div> <div class="thread-body no-pjax"> <div class="thread-teaser"> <?php echo $entry->getBody()->toHtml(); ?> </div> <div class="clear"></div> <?php $atts = isset($thread_attachments) ? $thread_attachments[$entry->id] : $entry->attachments; if (isset($atts) && $atts) { ?> <div class="attachments"><?php foreach ($atts as $A) { if ($A->inline) continue; $size = ''; if ($A->file->size) $size = sprintf('<small class="filesize faded">%s</small>', Format::file_size($A->file->size)); ?> <span class="attachment-info"> <i class="icon-paperclip icon-flip-horizontal"></i> <a class="no-pjax truncate filename" href="<?php echo $A->file->getDownloadUrl(); ?>" download="<?php echo Format::htmlchars($A->getFilename()); ?>" target="_blank"><?php echo Format::htmlchars($A->getFilename()); ?></a><?php echo $size;?> </span> <?php } echo '</div><div class="clear"></div>'; } ?> </div> </div> </div> <?php } ?>