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
 

Contents

Class file image Download
<?php
if ($task['nb_metadata'] > 0):
   
$custom_fields = $this->task->metadataTypeModel->getAllInScope($task['project_id']);
?>
    <br>
    <?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 ?>
<?php
endif ?>

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