Version Description
- February 7th, 2016 =
- New hooks for add-ons implemented:
timeline_express_sanitize_date_format
,timeline_express_admin_render_date_format
,timeline_express_admin_column_date_format
,timeline_express_frontend_query_args
,timeline_express_frontend_date_filter
- Fix background line color options not properly updating.
Download this release
Release Info
Developer | eherman24 |
Plugin | Timeline Express |
Version | 1.1.7.9 |
Comparing to | |
See all releases |
Code changes from version 1.1.7.8 to 1.1.7.9
- classes/class.timeline-express.php +13 -12
- readme.txt +5 -1
- timeline-express.php +2 -2
classes/class.timeline-express.php
CHANGED
@@ -191,11 +191,11 @@ if(!class_exists("timelineExpressBase"))
|
|
191 |
.cmb_id_announcement_image td .cmb_upload_button { height: 32px !important; }
|
192 |
</style>
|
193 |
<?php
|
194 |
-
if( $meta && isset( $meta ) ){
|
195 |
-
echo '<input class="cmb2-text-small cmb2-datepicker" type="text" name="', $field->args['id'], '" id="', $field->args['id'], '" value="', '' !== $meta ? date( 'm/d/Y' , $meta ) : $field->args['default'], '" />';
|
196 |
echo '<p class="cmb_metabox_description">'.$field->args['desc'].'</p>';
|
197 |
} else{
|
198 |
-
echo '<input class="cmb2-text-small cmb2-datepicker" type="text" name="', $field->args['id'], '" id="', $field->args['id'], '" value="' . date('m/d/Y' ) .'" />';
|
199 |
echo '<p class="cmb_metabox_description">'.$field->args['desc'].'</p>';
|
200 |
}
|
201 |
}
|
@@ -206,8 +206,8 @@ if(!class_exists("timelineExpressBase"))
|
|
206 |
* since @v1.1.5
|
207 |
*/
|
208 |
function cmb2_sanitize_te_date_time_stamp_custom_callback( $value, $new ) {
|
209 |
-
if( isset( $new ) && $new != '' ){
|
210 |
-
return strtotime( $new );
|
211 |
}
|
212 |
return '-1';
|
213 |
}
|
@@ -643,7 +643,7 @@ if(!class_exists("timelineExpressBase"))
|
|
643 |
|
644 |
case 'announcement_date':
|
645 |
$announcment_date = get_post_meta( $id , 'announcement_date' , true );
|
646 |
-
echo date( 'l, F jS, Y' , $announcment_date );
|
647 |
break;
|
648 |
|
649 |
case 'image':
|
@@ -833,14 +833,14 @@ if(!class_exists("timelineExpressBase"))
|
|
833 |
$announcement_header_image = wp_get_attachment_image_src( $announcement_image_id[0] , 'timeline-express-announcement-header');
|
834 |
$custom_content .= '<img class="announcement-banner-image" src="' . esc_url ( $announcement_header_image[0] ) . '" alt="' . get_the_title( $post->ID ) . '">';
|
835 |
}
|
836 |
-
$custom_content .= '<strong class="timeline-express-single-page-announcement-date">' . __( 'Announcement Date' , 'timeline-express' ) . ' : ' . date_i18n( apply_filters( 'timeline_express_custom_date_format' , get_option( 'date_format' ) ) , $announcement_date ) . '</strong>';
|
837 |
$custom_content .= $content;
|
838 |
if ( $referer != '' ) {
|
839 |
$custom_content .= '<a href="' . $referer . '" class="return-to-timeline"><i class="fa fa-chevron-left"></i> ' . __( 'Back' , 'timeline-express' ) . '</a>';
|
840 |
}
|
841 |
return $custom_content;
|
842 |
} else {
|
843 |
-
$custom_content = '<strong class="timeline-express-single-page-announcement-date">' . __( 'Announcement Date' , 'timeline-express' ) . ' : ' . date_i18n( apply_filters( 'timeline_express_custom_date_format' , get_option( 'date_format' ) ) , $announcement_date ) . '</strong>';
|
844 |
$custom_content .= $content;
|
845 |
if ( $referer != '' ) {
|
846 |
$custom_content .= '<a href="' . $referer . '" class="return-to-timeline"><i class="fa fa-chevron-left"></i> ' . __( 'Back' , 'timeline-express' ) . '</a>';
|
@@ -1034,9 +1034,10 @@ if(!class_exists("timelineExpressBase"))
|
|
1034 |
),
|
1035 |
),
|
1036 |
);
|
|
|
1037 |
}
|
1038 |
// end setting up query args
|
1039 |
-
|
1040 |
$announcement_query = new WP_Query( $announcement_args );
|
1041 |
|
1042 |
if ( $announcement_query->have_posts() ) {
|
@@ -1054,12 +1055,12 @@ if(!class_exists("timelineExpressBase"))
|
|
1054 |
border-right-color: <?php if ( $content_shadow == '' ) { echo 'transparent'; } else { echo $content_background; } ?>;
|
1055 |
}
|
1056 |
#cd-timeline::before {
|
1057 |
-
background: <?php if ( $background_line_color == '' ) { echo 'transparent'; } else { echo $background_line_color; }
|
1058 |
}
|
1059 |
@media only screen and (max-width: 821px) {
|
1060 |
.cd-timeline-content::before {
|
1061 |
border-left-color: transparent;
|
1062 |
-
border-right-color: <?php if ( $content_background == '' ) { echo 'transparent'; } else { echo $content_background; }
|
1063 |
}
|
1064 |
.cd-timeline-block:nth-child(odd) .cd-timeline-content::before {
|
1065 |
border-left-color: transparent;
|
@@ -1103,7 +1104,7 @@ if(!class_exists("timelineExpressBase"))
|
|
1103 |
<span class="cd-timeline-title-container"><h2 class="cd-timeline-item-title"><?php the_title();?></h2><?php if ( $this->timeline_express_optionVal['date-visibility'] == 1 ) { ?>
|
1104 |
<!-- release date -->
|
1105 |
<!-- now localized, for international date formats based on the 'date_format' option -->
|
1106 |
-
<span class="timeline-date"><?php echo date_i18n( apply_filters( 'timeline_express_custom_date_format' , get_option( 'date_format' ) ) , get_post_meta( $post->ID , 'announcement_date' , true ) ); ?></span>
|
1107 |
<?php } ?></span>
|
1108 |
<?php
|
1109 |
// display our image, if it exists
|
191 |
.cmb_id_announcement_image td .cmb_upload_button { height: 32px !important; }
|
192 |
</style>
|
193 |
<?php
|
194 |
+
if( $meta && isset( $meta ) ) {
|
195 |
+
echo '<input class="cmb2-text-small cmb2-datepicker" type="text" name="', $field->args['id'], '" id="', $field->args['id'], '" value="', '' !== $meta ? apply_filters( 'timeline_express_admin_render_date_format', date( 'm/d/Y' , $meta ), $meta ) : $field->args['default'], '" />';
|
196 |
echo '<p class="cmb_metabox_description">'.$field->args['desc'].'</p>';
|
197 |
} else{
|
198 |
+
echo '<input class="cmb2-text-small cmb2-datepicker" type="text" name="', $field->args['id'], '" id="', $field->args['id'], '" value="' . apply_filters( 'timeline_express_admin_render_date_format', date('m/d/Y' ), false ) .'" />';
|
199 |
echo '<p class="cmb_metabox_description">'.$field->args['desc'].'</p>';
|
200 |
}
|
201 |
}
|
206 |
* since @v1.1.5
|
207 |
*/
|
208 |
function cmb2_sanitize_te_date_time_stamp_custom_callback( $value, $new ) {
|
209 |
+
if( isset( $new ) && $new != '' ) {
|
210 |
+
return apply_filters( 'timeline_express_sanitize_date_format', strtotime( $new ), $new );
|
211 |
}
|
212 |
return '-1';
|
213 |
}
|
643 |
|
644 |
case 'announcement_date':
|
645 |
$announcment_date = get_post_meta( $id , 'announcement_date' , true );
|
646 |
+
echo apply_filters( 'timeline_express_admin_column_date_format', date( 'l, F jS, Y' , $announcment_date ), $announcment_date );
|
647 |
break;
|
648 |
|
649 |
case 'image':
|
833 |
$announcement_header_image = wp_get_attachment_image_src( $announcement_image_id[0] , 'timeline-express-announcement-header');
|
834 |
$custom_content .= '<img class="announcement-banner-image" src="' . esc_url ( $announcement_header_image[0] ) . '" alt="' . get_the_title( $post->ID ) . '">';
|
835 |
}
|
836 |
+
$custom_content .= '<strong class="timeline-express-single-page-announcement-date">' . __( 'Announcement Date' , 'timeline-express' ) . ' : ' . apply_filters( 'timeline_express_frontend_date_filter', date_i18n( apply_filters( 'timeline_express_custom_date_format' , get_option( 'date_format' ) ) , $announcement_date ), $announcement_date ) . '</strong>';
|
837 |
$custom_content .= $content;
|
838 |
if ( $referer != '' ) {
|
839 |
$custom_content .= '<a href="' . $referer . '" class="return-to-timeline"><i class="fa fa-chevron-left"></i> ' . __( 'Back' , 'timeline-express' ) . '</a>';
|
840 |
}
|
841 |
return $custom_content;
|
842 |
} else {
|
843 |
+
$custom_content = '<strong class="timeline-express-single-page-announcement-date">' . __( 'Announcement Date' , 'timeline-express' ) . ' : ' . apply_filters( 'timeline_express_frontend_date_filter', date_i18n( apply_filters( 'timeline_express_custom_date_format' , get_option( 'date_format' ) ) , $announcement_date ), $announcement_date ) . '</strong>';
|
844 |
$custom_content .= $content;
|
845 |
if ( $referer != '' ) {
|
846 |
$custom_content .= '<a href="' . $referer . '" class="return-to-timeline"><i class="fa fa-chevron-left"></i> ' . __( 'Back' , 'timeline-express' ) . '</a>';
|
1034 |
),
|
1035 |
),
|
1036 |
);
|
1037 |
+
$announcement_args = apply_filters( 'timeline_express_frontend_query_args', $announcement_args );
|
1038 |
}
|
1039 |
// end setting up query args
|
1040 |
+
|
1041 |
$announcement_query = new WP_Query( $announcement_args );
|
1042 |
|
1043 |
if ( $announcement_query->have_posts() ) {
|
1055 |
border-right-color: <?php if ( $content_shadow == '' ) { echo 'transparent'; } else { echo $content_background; } ?>;
|
1056 |
}
|
1057 |
#cd-timeline::before {
|
1058 |
+
background: <?php if ( $background_line_color == '' ) { echo 'transparent'; } else { echo $background_line_color; } ?> !important;
|
1059 |
}
|
1060 |
@media only screen and (max-width: 821px) {
|
1061 |
.cd-timeline-content::before {
|
1062 |
border-left-color: transparent;
|
1063 |
+
border-right-color: <?php if ( $content_background == '' ) { echo 'transparent'; } else { echo $content_background; } ?> !important;
|
1064 |
}
|
1065 |
.cd-timeline-block:nth-child(odd) .cd-timeline-content::before {
|
1066 |
border-left-color: transparent;
|
1104 |
<span class="cd-timeline-title-container"><h2 class="cd-timeline-item-title"><?php the_title();?></h2><?php if ( $this->timeline_express_optionVal['date-visibility'] == 1 ) { ?>
|
1105 |
<!-- release date -->
|
1106 |
<!-- now localized, for international date formats based on the 'date_format' option -->
|
1107 |
+
<span class="timeline-date"><?php echo apply_filters( 'timeline_express_frontend_date_filter', date_i18n( apply_filters( 'timeline_express_custom_date_format' , get_option( 'date_format' ) ) , get_post_meta( $post->ID , 'announcement_date' , true ) ), get_post_meta( $post->ID , 'announcement_date' , true ) ); ?></span>
|
1108 |
<?php } ?></span>
|
1109 |
<?php
|
1110 |
// display our image, if it exists
|
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.7.
|
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!
|
@@ -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.1.7.8 - February 5th, 2016 =
|
361 |
* Upgraded font awesome library from 4.3.0 to 4.5.0.
|
362 |
* Added a fallback for the font awesome library - when the CDN is not accessible for whatever reason.
|
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.7.9
|
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!
|
357 |
|
358 |
== Changelog ==
|
359 |
|
360 |
+
= 1.1.7.9 - February 7th, 2016 =
|
361 |
+
* New hooks for add-ons implemented: `timeline_express_sanitize_date_format`, `timeline_express_admin_render_date_format`, `timeline_express_admin_column_date_format`, `timeline_express_frontend_query_args`, `timeline_express_frontend_date_filter`
|
362 |
+
* Fix background line color options not properly updating.
|
363 |
+
|
364 |
= 1.1.7.8 - February 5th, 2016 =
|
365 |
* Upgraded font awesome library from 4.3.0 to 4.5.0.
|
366 |
* Added a fallback for the font awesome library - when the CDN is not accessible for whatever reason.
|
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.7.
|
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.7.
|
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.7.9
|
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.7.9');
|
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'));
|