WordPress.org

Plugin Directory

Changeset 1542017


Ignore:
Timestamp:
11/28/16 14:21:27 (4 months ago)
Author:
bastho
Message:

Add option to hide event-bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-post/trunk/eventpost.php

    r1517965 r1542017  
    44  Plugin URI: http://event-post.com 
    55  Description: Add calendar and/or geolocation metadata on posts. For a better experience, we recommand to use it with <a href="https://wordpress.org/plugins/shortcode-ui/" target="_blank">Shortcake (shortcode UI)</a> installed. 
    6   Version: 4.4 
     6  Version: 4.5 
    77  Author: N.O.U.S. Open Useful and Simple 
    88  Contributors: bastho,ecolosites 
     
    3939    public $dateformat; 
    4040 
    41     public $version = '4.4'; 
     41    public $version = '4.5'; 
    4242 
    4343    public $map_interactions; 
     
    517517<meta name="geo.position" content="<?php echo $event->lat ?>;<?php echo $event->long ?>" /> 
    518518<meta name="ICBM" content="<?php echo $event->lat ?>;<?php echo $event->long ?>" /> 
    519                 <?php 
     519<meta property="place:location:latitude"  content="<?php echo $event->lat ?>" /> 
     520<meta property="place:location:longitude" content="<?php echo $event->long ?>" /> 
     521<?php 
    520522            } 
    521523            if ($event->start != '' && $event->end != '') { 
     
    523525<meta name="datetime-coverage-start" content="<?php echo date('c', $event->time_start) ?>" /> 
    524526<meta name="datetime-coverage-end" content="<?php echo date('c', $event->time_end) ?>" /> 
    525                 <?php 
     527<?php 
    526528            } 
    527529        } 
     
    807809                $content=$eventbar.$content; 
    808810            } 
    809             else{ 
     811            elseif($this->settings['singlepos']=='after'){ 
    810812                $content.=$eventbar; 
    811813            } 
     
    16161618            $ret.='<button data-date="' . date('Y-n', $next_year) . '" title="'.sprintf(__('Switch to %s', 'event-post'), date('Y', $next_year)).'" class="eventpost_cal_bt">&gt;&gt;</button> '; 
    16171619            $ret.='<button data-date="' . date('Y-n', $prev_month) . '" title="'.sprintf(__('Switch to %s', 'event-post'), date_i18n('F Y', $prev_month)).'" class="eventpost_cal_bt">&lt;</button> '; 
    1618             $ret.=$this->NomDuMois[$mois]; 
     1620            $ret.=$this->NomDuMois[abs($mois)]; 
    16191621            $ret.='<button data-date="' . date('Y-n', $next_month) . '" title="'.sprintf(__('Switch to %s', 'event-post'), date_i18n('F Y', $next_month)).'" class="eventpost_cal_bt">&gt;</button> '; 
    16201622            $ret.='<button data-date="' . date('Y-n') . '" class="eventpost_cal_bt">' . __('Today', 'event-post') . '</button>'; 
     
    18921894                                    <option value="after" <?php selected($ep_settings['singlepos'], 'after', true); ?>> 
    18931895                    <?php _e('After the content', 'event-post'); ?> 
     1896                    </option> 
     1897                                    <option value="none" <?php selected($ep_settings['singlepos'], 'none', true); ?>> 
     1898                    <?php _e('Not displayed', 'event-post'); ?> 
    18941899                    </option> 
    18951900                                </select> 
Note: See TracChangeset for help on using the changeset viewer.