2015-02-13, 02:59:17
Here's a patch for NM 3.0. Edit news_manager/inc/site.php, find this:
and replace it by:
This should generate additional classes nm_tag_foo, nm_tag_bar, ... in the post container.
Of course you will have to re-do the patch when you upgrade.
This part of the code will be changed in NM 3.1, so the patch would be a bit different.
In some future version this will be possible without patches, when some kind of post templating is implemented.
Code:
echo ' <',$nmoption['markuppost'],' class="nm_post';
if ($single) echo ' nm_post_single';
echo '">',PHP_EOL;
and replace it by:
Code:
echo ' <',$nmoption['markuppost'],' class="nm_post';
if ($single) echo ' nm_post_single';
// patch - tag classes
foreach ($tags as $tag)
if (substr($tag, 0, 1) != '_')
echo ' nm_tag_'.htmlspecialchars($tag);
// end patch
echo '">',PHP_EOL;
This should generate additional classes nm_tag_foo, nm_tag_bar, ... in the post container.
Of course you will have to re-do the patch when you upgrade.
This part of the code will be changed in NM 3.1, so the patch would be a bit different.
In some future version this will be possible without patches, when some kind of post templating is implemented.