Timeline Express - Version 1.2.7.1

Version Description

  • June 3rd, 2016 =
  • Quick patch to completely remove any RSS feed dependency (which was not well thought out to begin with).
  • Added missing class to the announcement image on single templates.
Download this release

Release Info

Developer eherman24
Plugin Icon 128x128 Timeline Express
Version 1.2.7.1
Comparing to
See all releases

Code changes from version 1.2.7 to 1.2.7.1

constants.php CHANGED
@@ -14,7 +14,7 @@
14
  * Define the current version of Timeline Express
15
  */
16
  if ( ! defined( 'TIMELINE_EXPRESS_VERSION_CURRENT' ) ) {
17
- define( 'TIMELINE_EXPRESS_VERSION_CURRENT', '1.2.7' );
18
  }
19
 
20
  /**
14
  * Define the current version of Timeline Express
15
  */
16
  if ( ! defined( 'TIMELINE_EXPRESS_VERSION_CURRENT' ) ) {
17
+ define( 'TIMELINE_EXPRESS_VERSION_CURRENT', '1.2.7.1' );
18
  }
19
 
20
  /**
lib/admin/metaboxes/metaboxes.announcements.php CHANGED
@@ -103,80 +103,6 @@ $help_docs_metabox->add_field( array(
103
  'type' => 'te_help_docs_metabox',
104
  ) );
105
 
106
-
107
- /**
108
- * Check for our RSS feed transient
109
- * - if not found - execute the RSS Feed
110
- */
111
- if ( false === ( $te_ad_rss_feed = get_transient( 'timeline_express_ad_rss_feed' ) ) ) {
112
- /* Get RSS Feed(s) */
113
- require_once( ABSPATH . WPINC . '/class-feed.php' );
114
- /* Create the SimplePie object */
115
- $feed = new SimplePie();
116
- /* Setup the URL */
117
- $feed_url = esc_url( 'https://www.wp-timelineexpress.com/?feed=ads' );
118
- /* Pass the URL */
119
- $feed->set_feed_url( $feed_url );
120
- /* Retreive an advertisments */
121
- $feed->set_item_limit( 1 );
122
- /* Tell SimplePie to cache the feed using WordPress' cache class */
123
- $feed->set_cache_class( 'WP_Feed_Cache' );
124
- /* Tell SimplePie to use the WordPress class for retrieving feed files */
125
- $feed->set_file_class( 'WP_SimplePie_File' );
126
- $feed->enable_cache( true );
127
- /* Tell SimplePie how long to cache the feed data in the WordPress database */
128
- $feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 43200, $feed_url ) );
129
- /* Run any other functions or filters that WordPress normally runs on feeds */
130
- do_action_ref_array( 'wp_feed_options', array( $feed, $feed_url ) );
131
- /* Initiate the SimplePie instance */
132
- $feed->init();
133
- /* Tell SimplePie to send the feed MIME headers */
134
- $feed->handle_content_type();
135
- if ( $feed->error() ) {
136
- return $feed = new WP_Error( 'simplepie-error', $feed->error() );
137
- }
138
- $te_ad_rss_feed = $feed->get_items();
139
- // setup the transients
140
- if ( 0 < count( $te_ad_rss_feed ) ) {
141
- $ad_title = $te_ad_rss_feed[0]->get_title();
142
- $ad_image = $te_ad_rss_feed[0]->get_item_tags( '', 'customImage' );
143
- $ad_content = $te_ad_rss_feed[0]->get_item_tags( '', 'customContent' );
144
- $ad_link = $te_ad_rss_feed[0]->get_item_tags( '', 'productLink' );
145
-
146
- // store the data for later
147
- set_transient( 'timeline_express_ad_title', $ad_title );
148
- set_transient( 'timeline_express_ad_image', $ad_image[0]['child'][ null ]['img'][0]['attribs'][ null ]['src'] );
149
- set_transient( 'timeline_express_ad_content', $ad_content[0]['data'] );
150
- set_transient( 'timeline_express_ad_url', $ad_link[0]['data'] );
151
- // cache used for comparison
152
- set_transient( 'timeline_express_ad_rss_feed', $te_ad_rss_feed, 2 * HOUR_IN_SECONDS );
153
- }
154
- }
155
-
156
- /**
157
- * Render the Advertisment metabox when an RSS feed is Found
158
- * @since 1.0
159
- */
160
- if ( $te_ad_rss_feed ) {
161
- // Create our advertisment metaboxes
162
- $advert_metabox = new_cmb2_box( array(
163
- 'id' => 'timeline_express_ads',
164
- 'title' => get_transient( 'timeline_express_ad_title' ),
165
- 'object_types' => array( 'te_announcements' ),
166
- 'context' => 'side',
167
- 'priority' => 'low',
168
- 'show_names' => true,
169
- ) );
170
-
171
- // Advertisment Metabox Field
172
- $advert_metabox->add_field( array(
173
- 'name' => __( '', 'timeline-express' ),
174
- 'desc' => __( '', 'timeline-express' ),
175
- 'id' => $prefix . 'advertisments',
176
- 'type' => 'te_advert_metabox',
177
- ) );
178
- }
179
-
180
  // Filter here is to allow extra fields to be added
