<!-- App ID --> <div class="form form-inline form-page"> <div class="fieldset clearfix widget-detail"> <div class="widget-detail-img"> <img src="<?php echo Ut::getImageOrPlaceholder('modules/' . $module->icon); ?> " alt="<?php echo $module->title; ?> "> </div> <div class="widget-detail-body"> <?php //var_dump($module) ?> <h1><?php echo $module->title; ?> </h1> <div class="widget-detail-list"><?php echo $module->description; ?> </div> <div class="widget-detail-list"><strong>Author:</strong> <?php echo $module->author; ?> </div> <?php if (!empty($module->homepage)) { ?>
/** * Set icon data * @param object $result * @return array */ private function setIcon($result, $single = false) { $data = array(); if ($result->num_rows > 0) { while ($row = $result->fetch_object()) { $row->icon_path = $this->cfg['server'] . Ut::getImageOrPlaceholder('storage/icons/' . $row->icon); $row->file_path = is_file('storage/icons/' . $row->file) ? $this->cfg['server'] . 'storage/icons/' . $row->file : NULL; $row->preview_path = $this->cfg['server'] . 'storage/icons/' . $row->name . '/'; $row->server_path = $this->cfg['server']; $single ? $data = $row : array_push($data, $row); } } return $data; }