Skip to content

Instantly share code, notes, and snippets.

@mklabs
Created November 2, 2010 14:32
Show Gist options
  • Select an option

  • Save mklabs/659686 to your computer and use it in GitHub Desktop.

Select an option

Save mklabs/659686 to your computer and use it in GitHub Desktop.
<ol class="action_menu">
<?php if ($User->IsLoggedIn() && $User->CanPublish()
&& $User->Articles->count() < $App->max_articles) { ?>
<li><a href="/publish">Publish New Article</a></li>
<?php } ?>
...
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment