PHP: Drupal Views Header Add Content Link
# Create an "add content" link in View Header that is only visible to users with appropriate permissions.
<?php
global $user;
if (user_access('create page content', $user)) {
$output = l(t('Add new page'), 'node/add/page');
print $output;
}
?>