[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The settings page
   4   *
   5   * Displays the settings page for a user.
   6   *
   7   * @link http://glotpress.org
   8   *
   9   * @package GlotPress
  10   * @since 2.0.0
  11   */
  12  
  13  gp_title( __( 'Your Settings &lt; GlotPress', 'glotpress' ) );
  14  gp_breadcrumb( array( __( 'Your Settings', 'glotpress' ) ) );
  15  gp_tmpl_header();
  16  
  17  $per_page = (int) get_user_option( 'gp_per_page' );
  18  if ( 0 === $per_page ) {
  19      $per_page = 15;
  20  }
  21  
  22  $default_sort = get_user_option( 'gp_default_sort' );
  23  if ( ! is_array( $default_sort ) ) {
  24      $default_sort = array(
  25          'by'  => 'priority',
  26          'how' => 'desc',
  27      );
  28  }
  29  ?>
  30  <h2><?php _e( 'Your Settings', 'glotpress' ); ?></h2>
  31  <form action="" method="post">
  32      <?php include_once  __DIR__ . '/settings-edit.php'; ?>
  33      <br>
  34      <?php gp_route_nonce_field( 'update-settings_' . get_current_user_id() ); ?>
  35      <input type="submit" name="submit" value="<?php esc_attr_e( 'Save Settings', 'glotpress' ); ?>">
  36  </form>
  37  
  38  <?php gp_tmpl_footer();


Generated: Sun Jun 16 01:02:50 2019 Cross-referenced by PHPXref 0.7.1