181
  // loop to add fields to our array
182
  $custom_fields = apply_filters( 'timeline_express_custom_fields', $custom_field );
103
  'type' => 'te_help_docs_metabox',
104
  ) );
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  // Filter here is to allow extra fields to be added
107
  // loop to add fields to our array
108
  $custom_fields = apply_filters( 'timeline_express_custom_fields', $custom_field );
lib/classes/class.timeline-express-admin.php CHANGED
@@ -91,7 +91,7 @@ class TimelineExpressAdmin {
91
  'timeline-express-settings',
92
  array( $this, 'timeline_express_options_page' )
93
  );
94
- /* Addon Page */
95
  add_submenu_page(
96
  'edit.php?post_type=te_announcements',
97
  __( 'Timeline Express Add-ons', 'timeline-express' ),
@@ -100,6 +100,7 @@ class TimelineExpressAdmin {
100
  'timeline-express-addons',
101
  array( $this, 'timeline_express_addons_page' )
102
  );
 
103
  /* Welcome Page */
104
  add_submenu_page(
105
  'edit.php?post_type=te_announcements',
@@ -236,7 +237,7 @@ class TimelineExpressAdmin {
236
  /* Remove the edit button */
237
  unset( $links['edit'] );
238
  $links[] = '<a href="' . admin_url( 'edit.php?post_type=te_announcements&page=timeline-express-settings' ) . '">' . esc_attr__( 'Settings', 'timeline-express' ) . '</a>';
239
- $links[] = '<a href="' . admin_url( 'edit.php?post_type=te_announcements&page=timeline-express-addons' ) . '">' . esc_attr__( 'Add-ons', 'timeline-express' ) . '</a>';
240
  $links[] = '<a href="https://www.wp-timelineexpress.com/documentation/" target="_blank">' . esc_attr__( 'Documentation', 'timeline-express' ) . '</a>';
241
  return $links;
242
  }
91
  'timeline-express-settings',
92
  array( $this, 'timeline_express_options_page' )
93
  );
94
+ /* Addon Page
95
  add_submenu_page(
96
  'edit.php?post_type=te_announcements',
97
  __( 'Timeline Express Add-ons', 'timeline-express' ),
100
  'timeline-express-addons',
101
  array( $this, 'timeline_express_addons_page' )
102
  );
103
+ */
104
  /* Welcome Page */
105
  add_submenu_page(
106
  'edit.php?post_type=te_announcements',
237
  /* Remove the edit button */
238
  unset( $links['edit'] );
239
  $links[] = '<a href="' . admin_url( 'edit.php?post_type=te_announcements&page=timeline-express-settings' ) . '">' . esc_attr__( 'Settings', 'timeline-express' ) . '</a>';
240
+ // $links[] = '<a href="' . admin_url( 'edit.php?post_type=te_announcements&page=timeline-express-addons' ) . '">' . esc_attr__( 'Add-ons', 'timeline-express' ) . '</a>';
241
  $links[] = '<a href="https://www.wp-timelineexpress.com/documentation/" target="_blank">' . esc_attr__( 'Documentation', 'timeline-express' ) . '</a>';
242
  return $links;
243
  }
lib/helpers.php CHANGED
@@ -407,7 +407,7 @@ function timeline_express_get_announcement_image( $post_id, $image_size = 'timel
407
  if ( is_single() ) {
408
  $img_src = wp_get_attachment_image_url( get_post_meta( $post_id, 'announcement_image_id', true ), $image_size );
409
  $img_srcset = wp_get_attachment_image_srcset( get_post_meta( $post_id, 'announcement_image_id', true ), $image_size );
410
- ?><img src="<?php echo esc_url( $img_src ); ?>" srcset="<?php echo esc_attr( $img_srcset ); ?>" sizes="(max-width: 100%) 75vw, 680px" alt="<?php esc_attr( get_the_title() ); ?>"><?php
411
  return;
412
  }
413
  /* Escaped on output in the timeline/single page */
407
  if ( is_single() ) {
408
  $img_src = wp_get_attachment_image_url( get_post_meta( $post_id, 'announcement_image_id', true ), $image_size );
409
  $img_srcset = wp_get_attachment_image_srcset( get_post_meta( $post_id, 'announcement_image_id', true ), $image_size );
410
+ ?><img class="announcement-banner-image" src="<?php echo esc_url( $img_src ); ?>" srcset="<?php echo esc_attr( $img_srcset ); ?>" sizes="(max-width: 100%) 75vw, 680px" alt="<?php esc_attr( get_the_title() ); ?>"><?php
411
  return;
412
  }
413
  /* Escaped on output in the timeline/single page */
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: codeparrots, eherman24
3
  Tags: vertical, timeline, animated, css3, animations, evan, herman, evan herman, easy, time, line, font awesome, font, awesome, announcements, notifications, simple, events, calendar, scroll, triggered, scrolling, animated, fade, in, fade in
4
  Requires at least: 4.0
5
  Tested up to: 4.5.2
6
- Stable tag: 1.2.7
7
  License: GPLv2 or later
8
 
9
  Timeline Express allows you to create a beautiful vertical animated and responsive timeline of posts, without writing a single line of code. Sweet!
@@ -357,6 +357,10 @@ The above example will load font awesome version 4.4.0 instead of the current st
357
 
358
  == Changelog ==
359
 
 
 
 
 
360
  = 1.2.7 - May 24th, 2016 =
361
  * Bumped version numbers.
362
  * Fixed uninstall file throwing errors.
3
  Tags: vertical, timeline, animated, css3, animations, evan, herman, evan herman, easy, time, line, font awesome, font, awesome, announcements, notifications, simple, events, calendar, scroll, triggered, scrolling, animated, fade, in, fade in
4
  Requires at least: 4.0
5
  Tested up to: 4.5.2
6
+ Stable tag: 1.2.7.1
7
  License: GPLv2 or later
8
 
9
  Timeline Express allows you to create a beautiful vertical animated and responsive timeline of posts, without writing a single line of code. Sweet!
357
 
358
  == Changelog ==
359
 
360
+ = 1.2.7.1 - June 3rd, 2016 =
361
+ - Quick patch to completely remove any RSS feed dependency (which was not well thought out to begin with).
362
+ - Added missing class to the announcement image on single templates.
363
+
364
  = 1.2.7 - May 24th, 2016 =
365
  * Bumped version numbers.
366
  * Fixed uninstall file throwing errors.
timeline-express.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Timeline Express
5
  Plugin URI: https://www.wp-timelineexpress.com
6
  Description: Create a beautiful vertical, CSS3 animated and responsive timeline in minutes flat without writing code.
7
- Version: 1.2.7
8
  Author: Code Parrots
9
  Text Domain: timeline-express
10
  Author URI: http://www.codeparrots.com
4
  Plugin Name: Timeline Express
5
  Plugin URI: https://www.wp-timelineexpress.com
6
  Description: Create a beautiful vertical, CSS3 animated and responsive timeline in minutes flat without writing code.
7
+ Version: 1.2.7.1
8
  Author: Code Parrots
9
  Text Domain: timeline-express
10
  Author URI: http://www.codeparrots.com