Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion inc/admin/views/metaboxes/event-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<?php if ( ! wpems_get_option( 'google_map_api_key' ) ) : ?>
<p class="event-meta-notice">
<?php echo esc_html__( 'You need set up Google Map API Key to show map.', 'wp-events-manager' ); ?>
<a href="<?php echo esc_url( get_admin_url() . '/admin.php?page=tp-event-setting&tab=event_general' ); ?>"><?php echo esc_html__( 'Set up here' ); ?></a>
<a href="<?php echo esc_url( get_admin_url() . '/admin.php?page=tp-event-setting&tab=event_general' ); ?>"><?php echo esc_html__( 'Set up here', 'wp-events-manager' ); ?></a>
</p>
<?php endif; ?>
<p class="form-field">
Expand All @@ -136,3 +136,4 @@
<?php do_action( 'tp_event_admin_event_metabox_after_fields', $post, $prefix ); ?>
</div>
</div>

5 changes: 3 additions & 2 deletions inc/class-wpems-gdpr.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct() {
*/
public function register_booking_personal_data_exporter( $exporters ) {
$exporters['wpems-booking'] = array(
'exporter_friendly_name' => __( 'WPEMS Booking' ),
'exporter_friendly_name' => __( 'WPEMS Booking', 'wp-events-manager' ),
'callback' => array( $this, 'exporter_personal_data' ),
);

Expand All @@ -46,7 +46,7 @@ public function register_booking_personal_data_exporter( $exporters ) {
*/
public function register_booking_personal_data_eraser( $erasers ) {
$erasers['wpems-booking'] = array(
'eraser_friendly_name' => __( 'WPEMS Booking' ),
'eraser_friendly_name' => __( 'WPEMS Booking', 'wp-events-manager' ),
'callback' => array( $this, 'eraser_personal_data' ),
);

Expand Down Expand Up @@ -187,3 +187,4 @@ private function _query_booking( $user_id ) {
}

new WPEMS_GDPR();

11 changes: 6 additions & 5 deletions inc/class-wpems-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function register_booking_status() {
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'label_count' => _n_noop( 'Cancelled <span class="count">(%s)</span>', 'Cancelled <span class="count">(%s)</span>' ),
'label_count' => _n_noop( 'Cancelled <span class="count">(%s)</span>', 'Cancelled <span class="count">(%s)</span>', 'wp-events-manager' ),
)
)
);
Expand All @@ -272,7 +272,7 @@ public function register_booking_status() {
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>' ),
'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>', 'wp-events-manager' ),
)
)
);
Expand All @@ -287,7 +287,7 @@ public function register_booking_status() {
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'label_count' => _n_noop( 'Processing <span class="count">(%s)</span>', 'Processing <span class="count">(%s)</span>' ),
'label_count' => _n_noop( 'Processing <span class="count">(%s)</span>', 'Processing <span class="count">(%s)</span>', 'wp-events-manager' ),
)
)
);
Expand All @@ -302,7 +302,7 @@ public function register_booking_status() {
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'label_count' => _n_noop( 'Completed <span class="count">(%s)</span>', 'Completed <span class="count">(%s)</span>' ),
'label_count' => _n_noop( 'Completed <span class="count">(%s)</span>', 'Completed <span class="count">(%s)</span>', 'wp-events-manager' ),
)
)
);
Expand Down Expand Up @@ -398,7 +398,7 @@ public function event_column_content( $column, $post_id ) {
public function booking_columns() {
$columns = array();
// set
$columns['cb'] = __( '<label class="screen-reader-text __web-inspector-hide-shortcut__" for="cb-select-all-1">Select All</label><input id="cb-select-all-1" type="checkbox">' );
$columns['cb'] = __( '<label class="screen-reader-text __web-inspector-hide-shortcut__" for="cb-select-all-1">Select All</label><input id="cb-select-all-1" type="checkbox">', 'wp-events-manager' );
$columns['ID'] = __( 'ID', 'wp-events-manager' );
$columns['event'] = __( 'Event', 'wp-events-manager' );
$columns['user'] = __( 'User', 'wp-events-manager' );
Expand Down Expand Up @@ -615,3 +615,4 @@ public function wpems_events_archive( $query ) {
}

new WPEMS_Custom_Post_Types();

11 changes: 6 additions & 5 deletions inc/widgets/class-wpems-widget-countdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,23 @@ public function form( $instance ) {
$slide = isset( $instance['wp_slide'] ) ? $instance['wp_slide'] : false;
?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'wp-events-manager' ); ?></label>
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
</p>
<p>
<label for="<?php echo $this->get_field_id( 'wp_slide' ); ?>"><?php _e( 'Carousel Slide:' ); ?></label>
<label for="<?php echo $this->get_field_id( 'wp_slide' ); ?>"><?php _e( 'Carousel Slide:', 'wp-events-manager' ); ?></label>
<input class="widefat" id="<?php echo $this->get_field_id( 'wp_slide' ); ?>" name="<?php echo $this->get_field_name( 'wp_slide' ); ?>" type="checkbox" value="true"<?php echo $slide == 'true' ? ' checked' : ''; ?>>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'wp_navigation' ); ?>"><?php _e( 'Navigation:' ); ?></label>
<label for="<?php echo $this->get_field_id( 'wp_navigation' ); ?>"><?php _e( 'Navigation:', 'wp-events-manager' ); ?></label>
<input class="widefat" id="<?php echo $this->get_field_id( 'wp_navigation' ); ?>" name="<?php echo $this->get_field_name( 'wp_navigation' ); ?>" type="checkbox" value="true"<?php echo $nav == 'true' ? ' checked' : ''; ?>>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'wp_pagination' ); ?>"><?php _e( 'Pagiantion:' ); ?></label>
<label for="<?php echo $this->get_field_id( 'wp_pagination' ); ?>"><?php _e( 'Pagiantion:', 'wp-events-manager' ); ?></label>
<input class="widefat" id="<?php echo $this->get_field_id( 'wp_pagination' ); ?>" name="<?php echo $this->get_field_name( 'wp_pagination' ); ?>" type="checkbox" value="true"<?php echo $pagination == 'true' ? ' checked' : ''; ?>>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'wp_events' ); ?>"><?php _e( 'Events:' ); ?></label>
<label for="<?php echo $this->get_field_id( 'wp_events' ); ?>"><?php _e( 'Events:', 'wp-events-manager' ); ?></label>
<?php echo $this->events( $selected ); ?>
</p>
<?php
Expand Down Expand Up @@ -195,3 +195,4 @@ public function events( $selected ) {
}

}

