Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ihackcode committed Jul 3, 2020
1 parent ec55486 commit 1bd70ac
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
$timeoffsethours = intval($timeoffset);
$timeoffsetminutes = intval(($timeoffset - $timeoffsethours) * 60);

$monthstart = mktime(0 - $timeoffsethours , 0 - $timeoffsetminutes, 0, $frommonth, 1, $fromyear);
$monthstart = mktime(0 - $timeoffsethours, 0 - $timeoffsetminutes, 0, $frommonth, 1, $fromyear);
$monthend = mktime(23 - $timeoffsethours, 59 - $timeoffsetminutes, 59, $frommonth + 1, 0, $fromyear);

$monthend = ($monthend > time()) ? time() : $monthend;
Expand Down Expand Up @@ -201,9 +201,7 @@
if (is_array($storyarray) && $count > 0) {
/** @var \XoopsModules\Publisher\Item $item */


foreach ($storyarray as $item) {

$story = [];
$htmltitle = '';
$story['title'] = "<a href='" . $item->getItemUrl() . "'" . $htmltitle . '>' . $item->getTitle() . '</a>';
Expand Down Expand Up @@ -242,20 +240,14 @@
}
} else {
$story['comment'] = '&nbsp;' . _MD_PUBLISHER_NO_COMMENTS . '&nbsp;';
}




}
$xoopsTpl->append('stories', $story);
}
//unset($item);

}
$xoopsTpl->assign('lang_printer', _MD_PUBLISHER_PRINTERFRIENDLY);
$xoopsTpl->assign('lang_sendstory', _MD_PUBLISHER_SENDSTORY);
$xoopsTpl->assign('lang_storytotal', _MD_PUBLISHER_TOTAL_ITEMS . ' ' . $count);

} else {
$xoopsTpl->assign('show_articles', false);
}
Expand Down

0 comments on commit 1bd70ac

Please sign in to comment.