Plugin Directory

Changeset 2459836


Ignore:
Timestamp:
01/20/2021 05:00:43 PM (5 years ago)
Author:
upstreamplugin
Message:

1.39.1

Location:
upstream/trunk
Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • upstream/trunk/includes.php

    r2435596 r2459836  
    11<?php
    2 define('UPSTREAM_VERSION', '1.39.0');
     2define('UPSTREAM_VERSION', '1.39.1');
    33
    44global $upstream_addon_requirements;
  • upstream/trunk/includes/admin/class-up-admin-project-columns.php

    r2417454 r2459836  
    188188                        if (!isset(self::$usersCache[$owner_id])) {
    189189                            $user = get_user_by('id', $owner_id);
    190                             self::$usersCache[$user->ID] = $user->display_name;
     190                            if (isset($user) && $user) {
     191                                self::$usersCache[$user->ID] = $user->display_name;
     192                            }
    191193                            unset($user);
    192194                        }
    193195
    194                         echo self::$usersCache[$owner_id];
     196                        if (isset(self::$usersCache[$owner_id])) {
     197                            echo self::$usersCache[$owner_id];
     198                        } else {
     199                            echo self::$noneTag;
     200                        }
    195201                    } else {
    196202                        echo self::$noneTag;
  • upstream/trunk/includes/admin/options/class-up-options-general.php

    r2417454 r2459836  
    392392                        ],
    393393                        [
     394                            'name'    => __('Collapse Project Progress box', 'upstream'),
     395                            'id'      => 'collapse_project_progress',
     396                            'type'    => 'radio_inline',
     397                            'desc'    => __(
     398                                'Choose whether to collapse the Project progress box automatically when a user opens a project page.',
     399                                'upstream'
     400                            ),
     401                            'default' => '0',
     402                            'options' => [
     403                                0 => __('No', 'upstream'),
     404                                1 => __('Yes', 'upstream'),
     405                            ],
     406                        ],
     407                        [
    394408                            'name'    => __('Collapse Project Milestones box', 'upstream'),
    395409                            'id'      => 'collapse_project_milestones',
     
    471485                            'desc'       => __('Options to toggle different sections and features.', 'upstream'),
    472486                            'before_row' => '<hr>',
     487                        ],
     488                        [
     489                            'name'    => __('Disable Project Progress box', 'upstream'),
     490                            'id'      => 'disable_project_progress',
     491                            'type'    => 'radio_inline',
     492                            'desc'    => __(
     493                                'Choose whether to disable the Project progress box on the front end.',
     494                                'upstream'
     495                            ),
     496                            'default' => '0',
     497                            'options' => [
     498                                0 => __('No', 'upstream'),
     499                                1 => __('Yes', 'upstream'),
     500                            ],
    473501                        ],
    474502                        [
  • upstream/trunk/readme.txt

    r2435596 r2459836  
    55Tested up to: 5.6
    66Requires PHP: 5.6.20
    7 Stable tag: 1.39.0
     7Stable tag: 1.39.1
    88License: GPL-3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    142142The format is based on [Keep a Changelog](http://keepachangelog.com)
    143143and this project adheres to [Semantic Versioning](http://semver.org).
     144
     145= [1.39.1] - 2021-01-20 =
     146* Added progress box to front end with graphs
     147* Fix minor collapse bug in front end
     148* Fix warnings when project owner is deleted
    144149
    145150= [1.39.0] - 2020-12-07 =
  • upstream/trunk/templates/single-project.php

    r2410501 r2459836  
    9292$displayOverviewSection = ! isset($options['disable_project_overview']) || (bool)$options['disable_project_overview'] === false;
    9393$displayDetailsSection  = ! isset($options['disable_project_details']) || (bool)$options['disable_project_details'] === false;
     94$displayProgressSection  = ! isset($options['disable_project_progress']) || (bool)$options['disable_project_progress'] === false;
    9495
    9596/**
     
    114115$sections = [
    115116    'details',
    116   /*  'progress',*/
    117117    'milestones',
    118118    'tasks',
     
    122122];
    123123$sections = apply_filters('upstream_panel_sections', $sections);
     124
     125if ($displayProgressSection) {
     126    array_splice($sections, 1, 0, 'progress');
     127}
    124128
    125129/* Apply the order to the panels. */
  • upstream/trunk/templates/single-project/bugs.php

    r2190820 r2459836  
    1313    $collapseBoxState = \UpStream\Frontend\getSectionCollapseState('bugs');
    1414
    15     if ( ! is_null($collapseBoxState)) {
     15    if ( $collapseBoxState !== false) {
    1616        $collapseBox = $collapseBoxState === 'closed';
    1717    }
  • upstream/trunk/templates/single-project/details.php

    r2418972 r2459836  
    6060        <div class="x_content" style="display: <?php echo $collapseDetails ? 'none' : 'block'; ?>;">
    6161            <div class="row">
    62                 <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2">
     62                <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2 upstream-pd-id">
    6363                    <p class="title"><?php esc_html_e('ID', 'upstream'); ?></p>
    6464                    <span><?php echo $project_id; ?></span>
     
    6666
    6767                <?php if (!empty($projectTimeframe)): ?>
    68                     <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2">
     68                    <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2 upstream-pd-timeframe">
    6969                        <p class="title"><?php esc_html_e('Timeframe', 'upstream'); ?></p>
    7070                        <?php if (upstream_override_access_field(true, UPSTREAM_ITEM_TYPE_PROJECT, $project_id, null, 0, 'start', UPSTREAM_PERMISSIONS_ACTION_VIEW) &&
     
    7878
    7979                <?php if (!$isClientsDisabled && $project->client_id > 0): ?>
    80                     <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2">
     80                    <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2 upstream-pd-client">
    8181                        <p class="title"><?php echo esc_html(upstream_client_label()); ?></p>
    8282                        <span><?php echo $project->client_id > 0 && !empty($project->clientName) ? esc_html($project->clientName) : '<i class="text-muted">(' . esc_html__(
     
    8787                <?php endif; ?>
    8888
    89                 <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2">
     89                <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2 upstream-pd-progress">
    9090                    <p class="title"><?php esc_html_e('Progress', 'upstream'); ?></p>
    9191                    <span>
     
    9898                </div>
    9999                <?php if ($project->owner_id > 0): ?>
    100                     <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2">
     100                    <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2 upstream-pd-owner">
    101101                        <p class="title"><?php esc_html_e('Owner', 'upstream'); ?></p>
    102102                        <?php if (upstream_override_access_field(true, UPSTREAM_ITEM_TYPE_PROJECT, $project_id, null, 0, 'progress', UPSTREAM_PERMISSIONS_ACTION_VIEW)): ?>
     
    112112
    113113                <?php if (!$isClientsDisabled && $project->client_id > 0): ?>
    114                     <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2">
     114                    <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2 upstream-pd-clientusers">
    115115                        <p class="title"><?php printf(__('%s Users', 'upstream'), esc_html(upstream_client_label())); ?></p>
    116116                        <?php if (is_array($project->clientUsers) && count($project->clientUsers) > 0): ?>
     
    122122                <?php endif; ?>
    123123
    124                 <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2">
     124                <div class="col-xs-12 col-sm-6 col-md-2 col-lg-2 upstream-pd-members">
    125125                    <p class="title"><?php esc_html_e('Members', 'upstream'); ?></p>
    126126                    <?php upstream_output_project_members(); ?>
     
    130130            </div>
    131131            <?php if (!empty($project->description)): ?>
    132                 <div>
     132                <div class="upstream-pd-description">
    133133                    <p class="title"><?php esc_html_e('Description', 'upstream'); ?></p>
    134134                    <?php if (upstream_override_access_field(true, UPSTREAM_ITEM_TYPE_PROJECT, $project_id, null, 0, 'description', UPSTREAM_PERMISSIONS_ACTION_VIEW)): ?>
  • upstream/trunk/templates/single-project/discussion.php

    r2216956 r2459836  
    1414    $projectId = upstream_post_id();
    1515
    16     if ( ! is_null($collapseBoxState)) {
     16    if ( $collapseBoxState !== false) {
    1717        $collapseBox = $collapseBoxState === 'closed';
    1818    }
  • upstream/trunk/templates/single-project/files.php

    r2190820 r2459836  
    1313    $collapseBoxState = \UpStream\Frontend\getSectionCollapseState('files');
    1414
    15     if ( ! is_null($collapseBoxState)) {
     15    if ( $collapseBoxState !== false) {
    1616        $collapseBox = $collapseBoxState === 'closed';
    1717    }
  • upstream/trunk/templates/single-project/milestones.php

    r2190820 r2459836  
    1313    $collapseBoxState = \UpStream\Frontend\getSectionCollapseState('milestones');
    1414
    15     if ( ! is_null($collapseBoxState)) {
     15    if ( $collapseBoxState !== false) {
    1616        $collapseBox = $collapseBoxState === 'closed';
    1717    }
  • upstream/trunk/templates/single-project/tasks.php

    r2260686 r2459836  
    1313    $collapseBoxState = \UpStream\Frontend\getSectionCollapseState('tasks');
    1414
    15     if ( ! is_null($collapseBoxState)) {
     15    if ( $collapseBoxState !== false) {
    1616        $collapseBox = $collapseBoxState === 'closed';
    1717    }
  • upstream/trunk/upstream.php

    r2435596 r2459836  
    55 * Author: UpStream
    66 * Author URI: https://upstreamplugin.com
    7  * Version: 1.39.0
     7 * Version: 1.39.1
    88 * Text Domain: upstream
    99 * Domain Path: /languages
Note: See TracChangeset for help on using the changeset viewer.