Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
* Update required at least (WordPress).
* Update translation.
* Update asset handle name to be more specific. This is for prevent conflict with other plugins, themes that use the same name but different version.
* Move previous change log to changelog.md.
  • Loading branch information
ve3 committed Jan 23, 2019
1 parent 8f2e90f commit 7c3474c
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 56 deletions.
28 changes: 14 additions & 14 deletions App/Controllers/Admin/Events/EventsMetaboxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class EventsMetaboxes implements \RdEvents\App\Controllers\ControllerInterface

/**
* Display notice if there is error.
*
*
* @access protected Do not access this method directly. It is for callback only.
*/
public function adminNotices()
Expand Down Expand Up @@ -55,7 +55,7 @@ public function adminNotices()

/**
* Enqueue scripts and styles
*
*
* @access protected Do not access this method directly. It is for callback only.
* @global \WP_Post $post The WP_Post class.
* @param string $hook_suffix The current admin page.
Expand All @@ -65,8 +65,8 @@ public function enqueueScripts($hook_suffix)
global $post;

if (
isset($post->post_type) &&
$post->post_type == $this->post_type &&
isset($post->post_type) &&
$post->post_type == $this->post_type &&
(
'post.php' === $hook_suffix ||
'post-new.php' === $hook_suffix
Expand All @@ -80,15 +80,15 @@ public function enqueueScripts($hook_suffix)
unset($options);

// enqueue css
wp_enqueue_style('jquery-ui', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/css/jquery-ui/jquery-ui.min.css', [], '1.11.4');
wp_enqueue_style('jquery-ui-timepicker', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/css/admin/jquery.ui.timepicker.css', ['jquery-ui'], '0.3.3');
wp_enqueue_style('rd-events-admin', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/css/admin/rd-events.css', ['jquery-ui'], RDEVENTS_VERSION);
wp_enqueue_style('rd-events-jquery-ui', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/css/jquery-ui/jquery-ui.min.css', [], '1.11.4');
wp_enqueue_style('rd-events-jquery-ui-timepicker', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/css/admin/jquery.ui.timepicker.css', ['rd-events-jquery-ui'], '0.3.3');
wp_enqueue_style('rd-events-admin', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/css/admin/rd-events.css', ['rd-events-jquery-ui'], RDEVENTS_VERSION);

// enqueue js
wp_enqueue_script('jquery-ui-timepicker', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/js/admin/jquery.ui.timepicker.js', ['jquery', 'jquery-ui-core'], '0.3.3', true);
wp_enqueue_script('rd-events-datepicker', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/js/admin/rd-events-datepicker.js', ['jquery', 'jquery-ui-datepicker', 'jquery-ui-timepicker'], RDEVENTS_VERSION, true);
wp_enqueue_script('rd-events-jquery-ui-timepicker', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/js/admin/jquery.ui.timepicker.js', ['jquery', 'jquery-ui-core'], '0.3.3', true);
wp_enqueue_script('rd-events-datepicker', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/js/admin/rd-events-datepicker.js', ['jquery', 'jquery-ui-datepicker', 'rd-events-jquery-ui-timepicker'], RDEVENTS_VERSION, true);
wp_enqueue_script('rd-events-map', trailingslashit(plugin_dir_url(RDEVENTS_FILE)).'assets/js/admin/rd-events-map.js', ['jquery'], RDEVENTS_VERSION, true);
wp_enqueue_script('google-map', 'https://maps.googleapis.com/maps/api/js?key=' . $googlemap_api . '&libraries=places&callback=rdEventsInitMap', [], false, true);
wp_enqueue_script('rd-events-google-map', 'https://maps.googleapis.com/maps/api/js?key=' . $googlemap_api . '&libraries=places&callback=rdEventsInitMap', [], false, true);

unset($googlemap_api);
}
Expand All @@ -97,7 +97,7 @@ public function enqueueScripts($hook_suffix)

/**
* Display event date metabox.
*
*
* @access protected Do not access this method directly. It is for callback only.
* @param \WP_Post $post Current post object.
*/
Expand All @@ -111,7 +111,7 @@ public function metaboxEventDate($post)

