Changeset 485269
- Timestamp:
- 01/05/2012 07:57:33 PM (13 years ago)
- Location:
- propel/trunk
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
propel/trunk/changelog.txt
r484098 r485269 1 Version 1.0 2 [+] Create projects 3 [+] Create tasks 1 == Changelog == 4 2 5 Version 1.1 6 [+] Added short tag [project] 3 = 1.0 = 4 * Added ability to create projects 5 * Added ability to create tasks 7 6 8 Version 1.2 9 [+] Quick-tasks dashboard widget 10 [+] Tasks at-a-glance dashboard widget 11 [+] Uninstall option 12 [+] [pl-project] short code 13 [+] [pl-bug-report] short code 14 [U] jQuery library 15 [U] jQuery widget UI 16 [U] [pl-project] interface 17 [D] Deprecated [project] short code 7 = 1.1 = 8 * Added short tag [project] 18 9 19 Version 1.5 20 [+] Themes 10 = 1.2 = 11 * Added "Quick-tasks" dashboard widget 12 * Added "Tasks At-a-Glance" dashboard widget 13 * Added uninstall option 14 * Added [pl-project] short code 15 * Added [pl-bug-report] short code 16 * Included jQuery library 17 * jQuery widget UI 18 * Created [pl-project] interface 19 * Deprecated [project] short code 21 20 22 Version 1.5.6 23 [+] User authorization 24 [F] Character escaping issue 21 = 1.5 = 22 * Added jQuery UI Themes 25 23 26 Version 1.5.7 27 [F] Dashboard widget 28 [F] JavaScript include issues 24 = 1.5.6 = 25 * User authorization 26 * Fixed character escaping issue 27 28 = 1.5.7 = 29 * Dashboard widget 30 * Fixed JavaScript include issues 31 32 = 2.0 = 33 * Use custom post type UI 34 * Change database to use individual meta keys rather than a serialized array 35 * Changed priority to use high, medium, and low rather than 1-10 36 * Changed progress intervals from 1 to 5 37 * Removed shortcode for frontend display 38 * Added ability to categorize tasks 39 * Added ability to assign terms to tasks 40 * Added ability to assign clients to projects 41 * Added ability to turn on/off certain UI options 42 * Created a "type" taxonomy for tasks 43 44 = 2.0.1 = 45 * Fixed bug with activation hook 46 47 = 2.0.2 = 48 * Replaced PHP 5.3 specific code with 5.2 equivalent 49 50 = 2.0.3 = 51 * Updated changelog format 52 * Added "Project Overview" dashboard widget 53 * Readded shortcode for frontend display -
propel/trunk/functions.php
r484098 r485269 1 1 <?php 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 2 50 3 51 class Propel_Functions { -
propel/trunk/plugins/users.php
r484773 r485269 7 7 * @todo: add option to enable / disable pre_get_posts 8 8 * @todo: move list-authors.php into this file 9 * @todo: adding a coauthor to a task makes them a coauthor of the project? 9 * @todo: when a coauthor is added to a project, make that coauthor of all tasks in that project 10 * @todo: when a coauthor is removed from a project, remove that coauthor from all the tasks in the project 10 11 */ 11 12 Propel_Authors::initialize(); … … 77 78 $coauthors = array(); 78 79 $post_id = (int)$post_id; 79 if( !$post_id && $post_ID) $post_id = $post_ID;80 if( !$post_id && $post) $post_id = $post->ID;81 82 $defaults = array( 'orderby'=>'term_order', 'order'=>'ASC');80 if() $post_id = $post_ID; 81 if() $post_id = $post->ID; 82 83 $defaults = array(); 83 84 $args = wp_parse_args( $args, $defaults ); 84 85 … … 183 184 184 185 public static function save_post($post_id, $post) { 186 185 187 /** 186 188 * Sanity checks … … 198 200 $coauthors = (array) $_POST['coauthors']; 199 201 $coauthors = array_map( 'esc_html', $coauthors ); 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 200 218 return self::add_coauthors( $post_id, $coauthors ); 201 219 } -
propel/trunk/post-types/project.php
r484773 r485269 389 389 return; 390 390 } 391 392 393 391 394 392 395 $start = !empty( $_POST['start_date'] ) ? strtotime( $_POST['start_date'] ) : time(); -
propel/trunk/post-types/task.php
r484773 r485269 104 104 * 105 105 */ 106 106 public static function wp_ajax_get_task_description() { 107 107 $post = get_post($_POST['id']); 108 108 echo $post->post_content; 109 109 die(); 110 110 } 111 111 112 112 /** … … 168 168 update_post_meta( $post_id, '_propel_priority', (int)$_POST['priority'] ); 169 169 update_post_meta( $post_id, '_propel_complete', (int)$_POST['complete'] ); 170 update_post_meta( $post_id, '_propel_contributors', $_POST['propel_user'] );171 170 } 172 171 … … 391 390 'post_custom_meta_box', self::POST_TYPE, 'normal', 'low'); 392 391 393 // add_meta_box( 'propel_comments', __( 'Comments', 'propel' ),394 // array( __CLASS__, 'comments'), self::POST_TYPE, 'normal' );395 396 392 add_meta_box( 'propel_task_meta', __( 'Task', 'propel' ), 397 393 array( __CLASS__, 'edit_task_meta'), self::POST_TYPE, 'side' ); 398 }399 400 public static function comments() {401 comment_form();402 394 } 403 395 … … 434 426 } 435 427 436 437 428 require_once( dirname(__FILE__) . '/../metaboxes/task-meta.php' ); 438 429 } -
propel/trunk/propel.php
r484773 r485269 4 4 Plugin URI: http://www.johnciacia.com/propel/ 5 5 Description: Easily manage your projects, clients, tasks, and files. 6 Version: 2.0. 26 Version: 2.0. 7 7 Author: John Ciacia 8 8 Author URI: http://www.johnciacia.com … … 58 58 require_once( dirname(__FILE__) . '/post-types/project.php' ); 59 59 require_once( dirname(__FILE__) . '/post-types/task.php' ); 60 60 61 if( Propel_Options::get_option('time_tracking') ) 61 62 require_once( dirname(__FILE__) . '/post-types/time.php' ); … … 110 111 wp_enqueue_script('jquery-ui-progressbar', 111 112 WP_PLUGIN_URL . '/propel/js/jquery.ui.progressbar.min.js', array('jquery', 'jquery-ui-core', 'jquery-ui-widget') ); 112 113 wp_register_style("propel-jquery-ui", get_option('propel_theme')); 113 114 $options = get_option( 'propel_options' ); 115 wp_register_style("propel-jquery-ui", $options['theme'] ); 114 116 wp_register_style("genesis-ui", WP_PLUGIN_URL . '/propel/gen/ui.css'); 115 117 wp_register_style("propel-ui", WP_PLUGIN_URL . '/propel/style.css'); … … 162 164 public static function admin_init(){ 163 165 register_setting( 'propel_options', 'propel_options', array( __CLASS__, 'options_validate' ) ); 164 add_settings_section('propel_main', 'Main Settings', array( __CLASS__, 'plugin_section_text' ), 'propel'); 165 //add_settings_field('propel_beta_options', 'Beta Options', array( __CLASS__, 'propel_beta_options' ), 'propel', 'propel_main' ); 166 add_settings_field('propel_ui_options', 'UI Options', array( __CLASS__, 'propel_ui_options' ), 'propel', 'propel_main' ); 166 add_settings_section( 'propel_main', 'Main Settings', array( __CLASS__, 'plugin_section_text' ), 'propel' ); 167 add_settings_section( 'propel_deprecated', 'Deprecated Settings', array( __CLASS__, 'plugin_section_deprecated' ), 'propel' ); 168 // add_settings_field( 'propel_beta_options', 'Beta Options', array( __CLASS__, 'propel_beta_options' ), 'propel', 'propel_main' ); 169 add_settings_field( 'propel_ui_options', 'UI Options', array( __CLASS__, 'propel_ui_options' ), 'propel', 'propel_main' ); 170 add_settings_field( 'propel_deprecated_options', 'Custom Theme Directory', array( __CLASS__, 'propel_deprecated_options' ), 'propel', 'propel_deprecated' ); 167 171 } 168 172 … … 171 175 } 172 176 177 178 179 180 173 181 public static function propel_beta_options() { 174 $options = get_option( 'propel_options');182 $options = get_option(); 175 183 176 184 echo '<input name="propel_options[dnd]" id="propel_dnd" type="checkbox" value="1" class="code" ' . checked( 1, isset($options['dnd']), false ) . ' /> Enable Drag and Drop Ordering'; … … 182 190 183 191 public static function propel_ui_options() { 184 $options = get_option( 'propel_options');192 $options = get_option(); 185 193 186 194 echo '<input name="propel_options[show_start_date]" id="show_start_date" type="checkbox" value="1" class="code" ' . checked( 1, isset($options['show_start_date']), false ) . ' /> Show Start Date'; … … 195 203 echo '<br />'; 196 204 echo '<br /><br />'; 197 198 } 199 200 public static function options_validate($input) { 205 } 206 207 public static function propel_deprecated_options() { 208 $options = get_option( 'propel_options' ); 209 do_action( 'propel_deprecated_options', $options ); 210 echo '<br /><br />'; 211 } 212 213 public static function options_validate( $input ) { 201 214 return $input; 202 215 } … … 216 229 register_activation_hook( __FILE__, 'propel_install' ); 217 230 function propel_install () { 218 add_option( 'propel_theme', WP_PLUGIN_URL . '/propel/themes/smoothness/jquery-ui-1.8.6.custom.css' ); 231 /* 232 * @since 2.0.3 233 */ 234 $options = get_option( 'propel_options' ); 235 if( ! isset( $options['theme'] ) || empty( $options['theme'] ) ) { 236 $options['theme'] = WP_PLUGIN_URL . '/propel/themes/smoothness/jquery-ui-1.8.6.custom.css'; 237 update_option( 'propel_options', $options ); 238 } 239 219 240 /* 220 241 * @since 1.6 … … 229 250 */ 230 251 add_option( 'PROPEL_DBVERSION', PROPEL_CURRENT_DBVERSION ); 231 } 252 } 253 ?> -
propel/trunk/readme.txt
r484773 r485269 4 4 Requires at least: 3.0 5 5 Tested up to: 3.3.1 6 Stable tag: 2. 0.26 Stable tag: 2. 7 7 8 8 This plugin allows users to manage projects and tasks.
Note: See TracChangeset
for help on using the changeset viewer.