-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fc8af4
commit cbb1810
Showing
6 changed files
with
152 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Site | ||
* @subpackage mod_articles_latest | ||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// no direct access | ||
defined('_JEXEC') or die; | ||
?> | ||
<ul class="latestnews<?php echo $moduleclass_sfx; ?>"> | ||
<?php foreach ($list as $item) : ?> | ||
<li> | ||
<div class="lnTitle"><a href="<?php echo $item->link; ?>"> | ||
<?php echo $item->title; ?></a></div> | ||
<div class="dateReadon"> | ||
<div class="button date"> | ||
<?php | ||
$dateConvert = $item->publish_up; | ||
// previous to PHP 5.1.0 you would compare with -1, instead of false | ||
if (($timestamp = strtotime($dateConvert)) === false) { | ||
echo "The string ($str) is bogus"; | ||
} else { | ||
echo date('F dS', $timestamp); | ||
} | ||
?> | ||
</div> | ||
<a class="button date" href="<?php echo $item->link; ?>">►</a> | ||
</div> | ||
<p><?php echo substr($item->introtext, 0, 98); ?>...</p> | ||
|
||
</li> | ||
<?php endforeach; ?> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><title></title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters