Ejemplo n.º 1
0
 public function attachmentCallback($matches)
 {
     $id = $matches[1];
     $attachment = null;
     foreach ($this->attachments as $k => $a) {
         if ($a["attachmentId"] == $id) {
             $attachment = $a;
             unset($this->attachments[$k]);
             break;
         }
     }
     if (!$attachment) {
         return;
     }
     return formatAttachment($attachment, false);
 }
Ejemplo n.º 2
0
<?php

// Copyright 2013 Toby Zerner, Simon Zerner
// This file is part of esoTalk. Please see the included license file for usage information.
if (!defined("IN_ESOTALK")) {
    exit;
}
?>
<div class='attachments'>
	<ul>
		<?php 
foreach ($data["attachments"] as $attachment) {
    ?>
		<li>
			<?php 
    echo formatAttachment($attachment);
    ?>
		</li>
		<?php 
}
?>
	</ul>
</div>