PHP Classes

File: modules/system/controllers/updates/_column_code.php

Recommend this page to a friend!
  Packages of Luke Towers   Winter   modules/system/controllers/updates/_column_code.php   Download  
File: modules/system/controllers/updates/_column_code.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Winter
Content management system that uses MVC
Author: By
Last change:
Date: 7 months ago
Size: 330 bytes
 

Contents

Class file image Download
<?php
$icon
= null;

if (
$record->is_disabled) {
   
$icon = 'eye-slash';
} elseif (
$record->disabledBySystem) {
   
$icon = 'exclamation';
} elseif (
$record->orphaned) {
   
$icon = 'question';
} elseif (
$record->is_frozen) {
   
$icon = 'lock';
}
?>
<span class="<?= $icon ? 'wn-icon-'.$icon : '' ?>">
    <?= $value ?>
</span>