예제 #1
0
    ?>
<ul>
<?php 
    foreach ($sub_projects as $sub_project) {
        ?>
	<li>
		<?php 
        gp_link_project($sub_project, esc_html($sub_project->name));
        ?>
			
		<?php 
        gp_link_project_edit($sub_project);
        ?>
			
		<?php 
        gp_link_project_delete($sub_project);
        ?>
	</li>
<?php 
    }
    ?>
</ul>	
<?php 
}
if ($translation_sets) {
    ?>
	<?php 
    _e('Translations:');
    ?>
	<ul class="translation-sets">
	<?php 
예제 #2
0
gp_breadcrumb(array(__('Projects')));
gp_tmpl_header();
?>
<h2>Projects</h2>
<ul>
<?php 
foreach ($projects as $project) {
    ?>
	<li><?php 
    gp_link_project($project, esc_html($project->name));
    ?>
 <?php 
    gp_link_project_edit($project);
    ?>
 <?php 
    gp_link_project_delete($project);
    ?>
</li>
<?php 
}
?>
</ul>
<?php 
if (GP::$user->current()->can('write', 'project')) {
    ?>
	<p class="actionlist secondary"><?php 
    gp_link(gp_url_project('_new'), __('Create a New Project'));
    ?>
</p>
<?php 
}