Skip to content

Commit ea125fd

Browse files
committed
* Bug Fixed
* Jquery-ui updated * Jquery datatable updated * Stortcode fixed * New Features Upcomming
1 parent 635b840 commit ea125fd

File tree

70 files changed

+56379
-1049
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+56379
-1049
lines changed

inc/Base/Enqueue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ public function enqueue(){
2121
//css stylesheets
2222
wp_enqueue_style('datatable', parent::$plugin_url . 'scripts/DataTables/datatables.min.css');
2323
wp_enqueue_style('style', parent::$plugin_url . 'scripts/css/style.css');
24-
wp_enqueue_style('jquery-ui', parent::$plugin_url . 'scripts/jquery-ui-1.12.1/jquery-ui.min.css');
24+
wp_enqueue_style('jquery-ui', parent::$plugin_url . 'scripts/jquery-ui-1.13.1/jquery-ui.min.css');
2525
wp_enqueue_style('flipclock', parent::$plugin_url . 'scripts/css/flipclock.css');
2626
//js scripts
27-
wp_enqueue_script('jquery', parent::$plugin_url . 'scripts/js/jquery-3.5.1.min.js');
27+
wp_enqueue_script('jquery-3.6.0', parent::$plugin_url . 'scripts/js/jquery-3.6.0.min.js',false,array(), false, false);
2828
wp_enqueue_script('datatable', parent::$plugin_url . 'scripts/DataTables/datatables.min.js', array(), false, true);
2929
wp_enqueue_script('flipclock', parent::$plugin_url . 'scripts/js/flipclock.min.js', array(), false, true);
30-
wp_enqueue_script('jquery-ui', parent::$plugin_url . 'scripts/jquery-ui-1.12.1/jquery-ui.min.js', array(), false, true);
30+
wp_enqueue_script('jquery-ui', parent::$plugin_url . 'scripts/jquery-ui-1.13.1/jquery-ui.min.js', array(), false, true);
3131
}
3232

3333
}

inc/Base/Model.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ public static function wptodo_manage_main(/*$wptodo_filter_status*/) {
271271
* Admin CP manage page
272272
*/
273273
public static function wptodo_manage() {
274+
274275
$wptodo_table = self::$wpdb->prefix . "wptodo";
275276
if(isset($_POST['wptodo_addtask']) && isset($_POST['wptodo_title'])) self::wptodo_addtask($_POST); //If we have a new task let's add it
276277
if(isset($_POST['wptodo_updatetask'])) self::wptodo_updatetask($_POST); //Update my task
@@ -281,6 +282,25 @@ public static function wptodo_manage() {
281282
else if(isset($_GET['edit'])) self::wptodo_edit($_GET['edit']);
282283
else self::wptodo_manage_main();
283284
}
285+
286+
287+
public static function wptodo_shortcode(){
288+
ob_start();
289+
$wptodo_table = self::$wpdb->prefix . "wptodo";
290+
if(isset($_POST['wptodo_addtask']) && isset($_POST['wptodo_title'])) self::wptodo_addtask($_POST); //If we have a new task let's add it
291+
if(isset($_POST['wptodo_updatetask'])) self::wptodo_updatetask($_POST); //Update my task
292+
if(isset($_POST['wptodo_comment_task'])) self::wptodo_addcomment($_POST); //Add comments to tasks
293+
//if(isset($_POST['wptodo_filter_status']) != NULL) self::wptodo_manage_main($_POST['wptodo_filter_status']);
294+
if(isset($_POST['wptodo_deletetask'])) self::wptodo_deletetask($_POST['wptodo_taskid']); //Update my task
295+
if(isset($_GET['view'])) self::wptodo_view($_GET['view']);
296+
else if(isset($_GET['edit'])) self::wptodo_edit($_GET['edit']);
297+
else self::wptodo_manage_main();
298+
299+
$ret = ob_get_contents();
300+
ob_end_clean();
301+
return $ret;
302+
}
303+
284304
public static function wptodo_settings(){
285305
require_once(parent::$plugin_path . 'templates/settings.php');
286306
}

inc/Pages/Admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Admin extends BaseController
1919
public function __construct()
2020
{
2121
$this->settings = new SettingsApi();
22-
add_shortcode('wp-todo', array($this, 'wptodo_short_main'));
22+
add_shortcode('wp-todo', array($this, 'wptodo_shortcode_main'));
2323
}
2424

2525
public function register()
@@ -104,9 +104,9 @@ public static function wptodo_delete_button($delete)
104104
}
105105
}
106106

107-
public function wptodo_short_main()
107+
public function wptodo_shortcode_main()
108108
{
109-
return Model::wptodo_manage();
109+
return Model::wptodo_shortcode();
110110
}
111111

112112
// redirect to tasks

readme.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: delower186
33
Tags: todo, task, project management, to do list, todo list, project management, todo, todo list, task, basecamp, milestone, message, file, comment, client, team, tracking, planning, lists, reporting, project management plugin for wordpress, project manager, project manager plugin for wordpress, wordpress project management
44
Requires at least: 5.4 or higher
5-
Tested up to: 5.7
6-
Stable tag: 1.2.6
5+
Tested up to: 6.0.1
6+
Stable tag: 1.2.7
77
Requires PHP: 6.8
88
License: GPLv2
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -44,7 +44,7 @@ You can show To Do List Management in the Frontend as well with placing a simple
4444
This may have bugs and lack of many features. If you want to contribute on this project, you are more than welcome. Please fork the repository from [Github](https://github.com/delower186/wp-todo).
4545

4646
== Donate ==
47-
Please [donate](https://www.2checkout.com/checkout/purchase?sid=103083454&quantity=1&product_id=1) for this awesome plugin to continue it's development to bring more awesome features.
47+
Please [donate]() for this awesome plugin to continue it's development to bring more awesome features.
4848

4949
== Installation ==
5050
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
@@ -64,6 +64,14 @@ A. Found any bugs? Please create an [issue](https://github.com/delower186/wp-tod
6464

6565
== Changelog ==
6666

67+
= 1.2.7 =
68+
69+
* Bug Fixed
70+
* Jquery-ui updated
71+
* Jquery datatable updated
72+
* Stortcode fixed
73+
* New Features Upcomming
74+
6775
= 1.2.6 =
6876

6977
* Bug Fixed

0 commit comments

Comments
 (0)