PHP Classes

File: Template/task/metasummary.php

Recommend this page to a friend!
  Classes of kiran   MetaMagik   Template/task/metasummary.php   Download  
File: Template/task/metasummary.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MetaMagik
Plugin to add custom form fields for Kanboard
Author: By
Last change:
Date: 3 years ago
Size: 813 bytes
 

Contents

Class file image Download
<br><br>
<?php
$metadata
= $this->task->taskMetadataModel->getAll($task['id']);
$custom_fields = $this->task->metadataTypeModel->getAllInScope($task['project_id']);
$set = $this->task->metadataTypeModel->existsInTask($task['id']);
if (
$_SESSION['user']['role'] == 'app-admin') { $edits = true; } else { $edits = false; }
if (!
$set):
?>
<?php
else: ?>
<details class="accordion-section" <?= empty($metadata) ? 'accordion-collapsed' : '' ?>>
<summary class="accordion-title">
        <?= t('MetaMagik') ?>
</summary>
<div class="accordion-content">
        <article class="markdown">
        <?= $this->render('metaMagik:task/metatable', array(
           
'custom_fields' => $custom_fields,
           
'task' => $task,
           
'editable' => $edits
       
)) ?>
</article>
</div>

</details>
<?php endif ?>