1<?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?> 2<a id="zk<?php echo $tpl->get('task_comment')->id ?>"></a> 3<div class="bez_comment bez_type_0 4 <?php 5 if ($tpl->get('task_comment')->author == $tpl->current_user()) { 6 echo 'bez_my_comment'; 7 } 8?>"> 9 <div class="bez_avatar"> 10 <img src="<?php echo DOKU_URL ?>lib/plugins/bez/images/avatar_default.png" /> 11 </div> 12 <div class="bez_text_comment"> 13 <span class="bez_arrow-tip-container "> 14 <span class="bez_arrow-tip "> 15 <span class="bez_arrow-tip-grad"></span> 16 </span> 17 </span> 18 <div class="commcause_content"> 19 <h2> 20 <a href="#zk<?php echo $tpl->get('task_comment')->id ?>">#zk<?php echo $tpl->get('task_comment')->id ?></a> 21 <strong><?php echo $tpl->user_name($tpl->get('task_comment')->author) ?></strong> 22 <?php echo $tpl->getLang('comment_added') ?> 23 <?php echo dformat(strtotime($tpl->get('task_comment')->create_date), '%Y-%m-%d %H:%M') ?> 24 25 <?php if ($tpl->param('zkid') != $tpl->get('task_comment')->id): ?> 26 <div class="bez_comment_buttons"> 27 <?php if ( 28 $tpl->get('task')->state == 'opened' && 29 $tpl->get('task_comment')->acl_of('id') >= BEZ_PERMISSION_CHANGE): ?> 30 31 <a class="bez_comment_button" 32 href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'comment_edit', 'zkid', $tpl->get('task_comment')->id) ?>#zk_"> 33 <span class="bez_awesome"></span> 34 </a> 35 <?php if ($tpl->get('task_comment')->acl_of('id') >= BEZ_PERMISSION_DELETE): ?> 36 <a class="bez_comment_button bez_commcause_delete_prompt" 37 data-kid="<?php echo $tpl->get('task_comment')->id ?>" 38 href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'comment_delete', 'zkid', $tpl->get('task_comment')->id) ?>"> 39 <span class="bez_awesome"></span> 40 </a> 41 <?php endif ?> 42 <?php endif ?> 43 </div> 44 <?php endif ?> 45 </h2> 46 <div class="bez_content"> 47 <?php echo $tpl->get('task_comment')->content_html; ?> 48 </div> 49 </div> 50 </div> 51</div> 52