[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> project-branch.php (source)

   1  <?php
   2  gp_title( sprintf(
   3      /* translators: %s: project name */
   4      __( 'Branch project "%s" &lt; GlotPress', 'glotpress' ),
   5      $project->name
   6  ) );
   7  gp_breadcrumb_project( $project );
   8  gp_tmpl_header();
   9  ?>
  10  <h2>
  11      <?php
  12      printf(
  13          /* translators: %s: project name */
  14          __( 'Branch project "%s"', 'glotpress' ),
  15          esc_html( $project->name )
  16      );
  17      ?>
  18  </h2>
  19  <p><?php _e( 'Here you can branch out this project: everything will be duplicated into a new project for you.', 'glotpress' ); ?></p>
  20  <form action="<?php echo esc_url( gp_url_current() ); ?>" method="post">
  21      <dt><label for="project[name]"><?php _e( 'New branch name', 'glotpress' ); ?></label></dt>
  22      <dd><input type="text" name="project[name]" value="" placeholder="<?php esc_attr_e( 'Type tag project name here', 'glotpress' ); ?>" id="project[name]"></dd>
  23  
  24      <!-- TODO: make slug edit WordPress style -->
  25      <dt><label for="project[slug]"><?php _e( 'New Slug', 'glotpress' ); ?></label></dt>
  26      <dd>
  27          <input type="text" name="project[slug]" value="" id="project[slug]">
  28          <small><?php _e( 'If you leave the slug empty, it will be derived from the name.', 'glotpress' ); ?></small>
  29      </dd>
  30      <dt><label for="project[description]"><?php _e( 'Description', 'glotpress' ); ?></label> <span class="ternary"><?php _e( 'can include HTML', 'glotpress' ); ?></span></dt>
  31      <dd><textarea name="project[description]" rows="4" cols="40" id="project[description]"><?php echo esc_html( $project->description ); ?></textarea></dd>
  32      <dt><label for="project[source_url_template]"><?php _e( 'Source file URL', 'glotpress' ); ?></label></dt>
  33      <dd>
  34          <input type="text" value="<?php echo esc_html( $project->source_url_template ); ?>" name="project[source_url_template]" id="project[source_url_template]" style="width: 30em;" />
  35          <span class="ternary"><?php printf(
  36              /* translators: 1: %file%, 2: %line%, 3: https://trac.example.org/browser/%file%#L%line% */
  37              __( 'Public URL to a source file in the project. You can use %1$s and %2$s. Ex. %3$s', 'glotpress' ),
  38              '<code>%file%</code>',
  39              '<code>%line%</code>',
  40              '<code>https://trac.example.org/browser/%file%#L%line%</code>'
  41          ); ?></span>
  42      </dd>
  43      <div id="preview"></div>
  44      <input type="hidden" value="<?php echo esc_html( $project->parent_project_id ); ?>" name="project[parent_project_id]" id="project[parent_project_id]" />
  45      <p><input type="submit" name="submit" value="<?php esc_attr_e( 'Branch project', 'glotpress' ); ?>" id="submit" /></p>
  46      <?php gp_route_nonce_field( 'branch-project_' . $project->id ); ?>
  47  </form>
  48  
  49  <?php gp_tmpl_footer();


Generated: Tue Mar 19 01:01:50 2019 Cross-referenced by PHPXref 0.7.1