Timeline Express - Version 1.1.8.2

Version Description

  • Februrary 22nd, 2016 =
  • Built in filters/support for AJAX Limit add-on.
Download this release

Release Info

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

Code changes from version 1.1.8.1 to 1.1.8.2

classes/class.timeline-express.php CHANGED
@@ -952,6 +952,8 @@ if(!class_exists("timelineExpressBase"))
952
  wp_enqueue_script( 'timeline-express-js-base' , TIMELINE_EXPRESS_URL . 'js/script.timeline-express.min.js' , array( 'jquery' ) );
953
  // masonry for layout
954
  wp_enqueue_script( 'jquery-masonry' );
 
 
955
  }
956
 
957
  // add styles to the front end
@@ -967,13 +969,19 @@ if(!class_exists("timelineExpressBase"))
967
  } else {
968
  wp_enqueue_style( 'prefix-font-awesome', TIMELINE_EXPRESS_URL . 'lib/icons/css/font-awesome.min.css', array(), $font_awesome_version );
969
  }
 
 
970
  }
971
 
972
  /***** SHORTCODE
973
  ****************************************************************************************************/
974
  // Function to process the shortcode provided by the plugin
975
  // $p is the data associated with the shortcode (ie: form id and submit button text)
976
- public function processShortcode( $p ) {
 
 
 
 
977
  // enqueue our scripts + styles
978
  $this->addScripts_frontend();
979
  $this->addStyles_frontend();
@@ -1045,7 +1053,11 @@ if(!class_exists("timelineExpressBase"))
1045
  }
1046
  // end setting up query args
1047
 
1048
- $announcement_query = new WP_Query( $announcement_args );
 
 
 
 
1049
 
1050
  if ( $announcement_query->have_posts() ) {
1051
  ?>
@@ -1174,8 +1186,12 @@ if(!class_exists("timelineExpressBase"))
1174
  }
1175
 
1176
  ?></section><!-- Timeline Express by Evan Herman - http://www.Evan-Herman.com --><?php
1177
- wp_reset_query();
1178
-
 
 
 
 
1179
  } else {
1180
  ?>
1181
  <h2><?php echo $this->timeline_express_optionVal['no-events-message']; ?></h2>
952
  wp_enqueue_script( 'timeline-express-js-base' , TIMELINE_EXPRESS_URL . 'js/script.timeline-express.min.js' , array( 'jquery' ) );
953
  // masonry for layout
954
  wp_enqueue_script( 'jquery-masonry' );
955
+ // action hook to load custom scripts wherever our shortcode is used
956
+ do_action( 'timeline-express-scripts' );
957
  }
958
 
959
  // add styles to the front end
969
  } else {
970
  wp_enqueue_style( 'prefix-font-awesome', TIMELINE_EXPRESS_URL . 'lib/icons/css/font-awesome.min.css', array(), $font_awesome_version );
971
  }
972
+ // action hook to load custom styles wherever our shortcode is used
973
+ do_action( 'timeline-express-styles' );
974
  }
975
 
976
  /***** SHORTCODE
977
  ****************************************************************************************************/
978
  // Function to process the shortcode provided by the plugin
979
  // $p is the data associated with the shortcode (ie: form id and submit button text)
980
+ public function processShortcode( $atts ) {
981
+
982
+ $atts = shortcode_atts( array(
983
+ ), $atts, 'timeline-express' );
984
+
985
  // enqueue our scripts + styles
986
  $this->addScripts_frontend();
987
  $this->addStyles_frontend();
1053
  }
1054
  // end setting up query args
1055
 
1056
+ /*
1057
+ * *NEW* since 1.1.8.2 users can now filter entire query however they would like
1058
+ */
1059
+ global $post;
1060
+ $announcement_query = new WP_Query( apply_filters( 'timeline_express_announcement_query_args', $announcement_args, $post, $atts ) );
1061
 
1062
  if ( $announcement_query->have_posts() ) {
1063
  ?>
1186
  }
1187
 
1188
  ?></section><!-- Timeline Express by Evan Herman - http://www.Evan-Herman.com --><?php
1189
+
1190
+ wp_reset_query();
1191
+
1192
+ // Action hook after timeline
1193
+ do_action( 'timeline-express-after-timeline', $atts, apply_filters( 'timeline_express_announcement_query_args', $announcement_args, $post, $atts ), $announcement_query->found_posts );
1194
+
1195
  } else {
1196
  ?>
1197
  <h2><?php echo $this->timeline_express_optionVal['no-events-message']; ?></h2>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.evan-herman.com/contact/?contact-reason=I%20want%20to%20
4
  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
5
  Requires at least: 3.9
6
  Tested up to: 4.4.2
7
- Stable tag: 1.1.8.1
8
  License: GPLv2 or later
9
 
10
  Timeline express allows you to create a beautiful vertical animated and responsive timeline of posts , without writing a single line of code. Sweet!
@@ -368,6 +368,9 @@ The above example will load font awesome version 4.4.0 instead of the current st
368
 
369
  == Changelog ==
370
 
 
 
 
371
  = 1.1.8.1 - Februrary 12th, 2016 =
372
  * Fixed reversed `is_ssl()` checks.
373
 
@@ -568,5 +571,5 @@ The above example will load font awesome version 4.4.0 instead of the current st
568
 
569
  == Upgrade Notice ==
570
 
571
- = 1.1.8.1 - Februrary 12th, 2016 =
572
- * Fixed reversed `is_ssl()` checks.
4
  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
5
  Requires at least: 3.9
6
  Tested up to: 4.4.2
7
+ Stable tag: 1.1.8.2
8
  License: GPLv2 or later
9
 
10
  Timeline express allows you to create a beautiful vertical animated and responsive timeline of posts , without writing a single line of code. Sweet!
368
 
369
  == Changelog ==
370
 
371
+ = 1.1.8.2 - Februrary 22nd, 2016 =
372
+ * Built in filters/support for AJAX Limit add-on.
373
+
374
  = 1.1.8.1 - Februrary 12th, 2016 =
375
  * Fixed reversed `is_ssl()` checks.
376
 
571
 
572
  == Upgrade Notice ==
573
 
574
+ = 1.1.8.2 - Februrary 22nd, 2016 =
575
+ * Built in filters/support for AJAX Limit add-on..
timeline-express.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Timeline Express
5
  Plugin URI: http://www.evan-herman.com
6
  Description: Create a beautiful vertical, CSS3 animated and responsive timeline in minutes flat without writing code.
7
- Version: 1.1.8.1
8
  Author: Evan Herman
9
  Author URI: http://www.evan-herman.com
10
  License: GPL2
@@ -28,7 +28,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
  #_________________________________________________ CONSTANTS
29
 
30
  /** Configuration **/
31
- if(!defined('TIMELINE_EXPRESS_VERSION_CURRENT')) define('TIMELINE_EXPRESS_VERSION_CURRENT', '1.1.8.1');
32
  if(!defined('TIMELINE_EXPRESS_PATH')) define('TIMELINE_EXPRESS_PATH', plugin_dir_path( __FILE__ ));
33
  if(!defined('TIMELINE_EXPRESS_URL')) define('TIMELINE_EXPRESS_URL', plugins_url('timeline-express/'));
34
  if(!defined('TIMELINE_EXPRESS_URL_WP')) define('TIMELINE_EXPRESS_URL_WP', get_bloginfo('url'));
4
  Plugin Name: Timeline Express
5
  Plugin URI: http://www.evan-herman.com
6
  Description: Create a beautiful vertical, CSS3 animated and responsive timeline in minutes flat without writing code.
7
+ Version: 1.1.8.2
8
  Author: Evan Herman
9
  Author URI: http://www.evan-herman.com
10
  License: GPL2
28
  #_________________________________________________ CONSTANTS
29
 
30
  /** Configuration **/
31
+ if(!defined('TIMELINE_EXPRESS_VERSION_CURRENT')) define('TIMELINE_EXPRESS_VERSION_CURRENT', '1.1.8.2');
32
  if(!defined('TIMELINE_EXPRESS_PATH')) define('TIMELINE_EXPRESS_PATH', plugin_dir_path( __FILE__ ));
33
  if(!defined('TIMELINE_EXPRESS_URL')) define('TIMELINE_EXPRESS_URL', plugins_url('timeline-express/'));
34
  if(!defined('TIMELINE_EXPRESS_URL_WP')) define('TIMELINE_EXPRESS_URL_WP', get_bloginfo('url'));