Skip to content

Commit

Permalink
* Bug Fixed
Browse files Browse the repository at this point in the history
* Jquery-ui updated
* Jquery datatable updated
* Stortcode fixed
* New Features Upcomming
  • Loading branch information
delower186 committed Jul 13, 2022
1 parent 635b840 commit ea125fd
Show file tree
Hide file tree
Showing 70 changed files with 56,379 additions and 1,049 deletions.
6 changes: 3 additions & 3 deletions inc/Base/Enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public function enqueue(){
//css stylesheets
wp_enqueue_style('datatable', parent::$plugin_url . 'scripts/DataTables/datatables.min.css');
wp_enqueue_style('style', parent::$plugin_url . 'scripts/css/style.css');
wp_enqueue_style('jquery-ui', parent::$plugin_url . 'scripts/jquery-ui-1.12.1/jquery-ui.min.css');
wp_enqueue_style('jquery-ui', parent::$plugin_url . 'scripts/jquery-ui-1.13.1/jquery-ui.min.css');
wp_enqueue_style('flipclock', parent::$plugin_url . 'scripts/css/flipclock.css');
//js scripts
wp_enqueue_script('jquery', parent::$plugin_url . 'scripts/js/jquery-3.5.1.min.js');
wp_enqueue_script('jquery-3.6.0', parent::$plugin_url . 'scripts/js/jquery-3.6.0.min.js',false,array(), false, false);
wp_enqueue_script('datatable', parent::$plugin_url . 'scripts/DataTables/datatables.min.js', array(), false, true);
wp_enqueue_script('flipclock', parent::$plugin_url . 'scripts/js/flipclock.min.js', array(), false, true);
wp_enqueue_script('jquery-ui', parent::$plugin_url . 'scripts/jquery-ui-1.12.1/jquery-ui.min.js', array(), false, true);
wp_enqueue_script('jquery-ui', parent::$plugin_url . 'scripts/jquery-ui-1.13.1/jquery-ui.min.js', array(), false, true);
}

}
20 changes: 20 additions & 0 deletions inc/Base/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ public static function wptodo_manage_main(/*$wptodo_filter_status*/) {
* Admin CP manage page
*/
public static function wptodo_manage() {

$wptodo_table = self::$wpdb->prefix . "wptodo";
if(isset($_POST['wptodo_addtask']) && isset($_POST['wptodo_title'])) self::wptodo_addtask($_POST); //If we have a new task let's add it
if(isset($_POST['wptodo_updatetask'])) self::wptodo_updatetask($_POST); //Update my task
Expand All @@ -281,6 +282,25 @@ public static function wptodo_manage() {
else if(isset($_GET['edit'])) self::wptodo_edit($_GET['edit']);
else self::wptodo_manage_main();
}


public static function wptodo_shortcode(){
ob_start();
$wptodo_table = self::$wpdb->prefix . "wptodo";
if(isset($_POST['wptodo_addtask']) && isset($_POST['wptodo_title'])) self::wptodo_addtask($_POST); //If we have a new task let's add it
if(isset($_POST['wptodo_updatetask'])) self::wptodo_updatetask($_POST); //Update my task
if(isset($_POST['wptodo_comment_task'])) self::wptodo_addcomment($_POST); //Add comments to tasks
//if(isset($_POST['wptodo_filter_status']) != NULL) self::wptodo_manage_main($_POST['wptodo_filter_status']);
if(isset($_POST['wptodo_deletetask'])) self::wptodo_deletetask($_POST['wptodo_taskid']); //Update my task
if(isset($_GET['view'])) self::wptodo_view($_GET['view']);
else if(isset($_GET['edit'])) self::wptodo_edit($_GET['edit']);
else self::wptodo_manage_main();

$ret = ob_get_contents();
ob_end_clean();
return $ret;
}

public static function wptodo_settings(){
require_once(parent::$plugin_path . 'templates/settings.php');
}
Expand Down
6 changes: 3 additions & 3 deletions inc/Pages/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Admin extends BaseController
public function __construct()
{
$this->settings = new SettingsApi();
add_shortcode('wp-todo', array($this, 'wptodo_short_main'));
add_shortcode('wp-todo', array($this, 'wptodo_shortcode_main'));
}

public function register()
Expand Down Expand Up @@ -104,9 +104,9 @@ public static function wptodo_delete_button($delete)
}
}

public function wptodo_short_main()
public function wptodo_shortcode_main()
{
return Model::wptodo_manage();
return Model::wptodo_shortcode();
}

// redirect to tasks
Expand Down
14 changes: 11 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: delower186
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
Requires at least: 5.4 or higher
Tested up to: 5.7
Stable tag: 1.2.6
Tested up to: 6.0.1
Stable tag: 1.2.7
Requires PHP: 6.8
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -44,7 +44,7 @@ You can show To Do List Management in the Frontend as well with placing a simple
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).

== Donate ==
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.
Please [donate]() for this awesome plugin to continue it's development to bring more awesome features.

== Installation ==
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.
Expand All @@ -64,6 +64,14 @@ A. Found any bugs? Please create an [issue](https://github.com/delower186/wp-tod

== Changelog ==

= 1.2.7 =

* Bug Fixed
* Jquery-ui updated
* Jquery datatable updated
* Stortcode fixed
* New Features Upcomming

= 1.2.6 =

* Bug Fixed
Expand Down
Loading

0 comments on commit ea125fd

Please sign in to comment.