Plugin Directory

Changeset 2067350


Ignore:
Timestamp:
04/11/2019 04:17:18 PM (7 years ago)
Author:
sebastiantiede
Message:

Release version 0.0.11

Location:
wp-open-votomat
Files:
1396 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-open-votomat/trunk/includes/admin/post_type-voting.php

    r2061411 r2067350  
    108108                    '<p>%s: <code>%s</code></p>',
    109109                    __('From', WPOV__PLUGIN_NAME_SLUG),
    110                     date(__('d.m.Y H:i:s', WPOV__PLUGIN_NAME_SLUG), $voting->publication_period_from('U'))
     110                    $voting->publication_period_from(__('d.m.Y H:i:s', WPOV__PLUGIN_NAME_SLUG))
    111111                );
    112112                printf(
    113113                    '<p>%s: <code>%s</code></p>',
    114114                    __('To', WPOV__PLUGIN_NAME_SLUG),
    115                     date(__('d.m.Y H:i:s', WPOV__PLUGIN_NAME_SLUG), $voting->publication_period_to('U'))
     115                    $voting->publication_period_to(__('d.m.Y H:i:s', WPOV__PLUGIN_NAME_SLUG))
    116116                );               
    117117            break;
  • wp-open-votomat/trunk/includes/api/wpov_voting.php

    r2066645 r2067350  
    107107    function get_timezone() {   
    108108        $timezone = get_option( 'timezone_string', date_default_timezone_get() );
    109        
     109               
    110110        if(!$timezone) {
    111111            $date = new DateTime();
    112112            $timezone = $date->getTimezone()->getName();
    113113        }
    114 
     114       
    115115        return new DateTimeZone($timezone);
    116116    }
     
    129129        $_date->setTimezone($tz);
    130130        $_date->setTimestamp($date-$offset);
    131                
     131
     132       
    132133       
    133134        return ($date_format ? $_date->format($date_format) : $_date);
     
    157158        }
    158159       
    159         $current_time = date_create($current_time, $this->get_timezone());
     160        $current_time = new DateTime($current_time, $this->get_timezone());
    160161       
    161162        $from = $this->publication_period_from();
    162163        $to = $this->publication_period_to();
    163        
    164         //exit;
    165         //var_dump();
    166164               
    167165        $is_started = ($this->publication_period_from('U') <= $current_time->format('U'));
     
    204202            'time_to_end_formated' => ($to ? wpov_ago($u, $to) : false),
    205203           
    206             'before_live_description' => $before_live_description,
    207             'after_live_description' => $after_live_description
     204            'before_live_description' => $this->before_live_description(),
     205            'after_live_description' => $this->after_live_description()
    208206        );
    209207    }
  • wp-open-votomat/trunk/wp-open-votomat.php

    r2067231 r2067350  
    44 * Description: This plugin allows you to use your website as a voting advice application.
    55 * Author: magma design studio
    6  * Version: 0.0.10
     6 * Version: 0.0.11
    77 * Author URI: https://magmadesignstudio.de
    88 * Text Domain: wpov
     
    2828define( 'WPOV__PLUGIN_NAME_SLUG', 'wp-open-votomat' );
    2929
    30 define( 'WPOV_VERSION', '0.0.10' );
     30define( 'WPOV_VERSION', '0.0.11' );
    3131define( 'WPOV__MINIMUM_WP_VERSION', '4.0' );
    3232define( 'WPOV__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • wp-open-votomat/trunk/wpov_template/twentynineteen/twig/home.twig

    r2067231 r2067350  
    3232            <div class="card-body">
    3333                <h5 class="card-title">{{ post.title() }}</h5>
    34                 {% if not status.is_live and fn('is_user_logged_in') %}
     34                {% if (not status.is_live and fn('is_user_logged_in')) and not status.after_live_description %}
    3535                    <h6 class="card-subtitle mb-2 text-muted">{{ __('Visible for admins only!', WPOV__PLUGIN_NAME_SLUG) }}</h6>
    3636                {% endif %}
Note: See TracChangeset for help on using the changeset viewer.