Version Description
- November 19th, 2014 =
- Updated: Localized date format displayed on the front end as requested by our international users ( format now takes on what you have in 'General > Settings' )
- Updated: Fixed styling issue on date picker arrows
- Feature: Added new filter to allow users to specify a custom date format (
timeline_express_custom_date_format
)
Download this release
Release Info
Developer | eherman24 |
Plugin | Timeline Express |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- classes/class.timeline-express.php +2 -1
- lib/metabox/style.css +1 -1
- lib/metabox/style.min.css +1 -1
- readme.txt +57 -2
- timeline-express.php +2 -2
classes/class.timeline-express.php
CHANGED
@@ -770,7 +770,8 @@ if(!class_exists("timelineExpressBase"))
|
|
770 |
<!-- title -->
|
771 |
<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 ) { ?>
|
772 |
<!-- release date -->
|
773 |
-
|
|
|
774 |
<?php } ?></span>
|
775 |
<?php if ( $announcement_image != '' ) { ?>
|
776 |
<img src="<?php echo $announcement_image; ?>" class="cd-timeline-announcement-image">
|
770 |
<!-- title -->
|
771 |
<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 ) { ?>
|
772 |
<!-- release date -->
|
773 |
+
<!-- now localized, for international date formats based on the 'date_format' option -->
|
774 |
+
<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>
|
775 |
<?php } ?></span>
|
776 |
<?php if ( $announcement_image != '' ) { ?>
|
777 |
<img src="<?php echo $announcement_image; ?>" class="cd-timeline-announcement-image">
|
lib/metabox/style.css
CHANGED
@@ -293,7 +293,7 @@ div.time-picker li.selected { background: #0063CE; color: #fff; }
|
|
293 |
.cmb_element .ui-datepicker .ui-datepicker-next { right:2px; }
|
294 |
.cmb_element .ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
295 |
.cmb_element .ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
296 |
-
.cmb_element .ui-datepicker .ui-datepicker-prev span, .cmb_element .ui-datepicker .ui-datepicker-next span { display: block; position: absolute;
|
297 |
.cmb_element .ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
298 |
.cmb_element .ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
299 |
.cmb_element .ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
293 |
.cmb_element .ui-datepicker .ui-datepicker-next { right:2px; }
|
294 |
.cmb_element .ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
295 |
.cmb_element .ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
296 |
+
.cmb_element .ui-datepicker .ui-datepicker-prev span, .cmb_element .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; margin-left: -8px; margin-top: -8px; }
|
297 |
.cmb_element .ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
298 |
.cmb_element .ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
299 |
.cmb_element .ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
lib/metabox/style.min.css
CHANGED
@@ -103,7 +103,7 @@ div.time-picker li.selected{background:#0063ce;color:#fff}.cmb_element .ui-helpe
|
|
103 |
.cmb_element .ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.cmb_element .ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}
|
104 |
.cmb_element .ui-datepicker .ui-datepicker-prev,.cmb_element .ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.cmb_element .ui-datepicker .ui-datepicker-prev-hover,.cmb_element .ui-datepicker .ui-datepicker-next-hover{top:1px}
|
105 |
.cmb_element .ui-datepicker .ui-datepicker-prev{left:2px}.cmb_element .ui-datepicker .ui-datepicker-next{right:2px}.cmb_element .ui-datepicker .ui-datepicker-prev-hover{left:1px}
|
106 |
-
.cmb_element .ui-datepicker .ui-datepicker-next-hover{right:1px}.cmb_element .ui-datepicker .ui-datepicker-prev span,.cmb_element .ui-datepicker .ui-datepicker-next span{display:block;position:absolute;
|
107 |
.cmb_element .ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.cmb_element .ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}
|
108 |
.cmb_element .ui-datepicker select.ui-datepicker-month-year{width:100%}.cmb_element .ui-datepicker select.ui-datepicker-month,.cmb_element .ui-datepicker select.ui-datepicker-year{width:49%}
|
109 |
.cmb_element .ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.cmb_element .ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}
|
103 |
.cmb_element .ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.cmb_element .ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}
|
104 |
.cmb_element .ui-datepicker .ui-datepicker-prev,.cmb_element .ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.cmb_element .ui-datepicker .ui-datepicker-prev-hover,.cmb_element .ui-datepicker .ui-datepicker-next-hover{top:1px}
|
105 |
.cmb_element .ui-datepicker .ui-datepicker-prev{left:2px}.cmb_element .ui-datepicker .ui-datepicker-next{right:2px}.cmb_element .ui-datepicker .ui-datepicker-prev-hover{left:1px}
|
106 |
+
.cmb_element .ui-datepicker .ui-datepicker-next-hover{right:1px}.cmb_element .ui-datepicker .ui-datepicker-prev span,.cmb_element .ui-datepicker .ui-datepicker-next span{display:block;position:absolute;margin-left:-8px;margin-top:-8px}
|
107 |
.cmb_element .ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.cmb_element .ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}
|
108 |
.cmb_element .ui-datepicker select.ui-datepicker-month-year{width:100%}.cmb_element .ui-datepicker select.ui-datepicker-month,.cmb_element .ui-datepicker select.ui-datepicker-year{width:49%}
|
109 |
.cmb_element .ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.cmb_element .ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}
|
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.0
|
7 |
-
Stable tag: 1.0.
|
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!
|
@@ -16,6 +16,7 @@ Timeline express allows you to create a vertical animated timeline of announceme
|
|
16 |
**Features**
|
17 |
|
18 |
* Load a custom template for single announcements (new)
|
|
|
19 |
* Hundreds of Font awesome icons included. Specify a different icon for each announcement
|
20 |
* CSS3 animations on scroll
|
21 |
* Set the color of the announcement
|
@@ -40,7 +41,53 @@ Timeline express comes ready for translation. I would love to get things transla
|
|
40 |
|
41 |
<em>We're always looking for polyglots to help with the translations. If you enjoy this plugin, speak multiple languages and want to contribute please get in touch about how you can help translate things so users around the world can benefit from this plugin.</em>
|
42 |
|
43 |
-
**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
By default all single announcements will try and load a single.php template file. If that can't be found, we've done our best to implement a template for you. If your unhappy with the template file we've provided you have two options. Your first option is to copy over the single-announcement-template directory contained within the plugin into your active themes root. This will trigger the plugin to load that file instead. You can then customize this file to your hearts content without fear of losing any of your changes in the next update.
|
45 |
|
46 |
Your next option is to use our new filter for loading your own custom template file. If for whatever reason you've designed or developed your own single.php file which you would rather use, or you just want to use your themes page.php template instead, you can use the provided filter to change the loaded template. Here is an example ( you want to drop this code into your active theme's functions.php file ) :
|
@@ -138,6 +185,11 @@ Have an idea for a future release feature? I love hearing about new ideas! You c
|
|
138 |
|
139 |
== Changelog ==
|
140 |
|
|
|
|
|
|
|
|
|
|
|
141 |
= 1.0.8 - November 17th, 2014 =
|
142 |
* Updated: Single announcement template file, which was causing issues for some users on specific themes
|
143 |
* Feature: Added a new filter to allow users to load custom template files
|
@@ -173,6 +225,9 @@ Have an idea for a future release feature? I love hearing about new ideas! You c
|
|
173 |
* Initial Release to the WordPress repository
|
174 |
|
175 |
== Upgrade Notice ==
|
|
|
|
|
|
|
176 |
= 1.0.8 - November 17th, 2014 =
|
177 |
Added a new filter to allow users to load custom template files, updated the single announcement template file, and fixed a few styling issues
|
178 |
|
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.0
|
7 |
+
Stable tag: 1.0.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!
|
16 |
**Features**
|
17 |
|
18 |
* Load a custom template for single announcements (new)
|
19 |
+
* Localized date formatting for international users (new)
|
20 |
* Hundreds of Font awesome icons included. Specify a different icon for each announcement
|
21 |
* CSS3 animations on scroll
|
22 |
* Set the color of the announcement
|
41 |
|
42 |
<em>We're always looking for polyglots to help with the translations. If you enjoy this plugin, speak multiple languages and want to contribute please get in touch about how you can help translate things so users around the world can benefit from this plugin.</em>
|
43 |
|
44 |
+
**Hooks + Filters**
|
45 |
+
|
46 |
+
**Setup a custom date format for front end display (New v1.0.9)**
|
47 |
+
|
48 |
+
New in version 1.0.9 is the localization of dates on the front end. The date format is now controlled by your date settings inside of 'General > Settings'.
|
49 |
+
|
50 |
+
If, for one reason or another, you'd like to specify a different date format than provided by WordPress core you can use the provided filter `timeline_express_custom_date_format`.
|
51 |
+
|
52 |
+
The one parameter you need to pass into your function is $date_format, which is (as it sounds) the format of the date.
|
53 |
+
|
54 |
+
Some formatting examples:
|
55 |
+
|
56 |
+
* `m.d.Y` - 11.19.2014
|
57 |
+
* `d-m-y` - 11-19-14
|
58 |
+
* `d M y` - 19 Nov 2014
|
59 |
+
* `D j/n/Y` - Wed 11/19/2014
|
60 |
+
* `l jS \of\ F` - Wednesday 19th of November
|
61 |
+
|
62 |
+
Example:
|
63 |
+
<code>
|
64 |
+
function custom_te_date_format( $date_format ) {
|
65 |
+
$date_format = "M d , Y"; // will print the date as Nov 19 , 2014
|
66 |
+
return $date_format;
|
67 |
+
}
|
68 |
+
add_filter( 'timeline_express_custom_date_format' , 'custom_te_date_format' , 10 );
|
69 |
+
</code>
|
70 |
+
|
71 |
+
* d - Numeric representation of a day, with leading zeros 01 through 31.
|
72 |
+
* m - Numeric representation of a month, with leading zeros 01 through 12.
|
73 |
+
* y - Numeric representation of a year, two digits.
|
74 |
+
|
75 |
+
* D - Textual representation of a day, three letters Mon through Sun.
|
76 |
+
* j - Numeric representation of a day, without leading zeros 1 through 31.
|
77 |
+
* n - Numeric representation of a month, without leading zeros 1 through 12.
|
78 |
+
* Y - Numeric representation of a year, four digits.
|
79 |
+
|
80 |
+
* S - English ordinal suffix for the day of the month. Consist of 2 characters st, nd, rd or th.
|
81 |
+
* F - Textual representation of a month, January through December.
|
82 |
+
|
83 |
+
* M - Textual representation of a month, three letters Jan through Dec.
|
84 |
+
|
85 |
+
|
86 |
+
<em>[view more date formatting parameters](http://php.net/manual/en/function.date.php)</em>
|
87 |
+
|
88 |
+
|
89 |
+
**Load Your Own Single Announcement Template File (New v1.0.8)**
|
90 |
+
|
91 |
By default all single announcements will try and load a single.php template file. If that can't be found, we've done our best to implement a template for you. If your unhappy with the template file we've provided you have two options. Your first option is to copy over the single-announcement-template directory contained within the plugin into your active themes root. This will trigger the plugin to load that file instead. You can then customize this file to your hearts content without fear of losing any of your changes in the next update.
|
92 |
|
93 |
Your next option is to use our new filter for loading your own custom template file. If for whatever reason you've designed or developed your own single.php file which you would rather use, or you just want to use your themes page.php template instead, you can use the provided filter to change the loaded template. Here is an example ( you want to drop this code into your active theme's functions.php file ) :
|
185 |
|
186 |
== Changelog ==
|
187 |
|
188 |
+
= 1.0.9 - November 19th, 2014 =
|
189 |
+
* Updated: Localized date format displayed on the front end as requested by our international users ( format now takes on what you have in 'General > Settings' )
|
190 |
+
* Updated: Fixed styling issue on date picker arrows
|
191 |
+
* Feature: Added new filter to allow users to specify a custom date format (`timeline_express_custom_date_format`)
|
192 |
+
|
193 |
= 1.0.8 - November 17th, 2014 =
|
194 |
* Updated: Single announcement template file, which was causing issues for some users on specific themes
|
195 |
* Feature: Added a new filter to allow users to load custom template files
|
225 |
* Initial Release to the WordPress repository
|
226 |
|
227 |
== Upgrade Notice ==
|
228 |
+
= 1.0.9 - November 19th, 2014 =
|
229 |
+
Localized date formats based on 'General > Settings', and added a custom filter to allow users to alter the date format however they see fit.
|
230 |
+
|
231 |
= 1.0.8 - November 17th, 2014 =
|
232 |
Added a new filter to allow users to load custom template files, updated the single announcement template file, and fixed a few styling issues
|
233 |
|
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.0.
|
8 |
Author: Evan Herman
|
9 |
Author URI: http://www.evan-herman.com
|
10 |
License: GPL2
|
@@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
29 |
|
30 |
/** Configuration **/
|
31 |
if(!defined('TIMELINE_EXPRESS_DEBUG')) define('TIMELINE_EXPRESS_DEBUG', false);
|
32 |
-
if(!defined('TIMELINE_EXPRESS_VERSION_CURRENT')) define('TIMELINE_EXPRESS_VERSION_CURRENT', '1.0.
|
33 |
if(!defined('TIMELINE_EXPRESS_REQ_PHP')) define('TIMELINE_EXPRESS_REQ_PHP', '5.0');
|
34 |
if(!defined('TIMELINE_EXPRESS_AUTHOR')) define('TIMELINE_EXPRESS_AUTHOR', 'Evan Herman');
|
35 |
if(!defined('TIMELINE_EXPRESS_SITE')) define('TIMELINE_EXPRESS_SITE', site_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.0.9
|
8 |
Author: Evan Herman
|
9 |
Author URI: http://www.evan-herman.com
|
10 |
License: GPL2
|
29 |
|
30 |
/** Configuration **/
|
31 |
if(!defined('TIMELINE_EXPRESS_DEBUG')) define('TIMELINE_EXPRESS_DEBUG', false);
|
32 |
+
if(!defined('TIMELINE_EXPRESS_VERSION_CURRENT')) define('TIMELINE_EXPRESS_VERSION_CURRENT', '1.0.9');
|
33 |
if(!defined('TIMELINE_EXPRESS_REQ_PHP')) define('TIMELINE_EXPRESS_REQ_PHP', '5.0');
|
34 |
if(!defined('TIMELINE_EXPRESS_AUTHOR')) define('TIMELINE_EXPRESS_AUTHOR', 'Evan Herman');
|
35 |
if(!defined('TIMELINE_EXPRESS_SITE')) define('TIMELINE_EXPRESS_SITE', site_url().'/');
|