Plugin Directory

Changeset 485269

Timestamp:
01/05/2012 07:57:33 PM (13 years ago)
Author:
johnciacia
Message:

adding project overview dashboard widget and readding pl-projects shortcode

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 ==
    42
    5 Version 1.1
    6 [+] Added short tag [project]
     3= 1.0 =
     4* Added ability to create projects
     5* Added ability to create tasks
    76
    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]
    189
    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
    2120
    22 Version 1.5.6
    23 [+] User authorization
    24 [F] Character escaping issue
     21= 1.5 =
     22* Added jQuery UI Themes
    2523
    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  
    11<?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
    250
    351class Propel_Functions {
  • propel/trunk/plugins/users.php

    r484773 r485269  
    77 * @todo: add option to enable / disable pre_get_posts
    88 * @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
    1011 */
    1112Propel_Authors::initialize();
     
    7778        $coauthors = array();
    7879        $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();
    8384        $args = wp_parse_args( $args, $defaults );
    8485
     
    183184
    184185    public static function save_post($post_id, $post) {
     186
    185187        /**
    186188         * Sanity checks
     
    198200            $coauthors = (array) $_POST['coauthors'];
    199201            $coauthors = array_map( 'esc_html', $coauthors );
     202
     203
     204
     205
     206
     207
     208
     209
     210
     211
     212
     213
     214
     215
     216
     217
    200218            return self::add_coauthors( $post_id, $coauthors );
    201219        }
  • propel/trunk/post-types/project.php

    r484773 r485269  
    389389                return;
    390390        }
     391
     392
     393
    391394       
    392395        $start = !empty( $_POST['start_date'] ) ? strtotime( $_POST['start_date'] ) : time();
  • propel/trunk/post-types/task.php

    r484773 r485269  
    104104     *
    105105     */
    106      public static function wp_ajax_get_task_description() {
     106    public static function wp_ajax_get_task_description() {
    107107        $post = get_post($_POST['id']);
    108108        echo $post->post_content;
    109109        die();
    110      }
     110    }
    111111
    112112    /**
     
    168168        update_post_meta( $post_id, '_propel_priority', (int)$_POST['priority'] );
    169169        update_post_meta( $post_id, '_propel_complete', (int)$_POST['complete'] );
    170         update_post_meta( $post_id, '_propel_contributors', $_POST['propel_user'] );
    171170    }
    172171
     
    391390            'post_custom_meta_box', self::POST_TYPE, 'normal', 'low');
    392391
    393         // add_meta_box( 'propel_comments', __( 'Comments', 'propel' ),
    394         //  array( __CLASS__, 'comments'), self::POST_TYPE, 'normal' );
    395 
    396392        add_meta_box( 'propel_task_meta', __( 'Task', 'propel' ),
    397393            array( __CLASS__, 'edit_task_meta'), self::POST_TYPE, 'side' );
    398     }
    399 
    400     public static function comments() {
    401         comment_form();
    402394    }
    403395
     
    434426        }
    435427
    436 
    437428        require_once( dirname(__FILE__) . '/../metaboxes/task-meta.php' );
    438429    }
  • propel/trunk/propel.php

    r484773 r485269  
    44Plugin URI: http://www.johnciacia.com/propel/
    55Description: Easily manage your projects, clients, tasks, and files.
    6 Version: 2.0.2
     6Version: 2.0.
    77Author: John Ciacia
    88Author URI: http://www.johnciacia.com
     
    5858        require_once( dirname(__FILE__) . '/post-types/project.php' );
    5959        require_once( dirname(__FILE__) . '/post-types/task.php' );
     60
    6061        if( Propel_Options::get_option('time_tracking') )
    6162            require_once( dirname(__FILE__) . '/post-types/time.php' );
     
    110111        wp_enqueue_script('jquery-ui-progressbar',
    111112            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'] );
    114116        wp_register_style("genesis-ui", WP_PLUGIN_URL . '/propel/gen/ui.css');
    115117        wp_register_style("propel-ui", WP_PLUGIN_URL . '/propel/style.css');
     
    162164    public static function admin_init(){
    163165        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' );
    167171    }
    168172
     
    171175    }
    172176
     177
     178
     179
     180
    173181    public static function propel_beta_options() {
    174         $options = get_option('propel_options');
     182        $options = get_option();
    175183
    176184        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';
     
    182190
    183191    public static function propel_ui_options() {
    184         $options = get_option('propel_options');
     192        $options = get_option();
    185193
    186194        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';
     
    195203        echo '<br />';
    196204        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 ) {
    201214        return $input;
    202215    }
     
    216229register_activation_hook( __FILE__, 'propel_install' );
    217230function 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
    219240        /*
    220241        * @since 1.6
     
    229250        */
    230251        add_option( 'PROPEL_DBVERSION', PROPEL_CURRENT_DBVERSION );
    231     }
     252}
     253?>
  • propel/trunk/readme.txt

    r484773 r485269  
    44Requires at least: 3.0
    55Tested up to: 3.3.1
    6 Stable tag: 2.0.2
     6Stable tag: 2.
    77
    88This plugin allows users to manage projects and tasks.
Note: See TracChangeset for help on using the changeset viewer.