Skip to content

Commit

Permalink
Merge pull request #61 from codehaiku/2.1.9
Browse files Browse the repository at this point in the history
2.1.9
  • Loading branch information
JosephGabito authored Apr 30, 2017
2 parents f8b7af5 + 6ae36e0 commit 3830179
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 15 deletions.
1 change: 1 addition & 0 deletions .sensiolabs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ global_exclude_dirs:
exclude_patterns:
- task-breaker.php
- update-check.php
- templates/project-loop-content.php
14 changes: 13 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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;
}
Expand Down
15 changes: 10 additions & 5 deletions includes/project-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -106,21 +108,24 @@ 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();

$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();

}
}

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions task-breaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 );

Expand Down
13 changes: 7 additions & 6 deletions templates/project-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

<?php $template = new TaskBreakerTemplate(); ?>


<?php if ( $user_access->can_edit_project( $__post->ID ) ) { ?>

<div id="task_breaker-project-settings">
Expand All @@ -46,7 +45,7 @@

<span class="description">

<?php _e( 'Explain what this project is all about', 'task_breaker' ); ?>
<?php esc_html_e( 'Explain what this project is all about', 'task_breaker' ); ?>

</span>

Expand All @@ -56,7 +55,7 @@

<label for="task_breaker-project-assigned-group">

<?php _e( 'Assign to Group:', 'task_breaker' ); ?>
<?php esc_html_e( 'Assign to Group:', 'task_breaker' ); ?>

</label>

Expand All @@ -81,6 +80,7 @@
<?php } ?>

</select>

<?php } ?>

</div>
Expand All @@ -90,13 +90,13 @@
<div class="alignright">

<button id="task_breakerUpdateProjectBtn" type="button" class="button">
<?php echo _e( 'Update Project', 'task_breaker' ); ?>
<?php esc_html_e( 'Update Project', 'task_breaker' ); ?>
</button>

<?php if ( $user_access->can_delete_project( $__post->ID ) ) { ?>

<button id="task_breakerDeleteProjectBtn" type="button" class="button button-danger">
<?php echo _e( 'Delete', 'task_breaker' ); ?>
<?php esc_html_e( 'Delete', 'task_breaker' ); ?>
</button>

<?php } ?>
Expand All @@ -107,10 +107,11 @@

</div>
</div>

<?php } else { ?>

<p id="message" class="danger task-breaker-message">
<?php _e( 'You cannot access this group project settings page. Only the administrators and the moderators of this group are allowed to access.', 'task-breaker' ); ?>
<?php esc_htmle_( 'You cannot access this group project settings page. Only the administrators and the moderators of this group are allowed to access.', 'task-breaker' ); ?>
</p>

<?php } ?>

0 comments on commit 3830179

Please sign in to comment.