This file contains hidden or 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
<li [[+wf.id]] [[+wf.classes]] > | |
<a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]> | |
[[+wf.linktext]][[!newOrUpdate? input=`[[+wf.docid]]`]]</a> [[+wf.wrapper]] | |
</li> |
This file contains hidden or 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
<?php | |
/** | |
* This is a MODX snippet to add "new" or "Updated" images to menu, | |
* pages and such. | |
* You need to provide your own new.gif and updated.gif file. change the | |
* file path to the images files accordingly. | |
* if called without input parameter then it will look at the page resource and | |
* determine if the page is newly published or updated. | |
* if called with input=`resourceID` then it will look into that resource ID. | |
* This snippet can be also used with getResoruces or Wayfinder. |