Link | mf_datetime |
Author | Jason Huck |
Category | String |
Version | 8.5.x |
License | Public Domain |
Posted | 07 Sep 2010 |
Updated | 07 Sep 2010 |
More by this author... |
Returns the given date in the datetime design pattern microformat. Will use an <abbr> tag unless -html5 equals true, in which case it will use a <time> tag.
mf_datetime( -class='published', -html5=true); //
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define_tag( 'datetime', -namespace='mf_', -req='class', -opt='date', -type='date', -opt='format', -opt='id', -opt='html5', -type='boolean', -priority='replace', -encodenone, -description='Returns the given date in the datetime design pattern microformat.' ); !local_defined('date') ? local('date') = date; !local_defined('format') ? local('format') = '%d %b %Y'; !local_defined('html5') ? local('html5') = false; local('out') = (#html5 ? '' | ''); return(#out); /define_tag;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft