Plugin Directory

Changeset 1326342


Ignore:
Timestamp:
01/12/2016 08:49:39 AM (10 years ago)
Author:
tutv95
Message:

Updated

Location:
easy-events-wp/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • easy-events-wp/trunk/easy-events-wp.php

    r1326331 r1326342  
    55 * Plugin URI: https://wparena.com
    66 * Description: Best simple and useful WordPress Event Plugin.
    7  * Version: 1.1.5
     7 * Version: 1.1.6
    88 * Author: WPArena
    99 * Author URI: https://wparena.com
     
    2323define( 'EASY_EVENT_URI', untrailingslashit( plugins_url( '/', __FILE__ ) ) );
    2424define( 'EASY_EVENT_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
    25 define( 'EASY_EVENT_VERSION', '1.1.5' );
     25define( 'EASY_EVENT_VERSION', '1.1.6' );
    2626
    2727if ( ! class_exists( 'Easy_Event' ) ) :
  • easy-events-wp/trunk/includes/setting-admin.php

    r1326313 r1326342  
    3030    $single_template = get_option( 'easy_event_single_template' );
    3131    if ( $single_template == '' || $single_template == false ) {
    32         $single_template = file_get_contents( EASY_EVENT_DIR . '/template-default/single-content.php' );
     32        $single_template = file_get_contents( EASY_EVENT_DIR . '/templates-default/single-content.php' );
    3333    }
    3434
  • easy-events-wp/trunk/readme.txt

    r1326331 r1326342  
    1818= Demo: =
    1919
    20 * [Single Event WP](http://themes.wparena.com/university/event/fifa-world-cup-2018/)
    21 * [Archive Event WP](http://themes.wparena.com/university/event/)
     20* [Event WP](http://themes.wparena.com/university/event/)
    2221
    2322== Installation ==
  • easy-events-wp/trunk/template-builder/single.php

    r1326331 r1326342  
    1515 */
    1616function easy_event_override_template( $single_template ) {
     17    if ( is_archive() ) {
     18        if ( locate_template( 'ee-templates/archive.php' ) != '' ) {
     19            return locate_template( 'ee-templates/archive.php' );
     20        }
     21    }
     22
    1723    global $post;
     24    if ( $post != null && $post->post_type == 'easy_event' ) {
    1825
    19     if ( $post->post_type == 'easy_event' ) {
    20         if ( is_archive() ) {
    21             if ( locate_template( 'ee-templates/archive.php' ) != '' ) {
    22                 return locate_template( 'ee-templates/archive.php' );
    23             }
    24         }
    2526
    2627        if ( locate_template( 'ee-templates/single.php' ) != '' ) {
     
    4647        $single_template = get_option( 'easy_event_single_template' );
    4748        if ( $single_template == '' || $single_template == false ) {
    48             $single_template = file_get_contents( EASY_EVENT_DIR . '/template-default/single-content.php' );
     49            $single_template = file_get_contents( EASY_EVENT_DIR . '/templates-default/single-content.php' );
    4950        }
    5051
Note: See TracChangeset for help on using the changeset viewer.