wb-archiv283/tags/2.8.3/wb/include/quickSkin_alpha/_lib/qx/qx_current_date.php @ 1907
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* QuickSkin Extension current_date
|
4 |
* Print Current Date
|
5 |
*
|
6 |
* Usage Example:
|
7 |
* Template: Today: {current_date:}
|
8 |
* Result: Today: 30.01.2003
|
9 |
*
|
10 |
* @author Andy Prevost andy@codeworxtech.com - original by Philipp v. Criegern philipp@criegern.de
|
11 |
*/
|
12 |
function qx_current_date () { |
13 |
global $_CONFIG; |
14 |
|
15 |
$dateFormat = 'F j, Y'; |
16 |
if ( !empty($_CONFIG['date_format']) ) { |
17 |
$dateFormat = $_CONFIG['date_format']; |
18 |
}
|
19 |
return date( $dateFormat ); |
20 |
}
|