Ejemplo n.º 1
0
 $list->setColumnFormat('title', 'custom', function ($params) {
     $list = $params['list'];
     if ($list->getValue('description') != '') {
         $aufgabe = '<div class="collapsetitle" data-toggle="collapse" data-target="#collapse###id###">' . $list->getValue('title') . '</div>';
     } else {
         $aufgabe = $list->getValue('title');
     }
     if ($list->getValue('description')) {
         $text = $list->getValue('description');
         if (rex_addon::get('textile')->isAvailable()) {
             $text = str_replace('<br />', '', $text);
             $text = rex_textile::parse($text);
             $text = str_replace('###', '&#x20;', $text);
         }
         if (rex_addon::get('rex_markitup')->isAvailable()) {
             $text = rex_markitup::parseOutput('textile', $text);
         }
         if (!rex_addon::get('rex_markitup')->isAvailable() and !rex_addon::get('textile')->isAvailable()) {
             $text = str_replace(PHP_EOL, '<br/>', $text);
         }
         $user_name = rex::getUser()->getValue('login');
         $beschreibung = '<div id="collapse###id###" class="collapse"><br/>' . $text . '</div>';
     } else {
         $beschreibung = '';
     }
     $aufgabe .= $beschreibung;
     return $aufgabe;
 });
 // --------------------
 //
 //  UpdateDate
Ejemplo n.º 2
0
            ?>
                                                    </a>
                                                </h4>
                                                <div class="collapse" id="<?php 
            echo $uid;
            ?>
">
                                                    <div class="well">
                                                        <?php 
            if (rex_addon::get('textile')->isAvailable()) {
                $description = str_replace('<br />', '', $description);
                $description = rex_textile::parse($description);
                $description = str_replace('###', '&#x20;', $description);
            }
            if (rex_addon::get('rex_markitup')->isAvailable()) {
                $description = rex_markitup::parseOutput('textile', $description);
            }
            echo $description;
            ?>
                                                    </div>
                                                </div>
                                                <?php 
        } else {
            ?>
                                                <h4><?php 
            echo $aufgabe["title"];
            ?>
</h4>
                                                <?php 
        }
        echo getStatusLinks($aufgabe["status"], $aufgabe["id"]);