[ 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><?php gp_link_project( $project, esc_html( $project->name ) ); ?> <?php gp_link_project_edit( $project, null, array( 'class' => 'bubble' ) ); ?></li>
  12          <?php endforeach; ?>
  13      </ul>
  14  
  15      <p class="actionlist secondary">
  16          <?php if ( GP::$permission->current_user_can( 'admin' ) ): ?>
  17              <?php gp_link( gp_url_project( '-new' ), __( 'Create a New Project', 'glotpress' ) ); ?>  &bull;&nbsp;
  18          <?php endif; ?>
  19  
  20          <?php gp_link( gp_url( '/languages' ), __( 'Projects by language', 'glotpress' ) ); ?>
  21      </p>
  22  
  23  <?php gp_tmpl_footer();


Generated: Thu Mar 21 01:01:48 2019 Cross-referenced by PHPXref 0.7.1