Пример #1
0
?>
 <?php 
echo Lang::txt('COM_WIKI_COL_DESCRIPTION');
?>
						</a>
					</th>
				</tr>
			</thead>
			<tbody>
			<?php 
if ($rows) {
    $database = \App::get('db');
    $asset = new \Components\Wiki\Tables\Attachment($database);
    foreach ($rows as $row) {
        $fsize = Lang::txt('COM_WIKI_UNKNOWN');
        if (is_file($asset->filespace() . DS . $row->pageid . DS . $row->filename)) {
            $fsize = \Hubzero\Utility\Number::formatBytes(filesize($asset->filespace() . DS . $row->pageid . DS . $row->filename));
        }
        $name = Lang::txt('COM_WIKI_UNKNOWN');
        $xprofile = \Hubzero\User\Profile::getInstance($row->created_by);
        if (is_object($xprofile)) {
            $name = $this->escape(stripslashes($xprofile->get('name')));
            $name = $xprofile->get('public') ? '<a href="' . Route::url($xprofile->getLink()) . '">' . $name . '</a>' : $name;
        }
        ?>
				<tr>
					<td>
						<time datetime="<?php 
        echo $row->created;
        ?>
"><?php