public function __construct($engine) { Config::constants(); if (!$this->install($engine)) { Site::run(); } }
public static function htmlTableRow($level, $row) { $html = '<tr>'; $html .= '<td><input type="checkbox" class="i-checks" name="post_id[]" value="' . $row->id . '"></td>'; $html .= '<td><a href="' . Site::$url . ADMIN_DIR . '/' . INDEX_FILE . '/pages/edit/' . $row->id . '">' . Site::htmlSymbol('— ', $level) . $row->title . '</a></td>'; $html .= '<td><a href="' . Site::$url . ADMIN_DIR . '/' . INDEX_FILE . '/pages/?author=' . $row->author . '">' . $row->author . '</a></td>'; $html .= '<td>1</td>'; $html .= '<td>' . Localize::dateFormat($row->date) . ' <br />' . (!$row->status ? Site::lang()['globals']['UNPUBLISHED'] : Site::lang()['globals']['PUBLISHED']) . '</td>'; $html .= '</tr>'; return $html; }
private static function ddlOption($level, $selected, $row, $symbol, $value) { $html = ''; if (!$symbol) { if ($row->id == $value) { $selected = 'selected'; } $html .= '<option value="' . $row->id . '" ' . $selected . '>' . $row->name . '</option>'; } else { if ($row->id != $value) { $html .= '<option value="' . $row->id . '" ' . $selected . '>' . Site::htmlSymbol(' ', $level) . $row->name . '</option>'; } } return $html; }
public static function lang() { return Site::lang(); }