Permalink
Browse files

Navigation: workaround for published echo problem

  • Loading branch information...
Deepwinter
Deepwinter committed May 5, 2011
1 parent ae10cbe commit 7ec5d960afb4a7419a00805bd2ee33b3c933b732
Showing with 10 additions and 1 deletion.
  1. +10 −1 modules/navigation/views/navigationNode.php
@@ -1,7 +1,16 @@
+
+<? $keys = array_keys($content);?>
+<?// echo $keys[2];?>
+<?// echo $content[$keys[2]];?>
+<?// if($keys[2] == 'published'):?>
+<?//=$content['published'];?>
+<?//endif;?>
+<?//=$content['published'];?>
+
<li class="node <?=$content['nodeType'];?> <?=$content['contentType'];?> clearFix" id="node_<?=$content['id'];?>">
<h5><?=$content['title'];?></h5>
<div class="methods">
- <a class="icon togglePublish published" href="#" title="unpublish NodeTitle">publish</a>
+ <a class="icon togglePublish <?echo $content[$keys[2]]?'published':'';?> " href="#" title="unpublish <?=$content['title'];?>">publish</a>
<a class="icon removeNode" title="delete">delete</a>
</div>
</li>

0 comments on commit 7ec5d96

Please sign in to comment.