diff --git a/.sensiolabs.yml b/.sensiolabs.yml index ac0eaf9..d65aa39 100644 --- a/.sensiolabs.yml +++ b/.sensiolabs.yml @@ -7,3 +7,4 @@ global_exclude_dirs: exclude_patterns: - task-breaker.php - update-check.php + - templates/project-loop-content.php \ No newline at end of file diff --git a/assets/css/style.css b/assets/css/style.css index 91bbaf5..f599059 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -252,6 +252,7 @@ #task_breaker-project .wp-editor-area, #task_breaker-project div.mce-panel { border: 0 solid #ddd; + background: #f5f5f5; } #task_breaker-project div.mce-toolbar-grp { @@ -273,7 +274,7 @@ padding-left: 0; width: 100%; display: inline-block; - margin: 0 0 -6px 0; + margin: 0 0 0 0; } #task_breaker-project-tab-li li { @@ -319,6 +320,17 @@ position: relative; } +#task_breaker-project-tab-content .wp-switch-editor { + height: auto; + padding: 10px 15px; + margin: 0; +} + +#task_breaker-project-tab-content .tmce-active .wp-switch-editor.switch-tmce { + background: #fff!important; + border-bottom: 0 none; +} + #task_breaker-project-tab-content * { box-sizing: border-box; } diff --git a/includes/project-post-type.php b/includes/project-post-type.php index 0702e3f..9433af7 100644 --- a/includes/project-post-type.php +++ b/includes/project-post-type.php @@ -93,10 +93,12 @@ function register_post_type() { */ public function single_project_filter() { - if ( is_singular( 'project' ) ) { + if ( ! wp_style_is('editor-buttons') ) { + wp_print_styles( 'editor-buttons' ); + } + if ( is_singular( 'project' ) ) { add_filter( 'the_content', array( $this, 'project_content_filter' ) ); - } return; @@ -106,10 +108,12 @@ public function single_project_filter() { * Displays the project single template. * * @param mixed $content The callback argument for the_content filter. - * @return void + * @return mixed The html output of the project. */ public function project_content_filter( $content ) { + ob_start(); + $template = new TaskBreakerTemplate(); $taskbreaker = new TaskBreaker(); @@ -117,10 +121,11 @@ public function project_content_filter( $content ) { $taskbreaker_post = $taskbreaker->get_post(); include_once plugin_dir_path( __FILE__ ) . '../core/functions.php'; - + $template->locate_template( 'project-single', $taskbreaker_post ); - return; + return ob_get_clean(); + } } diff --git a/readme.txt b/readme.txt index 3578228..0dda590 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link:https://www.paypal.me/dunhakdis/25 Tags: project, task, task discussion, collaboration Requires at least: 4.2.0 Tested up to: 4.8.0 -Stable tag: 1.4.8 +Stable tag: 1.4.9 A simple WordPress plugin for managing projects and tasks. Integrated into BuddyPress Groups for best collaborative experience. diff --git a/task-breaker.php b/task-breaker.php index 3c324ec..0c6c824 100644 --- a/task-breaker.php +++ b/task-breaker.php @@ -2,7 +2,7 @@ /** * Plugin Name: TaskBreaker - Group Project Management * Description: A simple WordPress plugin for managing projects and tasks. Integrated into BuddyPress Groups for best collaborative experience. - * Version: 1.4.8 + * Version: 1.4.9 * Author: Dunhakdis * Author URI: http://dunhakdis.com * Text Domain: task_breaker @@ -24,7 +24,7 @@ define( 'TASK_BREAKER_PROFILER', false ); -define( 'TASK_BREAKER_VERSION', '1.4.8' ); +define( 'TASK_BREAKER_VERSION', '1.4.9' ); define( 'TASK_BREAKER_PROJECT_LIMIT', 10 ); diff --git a/templates/project-settings.php b/templates/project-settings.php index d4fb572..610bfa2 100644 --- a/templates/project-settings.php +++ b/templates/project-settings.php @@ -23,7 +23,6 @@ - can_edit_project( $__post->ID ) ) { ?>