Changeset 1326342
- Timestamp:
- 01/12/2016 08:49:39 AM (10 years ago)
- Location:
- easy-events-wp/trunk
- Files:
-
- 4 edited
-
easy-events-wp.php (modified) (2 diffs)
-
includes/setting-admin.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
template-builder/single.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-events-wp/trunk/easy-events-wp.php
r1326331 r1326342 5 5 * Plugin URI: https://wparena.com 6 6 * Description: Best simple and useful WordPress Event Plugin. 7 * Version: 1.1. 57 * Version: 1.1.6 8 8 * Author: WPArena 9 9 * Author URI: https://wparena.com … … 23 23 define( 'EASY_EVENT_URI', untrailingslashit( plugins_url( '/', __FILE__ ) ) ); 24 24 define( 'EASY_EVENT_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); 25 define( 'EASY_EVENT_VERSION', '1.1. 5' );25 define( 'EASY_EVENT_VERSION', '1.1.6' ); 26 26 27 27 if ( ! class_exists( 'Easy_Event' ) ) : -
easy-events-wp/trunk/includes/setting-admin.php
r1326313 r1326342 30 30 $single_template = get_option( 'easy_event_single_template' ); 31 31 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' ); 33 33 } 34 34 -
easy-events-wp/trunk/readme.txt
r1326331 r1326342 18 18 = Demo: = 19 19 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/) 22 21 23 22 == Installation == -
easy-events-wp/trunk/template-builder/single.php
r1326331 r1326342 15 15 */ 16 16 function 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 17 23 global $post; 24 if ( $post != null && $post->post_type == 'easy_event' ) { 18 25 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 }25 26 26 27 if ( locate_template( 'ee-templates/single.php' ) != '' ) { … … 46 47 $single_template = get_option( 'easy_event_single_template' ); 47 48 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' ); 49 50 } 50 51
Note: See TracChangeset
for help on using the changeset viewer.