PHP Classes

File: Template/task/meta_footers.php

Recommend this page to a friend!
  Classes of kiran  >  MetaMagik  >  Template/task/meta_footers.php  >  Download  
File: Template/task/meta_footers.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: 1 year ago
Size: 982 bytes


Class file image Download
if ($task['nb_metadata'] > 0):
$custom_fields = $this->task->metadataTypeModel->getAllInScope($task['project_id']);
    <?php foreach ($custom_fields as $custom_field): ?>
<?php if (!empty($this->task->taskMetadataModel->get($task['id'], $custom_field['human_name'], '')) && $custom_field['footer_inc'] == 1): ?>
<span class="metamagik-footer-title"><strong> <?= $custom_field['beauty_name'] ?>: </strong></span>
                <?php if ($custom_field['data_type'] == 'textarea'): ?>
<span class="metamagik-footer-value-md"><?= $this->text->markdown($this->task->taskMetadataModel->get($task['id'], $custom_field['human_name'], '')) ?></span>
                <?php else: ?>
<span class="metamagik-footer-value"><?= $this->task->taskMetadataModel->get($task['id'], $custom_field['human_name'], '') ?></span>
                <?php endif ?>
<?php endif ?>
<?php endforeach ?>
endif ?>

For more information send a message to info at phpclasses dot org.