echo __ => _e
This commit is contained in:
@@ -359,7 +359,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
else:
|
else:
|
||||||
|
|
||||||
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
|
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
|
||||||
echo __( 'The CSV is invalid.', 'sportspress' ) . '</p>';
|
_e( 'The CSV is invalid.', 'sportspress' ) . '</p>';
|
||||||
$this->footer();
|
$this->footer();
|
||||||
die();
|
die();
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
else:
|
else:
|
||||||
|
|
||||||
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
|
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
|
||||||
echo __( 'The CSV is invalid.', 'sportspress' ) . '</p>';
|
_e( 'The CSV is invalid.', 'sportspress' ) . '</p>';
|
||||||
$this->footer();
|
$this->footer();
|
||||||
die();
|
die();
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
else:
|
else:
|
||||||
|
|
||||||
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
|
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
|
||||||
echo __( 'The CSV is invalid.', 'sportspress' ) . '</p>';
|
_e( 'The CSV is invalid.', 'sportspress' ) . '</p>';
|
||||||
$this->footer();
|
$this->footer();
|
||||||
die();
|
die();
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
else:
|
else:
|
||||||
|
|
||||||
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
|
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
|
||||||
echo __( 'The CSV is invalid.', 'sportspress' ) . '</p>';
|
_e( 'The CSV is invalid.', 'sportspress' ) . '</p>';
|
||||||
$this->footer();
|
$this->footer();
|
||||||
die();
|
die();
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php _e( 'WP Multisite Enabled','sportspress' ); ?>:</td>
|
<td><?php _e( 'WP Multisite Enabled','sportspress' ); ?>:</td>
|
||||||
<td><?php if ( is_multisite() ) echo __( 'Yes', 'sportspress' ); else echo __( 'No', 'sportspress' ); ?></td>
|
<td><?php if ( is_multisite() ) _e( 'Yes', 'sportspress' ); else _e( 'No', 'sportspress' ); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php _e( 'Web Server Info','sportspress' ); ?>:</td>
|
<td><?php _e( 'Web Server Info','sportspress' ); ?>:</td>
|
||||||
|
|||||||
@@ -531,7 +531,7 @@ class SP_Install {
|
|||||||
if ( preg_match( $regexp, $response['body'], $matches ) ) {
|
if ( preg_match( $regexp, $response['body'], $matches ) ) {
|
||||||
$changelog = (array) preg_split( '~[\r\n]+~', trim( $matches[2] ) );
|
$changelog = (array) preg_split( '~[\r\n]+~', trim( $matches[2] ) );
|
||||||
|
|
||||||
echo __( 'What\'s new:', 'sportspress' ) . '<div style="font-weight: normal;">';
|
_e( 'What\'s new:', 'sportspress' ) . '<div style="font-weight: normal;">';
|
||||||
|
|
||||||
$ul = false;
|
$ul = false;
|
||||||
|
|
||||||
|
|||||||
@@ -61,9 +61,9 @@ if ( ! isset( $post ) ) return;
|
|||||||
$s = $interval->invert ? 0 : $interval->s;
|
$s = $interval->invert ? 0 : $interval->s;
|
||||||
?>
|
?>
|
||||||
<p class="countdown sp-countdown<?php if ( $days >= 10 ): ?> long-countdown<?php endif; ?>"><time datetime="<?php echo $post->post_date; ?>"<?php if ( $live ): ?> data-countdown="<?php echo str_replace( '-', '/', $post->post_date ); ?>"<?php endif; ?>>
|
<p class="countdown sp-countdown<?php if ( $days >= 10 ): ?> long-countdown<?php endif; ?>"><time datetime="<?php echo $post->post_date; ?>"<?php if ( $live ): ?> data-countdown="<?php echo str_replace( '-', '/', $post->post_date ); ?>"<?php endif; ?>>
|
||||||
<span><?php echo sprintf( '%02s', $days ); ?> <small><?php echo __( 'days', 'sportspress' ); ?></small></span>
|
<span><?php echo sprintf( '%02s', $days ); ?> <small><?php _e( 'days', 'sportspress' ); ?></small></span>
|
||||||
<span><?php echo sprintf( '%02s', $h ); ?> <small><?php echo __( 'hrs', 'sportspress' ); ?></small></span>
|
<span><?php echo sprintf( '%02s', $h ); ?> <small><?php _e( 'hrs', 'sportspress' ); ?></small></span>
|
||||||
<span><?php echo sprintf( '%02s', $i ); ?> <small><?php echo __( 'mins', 'sportspress' ); ?></small></span>
|
<span><?php echo sprintf( '%02s', $i ); ?> <small><?php _e( 'mins', 'sportspress' ); ?></small></span>
|
||||||
<span><?php echo sprintf( '%02s', $s ); ?> <small><?php echo __( 'secs', 'sportspress' ); ?></small></span>
|
<span><?php echo sprintf( '%02s', $s ); ?> <small><?php _e( 'secs', 'sportspress' ); ?></small></span>
|
||||||
</time></p>
|
</time></p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ if ( $seasons ):
|
|||||||
$data[ __( 'Season', 'sportspress' ) ] = $season->name;
|
$data[ __( 'Season', 'sportspress' ) ] = $season->name;
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<h3><?php echo __( 'Details', 'sportspress' ); ?></h3>
|
<h3><?php _e( 'Details', 'sportspress' ); ?></h3>
|
||||||
<div class="sp-table-wrapper sp-scrollable-table-wrapper">
|
<div class="sp-table-wrapper sp-scrollable-table-wrapper">
|
||||||
<table class="sp-event-details sp-data-table">
|
<table class="sp-event-details sp-data-table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -163,9 +163,9 @@ if ( isset( $columns ) )
|
|||||||
endif;
|
endif;
|
||||||
if ( $event->post_content !== null ):
|
if ( $event->post_content !== null ):
|
||||||
if ( $event->post_status == 'publish' ):
|
if ( $event->post_status == 'publish' ):
|
||||||
echo __( 'Recap', 'sportspress' );
|
_e( 'Recap', 'sportspress' );
|
||||||
else:
|
else:
|
||||||
echo __( 'Preview', 'sportspress' );
|
_e( 'Preview', 'sportspress' );
|
||||||
endif;
|
endif;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ if ( isset( $columns ) && null !== $columns ):
|
|||||||
endif;
|
endif;
|
||||||
$data = $list->data();
|
$data = $list->data();
|
||||||
|
|
||||||
|
|
||||||
// The first row should be column labels
|
// The first row should be column labels
|
||||||
$labels = $data[0];
|
$labels = $data[0];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user