30 changes: 21 additions & 9 deletions inc/wpems-core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1026,19 +1026,19 @@ function wpems_booking_status( $id = null ) {
switch ( $status ) {
case 'cancelled':
# code...
$return = sprintf( __( '<span class="event_booking_status cancelled">%s</span>', 'wp-events-manager' ), ucfirst( $status ) );
$return = sprintf( '<span class="event_booking_status cancelled">%s</span>', ucfirst( $status ) );
break;
case 'pending':
# code...
$return = sprintf( __( '<span class="event_booking_status pending">%s</span>', 'wp-events-manager' ), ucfirst( $status ) );
$return = sprintf( '<span class="event_booking_status pending">%s</span>', ucfirst( $status ) );
break;
case 'processing':
# code...
$return = sprintf( __( '<span class="event_booking_status processing">%s</span>', 'wp-events-manager' ), ucfirst( $status ) );
$return = sprintf( '<span class="event_booking_status processing">%s</span>', ucfirst( $status ) );
break;
case 'completed':
# code...
$return = sprintf( __( '<span class="event_booking_status completed">%s</span>', 'wp-events-manager' ), ucfirst( $status ) );
$return = sprintf( '<span class="event_booking_status completed">%s</span>', ucfirst( $status ) );
break;
default:
# code...
Expand All @@ -1056,10 +1056,10 @@ function wpems_get_payment_status() {
return apply_filters(
'wpems_get_payment_status',
array(
'ea-cancelled' => sprintf( __( '<span class="event_booking_status cancelled">%s</span>', 'wp-events-manager' ), __( 'Cancelled', 'wp-events-manager' ) ),
'ea-pending' => sprintf( __( '<span class="event_booking_status pending">%s</span>', 'wp-events-manager' ), __( 'Pending', 'wp-events-manager' ) ),
'ea-processing' => sprintf( __( '<span class="event_booking_status processing">%s</span>', 'wp-events-manager' ), __( 'Processing', 'wp-events-manager' ) ),
'ea-completed' => sprintf( __( '<span class="event_booking_status completed">%s</span>', 'wp-events-manager' ), __( 'Completed', 'wp-events-manager' ) ),
'ea-cancelled' => sprintf( '<span class="event_booking_status cancelled">%s</span>', __( 'Cancelled', 'wp-events-manager' ) ),
'ea-pending' => sprintf( '<span class="event_booking_status pending">%s</span>', __( 'Pending', 'wp-events-manager' ) ),
'ea-processing' => sprintf( '<span class="event_booking_status processing">%s</span>', __( 'Processing', 'wp-events-manager' ) ),
'ea-completed' => sprintf( '<span class="event_booking_status completed">%s</span>', __( 'Completed', 'wp-events-manager' ) ),
)
);
}
Expand Down Expand Up @@ -1363,7 +1363,17 @@ function wpems_admin_table_tabs() {
function wpems_show_remove_tp_event_notice() {
?>
<div class="notice notice-error tp-event-dismiss-notice is-dismissible">
<p><?php echo __( wp_kses( '<strong>WP Events Manager</strong> plugin version ' . WPEMS_VER . ' is an upgrade of <strong>Thim Events</strong> plugin and already included <strong>Thim Event Authentication</strong> add-on. Please deactivate and delete <strong>Thim Events/Thim Event Authentication</strong>.', array( 'strong' => array() ) ), 'wp-events-manager' ); ?></p>
<p>
<?php
echo wp_kses(
sprintf(
__( '<strong>WP Events Manager</strong> plugin version %s is an upgrade of <strong>Thim Events</strong> plugin and already includes <strong>Thim Event Authentication</strong> add-on. Please deactivate and delete <strong>Thim Events/Thim Event Authentication</strong>.', 'wp-events-manager' ),
WPEMS_VER
),
array( 'strong' => array() )
);
?>
</p>
</div>
<?php
}
Expand Down Expand Up @@ -1563,3 +1573,5 @@ function wpems_update_status( $post ) {
}

add_action( 'the_post', 'wpems_update_status' );