PluginProbe
Import Social Events / 1.8.7
Import Social Events v1.8.7
1.9.1 1.9.0 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 All 61 releases
import-facebook-events / templates / ife-archive-content4.php

ife-archive-content4.php in Import Social Events 1.8.7, at templates/ife-archive-content4.php

63 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $start_date_str = get_post_meta( get_the_ID(), 'start_ts', true );
3 $event_address = get_post_meta( get_the_ID(), 'venue_name', true );
4 $venue_address = get_post_meta( get_the_ID(), 'venue_address', true );
5 if ( '' != $event_address && '' != $venue_address ) {
6 $event_address .= ' - ' . $venue_address;
7 } elseif ( '' != $venue_address ) {
8 $event_address = $venue_address;
9 }
10
11 $ife_options = get_option( IFE_OPTIONS );
12 $accent_color = isset( $ife_options['accent_color'] ) ? $ife_options['accent_color'] : '#039ED7';
13 $time_format = isset( $ife_options['time_format'] ) ? $ife_options['time_format'] : '12hours';
14 if ( '12hours' === $time_format ) {
15 $time_format_string = 'h:i A';
16 } elseif ( '24hours' === $time_format ) {
17 $time_format_string = 'H:i';
18 } else {
19 $time_format_string = get_option('time_format');
20 }
21 $start_date = gmdate('l, j F, ' . $time_format_string, $start_date_str);
22 $event_source_url = get_permalink();
23 $event_url = get_permalink();
24 $target = '';
25 if ( 'yes' === $direct_link ){
26 $event_url = get_post_meta( get_the_ID(), 'ife_event_link', true );
27 $target = 'target="_blank"';
28 }
29
30 ?>
31 <div <?php post_class( array( $css_class, 'archive-event' ) ); ?> >
32 <div class="ife_widget_style1 ife_widget ife_event" >
33 <div class="event_details" style="height: auto;">
34 <div class="event_date event_date_style4" >
35 <div>
36 <span class="month"><?php echo esc_attr( date_i18n( 'M', $start_date_str ) ); ?></span>
37 <span class="date"> <?php echo esc_attr( date_i18n( 'd', $start_date_str ) ); ?> </span>
38 </div>
39 </div>
40
41 <div class="event_desc">
42 <a class="ife-text-deco" style="color:<?php echo esc_attr( $accent_color ); ?>;" href="<?php echo esc_url( $event_url ); ?>" <?php echo esc_attr( $target ); ?> >
43 <?php the_title( '<div class="event_title">', '</div>' ); ?>
44 </a>
45
46 <?php
47 if( $start_date != '' ){
48 ?>
49 <div><p class="ife-mb-0 widget_event_sdate"><i class="fa fa-calendar"></i> <?php echo esc_attr( $start_date ); ?></p></div>
50 <?php
51 }
52
53 if( $event_address != '' ){ ?>
54 <div class="ife-w-90" >
55 <p class="ife-mb-0 ife-text-limit" ><i class="fa fa-map-marker"></i><?php echo esc_attr( ucfirst( $event_address ) ); ?></p>
56 </div>
57
58 <?php } ?>
59 </div>
60 <div style="clear: both"></div>
61 </div>
62 </div>
63 </div>