/**
* Display event map location metabox.
*
*
* @access protected Do not access this method directly. It is for callback only.
* @param \WP_Post $post Current post object.
*/
Expand Down Expand Up @@ -142,7 +142,7 @@ public function registerHooks()

/**
* Register metabox(es).
*
*
* @access protected Do not access this method directly. It is for callback only.
* @link https://developer.wordpress.org/reference/functions/add_meta_box/ Reference for <code>add_meta_box()</code> function.
*/
Expand Down Expand Up @@ -199,7 +199,7 @@ public function saveEventMeta($post_id, $post, $update)
isset($_POST['_event_time_allday']) &&
$_POST['_event_time_allday'] != '1'
)
) &&
) &&
(
!isset($_POST['_event_time_start']) ||
!isset($_POST['_event_time_end'])
Expand Down
44 changes: 44 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Change log

## Version 0.x

### 0.3
2018-12-08

* Add translation template file (.POT).
* Add translate help text.
* Tested with WordPress 5.0 but keep old editor for some reason.

### 0.2.7
2018-04-04

* Fix add `wp_reset_postdata()` after use `\WP_Query` class.

### 0.2.6
2018-03-10

* Fix not compatible with PHP 7.2.
* Fix calendar not load events if there is no widget active.
* Fix js undefined value.

### 0.2.4
* Add some hook for future use. This cannot work if it is just in the next update, it must stay in current update and then next update will work.

### 0.2.3
* Add setting to not use ajax (get all events at once on page load).

### 0.2.2
* Fix to allow quick edit.

### 0.2.1
* Add lang parameter while ajax get data to support polylang.

### 0.2
2017-04-11

* Fix error on activate.

### 0.1
2017-04-05

* The beginning.
4 changes: 2 additions & 2 deletions rd-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Plugin Name: Rundiz Events
* Plugin URI: https://rundiz.com/?p=319
* Description: Manage your events and display in the calendar or list.
* Version: 0.3
* Version: 1.0
* Author: Vee Winch
* Author URI: http://rundiz.com
* License: MIT
* License URI: http://opensource.org/licenses/MIT
* Text Domain: rd-events
* Domain Path: /App/languages/
*
*
* @package rundiz-events
*/

Expand Down
47 changes: 7 additions & 40 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: events, meeting, plans, calendar
Requires at least: 4.6.0
Tested up to: 5.0.3
Stable tag: 0.3
Stable tag: 1.0
Requires PHP: 5.5
License: MIT
License URI: http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -52,43 +52,10 @@ Please ask your question in support section and add mention to @okvee.

== Changelog ==

= 0.3 =
2018-12-08
= 1.0 =
2019-01-23

* Add translation template file (.POT).
* Add translate help text.
* Tested with WordPress 5.0 but keep old editor for some reason.

= 0.2.7 =
2018-04-04

* Fix add `wp_reset_postdata()` after use `\WP_Query` class.

= 0.2.6 =
2018-03-10

* Fix not compatible with PHP 7.2.
* Fix calendar not load events if there is no widget active.
* Fix js undefined value.

= 0.2.4 =
* Add some hook for future use. This cannot work if it is just in the next update, it must stay in current update and then next update will work.

= 0.2.3 =
* Add setting to not use ajax (get all events at once on page load).

= 0.2.2 =
* Fix to allow quick edit.

= 0.2.1 =
* Add lang parameter while ajax get data to support polylang.

= 0.2 =
2017-04-11

* Fix error on activate.

= 0.1 =
2017-04-05

* The beginning.
* Update required at least (WordPress).
* Update translation.
* Update asset handle name to be more specific. This is for prevent conflict with other plugins, themes that use the same name but different version.
* Move previous change log to changelog.md.

0 comments on commit 7c3474c

Please sign in to comment.