Pastoid

The page you are looking at now is at this URL: http://pastoid.com/aui

This paste was last updated on March 30, 2009 at 11:04 pm.

Pasted Coderaw

<?php $actions = array(
	'edit' => array('url' => URL::get('admin', 'page=publish&id=' . $post->id), 'title' => sprintf( _t('Edit \'%s\''), $post->title ), 'label' => _t('Edit'), 'permission' => 'edit' ),
	'view' => array('url' => $post->permalink . '?preview=1', 'title' => sprintf( _t('View \'%s\''), $post->title ), 'label' => _t('View'), 'permission' => 'read' ),
	'remove' => array('url' => 'javascript:itemManage.remove('. $post->id . ', \'post\');', 'title' => _t('Delete this item'), 'label' => _t('Delete'), 'permission' => 'delete' )
);
$actions = Plugins::filter('post_actions', $actions, $post);
foreach($actions as $action):
?>
	<?php if( ACL::access_check( $post->get_access(), action['permission'] ) ) { ?>
		<li><a href="<?php echo $action['url']; ?>" title="<?php echo $action['title']; ?>"><?php echo $action['label']; ?></a></li>
	<?php } ?>
<?php endforeach; ?>
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 4
search.live.com 2
Is this paste spam?
<Hide