Skip to content

Commit

Permalink
update to 1.1.7.3
Browse files Browse the repository at this point in the history
remove duplicate date picker field on announcement cpt
  • Loading branch information
Evan Herman committed Jul 15, 2015
1 parent 11f6af3 commit 98a3f28
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Timeline Express v1.1.7.1
Timeline Express v1.1.7.2
================

Timeline express allows you to create a vertical animated and responsive timeline of posts , without writing a single line of code. Sweet!
Expand Down Expand Up @@ -289,6 +289,11 @@ Have an idea for a future release feature? I love hearing about new ideas! You c


### Changelog
###### 1.1.7.3 - July 15th, 2015
* Remove duplicate date picker fields on announcements

###### 1.1.7.2 - July 14th, 2015
* Repair date picker field not being initialized properly

###### 1.1.7.1 - July 11th, 2015
* Update to CMB2
Expand Down
10 changes: 6 additions & 4 deletions classes/class.timeline-express.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ function addMissingOptions() {
* render our custom date time stamp field (allows for a default to be set)
* since @v1.1.5
*/
function cmb2_render_te_date_time_stamp_custom( $field, $meta ) {
function cmb2_render_te_date_time_stamp_custom( $field, $meta, $object_id, $object_type, $field_type_object ) {
// get date picker depencies
CMB2_JS::add_dependencies( array( 'jquery-ui-core', 'jquery-ui-datepicker' ) );
?>
<style>
#ui-datepicker-div { z-index: 99999 !important; }
Expand All @@ -190,10 +192,10 @@ function cmb2_render_te_date_time_stamp_custom( $field, $meta ) {
</style>
<?php
if( $meta && isset( $meta ) ){
echo '<input class="cmb_text_small cmb_datepicker" type="text" name="', $field->args['id'], '" id="', $field->args['id'], '" value="', '' !== $meta ? date( 'm/d/Y' , $meta ) : $field->args['default'], '" />';
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'], '" />';
echo '<p class="cmb_metabox_description">'.$field->args['desc'].'</p>';
} else{
echo '<input class="cmb_text_small cmb_datepicker" type="text" name="', $field->args['id'], '" id="', $field->args['id'], '" value="' . date('m/d/Y' ) .'" />';
echo '<input class="cmb2-text-small cmb2-datepicker" type="text" name="', $field->args['id'], '" id="', $field->args['id'], '" value="' . date('m/d/Y' ) .'" />';
echo '<p class="cmb_metabox_description">'.$field->args['desc'].'</p>';
}
}
Expand Down Expand Up @@ -552,7 +554,7 @@ public function cmb_timeline_announcement_metaboxes() {
'type' => 'te_date_time_stamp_custom',
'default' => strtotime( date( 'm/d/Y' ) ),
) );

// Email text field
$announcement_metabox->add_field( array(
'name' => __( 'Announcement Image', 'timeline-express' ),
Expand Down
15 changes: 9 additions & 6 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: eherman24
Donate link: http://www.evan-herman.com/contact/?contact-reason=I%20want%20to%20make%20a%20donation%20for%20all%20your%20hard%20work
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
Requires at least: 3.9
Tested up to: 4.2.2
Stable tag: 1.1.7.1
Tested up to: 4.3
Stable tag: 1.1.7.3
License: GPLv2 or later

Timeline express allows you to create a beautiful vertical animated and responsive timeline of posts , without writing a single line of code. Sweet!
Expand Down Expand Up @@ -339,6 +339,12 @@ add_filter( 'timeline_express_custom_template' , 'custom_timeline_express_templa

== Changelog ==

= 1.1.7.3 - July 15th, 2015 =
* Remove duplicate date picker fields on announcements

= 1.1.7.2 - July 14th, 2015 =
* Repair date picker field not being initialized properly

= 1.1.7.1 - July 11th, 2015 =
* Update to CMB2
* Fix default settings on fresh install
Expand Down Expand Up @@ -503,7 +509,4 @@ add_filter( 'timeline_express_custom_template' , 'custom_timeline_express_templa

== Upgrade Notice ==

* Update to CMB2
* Fix default settings on fresh install
* Removed max length on the announcement excerpts
* Fix translation strings, foreign languages should be updated when/where possible
* Remove duplicate date picker fields on announcements
4 changes: 2 additions & 2 deletions timeline-express.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: Timeline Express
Plugin URI: http://www.evan-herman.com
Description: Create a beautiful vertical, CSS3 animated and responsive timeline in minutes flat without writing code.
Version: 1.1.7.1
Version: 1.1.7.3
Author: Evan Herman
Author URI: http://www.evan-herman.com
License: GPL2
Expand All @@ -28,7 +28,7 @@
#_________________________________________________ CONSTANTS
/** Configuration **/
if(!defined('TIMELINE_EXPRESS_VERSION_CURRENT')) define('TIMELINE_EXPRESS_VERSION_CURRENT', '1.1.7.1');
if(!defined('TIMELINE_EXPRESS_VERSION_CURRENT')) define('TIMELINE_EXPRESS_VERSION_CURRENT', '1.1.7.3');
if(!defined('TIMELINE_EXPRESS_PATH')) define('TIMELINE_EXPRESS_PATH', plugin_dir_path( __FILE__ ));
if(!defined('TIMELINE_EXPRESS_URL')) define('TIMELINE_EXPRESS_URL', plugins_url('timeline-express/'));
if(!defined('TIMELINE_EXPRESS_URL_WP')) define('TIMELINE_EXPRESS_URL_WP', get_bloginfo('url'));
Expand Down

0 comments on commit 98a3f28

Please sign in to comment.