mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 12:06:22 +05:30
Improve offline writing
The username.ini and category files not mandatory anymore.
This commit is contained in:
parent
2a6d94fc5e
commit
afcddb2979
4 changed files with 91 additions and 52 deletions
|
|
@ -2,7 +2,6 @@
|
|||
<?php
|
||||
$desc = get_category_info(null);
|
||||
asort($desc);
|
||||
|
||||
?>
|
||||
<h2><?php echo i18n("Categories");?></h2>
|
||||
<br>
|
||||
|
|
|
|||
|
|
@ -11,20 +11,8 @@
|
|||
<th><?php echo i18n('Published');?></th>
|
||||
<th><?php echo i18n('Operations');?></th>
|
||||
</tr>
|
||||
<?php $i = 0;
|
||||
$len = count($posts); ?>
|
||||
<?php foreach ($posts as $p): ?>
|
||||
<?php
|
||||
if ($i == 0) {
|
||||
$class = 'item first';
|
||||
} elseif ($i == $len - 1) {
|
||||
$class = 'item last';
|
||||
} else {
|
||||
$class = 'item';
|
||||
}
|
||||
$i++;
|
||||
?>
|
||||
<tr class="<?php echo $class ?>">
|
||||
<tr>
|
||||
<td><a target="_blank" href="<?php echo $p->url ?>"><?php echo $p->title ?></a></td>
|
||||
<td><?php echo format_date($p->date) ?></td>
|
||||
<?php if ($category->url !== site_url() . 'category/uncategorized') {?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue