Version Description
- January 10th, 2015 = Fixed: Data saving incorrectly to the database, causing errors to be thrown on front and back end
Download this release
Release Info
| Developer | eherman24 |
| Plugin | |
| Version | 1.1.5.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.5 to 1.1.5.1
- classes/class.timeline-express.php +9 -9
- readme.txt +7 -1
- timeline-express.php +2 -2
classes/class.timeline-express.php
CHANGED
|
@@ -149,6 +149,9 @@ if(!class_exists("timelineExpressBase"))
|
|
| 149 |
add_action( 'cmb_render_te_about_metabox', array($this,'cmb_render_te_about_metabox'), 10, 2 );
|
| 150 |
// add custom hook to allow users to add there own fields
|
| 151 |
add_action('the_action_hook', array( $this, 'the_action_callback' ) );
|
|
|
|
|
|
|
|
|
|
| 152 |
}
|
| 153 |
|
| 154 |
/*
|
|
@@ -164,11 +167,11 @@ if(!class_exists("timelineExpressBase"))
|
|
| 164 |
.cmb_id_announcement_image td .cmb_upload_button { height: 32px !important; }
|
| 165 |
</style>
|
| 166 |
<?php
|
| 167 |
-
if( $meta && isset( $meta
|
| 168 |
-
echo '<input class="cmb_text_small cmb_datepicker" type="text" name="', $field['id'], '
|
| 169 |
echo '<p class="cmb_metabox_description">'.$field['desc'].'</p>';
|
| 170 |
} else{
|
| 171 |
-
echo '<input class="cmb_text_small cmb_datepicker" type="text" name="', $field['id'], '
|
| 172 |
echo '<p class="cmb_metabox_description">'.$field['desc'].'</p>';
|
| 173 |
}
|
| 174 |
}
|
|
@@ -179,15 +182,15 @@ if(!class_exists("timelineExpressBase"))
|
|
| 179 |
* since @v1.1.5
|
| 180 |
*/
|
| 181 |
function cmb_validate_te_date_time_stamp_custom( $value, $new ) {
|
| 182 |
-
if(isset($new
|
| 183 |
-
return strtotime( $new
|
| 184 |
}
|
| 185 |
return '-1';
|
| 186 |
}
|
| 187 |
|
| 188 |
|
| 189 |
/*
|
| 190 |
-
*
|
| 191 |
* render the data contained in our custom about metabox
|
| 192 |
* since @v1.1.5
|
| 193 |
*/
|
|
@@ -904,9 +907,6 @@ if(!class_exists("timelineExpressBase"))
|
|
| 904 |
$background_line_color = $this->timeline_express_optionVal['announcement-background-line-color'];
|
| 905 |
$display_order = $this->timeline_express_optionVal['announcement-display-order'];
|
| 906 |
|
| 907 |
-
// set the timezone
|
| 908 |
-
date_default_timezone_set( get_option('timezone_string') );
|
| 909 |
-
|
| 910 |
// set the current date, with our offset
|
| 911 |
$offset = get_option('gmt_offset');
|
| 912 |
$current_date = strtotime( 'today ' . $offset );
|
| 149 |
add_action( 'cmb_render_te_about_metabox', array($this,'cmb_render_te_about_metabox'), 10, 2 );
|
| 150 |
// add custom hook to allow users to add there own fields
|
| 151 |
add_action('the_action_hook', array( $this, 'the_action_callback' ) );
|
| 152 |
+
// custom vlaidation for our new custom field
|
| 153 |
+
//Validate new metabox type
|
| 154 |
+
add_filter( 'cmb_validate_te_date_time_stamp_custom', array( $this, 'cmb_validate_te_date_time_stamp_custom' ) , 10, 2 );
|
| 155 |
}
|
| 156 |
|
| 157 |
/*
|
| 167 |
.cmb_id_announcement_image td .cmb_upload_button { height: 32px !important; }
|
| 168 |
</style>
|
| 169 |
<?php
|
| 170 |
+
if( $meta && isset( $meta ) ){
|
| 171 |
+
echo '<input class="cmb_text_small cmb_datepicker" type="text" name="', $field['id'], '" id="', $field['id'], '" value="', '' !== $meta ? date( 'm/d/Y' , $meta ) : $field['default'], '" />';
|
| 172 |
echo '<p class="cmb_metabox_description">'.$field['desc'].'</p>';
|
| 173 |
} else{
|
| 174 |
+
echo '<input class="cmb_text_small cmb_datepicker" type="text" name="', $field['id'], '" id="', $field['id'], '" value="' . date('m/d/Y' ) .'" />';
|
| 175 |
echo '<p class="cmb_metabox_description">'.$field['desc'].'</p>';
|
| 176 |
}
|
| 177 |
}
|
| 182 |
* since @v1.1.5
|
| 183 |
*/
|
| 184 |
function cmb_validate_te_date_time_stamp_custom( $value, $new ) {
|
| 185 |
+
if( isset( $new ) && $new != '' ){
|
| 186 |
+
return strtotime( $new );
|
| 187 |
}
|
| 188 |
return '-1';
|
| 189 |
}
|
| 190 |
|
| 191 |
|
| 192 |
/*
|
| 193 |
+
* cmb_render_te_about_metabox()
|
| 194 |
* render the data contained in our custom about metabox
|
| 195 |
* since @v1.1.5
|
| 196 |
*/
|
| 907 |
$background_line_color = $this->timeline_express_optionVal['announcement-background-line-color'];
|
| 908 |
$display_order = $this->timeline_express_optionVal['announcement-display-order'];
|
| 909 |
|
|
|
|
|
|
|
|
|
|
| 910 |
// set the current date, with our offset
|
| 911 |
$offset = get_option('gmt_offset');
|
| 912 |
$current_date = strtotime( 'today ' . $offset );
|
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.1
|
| 7 |
-
Stable tag: 1.1.5
|
| 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!
|
|
@@ -283,6 +283,9 @@ Have an idea for a future release feature? I love hearing about new ideas! You c
|
|
| 283 |
|
| 284 |
== Changelog ==
|
| 285 |
|
|
|
|
|
|
|
|
|
|
| 286 |
= 1.1.5 - January 10th, 2015 =
|
| 287 |
Enhancement: Added new filter ( `timeline_express_custom_fields` ) which allows users to define their own custom fields to use on Timeline Announcement posts (see readme for example).
|
| 288 |
Fixed: CMB class file causing conflicts with other plugins, and removed the old version
|
|
@@ -370,6 +373,9 @@ Fixed: Adjusted a few styles on the announcement post page
|
|
| 370 |
|
| 371 |
== Upgrade Notice ==
|
| 372 |
|
|
|
|
|
|
|
|
|
|
| 373 |
= 1.1.5 - January 10th, 2015 =
|
| 374 |
Enhancement: Added new filter ( `timeline_express_custom_fields` ) which allows users to define their own custom fields to use on Timeline Announcement posts (see readme for example).
|
| 375 |
Fixed: CMB class file causing conflicts with other plugins, and removed the old version
|
| 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.1
|
| 7 |
+
Stable tag: 1.1.5.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!
|
| 283 |
|
| 284 |
== Changelog ==
|
| 285 |
|
| 286 |
+
= 1.1.5.1 - January 10th, 2015 =
|
| 287 |
+
Fixed: Data saving incorrectly to the database, causing errors to be thrown on front and back end
|
| 288 |
+
|
| 289 |
= 1.1.5 - January 10th, 2015 =
|
| 290 |
Enhancement: Added new filter ( `timeline_express_custom_fields` ) which allows users to define their own custom fields to use on Timeline Announcement posts (see readme for example).
|
| 291 |
Fixed: CMB class file causing conflicts with other plugins, and removed the old version
|
| 373 |
|
| 374 |
== Upgrade Notice ==
|
| 375 |
|
| 376 |
+
= 1.1.5.1 - January 10th, 2015 =
|
| 377 |
+
Fixed: Data saving incorrectly to the database, causing errors to be thrown on front and back end
|
| 378 |
+
|
| 379 |
= 1.1.5 - January 10th, 2015 =
|
| 380 |
Enhancement: Added new filter ( `timeline_express_custom_fields` ) which allows users to define their own custom fields to use on Timeline Announcement posts (see readme for example).
|
| 381 |
Fixed: CMB class file causing conflicts with other plugins, and removed the old version
|
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.5
|
| 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.5');
|
| 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.5.1
|
| 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.5.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'));
|
