[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> projects.php (source)

   1  <?php
   2  gp_title( __( 'Projects &lt; GlotPress', 'glotpress' ) );
   3  gp_breadcrumb( array( __( 'Projects', 'glotpress' ) ) );
   4  gp_tmpl_header();
   5  ?>
   6  
   7      <h2><?php _e( 'Projects', 'glotpress' ); ?></h2>
   8  
   9      <ul>
  10          <?php foreach ( $projects as $project ) : ?>
  11              <li>
  12                  <?php gp_link_project( $project, esc_html( $project->name ) ); ?>
  13                  <?php gp_link_project_edit( $project, null, array( 'class' => 'bubble' ) ); ?>
  14                  <?php gp_link_project_delete( $project, null, array( 'class' => 'bubble' ) ); ?>
  15              </li>
  16          <?php endforeach; ?>
  17      </ul>
  18  
  19      <p class="actionlist">
  20          <?php if ( GP::$permission->current_user_can( 'admin' ) ) : ?>
  21              <?php gp_link( gp_url_project( '-new' ), __( 'Create a New Project', 'glotpress' ) ); ?>  &bull;
  22          <?php endif; ?>
  23  
  24          <?php gp_link( gp_url( '/languages' ), __( 'Projects by language', 'glotpress' ) ); ?>
  25      </p>
  26  
  27  <?php
  28  gp_tmpl_footer();


Generated: Sat Dec 21 01:01:08 2024 Cross-referenced by PHPXref 0.7.1