Timeline Express - Version 1.2.8.5

Version Description

  • September 12th, 2016 =
  • Removed collision detection, causing initialization issues for certain users.
  • Introduced new templating engine, to aid in creation of the single-announcement template page wrappers (no longer requires user interaction on most themes).
  • Introduced new template files (timeline-express-page-wrappers-start.php, timeline-express-page-wrappers-end.php, timeline-express-sidebar.php)
  • Introduced new action hooks inside of single-timeline-express.php ( timeline_express_before_main_content, timeline_express_after_main_content,timeline_express_sidebar)
  • Added additional single announcement template styles.
  • Tested with bundled WordPress themes (TwentyFourteen-TwentySixteen), and a few other popular themes (Divi, X Theme etc.)
Download this release

Release Info

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

Code changes from version 1.2.8.4 to 1.2.8.5

constants.php CHANGED
@@ -14,7 +14,7 @@
14
  * Define the current version of Timeline Express
15
  */
16
  if ( ! defined( 'TIMELINE_EXPRESS_VERSION_CURRENT' ) ) {
17
- define( 'TIMELINE_EXPRESS_VERSION_CURRENT', '1.2.8.4' );
18
  }
19
 
20
  /**
14
  * Define the current version of Timeline Express
15
  */
16
  if ( ! defined( 'TIMELINE_EXPRESS_VERSION_CURRENT' ) ) {
17
+ define( 'TIMELINE_EXPRESS_VERSION_CURRENT', '1.2.8.5' );
18
  }
19
 
20
  /**
lib/admin/cpt/cpt.announcements.php CHANGED
@@ -95,7 +95,16 @@ register_post_type( 'te_announcements', $timeline_express_args );
95
 
96
  /* Flush the re-write rules/permalinks - prevents 404 on initial plugin activation */
97
  $set = get_option( 'post_type_rules_flushed_te-announcements', false );
98
- if ( true !== $set ) {
 
 
 
 
 
 
 
 
 
99
  flush_rewrite_rules( false );
100
  update_option( 'post_type_rules_flushed_te-announcements', true );
101
  }
95
 
96
  /* Flush the re-write rules/permalinks - prevents 404 on initial plugin activation */
97
  $set = get_option( 'post_type_rules_flushed_te-announcements', false );
98
+
99
+ /**
100
+ * If the re-write rules are not set, flush them and update the option
101
+ * Prevents re-write rules being flushed every page load
102
+ *
103
+ * @since 1.2.8.5
104
+ *
105
+ * @link https://github.com/EvanHerman/timeline-express/pull/24
106
+ */
107
+ if ( ! $set ) {
108
  flush_rewrite_rules( false );
109
  update_option( 'post_type_rules_flushed_te-announcements', true );
110
  }
lib/admin/css/min/timeline-express-admin.min.css CHANGED
@@ -1,8 +1,8 @@
1
- /*
2
- * @Plugin Timeline Express
3
- * @Author Code Parrots
4
- * @Site https://www.wp-timelineexpress.com
5
- * @Version 1.2.8.3
6
- * @Build 08-12-2016
7
- */
8
  body.admin_page_timeline-express-welcome .slides ul li,body.admin_page_timeline-express-welcome .slides ul li h2.promo-text{-webkit-animation-duration:18s;-webkit-animation-timing-function:linear;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:normal;-webkit-animation-play-state:running;-webkit-animation-fill-mode:forwards;-moz-animation-duration:18s;-moz-animation-timing-function:linear;-moz-animation-iteration-count:infinite;-moz-animation-direction:normal;-moz-animation-play-state:running;-moz-animation-fill-mode:forwards}.wp-core-ui .timeline-express-red-button{background-color:#9B2124;background-image:linear-gradient(to bottom,#C5292E,#9B2124);border-color:#9B2124 #9B2124 #8D1F21;box-shadow:inset 0 1px 0 rgba(120,200,230,.5);color:#fff;text-decoration:none;text-shadow:0 1px 0 rgba(0,0,0,.1);margin-left:2em;width:150px;text-align:center}.wp-core-ui .timeline-express-red-button.focus,.wp-core-ui .timeline-express-red-button.hover,.wp-core-ui .timeline-express-red-button:focus,.wp-core-ui .timeline-express-red-button:hover{background-color:#B72629;background-image:linear-gradient(to bottom,#D22E30,#9B2124);border-color:#7F1C1F;box-shadow:inset 0 1px 0 rgba(120,200,230,.6);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.3)}.wp-core-ui .timeline-express-red-button.focus,.wp-core-ui .timeline-express-red-button:focus{border-color:#500F0E;box-shadow:inset 0 1px 0 rgba(120,200,230,.6),1px 1px 2px rgba(0,0,0,.4)}.wp-core-ui .timeline-express-red-button.active,.wp-core-ui .timeline-express-red-button.active:focus,.wp-core-ui .timeline-express-red-button.active:hover,.wp-core-ui .timeline-express-red-button:active{background:#7F1C1F;background-image:linear-gradient(to bottom,#9B2124,#B72629);border-color:#601312 #AE2426 #AE2426;color:rgba(255,255,255,.95);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);text-shadow:0 1px 0 rgba(0,0,0,.1)}.wp-core-ui .timeline-express-red-button-disabled,.wp-core-ui .timeline-express-red-button:disabled,.wp-core-ui .timeline-express-red-button[disabled]{color:#E79496!important;background:#BA292B!important;border-color:#7F1C1F!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.delete-no:hover,.delete-yes:hover{cursor:pointer}#cmb2-metabox-timeline_express_ads .cmb2-id-announcement-advertisments{padding:0!important}#cmb2-metabox-timeline_express_ads p.description{margin:10px 0!important}#cmb2-metabox-timeline_express_ads a.button-primary{font-size:15px;height:auto;padding:3px;margin:0;width:100%;text-align:center}#timeline_express_ads{background:0 0;box-shadow:none;border:none}#timeline_express_ads .advertisment-link{display:block;width:100%;height:100%}#timeline_express_ads .button-primary,#timeline_express_ads .handlediv,#timeline_express_ads h2,#timeline_express_ads p.description,label[for=help_docs_metabox-hide],label[for=timeline_express_ads-hide],label[for=announcement_metabox-hide]{display:none!important}#timeline_express_ads .cmb-type-te-advert-metabox,#timeline_express_ads div.inside{margin:0;padding:0}div.cmb2-id-announcement-help-docs{padding-top:0!important;padding-bottom:0!important}#timeline-express-icon{background:url(../../images/timeline-express-logo-128.png) no-repeat;display:block;float:left;padding:0 0 0 .5em;height:90px;width:90px;background-size:contain}.wrap #timeline-express-page-header{margin:0}body.te_announcements_page_timeline-express-settings .wrap .postbox.ui-sortable-handle{border-radius:5px}.settings-header{display:inline-block;width:100%;padding-left:0!important}.timeline-express-settings-header{background:0 0;box-shadow:none;border:none}.wrap .nav-tab-wrapper{padding-top:2.5em}.wrap .account-nav-tab{padding-top:0}.random-length-text{opacity:.5}#timeline_express_review_this_plugin_container .fa-paypal{display:block;width:100%;font-size:16px;padding-top:4px;margin:0 auto!important;color:#253b80}.wrap #timeline_express_review_this_plugin_container{padding:.5em;float:right;margin-top:.75em}#timeline_express_review_this_plugin_container{display:inline-block}#timeline_express_review_this_plugin_container a,#timeline_express_review_this_plugin_container a:hover{color:#333}#timeline_express_review_this_plugin_container .timeline_express_header_logo,#timeline_express_review_this_plugin_container div,#timeline_express_review_this_plugin_container span{float:left;margin:0 .5em;text-align:center}#timeline_express_review_this_plugin_container div.dashicons{margin:0 5px}#timeline_express_review_this_plugin_container div.dashicons-plus-alt{display:block;width:100%;margin:0 auto;color:#a3c3b8}.timeline-express-form{margin-bottom:3em}.timeline-express-form th{font-weight:700}.timeline-express-settings-description{padding-bottom:2em!important;color:#A7A7A7;font-style:italic;font-size:10px}td.column-announcement_date .dashicons-arrow-right{line-height:2.9;display:inline-block;color:rgba(227,26,26,.68)}.delete-no:after{content:" no, save my announcements from being deleted. I'll need them again!"}.delete-yes:after{content:" yes, delete all of the announcement posts. they are dead to me."}.wp-picker-holder{position:absolute;z-index:99999999}#no-events-message_ifr{max-height:100px}.wp-list-table .no-items .colspanchange{text-align:center;height:115px;line-height:8;font-style:italic}.no-image-used-text{line-height:4.7}.wp-list-table .announcement_color_box{display:block;height:15px;width:15px;border:1px solid rgba(128,128,128,.22);padding:.5em;text-align:center;border-radius:50%}.wp-list-table .past_announcement{height:30px}.wp-list-table .edit-announcement-icon{font-size:25px!important;display:block}.wp-list-table .dashicon-past-announcement{font-size:30px!important;text-align:left}.wp-list-table img.attachment-timeline-express-thumbnail.size-timeline-express-thumbnail{max-width:180px;width:80%;height:auto}.dashicons-star-filled{color:#FEBE12}#timeline_express_reset_plugin_settings .dashicons-dismiss{float:left;margin-top:.5em;padding:.5em 1em 1em .5em;color:#f15353}body.admin_page_timeline-express-welcome .timeline-express-image{background:-moz-linear-gradient(top,rgba(206,220,231,.7) 0,rgba(89,106,114,.7) 100%);background-image:url(../images/welcome/background.png)}body.admin_page_timeline-express-welcome .timeline-screenshot{padding:1.5em 1.5em 0}body.admin_page_timeline-express-welcome .font-awesome-background{padding-top:3em;margin-top:1.5em;background-image:url(../images/welcome/Font-Awesome-Cheatsheet.png);background-size:cover;height:250px;text-align:center;line-height:8}body.admin_page_timeline-express-welcome .admin-manage-announcements,body.admin_page_timeline-express-welcome .customize-your-timeline,body.admin_page_timeline-express-welcome .intuitive-post-creation{margin-top:1.5em;background-size:contain;background-position:bottom center;background-repeat:no-repeat}body.admin_page_timeline-express-welcome .intuitive-post-creation{padding-top:3em;background-image:url(../images/welcome/intuitive-creation-screen.jpg);height:665px}body.admin_page_timeline-express-welcome .admin-manage-announcements{padding-top:3em;background-image:url(../images/welcome/Manage-Announcements.jpg);height:665px}body.admin_page_timeline-express-welcome .customize-your-timeline{padding-top:4%;background-image:url(../images/welcome/customize-your-timeline.jpg);height:665px}body.admin_page_timeline-express-welcome .slides{height:665px;overflow:hidden;position:relative;width:100%;padding:4% 0}body.admin_page_timeline-express-welcome .slides ul{list-style:none;position:relative}body.admin_page_timeline-express-welcome .slides ul li{width:100%;opacity:0;position:absolute;top:0;-webkit-animation-name:anim_slides;-webkit-animation-delay:0;-moz-animation-name:anim_slides;-moz-animation-delay:0}body.admin_page_timeline-express-welcome .slides ul li:nth-child(2),body.admin_page_timeline-express-welcome .slides ul li:nth-child(2) h2.promo-text{-webkit-animation-delay:6s;-moz-animation-delay:6s}body.admin_page_timeline-express-welcome .slides ul li:nth-child(3),body.admin_page_timeline-express-welcome .slides ul li:nth-child(3) h2.promo-text{-webkit-animation-delay:12s;-moz-animation-delay:12s}body.admin_page_timeline-express-welcome .slides ul li img{display:block}body.admin_page_timeline-express-welcome .slides ul li h2.promo-text{background-color:#000;border-radius:10px;box-shadow:0 0 3px #FFF inset;color:#FFF;font-size:18px;margin:0 auto;padding:10px;position:absolute;top:-35px;width:350px;text-align:center;-webkit-animation-name:anim_titles;-webkit-animation-delay:0;-moz-animation-name:anim_titles;-moz-animation-delay:0}.dashicons-heart{background:linear-gradient(top,#ff8cf7,#e2a5e0);-webkit-background-clip:text;-webkit-text-fill-color:transparent}#timeline-express-support-page-wrap{padding:2em}#timeline-express-support-page-wrap hr{margin:1.5em 0}#timeline-express-support-page-header{display:inline-block;width:100%}#timeline-express-support-page-header img.te-logo{max-width:128px;min-width:90px;width:20%;float:left}#timeline-express-support-page-header .support-subhead{display:block;margin:2em 0 0 1em;float:left;width:44%}#timeline-express-support-page-wrap #timeline_express_license_key{width:25%;min-width:400px}.timeline-express-valid-license{color:rgba(144,214,125,.68)}.purchase-support-license{margin-left:-.5em!important}#support-license-form p.description.license-error{color:rgba(225,47,47,.73)}#support-license-form p.description.license-active{color:rgba(46,102,31,.68)}#support-license-form .license-links a{text-decoration:none}.timeline-express-license-buttons{display:block;width:100%;margin-top:2em}.timeline-express-invalid-license-error{color:rgba(225,47,47,.73)}#premium-support-contact-form{float:left;width:33%;min-width:300px}#premium-support-contact-form form,#premium-support-contact-form form input,#premium-support-contact-form form label,#premium-support-contact-form form textarea{width:100%}#premium-support-contact-form form textarea{resize:vertical}#premium-support-contact-form form input[type=submit],#premium-support-contact-form form label{margin-top:1em;display:block}.license-expiring-soon{font-size:11px;color:#f34b4b;display:block}@media only screen and (max-width:1081px){#timeline_express_license_key{min-width:90%!important;width:90%!important}#premium-support-contact-form form input,#premium-support-contact-form form label,#premium-support-contact-form form textarea{width:100%}#premium-support-contact-form{margin:2em 0 0;float:left;width:100%}#timeline-express-support-page-wrap table.widefat.fixed{max-width:100%!important}#timeline-express-support-page-header .support-subhead{width:auto}#timeline-express-support-page-header .te-logo{min-width:140px!important;float:none!important;display:block;margin:0 auto}#timeline-express-support-page-header .support-subhead h1{line-height:1.2}}.about-wrap .timeline-express-badge{position:absolute;top:0;right:0;color:#999;font-size:14px;text-align:center;margin:5px 0 0;width:150px}.about-wrap .timeline-express-badge .version{display:block;margin:5px auto 0}.about-wrap .feature-section{padding:45px 0}.about-wrap .feature-section p{font-size:15px}.about-wrap .feature-section.two-col .col{vertical-align:top}.about-wrap .feature-section.two-col .col:nth-child(1){width:calc(65% - 4px)}.about-wrap .feature-section.two-col .col:nth-child(2){width:calc(30% - 4px);text-align:center;float:right}.about-wrap .timeline-express-features-button{font-size:14px;height:auto;padding:5px 15px;margin-top:10px}.about-wrap .feature-section .feature-video,.about-wrap .feature-section img{max-width:400px;width:100%}.about-wrap #timeline-express-addons .intro,.about-wrap #timeline-express-addons h1.page-title{display:none}#timeline-express-addons .timeline-express-clear:after,#timeline-express-addons .timeline-express-clear:before{content:" ";display:table}.about-wrap #timeline-express-addons .timeline-express-addon-item{max-width:100%}#timeline-express-addons .timeline-express-clear:after{clear:both}#timeline-express-addons .intro{margin-bottom:30px}.timeline-express-addons-basic-message{border:1px solid #ddd;padding:20px}.timeline-express-addons-basic-message h5{font-size:16px;font-weight:700;margin:0 0 15px}.timeline-express-addons-basic-message p{margin:0}.timeline-express-addons-unlock{margin:35px 0 25px}.timeline-express-addons-unlock h4{font-size:23px;font-weight:400;margin:0 0 6px;line-height:29px}.timeline-express-addons-unlock p{margin:0}.timeline-express-addon-item{background-color:#fff;border:1px solid #ddd;clear:right;min-height:118px;margin:0 0 18px;position:relative}.timeline-express-addon-image{float:left;height:92px;width:92px;border:1px solid #ddd;margin:12px 0 0 12px}.timeline-express-addon-image img{display:block;margin:0 auto;max-width:100%}.timeline-express-addon-text{margin:0 200px 0 126px;padding:22px 0}.timeline-express-addon-text h4{font-size:16px;font-weight:700;margin:0 0 8px}.timeline-express-addon-text p{margin:0}.timeline-express-addon-action{position:absolute;top:0;right:0;width:180px;height:100%;text-align:center;border-left:1px solid #ddd}.timeline-express-addon-action a,.timeline-express-addon-action button{font-size:14px;color:#fff;background-color:#0085ba;border:1px solid #006d98;text-decoration:none;width:130px;margin:40px auto 0;display:block;border-radius:5px;padding:10px 0;cursor:pointer}.timeline-express-addon-action a:hover,.timeline-express-addon-action button:hover{background-color:#006d98}.timeline-express-addon-status-active .timeline-express-addon-action{background-color:#edfaff}.timeline-express-addon-status-inactive .timeline-express-addon-action{background-color:#f5f6f7}.timeline-express-error{color:#b94a48;background-color:#f2dede;padding:8px}.timeline-express-success{color:#468847;background-color:#dff0d8;padding:8px}.timeline-express-addon-item,.timeline-express-addon-item.timeline-express-second{max-width:800px;width:100%;float:none}.timeline-express-addon-action .button-addon-installed,.timeline-express-addon-action .button-addon-installed:hover{opacity:.8;background:#FFB780;border:1px solid #9B6943;color:#333}
1
+ /*
2
+ * @Plugin Timeline Express
3
+ * @Author Code Parrots
4
+ * @Site https://www.wp-timelineexpress.com
5
+ * @Version 1.2.8.4
6
+ * @Build 09-12-2016
7
+ */
8
  body.admin_page_timeline-express-welcome .slides ul li,body.admin_page_timeline-express-welcome .slides ul li h2.promo-text{-webkit-animation-duration:18s;-webkit-animation-timing-function:linear;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:normal;-webkit-animation-play-state:running;-webkit-animation-fill-mode:forwards;-moz-animation-duration:18s;-moz-animation-timing-function:linear;-moz-animation-iteration-count:infinite;-moz-animation-direction:normal;-moz-animation-play-state:running;-moz-animation-fill-mode:forwards}.wp-core-ui .timeline-express-red-button{background-color:#9B2124;background-image:linear-gradient(to bottom,#C5292E,#9B2124);border-color:#9B2124 #9B2124 #8D1F21;box-shadow:inset 0 1px 0 rgba(120,200,230,.5);color:#fff;text-decoration:none;text-shadow:0 1px 0 rgba(0,0,0,.1);margin-left:2em;width:150px;text-align:center}.wp-core-ui .timeline-express-red-button.focus,.wp-core-ui .timeline-express-red-button.hover,.wp-core-ui .timeline-express-red-button:focus,.wp-core-ui .timeline-express-red-button:hover{background-color:#B72629;background-image:linear-gradient(to bottom,#D22E30,#9B2124);border-color:#7F1C1F;box-shadow:inset 0 1px 0 rgba(120,200,230,.6);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.3)}.wp-core-ui .timeline-express-red-button.focus,.wp-core-ui .timeline-express-red-button:focus{border-color:#500F0E;box-shadow:inset 0 1px 0 rgba(120,200,230,.6),1px 1px 2px rgba(0,0,0,.4)}.wp-core-ui .timeline-express-red-button.active,.wp-core-ui .timeline-express-red-button.active:focus,.wp-core-ui .timeline-express-red-button.active:hover,.wp-core-ui .timeline-express-red-button:active{background:#7F1C1F;background-image:linear-gradient(to bottom,#9B2124,#B72629);border-color:#601312 #AE2426 #AE2426;color:rgba(255,255,255,.95);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);text-shadow:0 1px 0 rgba(0,0,0,.1)}.wp-core-ui .timeline-express-red-button-disabled,.wp-core-ui .timeline-express-red-button:disabled,.wp-core-ui .timeline-express-red-button[disabled]{color:#E79496!important;background:#BA292B!important;border-color:#7F1C1F!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.delete-no:hover,.delete-yes:hover{cursor:pointer}#cmb2-metabox-timeline_express_ads .cmb2-id-announcement-advertisments{padding:0!important}#cmb2-metabox-timeline_express_ads p.description{margin:10px 0!important}#cmb2-metabox-timeline_express_ads a.button-primary{font-size:15px;height:auto;padding:3px;margin:0;width:100%;text-align:center}#timeline_express_ads{background:0 0;box-shadow:none;border:none}#timeline_express_ads .advertisment-link{display:block;width:100%;height:100%}#timeline_express_ads .button-primary,#timeline_express_ads .handlediv,#timeline_express_ads h2,#timeline_express_ads p.description,label[for=help_docs_metabox-hide],label[for=timeline_express_ads-hide],label[for=announcement_metabox-hide]{display:none!important}#timeline_express_ads .cmb-type-te-advert-metabox,#timeline_express_ads div.inside{margin:0;padding:0}div.cmb2-id-announcement-help-docs{padding-top:0!important;padding-bottom:0!important}#timeline-express-icon{background:url(../../images/timeline-express-logo-128.png) no-repeat;display:block;float:left;padding:0 0 0 .5em;height:90px;width:90px;background-size:contain}.wrap #timeline-express-page-header{margin:0}body.te_announcements_page_timeline-express-settings .wrap .postbox.ui-sortable-handle{border-radius:5px}.settings-header{display:inline-block;width:100%;padding-left:0!important}.timeline-express-settings-header{background:0 0;box-shadow:none;border:none}.wrap .nav-tab-wrapper{padding-top:2.5em}.wrap .account-nav-tab{padding-top:0}.random-length-text{opacity:.5}#timeline_express_review_this_plugin_container .fa-paypal{display:block;width:100%;font-size:16px;padding-top:4px;margin:0 auto!important;color:#253b80}.wrap #timeline_express_review_this_plugin_container{padding:.5em;float:right;margin-top:.75em}#timeline_express_review_this_plugin_container{display:inline-block}#timeline_express_review_this_plugin_container a,#timeline_express_review_this_plugin_container a:hover{color:#333}#timeline_express_review_this_plugin_container .timeline_express_header_logo,#timeline_express_review_this_plugin_container div,#timeline_express_review_this_plugin_container span{float:left;margin:0 .5em;text-align:center}#timeline_express_review_this_plugin_container div.dashicons{margin:0 5px}#timeline_express_review_this_plugin_container div.dashicons-plus-alt{display:block;width:100%;margin:0 auto;color:#a3c3b8}.timeline-express-form{margin-bottom:3em}.timeline-express-form th{font-weight:700}.timeline-express-settings-description{padding-bottom:2em!important;color:#A7A7A7;font-style:italic;font-size:10px}td.column-announcement_date .dashicons-arrow-right{line-height:2.9;display:inline-block;color:rgba(227,26,26,.68)}.delete-no:after{content:" no, save my announcements from being deleted. I'll need them again!"}.delete-yes:after{content:" yes, delete all of the announcement posts. they are dead to me."}.wp-picker-holder{position:absolute;z-index:99999999}#no-events-message_ifr{max-height:100px}.wp-list-table .no-items .colspanchange{text-align:center;height:115px;line-height:8;font-style:italic}.no-image-used-text{line-height:4.7}.wp-list-table .announcement_color_box{display:block;height:15px;width:15px;border:1px solid rgba(128,128,128,.22);padding:.5em;text-align:center;border-radius:50%}.wp-list-table .past_announcement{height:30px}.wp-list-table .edit-announcement-icon{font-size:25px!important;display:block}.wp-list-table .dashicon-past-announcement{font-size:30px!important;text-align:left}.wp-list-table img.attachment-timeline-express-thumbnail.size-timeline-express-thumbnail{max-width:180px;width:80%;height:auto}.dashicons-star-filled{color:#FEBE12}#timeline_express_reset_plugin_settings .dashicons-dismiss{float:left;margin-top:.5em;padding:.5em 1em 1em .5em;color:#f15353}body.admin_page_timeline-express-welcome .timeline-express-image{background:-moz-linear-gradient(top,rgba(206,220,231,.7) 0,rgba(89,106,114,.7) 100%);background-image:url(../images/welcome/background.png)}body.admin_page_timeline-express-welcome .timeline-screenshot{padding:1.5em 1.5em 0}body.admin_page_timeline-express-welcome .font-awesome-background{padding-top:3em;margin-top:1.5em;background-image:url(../images/welcome/Font-Awesome-Cheatsheet.png);background-size:cover;height:250px;text-align:center;line-height:8}body.admin_page_timeline-express-welcome .admin-manage-announcements,body.admin_page_timeline-express-welcome .customize-your-timeline,body.admin_page_timeline-express-welcome .intuitive-post-creation{margin-top:1.5em;background-size:contain;background-position:bottom center;background-repeat:no-repeat}body.admin_page_timeline-express-welcome .intuitive-post-creation{padding-top:3em;background-image:url(../images/welcome/intuitive-creation-screen.jpg);height:665px}body.admin_page_timeline-express-welcome .admin-manage-announcements{padding-top:3em;background-image:url(../images/welcome/Manage-Announcements.jpg);height:665px}body.admin_page_timeline-express-welcome .customize-your-timeline{padding-top:4%;background-image:url(../images/welcome/customize-your-timeline.jpg);height:665px}body.admin_page_timeline-express-welcome .slides{height:665px;overflow:hidden;position:relative;width:100%;padding:4% 0}body.admin_page_timeline-express-welcome .slides ul{list-style:none;position:relative}body.admin_page_timeline-express-welcome .slides ul li{width:100%;opacity:0;position:absolute;top:0;-webkit-animation-name:anim_slides;-webkit-animation-delay:0;-moz-animation-name:anim_slides;-moz-animation-delay:0}body.admin_page_timeline-express-welcome .slides ul li:nth-child(2),body.admin_page_timeline-express-welcome .slides ul li:nth-child(2) h2.promo-text{-webkit-animation-delay:6s;-moz-animation-delay:6s}body.admin_page_timeline-express-welcome .slides ul li:nth-child(3),body.admin_page_timeline-express-welcome .slides ul li:nth-child(3) h2.promo-text{-webkit-animation-delay:12s;-moz-animation-delay:12s}body.admin_page_timeline-express-welcome .slides ul li img{display:block}body.admin_page_timeline-express-welcome .slides ul li h2.promo-text{background-color:#000;border-radius:10px;box-shadow:0 0 3px #FFF inset;color:#FFF;font-size:18px;margin:0 auto;padding:10px;position:absolute;top:-35px;width:350px;text-align:center;-webkit-animation-name:anim_titles;-webkit-animation-delay:0;-moz-animation-name:anim_titles;-moz-animation-delay:0}.dashicons-heart{background:linear-gradient(top,#ff8cf7,#e2a5e0);-webkit-background-clip:text;-webkit-text-fill-color:transparent}#timeline-express-support-page-wrap{padding:2em}#timeline-express-support-page-wrap hr{margin:1.5em 0}#timeline-express-support-page-header{display:inline-block;width:100%}#timeline-express-support-page-header img.te-logo{max-width:128px;min-width:90px;width:20%;float:left}#timeline-express-support-page-header .support-subhead{display:block;margin:2em 0 0 1em;float:left;width:44%}#timeline-express-support-page-wrap #timeline_express_license_key{width:25%;min-width:400px}.timeline-express-valid-license{color:rgba(144,214,125,.68)}.purchase-support-license{margin-left:-.5em!important}#support-license-form p.description.license-error{color:rgba(225,47,47,.73)}#support-license-form p.description.license-active{color:rgba(46,102,31,.68)}#support-license-form .license-links a{text-decoration:none}.timeline-express-license-buttons{display:block;width:100%;margin-top:2em}.timeline-express-invalid-license-error{color:rgba(225,47,47,.73)}#premium-support-contact-form{float:left;width:33%;min-width:300px}#premium-support-contact-form form,#premium-support-contact-form form input,#premium-support-contact-form form label,#premium-support-contact-form form textarea{width:100%}#premium-support-contact-form form textarea{resize:vertical}#premium-support-contact-form form input[type=submit],#premium-support-contact-form form label{margin-top:1em;display:block}.license-expiring-soon{font-size:11px;color:#f34b4b;display:block}@media only screen and (max-width:1081px){#timeline_express_license_key{min-width:90%!important;width:90%!important}#premium-support-contact-form form input,#premium-support-contact-form form label,#premium-support-contact-form form textarea{width:100%}#premium-support-contact-form{margin:2em 0 0;float:left;width:100%}#timeline-express-support-page-wrap table.widefat.fixed{max-width:100%!important}#timeline-express-support-page-header .support-subhead{width:auto}#timeline-express-support-page-header .te-logo{min-width:140px!important;float:none!important;display:block;margin:0 auto}#timeline-express-support-page-header .support-subhead h1{line-height:1.2}}.about-wrap .timeline-express-badge{position:absolute;top:0;right:0;color:#999;font-size:14px;text-align:center;margin:5px 0 0;width:150px}.about-wrap .timeline-express-badge .version{display:block;margin:5px auto 0}.about-wrap .feature-section{padding:45px 0}.about-wrap .feature-section p{font-size:15px}.about-wrap .feature-section.two-col .col{vertical-align:top}.about-wrap .feature-section.two-col .col:nth-child(1){width:calc(65% - 4px)}.about-wrap .feature-section.two-col .col:nth-child(2){width:calc(30% - 4px);text-align:center;float:right}.about-wrap .timeline-express-features-button{font-size:14px;height:auto;padding:5px 15px;margin-top:10px}.about-wrap .feature-section .feature-video,.about-wrap .feature-section img{max-width:400px;width:100%}.about-wrap #timeline-express-addons .intro,.about-wrap #timeline-express-addons h1.page-title{display:none}#timeline-express-addons .timeline-express-clear:after,#timeline-express-addons .timeline-express-clear:before{content:" ";display:table}.about-wrap #timeline-express-addons .timeline-express-addon-item{max-width:100%}#timeline-express-addons .timeline-express-clear:after{clear:both}#timeline-express-addons .intro{margin-bottom:30px}.timeline-express-addons-basic-message{border:1px solid #ddd;padding:20px}.timeline-express-addons-basic-message h5{font-size:16px;font-weight:700;margin:0 0 15px}.timeline-express-addons-basic-message p{margin:0}.timeline-express-addons-unlock{margin:35px 0 25px}.timeline-express-addons-unlock h4{font-size:23px;font-weight:400;margin:0 0 6px;line-height:29px}.timeline-express-addons-unlock p{margin:0}.timeline-express-addon-item{background-color:#fff;border:1px solid #ddd;clear:right;min-height:118px;margin:0 0 18px;position:relative}.timeline-express-addon-image{float:left;height:92px;width:92px;border:1px solid #ddd;margin:12px 0 0 12px}.timeline-express-addon-image img{display:block;margin:0 auto;max-width:100%}.timeline-express-addon-text{margin:0 200px 0 126px;padding:22px 0}.timeline-express-addon-text h4{font-size:16px;font-weight:700;margin:0 0 8px}.timeline-express-addon-text p{margin:0}.timeline-express-addon-action{position:absolute;top:0;right:0;width:180px;height:100%;text-align:center;border-left:1px solid #ddd}.timeline-express-addon-action a,.timeline-express-addon-action button{font-size:14px;color:#fff;background-color:#0085ba;border:1px solid #006d98;text-decoration:none;width:130px;margin:40px auto 0;display:block;border-radius:5px;padding:10px 0;cursor:pointer}.timeline-express-addon-action a:hover,.timeline-express-addon-action button:hover{background-color:#006d98}.timeline-express-addon-status-active .timeline-express-addon-action{background-color:#edfaff}.timeline-express-addon-status-inactive .timeline-express-addon-action{background-color:#f5f6f7}.timeline-express-error{color:#b94a48;background-color:#f2dede;padding:8px}.timeline-express-success{color:#468847;background-color:#dff0d8;padding:8px}.timeline-express-addon-item,.timeline-express-addon-item.timeline-express-second{max-width:800px;width:100%;float:none}.timeline-express-addon-action .button-addon-installed,.timeline-express-addon-action .button-addon-installed:hover{opacity:.8;background:#FFB780;border:1px solid #9B6943;color:#333}
lib/admin/css/min/timeline-express-settings.min.css CHANGED
@@ -1,8 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /*
2
  * @Plugin Timeline Express
3
  * @Author Code Parrots
4
  * @Site https://www.wp-timelineexpress.com
5
- * @Version 1.2.8.3
6
- * @Build 08-12-2016
7
  */
8
  .wp-core-ui .timeline-express-red-button{background-color:#9B2124;background-image:linear-gradient(to bottom,#C5292E,#9B2124);border-color:#9B2124 #9B2124 #8D1F21;box-shadow:inset 0 1px 0 rgba(120,200,230,.5);color:#fff;text-decoration:none;text-shadow:0 1px 0 rgba(0,0,0,.1);margin-left:2em;width:150px;text-align:center}.wp-core-ui .timeline-express-red-button.focus,.wp-core-ui .timeline-express-red-button.hover,.wp-core-ui .timeline-express-red-button:focus,.wp-core-ui .timeline-express-red-button:hover{background-color:#B72629;background-image:linear-gradient(to bottom,#D22E30,#9B2124);border-color:#7F1C1F;box-shadow:inset 0 1px 0 rgba(120,200,230,.6);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.3)}.wp-core-ui .timeline-express-red-button.focus,.wp-core-ui .timeline-express-red-button:focus{border-color:#500F0E;box-shadow:inset 0 1px 0 rgba(120,200,230,.6),1px 1px 2px rgba(0,0,0,.4)}.wp-core-ui .timeline-express-red-button.active,.wp-core-ui .timeline-express-red-button.active:focus,.wp-core-ui .timeline-express-red-button.active:hover,.wp-core-ui .timeline-express-red-button:active{background:#7F1C1F;background-image:linear-gradient(to bottom,#9B2124,#B72629);border-color:#601312 #AE2426 #AE2426;color:rgba(255,255,255,.95);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);text-shadow:0 1px 0 rgba(0,0,0,.1)}.wp-core-ui .timeline-express-red-button-disabled,.wp-core-ui .timeline-express-red-button:disabled,.wp-core-ui .timeline-express-red-button[disabled]{color:#E79496!important;background:#BA292B!important;border-color:#7F1C1F!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.delete-no:hover,.delete-yes:hover{cursor:pointer}#timeline-express-icon{background:url(../../images/timeline-express-logo-128.png) no-repeat;display:block;float:left;padding:0 0 0 .5em;height:90px;width:90px;background-size:contain}.wrap #timeline-express-page-header{margin:0}body.te_announcements_page_timeline-express-settings .wrap .postbox.ui-sortable-handle{border-radius:5px}.settings-header{display:inline-block;width:100%}.timeline-express-settings-header{background:0 0;box-shadow:none;border:none}.wrap .nav-tab-wrapper{padding-top:2.5em}.wrap .account-nav-tab{padding-top:0}.random-length-text{opacity:.5}#timeline_express_review_this_plugin_container .fa-paypal{display:block;width:100%;font-size:16px;padding-top:4px;margin:0 auto!important;color:#253b80}.wrap #timeline_express_review_this_plugin_container{padding:.5em;float:right;margin-top:.75em}#timeline_express_review_this_plugin_container{display:inline-block}#timeline_express_review_this_plugin_container a,#timeline_express_review_this_plugin_container a:hover{color:#333}#timeline_express_review_this_plugin_container .timeline_express_header_logo,#timeline_express_review_this_plugin_container div,#timeline_express_review_this_plugin_container span{float:left;margin:0 .5em;text-align:center}#timeline_express_review_this_plugin_container div.dashicons{margin:0 5px}#timeline_express_review_this_plugin_container div.dashicons-plus-alt{display:block;width:100%;margin:0 auto;color:#a3c3b8}.timeline-express-form{margin-bottom:3em}.timeline-express-form th{font-weight:700}.timeline-express-settings-description{padding-bottom:2em!important;color:#A7A7A7;font-style:italic;font-size:10px}.wp-admin .active-parent-button,.wp-admin .active-parent-button:hover{color:red}.delete-no:after{content:" no, save my announcements from being deleted. I'll need them again!"}.delete-yes:after{content:" yes, delete all of the announcement posts. they are dead to me."}.wp-picker-holder{position:absolute;z-index:99999999}#no-events-message_ifr{max-height:100px}.wp-list-table .no-items .colspanchange{text-align:center;height:115px;line-height:8;font-style:italic}.wp-list-table #color,.wp-list-table #icon{width:65px;text-align:center;padding-left:1em}.wp-list-table #announcement_date,.wp-list-table .column-announcement_date{width:215px}.wp-list-table #image,.wp-list-table .column-image{width:250px;text-align:center}.no-image-used-text{line-height:4.7}.wp-list-table #past_announcement{width:150px;text-align:center}.wp-list-table .announcement_color_box{display:block;width:15px;height:15px;border:1px solid rgba(128,128,128,.22);padding:.5em;text-align:center;margin:11px auto 0;border-radius:50%}.wp-list-table .edit-announcement-icon{font-size:25px!important;line-height:2.5!important;display:block;text-align:center}.wp-list-table #announcement_date,th.manage-column.column-announcement_date.sortable.desc{line-height:1.5;padding-left:2.5em}.wp-list-table .announcement_date{line-height:4.5!important;text-align:center}.wp-list-table .dashicon-past-announcement{font-size:30px!important;line-height:2.1!important}.dashicons-star-filled{color:#FEBE12}#timeline_express_reset_plugin_settings .dashicons-dismiss{float:left;margin-top:.5em;padding:.5em 1em 1em .5em;color:#f15353}body.admin_page_timeline-express-welcome .timeline-express-image{background:-moz-linear-gradient(top,rgba(206,220,231,.7) 0,rgba(89,106,114,.7) 100%);background-image:url(../images/welcome/background.png)}body.admin_page_timeline-express-welcome .timeline-screenshot{padding:1.5em 1.5em 0}body.admin_page_timeline-express-welcome .font-awesome-background{padding-top:3em;margin-top:1.5em;background-image:url(../images/welcome/Font-Awesome-Cheatsheet.png);background-size:cover;height:250px;text-align:center;line-height:8}body.admin_page_timeline-express-welcome .admin-manage-announcements,body.admin_page_timeline-express-welcome .customize-your-timeline,body.admin_page_timeline-express-welcome .intuitive-post-creation{margin-top:1.5em;background-size:contain;background-position:bottom center;background-repeat:no-repeat}body.admin_page_timeline-express-welcome .intuitive-post-creation{padding-top:3em;background-image:url(../images/welcome/intuitive-creation-screen.jpg);height:665px}body.admin_page_timeline-express-welcome .admin-manage-announcements{padding-top:3em;background-image:url(../images/welcome/Manage-Announcements.jpg);height:665px}body.admin_page_timeline-express-welcome .customize-your-timeline{padding-top:4%;background-image:url(../images/welcome/customize-your-timeline.jpg);height:665px}body.admin_page_timeline-express-welcome .slides{height:665px;overflow:hidden;position:relative;width:100%;padding:4% 0}body.admin_page_timeline-express-welcome .slides ul{list-style:none;position:relative}body.admin_page_timeline-express-welcome .slides ul li,body.admin_page_timeline-express-welcome .slides ul li h2.promo-text{position:absolute;-webkit-animation-duration:18s;-webkit-animation-timing-function:linear;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:normal;-webkit-animation-play-state:running;-webkit-animation-fill-mode:forwards;-moz-animation-duration:18s;-moz-animation-timing-function:linear;-moz-animation-iteration-count:infinite;-moz-animation-direction:normal;-moz-animation-play-state:running;-moz-animation-fill-mode:forwards}@-webkit-keyframes anim_slides{0%,100%,30%{opacity:0}24%,6%{opacity:1}}body.admin_page_timeline-express-welcome .slides ul li{width:100%;opacity:0;top:0;-webkit-animation-name:anim_slides;-webkit-animation-delay:0;-moz-animation-name:anim_slides;-moz-animation-delay:0}body.admin_page_timeline-express-welcome .slides ul li:nth-child(2),body.admin_page_timeline-express-welcome .slides ul li:nth-child(2) h2.promo-text{-webkit-animation-delay:6s;-moz-animation-delay:6s}body.admin_page_timeline-express-welcome .slides ul li:nth-child(3),body.admin_page_timeline-express-welcome .slides ul li:nth-child(3) h2.promo-text{-webkit-animation-delay:12s;-moz-animation-delay:12s}body.admin_page_timeline-express-welcome .slides ul li img{display:block}@-webkit-keyframes anim_titles{0%,100%,25%{left:5%;opacity:0}20%,5%{left:5%;opacity:1}}body.admin_page_timeline-express-welcome .slides ul li h2.promo-text{background-color:#000;border-radius:10px;box-shadow:0 0 3px #FFF inset;color:#FFF;font-size:18px;margin:0 auto;padding:10px;top:-35px;width:350px;text-align:center;-webkit-animation-name:anim_titles;-webkit-animation-delay:0;-moz-animation-name:anim_titles;-moz-animation-delay:0}.dashicons-heart{background:linear-gradient(top,#ff8cf7,#e2a5e0);-webkit-background-clip:text;-webkit-text-fill-color:transparent}#timeline-express-support-page-wrap{padding:2em}.te_announcements_page_timeline-express-settings .wrap{padding:0 2em}#timeline-express-support-page-wrap hr{margin:1.5em 0}#timeline-express-support-page-header{display:inline-block;width:100%}#timeline-express-support-page-header img.te-logo{max-width:128px;min-width:90px;width:20%;float:left}#timeline-express-support-page-header .support-subhead{display:block;margin:2em 0 0 1em;float:left;width:44%}#timeline-express-support-page-wrap #timeline_express_license_key{width:25%;min-width:400px}.timeline-express-valid-license{color:rgba(144,214,125,.68);font-size:28px}.purchase-support-license{margin-left:-.5em!important}.timeline-express-license-buttons{display:block;width:100%;margin-top:2em}.timeline-express-invalid-license-error{color:rgba(225,47,47,.73)}#premium-support-contact-form{float:left;width:33%;min-width:300px}#premium-support-contact-form form,#premium-support-contact-form form input,#premium-support-contact-form form label,#premium-support-contact-form form textarea{width:100%}#premium-support-contact-form form textarea{resize:vertical}#premium-support-contact-form form input[type=submit],#premium-support-contact-form form label{margin-top:1em;display:block}.license-expiring-soon{font-size:11px;color:#f34b4b;display:block}@media only screen and (max-width:1081px){#timeline_express_license_key{min-width:90%!important;width:90%!important}#premium-support-contact-form form input,#premium-support-contact-form form label,#premium-support-contact-form form textarea{width:100%}#premium-support-contact-form{margin:2em 0 0;float:left;width:100%}#timeline-express-support-page-wrap table.widefat.fixed{max-width:100%!important}#timeline-express-support-page-header .support-subhead{width:auto}#timeline-express-support-page-header .te-logo{min-width:140px!important;float:none!important;display:block;margin:0 auto}#timeline-express-support-page-header .support-subhead h1{line-height:1.2}}
1
+ /*
2
+ * @Plugin Timeline Express
3
+ * @Author Code Parrots
4
+ * @Site https://www.wp-timelineexpress.com
5
+ * @Version 1.2.8.4
6
+ * @Build 09-12-2016
7
+ */
8
+ /*
9
+ * @Plugin Timeline Express
10
+ * @Author Code Parrots
11
+ * @Site https://www.wp-timelineexpress.com
12
+ * @Version 1.2.8.4
13
+ * @Build 09-12-2016
14
+ */
15
+ /*
16
+ * @Plugin Timeline Express
17
+ * @Author Code Parrots
18
+ * @Site https://www.wp-timelineexpress.com
19
+ * @Version 1.2.8.4
20
+ * @Build 09-12-2016
21
+ */
22
+ /*
23
+ * @Plugin Timeline Express
24
+ * @Author Code Parrots
25
+ * @Site https://www.wp-timelineexpress.com
26
+ * @Version 1.2.8.4
27
+ * @Build 09-12-2016
28
+ */
29
+ /*
30
+ * @Plugin Timeline Express
31
+ * @Author Code Parrots
32
+ * @Site https://www.wp-timelineexpress.com
33
+ * @Version 1.2.8.4
34
+ * @Build 09-12-2016
35
+ */
36
+ /*
37
+ * @Plugin Timeline Express
38
+ * @Author Code Parrots
39
+ * @Site https://www.wp-timelineexpress.com
40
+ * @Version 1.2.8.4
41
+ * @Build 09-12-2016
42
+ */
43
+ /*
44
+ * @Plugin Timeline Express
45
+ * @Author Code Parrots
46
+ * @Site https://www.wp-timelineexpress.com
47
+ * @Version 1.2.8.4
48
+ * @Build 09-12-2016
49
+ */
50
  /*
51
  * @Plugin Timeline Express
52
  * @Author Code Parrots
53
  * @Site https://www.wp-timelineexpress.com
54
+ * @Version 1.2.8.4
55
+ * @Build 08-13-2016
56
  */
57
  .wp-core-ui .timeline-express-red-button{background-color:#9B2124;background-image:linear-gradient(to bottom,#C5292E,#9B2124);border-color:#9B2124 #9B2124 #8D1F21;box-shadow:inset 0 1px 0 rgba(120,200,230,.5);color:#fff;text-decoration:none;text-shadow:0 1px 0 rgba(0,0,0,.1);margin-left:2em;width:150px;text-align:center}.wp-core-ui .timeline-express-red-button.focus,.wp-core-ui .timeline-express-red-button.hover,.wp-core-ui .timeline-express-red-button:focus,.wp-core-ui .timeline-express-red-button:hover{background-color:#B72629;background-image:linear-gradient(to bottom,#D22E30,#9B2124);border-color:#7F1C1F;box-shadow:inset 0 1px 0 rgba(120,200,230,.6);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.3)}.wp-core-ui .timeline-express-red-button.focus,.wp-core-ui .timeline-express-red-button:focus{border-color:#500F0E;box-shadow:inset 0 1px 0 rgba(120,200,230,.6),1px 1px 2px rgba(0,0,0,.4)}.wp-core-ui .timeline-express-red-button.active,.wp-core-ui .timeline-express-red-button.active:focus,.wp-core-ui .timeline-express-red-button.active:hover,.wp-core-ui .timeline-express-red-button:active{background:#7F1C1F;background-image:linear-gradient(to bottom,#9B2124,#B72629);border-color:#601312 #AE2426 #AE2426;color:rgba(255,255,255,.95);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);text-shadow:0 1px 0 rgba(0,0,0,.1)}.wp-core-ui .timeline-express-red-button-disabled,.wp-core-ui .timeline-express-red-button:disabled,.wp-core-ui .timeline-express-red-button[disabled]{color:#E79496!important;background:#BA292B!important;border-color:#7F1C1F!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.delete-no:hover,.delete-yes:hover{cursor:pointer}#timeline-express-icon{background:url(../../images/timeline-express-logo-128.png) no-repeat;display:block;float:left;padding:0 0 0 .5em;height:90px;width:90px;background-size:contain}.wrap #timeline-express-page-header{margin:0}body.te_announcements_page_timeline-express-settings .wrap .postbox.ui-sortable-handle{border-radius:5px}.settings-header{display:inline-block;width:100%}.timeline-express-settings-header{background:0 0;box-shadow:none;border:none}.wrap .nav-tab-wrapper{padding-top:2.5em}.wrap .account-nav-tab{padding-top:0}.random-length-text{opacity:.5}#timeline_express_review_this_plugin_container .fa-paypal{display:block;width:100%;font-size:16px;padding-top:4px;margin:0 auto!important;color:#253b80}.wrap #timeline_express_review_this_plugin_container{padding:.5em;float:right;margin-top:.75em}#timeline_express_review_this_plugin_container{display:inline-block}#timeline_express_review_this_plugin_container a,#timeline_express_review_this_plugin_container a:hover{color:#333}#timeline_express_review_this_plugin_container .timeline_express_header_logo,#timeline_express_review_this_plugin_container div,#timeline_express_review_this_plugin_container span{float:left;margin:0 .5em;text-align:center}#timeline_express_review_this_plugin_container div.dashicons{margin:0 5px}#timeline_express_review_this_plugin_container div.dashicons-plus-alt{display:block;width:100%;margin:0 auto;color:#a3c3b8}.timeline-express-form{margin-bottom:3em}.timeline-express-form th{font-weight:700}.timeline-express-settings-description{padding-bottom:2em!important;color:#A7A7A7;font-style:italic;font-size:10px}.wp-admin .active-parent-button,.wp-admin .active-parent-button:hover{color:red}.delete-no:after{content:" no, save my announcements from being deleted. I'll need them again!"}.delete-yes:after{content:" yes, delete all of the announcement posts. they are dead to me."}.wp-picker-holder{position:absolute;z-index:99999999}#no-events-message_ifr{max-height:100px}.wp-list-table .no-items .colspanchange{text-align:center;height:115px;line-height:8;font-style:italic}.wp-list-table #color,.wp-list-table #icon{width:65px;text-align:center;padding-left:1em}.wp-list-table #announcement_date,.wp-list-table .column-announcement_date{width:215px}.wp-list-table #image,.wp-list-table .column-image{width:250px;text-align:center}.no-image-used-text{line-height:4.7}.wp-list-table #past_announcement{width:150px;text-align:center}.wp-list-table .announcement_color_box{display:block;width:15px;height:15px;border:1px solid rgba(128,128,128,.22);padding:.5em;text-align:center;margin:11px auto 0;border-radius:50%}.wp-list-table .edit-announcement-icon{font-size:25px!important;line-height:2.5!important;display:block;text-align:center}.wp-list-table #announcement_date,th.manage-column.column-announcement_date.sortable.desc{line-height:1.5;padding-left:2.5em}.wp-list-table .announcement_date{line-height:4.5!important;text-align:center}.wp-list-table .dashicon-past-announcement{font-size:30px!important;line-height:2.1!important}.dashicons-star-filled{color:#FEBE12}#timeline_express_reset_plugin_settings .dashicons-dismiss{float:left;margin-top:.5em;padding:.5em 1em 1em .5em;color:#f15353}body.admin_page_timeline-express-welcome .timeline-express-image{background:-moz-linear-gradient(top,rgba(206,220,231,.7) 0,rgba(89,106,114,.7) 100%);background-image:url(../images/welcome/background.png)}body.admin_page_timeline-express-welcome .timeline-screenshot{padding:1.5em 1.5em 0}body.admin_page_timeline-express-welcome .font-awesome-background{padding-top:3em;margin-top:1.5em;background-image:url(../images/welcome/Font-Awesome-Cheatsheet.png);background-size:cover;height:250px;text-align:center;line-height:8}body.admin_page_timeline-express-welcome .admin-manage-announcements,body.admin_page_timeline-express-welcome .customize-your-timeline,body.admin_page_timeline-express-welcome .intuitive-post-creation{margin-top:1.5em;background-size:contain;background-position:bottom center;background-repeat:no-repeat}body.admin_page_timeline-express-welcome .intuitive-post-creation{padding-top:3em;background-image:url(../images/welcome/intuitive-creation-screen.jpg);height:665px}body.admin_page_timeline-express-welcome .admin-manage-announcements{padding-top:3em;background-image:url(../images/welcome/Manage-Announcements.jpg);height:665px}body.admin_page_timeline-express-welcome .customize-your-timeline{padding-top:4%;background-image:url(../images/welcome/customize-your-timeline.jpg);height:665px}body.admin_page_timeline-express-welcome .slides{height:665px;overflow:hidden;position:relative;width:100%;padding:4% 0}body.admin_page_timeline-express-welcome .slides ul{list-style:none;position:relative}body.admin_page_timeline-express-welcome .slides ul li,body.admin_page_timeline-express-welcome .slides ul li h2.promo-text{position:absolute;-webkit-animation-duration:18s;-webkit-animation-timing-function:linear;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:normal;-webkit-animation-play-state:running;-webkit-animation-fill-mode:forwards;-moz-animation-duration:18s;-moz-animation-timing-function:linear;-moz-animation-iteration-count:infinite;-moz-animation-direction:normal;-moz-animation-play-state:running;-moz-animation-fill-mode:forwards}@-webkit-keyframes anim_slides{0%,100%,30%{opacity:0}24%,6%{opacity:1}}body.admin_page_timeline-express-welcome .slides ul li{width:100%;opacity:0;top:0;-webkit-animation-name:anim_slides;-webkit-animation-delay:0;-moz-animation-name:anim_slides;-moz-animation-delay:0}body.admin_page_timeline-express-welcome .slides ul li:nth-child(2),body.admin_page_timeline-express-welcome .slides ul li:nth-child(2) h2.promo-text{-webkit-animation-delay:6s;-moz-animation-delay:6s}body.admin_page_timeline-express-welcome .slides ul li:nth-child(3),body.admin_page_timeline-express-welcome .slides ul li:nth-child(3) h2.promo-text{-webkit-animation-delay:12s;-moz-animation-delay:12s}body.admin_page_timeline-express-welcome .slides ul li img{display:block}@-webkit-keyframes anim_titles{0%,100%,25%{left:5%;opacity:0}20%,5%{left:5%;opacity:1}}body.admin_page_timeline-express-welcome .slides ul li h2.promo-text{background-color:#000;border-radius:10px;box-shadow:0 0 3px #FFF inset;color:#FFF;font-size:18px;margin:0 auto;padding:10px;top:-35px;width:350px;text-align:center;-webkit-animation-name:anim_titles;-webkit-animation-delay:0;-moz-animation-name:anim_titles;-moz-animation-delay:0}.dashicons-heart{background:linear-gradient(top,#ff8cf7,#e2a5e0);-webkit-background-clip:text;-webkit-text-fill-color:transparent}#timeline-express-support-page-wrap{padding:2em}.te_announcements_page_timeline-express-settings .wrap{padding:0 2em}#timeline-express-support-page-wrap hr{margin:1.5em 0}#timeline-express-support-page-header{display:inline-block;width:100%}#timeline-express-support-page-header img.te-logo{max-width:128px;min-width:90px;width:20%;float:left}#timeline-express-support-page-header .support-subhead{display:block;margin:2em 0 0 1em;float:left;width:44%}#timeline-express-support-page-wrap #timeline_express_license_key{width:25%;min-width:400px}.timeline-express-valid-license{color:rgba(144,214,125,.68);font-size:28px}.purchase-support-license{margin-left:-.5em!important}.timeline-express-license-buttons{display:block;width:100%;margin-top:2em}.timeline-express-invalid-license-error{color:rgba(225,47,47,.73)}#premium-support-contact-form{float:left;width:33%;min-width:300px}#premium-support-contact-form form,#premium-support-contact-form form input,#premium-support-contact-form form label,#premium-support-contact-form form textarea{width:100%}#premium-support-contact-form form textarea{resize:vertical}#premium-support-contact-form form input[type=submit],#premium-support-contact-form form label{margin-top:1em;display:block}.license-expiring-soon{font-size:11px;color:#f34b4b;display:block}@media only screen and (max-width:1081px){#timeline_express_license_key{min-width:90%!important;width:90%!important}#premium-support-contact-form form input,#premium-support-contact-form form label,#premium-support-contact-form form textarea{width:100%}#premium-support-contact-form{margin:2em 0 0;float:left;width:100%}#timeline-express-support-page-wrap table.widefat.fixed{max-width:100%!important}#timeline-express-support-page-header .support-subhead{width:auto}#timeline-express-support-page-header .te-logo{min-width:140px!important;float:none!important;display:block;margin:0 auto}#timeline-express-support-page-header .support-subhead h1{line-height:1.2}}
lib/admin/js/min/timeline-express-admin.min.js CHANGED
@@ -1 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  function changeRandomTrimLengthCheckbox(){var a=jQuery('input[name="excerpt-random-length"]').prop("checked");"1"==a?(jQuery('input[name="excerpt-trim-length"]').fadeOut("fast",function(){jQuery('input[name="excerpt-random-length"]').css("margin-left","0em")}),jQuery("#random-lenth-text-container").removeClass("random-length-text")):(jQuery('input[name="excerpt-random-length"]').css("margin-left",".5em"),jQuery('input[name="excerpt-trim-length"]').fadeIn("fast"),jQuery("#random-lenth-text-container").addClass("random-length-text"))}function toggleDeleteCheckClass(){var a=jQuery('input[name="delete-announcement-posts-on-uninstallation"]').prop("checked");a===!0?(jQuery(".delete-no").addClass("delete-yes"),jQuery(".delete-yes").removeClass("delete-no")):(jQuery(".delete-yes").addClass("delete-no"),jQuery(".delete-no").removeClass("delete-yes"))}function toggle_delete_checkbox(){var a=jQuery('input[name="delete-announcement-posts-on-uninstallation"]').prop("checked");a===!1?(jQuery(".delete-no").addClass("delete-yes"),jQuery(".delete-yes").removeClass("delete-no"),jQuery('input[name="delete-announcement-posts-on-uninstallation"]').attr("checked",!0)):(jQuery(".delete-yes").addClass("delete-no"),jQuery(".delete-no").removeClass("delete-yes"),jQuery('input[name="delete-announcement-posts-on-uninstallation"]').attr("checked",!1))}!function(a){"use strict";function b(a,b){return a.toUpperCase().indexOf(b.toUpperCase())>-1}function c(b){var c=[{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}];return a.each(c,function(){b=b.replace(this.re,this.ch)}),b}function d(a){var b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c="(?:"+Object.keys(b).join("|")+")",d=new RegExp(c),e=new RegExp(c,"g"),f=null==a?"":""+a;return d.test(f)?f.replace(e,function(a){return b[a]}):f}function e(b,c){var d=arguments,e=b,b=d[0],c=d[1];[].shift.apply(d),"undefined"==typeof b&&(b=e);var g,h=this.each(function(){var e=a(this);if(e.is("select")){var h=e.data("selectpicker"),i="object"==typeof b&&b;if(h){if(i)for(var j in i)i.hasOwnProperty(j)&&(h.options[j]=i[j])}else{var k=a.extend({},f.DEFAULTS,a.fn.selectpicker.defaults||{},e.data(),i);e.data("selectpicker",h=new f(this,k,c))}"string"==typeof b&&(g=h[b]instanceof Function?h[b].apply(h,d):h.options[b])}});return"undefined"!=typeof g?g:h}a.expr[":"].icontains=function(c,d,e){return b(a(c).text(),e[3])},a.expr[":"].aicontains=function(c,d,e){return b(a(c).data("normalizedText")||a(c).text(),e[3])};var f=function(b,c,d){d&&(d.stopPropagation(),d.preventDefault()),this.$element=a(b),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=c,null===this.options.title&&(this.options.title=this.$element.attr("title")),this.val=f.prototype.val,this.render=f.prototype.render,this.refresh=f.prototype.refresh,this.setStyle=f.prototype.setStyle,this.selectAll=f.prototype.selectAll,this.deselectAll=f.prototype.deselectAll,this.destroy=f.prototype.remove,this.remove=f.prototype.remove,this.show=f.prototype.show,this.hide=f.prototype.hide,this.init()};f.VERSION="1.6.3",f.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results match",countSelectedText:function(a,b){return 1==a?"{0} item selected":"{0} items selected"},maxOptionsText:function(a,b){var c=[];return c[0]=1==a?"Limit reached ({n} item max)":"Limit reached ({n} items max)",c[1]=1==b?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)",c},selectAllText:"Select All",deselectAllText:"Deselect All",multipleSeparator:", ",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,actionsBox:!1,iconBase:"fa",tickIcon:"fa-ok",maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,searchAccentInsensitive:!1},f.prototype={constructor:f,init:function(){var b=this,c=this.$element.attr("id");this.$element.hide(),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement),this.$menu=this.$newElement.find("> .dropdown-menu"),this.$button=this.$newElement.find("> button"),this.$searchbox=this.$newElement.find("input"),this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right"),"undefined"!=typeof c&&(this.$button.attr("data-id",c),a('label[for="'+c+'"]').click(function(a){a.preventDefault(),b.$button.focus()})),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.liHeight(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile()},createDropdown:function(){var b=this.multiple?" show-tick":"",c=this.$element.parent().hasClass("input-group")?" input-group-btn":"",d=this.autofocus?" autofocus":"",e=this.$element.parents().hasClass("form-group-lg")?" btn-lg":this.$element.parents().hasClass("form-group-sm")?" btn-sm":"",f=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>":"",g=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="input-block-level form-control" autocomplete="off" /></div>':"",h=this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-block"><button class="actions-btn bs-select-all btn btn-sm btn-default">'+this.options.selectAllText+'</button><button class="actions-btn bs-deselect-all btn btn-sm btn-default">'+this.options.deselectAllText+"</button></div></div>":"",i='<div class="btn-group bootstrap-select'+b+c+'"><button type="button" class="btn dropdown-toggle selectpicker'+e+'" data-toggle="dropdown"'+d+'><span class="filter-option pull-left"></span>&nbsp;<span class="caret"></span></button><div class="dropdown-menu open">'+f+g+h+'<ul class="dropdown-menu inner selectpicker" role="menu"></ul></div></div>';return a(i)},createView:function(){var a=this.createDropdown(),b=this.createLi();return a.find("ul").append(b),a},reloadLi:function(){this.destroyLi();var a=this.createLi();this.$menu.find("ul").append(a)},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var b=this,e=[],f=0,g=function(a,b,c){return"<li"+("undefined"!=typeof c?' class="'+c+'"':"")+("undefined"!=typeof b|null===b?' data-original-index="'+b+'"':"")+">"+a+"</li>"},h=function(a,e,f,g){var h=c(d(a));return'<a tabindex="0"'+("undefined"!=typeof e?' class="'+e+'"':"")+("undefined"!=typeof f?' style="'+f+'"':"")+("undefined"!=typeof g?'data-optgroup="'+g+'"':"")+' data-normalized-text="'+h+'">'+a+'<span class="'+b.options.iconBase+" "+b.options.tickIcon+' check-mark"></span></a>'};return this.$element.find("option").each(function(){var c=a(this),d=c.attr("class")||"",i=c.attr("style"),j=c.data("content")?c.data("content"):c.html(),k="undefined"!=typeof c.data("subtext")?'<small class="muted text-muted">'+c.data("subtext")+"</small>":"",l="undefined"!=typeof c.data("icon")?'<span class="'+b.options.iconBase+" "+c.data("icon")+'"></span> ':"",m=c.is(":disabled")||c.parent().is(":disabled"),n=c[0].index;if(""!==l&&m&&(l="<span>"+l+"</span>"),c.data("content")||(j=l+'<span class="text">'+j+k+"</span>"),!b.options.hideDisabled||!m)if(c.parent().is("optgroup")&&c.data("divider")!==!0){if(0===c.index()){f+=1;var o=c.parent().attr("label"),p="undefined"!=typeof c.parent().data("subtext")?'<small class="muted text-muted">'+c.parent().data("subtext")+"</small>":"",q=c.parent().data("icon")?'<span class="'+b.options.iconBase+" "+c.parent().data("icon")+'"></span> ':"";o=q+'<span class="text">'+o+p+"</span>",0!==n&&e.length>0&&e.push(g("",null,"divider")),e.push(g(o,null,"dropdown-header"))}e.push(g(h(j,"opt "+d,i,f),n))}else c.data("divider")===!0?e.push(g("",n,"divider")):c.data("hidden")===!0?e.push(g(h(j,d,i),n,"hide is-hidden")):e.push(g(h(j,d,i),n))}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),a(e.join(""))},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(b){var c=this;b!==!1&&this.$element.find("option").each(function(b){c.setDisabled(b,a(this).is(":disabled")||a(this).parent().is(":disabled")),c.setSelected(b,a(this).is(":selected"))}),this.tabIndex();var e=this.options.hideDisabled?":not([disabled])":"",f=this.$element.find("option:selected"+e).map(function(){var b,d=a(this),e=d.data("icon")&&c.options.showIcon?'<i class="'+c.options.iconBase+" "+d.data("icon")+'"></i> ':"";return b=c.options.showSubtext&&d.attr("data-subtext")&&!c.multiple?' <small class="muted text-muted">'+d.data("subtext")+"</small>":"",d.data("content")&&c.options.showContent?d.data("content"):"undefined"!=typeof d.attr("title")?d.attr("title"):e+d.html()+b}).toArray(),g=this.multiple?f.join(this.options.multipleSeparator):f[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var h=this.options.selectedTextFormat.split(">");if(h.length>1&&f.length>h[1]||1==h.length&&f.length>=2){e=this.options.hideDisabled?", [disabled]":"";var i=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+e).length,j="function"==typeof this.options.countSelectedText?this.options.countSelectedText(f.length,i):this.options.countSelectedText;g=j.replace("{0}",f.length.toString()).replace("{1}",i.toString())}}this.options.title=this.$element.attr("title"),"static"==this.options.selectedTextFormat&&(g=this.options.title),g||(g="undefined"!=typeof this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",d(g)),this.$newElement.find(".filter-option").html(g)},setStyle:function(a,b){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|validate\[.*\]/gi,""));var c=a?a:this.options.style;"add"==b?this.$button.addClass(c):"remove"==b?this.$button.removeClass(c):(this.$button.removeClass(this.options.style),this.$button.addClass(c))},liHeight:function(){if(this.options.size!==!1){var a=this.$menu.parent().clone().find("> .dropdown-toggle").prop("autofocus",!1).end().appendTo("body"),b=a.addClass("open").find("> .dropdown-menu"),c=b.find("li").not(".divider").not(".dropdown-header").filter(":visible").children("a").outerHeight(),d=this.options.header?b.find(".popover-title").outerHeight():0,e=this.options.liveSearch?b.find(".bs-searchbox").outerHeight():0,f=this.options.actionsBox?b.find(".bs-actionsbox").outerHeight():0;a.remove(),this.$newElement.data("liHeight",c).data("headerHeight",d).data("searchHeight",e).data("actionsHeight",f)}},setSize:function(){this.findLis();var b,c,d,e=this,f=this.$menu,g=f.find(".inner"),h=this.$newElement.outerHeight(),i=this.$newElement.data("liHeight"),j=this.$newElement.data("headerHeight"),k=this.$newElement.data("searchHeight"),l=this.$newElement.data("actionsHeight"),m=this.$lis.filter(".divider").outerHeight(!0),n=parseInt(f.css("padding-top"))+parseInt(f.css("padding-bottom"))+parseInt(f.css("border-top-width"))+parseInt(f.css("border-bottom-width")),o=this.options.hideDisabled?", .disabled":"",p=a(window),q=n+parseInt(f.css("margin-top"))+parseInt(f.css("margin-bottom"))+2,r=function(){c=e.$newElement.offset().top-p.scrollTop(),d=p.height()-c-h};if(r(),this.options.header&&f.css("padding-top",0),"auto"==this.options.size){var s=function(){var a,h=e.$lis.not(".hide");r(),b=d-q,e.options.dropupAuto&&e.$newElement.toggleClass("dropup",c>d&&b-q<f.height()),e.$newElement.hasClass("dropup")&&(b=c-q),a=h.length+h.filter(".dropdown-header").length>3?3*i+q-2:0,f.css({"max-height":b+"px",overflow:"hidden","min-height":a+j+k+l+"px"}),g.css({"max-height":b-j-k-l-n+"px","overflow-y":"auto","min-height":Math.max(a-n,0)+"px"})};s(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",s),a(window).off("resize.getSize").on("resize.getSize",s),a(window).off("scroll.getSize").on("scroll.getSize",s)}else if(this.options.size&&"auto"!=this.options.size&&f.find("li"+o).length>this.options.size){var t=this.$lis.not(".divider"+o).find(" > *").slice(0,this.options.size).last().parent().index(),u=this.$lis.slice(0,t+1).filter(".divider").length;b=i*this.options.size+u*m+n,e.options.dropupAuto&&this.$newElement.toggleClass("dropup",c>d&&b<f.height()),f.css({"max-height":b+j+k+l+"px",overflow:"hidden"}),g.css({"max-height":b-n+"px","overflow-y":"auto"})}},setWidth:function(){if("auto"==this.options.width){this.$menu.css("min-width","0");var a=this.$newElement.clone().appendTo("body"),b=a.find("> .dropdown-menu").css("width"),c=a.css("width","auto").find("> button").css("width");a.remove(),this.$newElement.css("width",Math.max(parseInt(b),parseInt(c))+"px")}else"fit"==this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){var b,c,d=this,e="<div />",f=a(e),g=function(a){f.addClass(a.attr("class").replace(/form-control/gi,"")).toggleClass("dropup",a.hasClass("dropup")),b=a.offset(),c=a.hasClass("dropup")?0:a[0].offsetHeight,f.css({top:b.top+c,left:b.left,width:a[0].offsetWidth,position:"absolute"})};this.$newElement.on("click",function(){d.isDisabled()||(g(a(this)),f.appendTo(d.options.container),f.toggleClass("open",!a(this).hasClass("open")),f.append(d.$menu))}),a(window).resize(function(){g(d.$newElement)}),a(window).on("scroll",function(){g(d.$newElement)}),a("html").on("click",function(b){a(b.target).closest(d.$newElement).length<1&&f.removeClass("open")})},setSelected:function(a,b){this.findLis(),this.$lis.filter('[data-original-index="'+a+'"]').toggleClass("selected",b)},setDisabled:function(a,b){this.findLis(),b?this.$lis.filter('[data-original-index="'+a+'"]').addClass("disabled").find("a").attr("href","#").attr("tabindex",-1):this.$lis.filter('[data-original-index="'+a+'"]').removeClass("disabled").find("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element.is(":disabled")},checkDisabled:function(){var a=this;this.isDisabled()?this.$button.addClass("disabled").attr("tabindex",-1):(this.$button.hasClass("disabled")&&this.$button.removeClass("disabled"),-1==this.$button.attr("tabindex")&&(this.$element.data("tabindex")||this.$button.removeAttr("tabindex"))),this.$button.click(function(){return!a.isDisabled()})},tabIndex:function(){this.$element.is("[tabindex]")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")))},clickListener:function(){var b=this;this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(a){a.stopPropagation()}),this.$newElement.on("click",function(){b.setSize(),b.options.liveSearch||b.multiple||setTimeout(function(){b.$menu.find(".selected a").focus()},10)}),this.$menu.on("click","li a",function(c){var d=a(this),e=d.parent().data("originalIndex"),f=b.$element.val(),g=b.$element.prop("selectedIndex");if(b.multiple&&c.stopPropagation(),c.preventDefault(),!b.isDisabled()&&!d.parent().hasClass("disabled")){var h=b.$element.find("option"),i=h.eq(e),j=i.prop("selected"),k=i.parent("optgroup"),l=b.options.maxOptions,m=k.data("maxOptions")||!1;if(b.multiple){if(i.prop("selected",!j),b.setSelected(e,!j),d.blur(),l!==!1||m!==!1){var n=l<h.filter(":selected").length,o=m<k.find("option:selected").length;if(l&&n||m&&o)if(l&&1==l)h.prop("selected",!1),i.prop("selected",!0),b.$menu.find(".selected").removeClass("selected"),b.setSelected(e,!0);else if(m&&1==m){k.find("option:selected").prop("selected",!1),i.prop("selected",!0);var p=d.data("optgroup");b.$menu.find(".selected").has('a[data-optgroup="'+p+'"]').removeClass("selected"),b.setSelected(e,!0)}else{var q="function"==typeof b.options.maxOptionsText?b.options.maxOptionsText(l,m):b.options.maxOptionsText,r=q[0].replace("{n}",l),s=q[1].replace("{n}",m),t=a('<div class="notify"></div>');q[2]&&(r=r.replace("{var}",q[2][l>1?0:1]),s=s.replace("{var}",q[2][m>1?0:1])),i.prop("selected",!1),b.$menu.append(t),l&&n&&(t.append(a("<div>"+r+"</div>")),b.$element.trigger("maxReached.bs.select")),m&&o&&(t.append(a("<div>"+s+"</div>")),b.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){b.setSelected(e,!1)},10),t.delay(750).fadeOut(300,function(){a(this).remove()})}}}else h.prop("selected",!1),i.prop("selected",!0),b.$menu.find(".selected").removeClass("selected"),b.setSelected(e,!0);b.multiple?b.options.liveSearch&&b.$searchbox.focus():b.$button.focus(),(f!=b.$element.val()&&b.multiple||g!=b.$element.prop("selectedIndex")&&!b.multiple)&&b.$element.change()}}),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(a){a.target==this&&(a.preventDefault(),a.stopPropagation(),b.options.liveSearch?b.$searchbox.focus():b.$button.focus())}),this.$menu.on("click","li.divider, li.dropdown-header",function(a){a.preventDefault(),a.stopPropagation(),b.options.liveSearch?b.$searchbox.focus():b.$button.focus()}),this.$menu.on("click",".popover-title .close",function(){b.$button.focus()}),this.$searchbox.on("click",function(a){a.stopPropagation()}),this.$menu.on("click",".actions-btn",function(c){b.options.liveSearch?b.$searchbox.focus():b.$button.focus(),c.preventDefault(),c.stopPropagation(),a(this).is(".bs-select-all")?b.selectAll():b.deselectAll(),b.$element.change()}),this.$element.change(function(){b.render(!1)})},liveSearchListener:function(){var b=this,e=a('<li class="no-results"></li>');this.$newElement.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){b.$menu.find(".active").removeClass("active"),b.$searchbox.val()&&(b.$searchbox.val(""),b.$lis.not(".is-hidden").removeClass("hide"),e.parent().length&&e.remove()),b.multiple||b.$menu.find(".selected").addClass("active"),setTimeout(function(){b.$searchbox.focus()},10)}),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(a){a.stopPropagation()}),this.$searchbox.on("input propertychange",function(){b.$searchbox.val()?(b.options.searchAccentInsensitive?b.$lis.not(".is-hidden").removeClass("hide").find("a").not(":aicontains("+c(b.$searchbox.val())+")").parent().addClass("hide"):b.$lis.not(".is-hidden").removeClass("hide").find("a").not(":icontains("+b.$searchbox.val()+")").parent().addClass("hide"),b.$menu.find("li").filter(":visible:not(.no-results)").length?e.parent().length&&e.remove():(e.parent().length&&e.remove(),e.html(b.options.noneResultsText+' "'+d(b.$searchbox.val())+'"').show(),b.$menu.find("li").last().after(e))):(b.$lis.not(".is-hidden").removeClass("hide"),e.parent().length&&e.remove()),b.$menu.find("li.active").removeClass("active"),b.$menu.find("li").filter(":visible:not(.divider)").eq(0).addClass("active").find("a").focus(),a(this).focus()})},val:function(a){return"undefined"!=typeof a?(this.$element.val(a),this.render(),this.$element):this.$element.val()},selectAll:function(){this.findLis(),this.$lis.not(".divider").not(".disabled").not(".selected").filter(":visible").find("a").click()},deselectAll:function(){this.findLis(),this.$lis.not(".divider").not(".disabled").filter(".selected").filter(":visible").find("a").click()},keydown:function(b){var d,e,f,g,h,i,j,k,l,m=a(this),n=m.is("input")?m.parent().parent():m.parent(),o=n.data("this"),p={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};if(o.options.liveSearch&&(n=m.parent().parent()),o.options.container&&(n=o.$menu),d=a("[role=menu] li a",n),l=o.$menu.parent().hasClass("open"),!l&&/([0-9]|[A-z])/.test(String.fromCharCode(b.keyCode))&&(o.options.container?o.$newElement.trigger("click"):(o.setSize(),o.$menu.parent().addClass("open"),l=!0),o.$searchbox.focus()),o.options.liveSearch&&(/(^9$|27)/.test(b.keyCode.toString(10))&&l&&0===o.$menu.find(".active").length&&(b.preventDefault(),o.$menu.parent().removeClass("open"),o.$button.focus()),d=a("[role=menu] li:not(.divider):not(.dropdown-header):visible",n),m.val()||/(38|40)/.test(b.keyCode.toString(10))||0===d.filter(".active").length&&(d=o.options.searchAccentInsensitive?o.$newElement.find("li").filter(":aicontains("+c(p[b.keyCode])+")"):o.$newElement.find("li").filter(":icontains("+p[b.keyCode]+")"))),d.length){if(/(38|40)/.test(b.keyCode.toString(10)))e=d.index(d.filter(":focus")),g=d.parent(":not(.disabled):visible").first().index(),h=d.parent(":not(.disabled):visible").last().index(),f=d.eq(e).parent().nextAll(":not(.disabled):visible").eq(0).index(),i=d.eq(e).parent().prevAll(":not(.disabled):visible").eq(0).index(),j=d.eq(f).parent().prevAll(":not(.disabled):visible").eq(0).index(),o.options.liveSearch&&(d.each(function(b){a(this).is(":not(.disabled)")&&a(this).data("index",b)}),e=d.index(d.filter(".active")),g=d.filter(":not(.disabled):visible").first().data("index"),h=d.filter(":not(.disabled):visible").last().data("index"),f=d.eq(e).nextAll(":not(.disabled):visible").eq(0).data("index"),i=d.eq(e).prevAll(":not(.disabled):visible").eq(0).data("index"),j=d.eq(f).prevAll(":not(.disabled):visible").eq(0).data("index")),k=m.data("prevIndex"),38==b.keyCode&&(o.options.liveSearch&&(e-=1),e!=j&&e>i&&(e=i),g>e&&(e=g),e==k&&(e=h)),40==b.keyCode&&(o.options.liveSearch&&(e+=1),-1==e&&(e=0),e!=j&&f>e&&(e=f),e>h&&(e=h),e==k&&(e=g)),m.data("prevIndex",e),o.options.liveSearch?(b.preventDefault(),m.is(".dropdown-toggle")||(d.removeClass("active"),d.eq(e).addClass("active").find("a").focus(),m.focus())):d.eq(e).focus();else if(!m.is("input")){var q,r,s=[];d.each(function(){a(this).parent().is(":not(.disabled)")&&a.trim(a(this).text().toLowerCase()).substring(0,1)==p[b.keyCode]&&s.push(a(this).parent().index())}),q=a(document).data("keycount"),q++,a(document).data("keycount",q),r=a.trim(a(":focus").text().toLowerCase()).substring(0,1),r!=p[b.keyCode]?(q=1,a(document).data("keycount",q)):q>=s.length&&(a(document).data("keycount",0),q>s.length&&(q=1)),d.eq(s[q-1]).focus()}(/(13|32)/.test(b.keyCode.toString(10))||/(^9$)/.test(b.keyCode.toString(10))&&o.options.selectOnTab)&&l&&(/(32)/.test(b.keyCode.toString(10))||b.preventDefault(),o.options.liveSearch?/(32)/.test(b.keyCode.toString(10))||(o.$menu.find(".active a").click(),m.focus()):a(":focus").click(),a(document).data("keycount",0)),(/(^9$|27)/.test(b.keyCode.toString(10))&&l&&(o.multiple||o.options.liveSearch)||/(27)/.test(b.keyCode.toString(10))&&!l)&&(o.$menu.parent().removeClass("open"),o.$button.focus())}},mobile:function(){this.$element.addClass("mobile-device").appendTo(this.$newElement),this.options.container&&this.$menu.hide()},refresh:function(){this.$lis=null,this.reloadLi(),this.render(),this.setWidth(),this.setStyle(),this.checkDisabled(),this.liHeight()},update:function(){this.reloadLi(),this.setWidth(),this.setStyle(),this.checkDisabled(),this.liHeight()},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()}};var g=a.fn.selectpicker;a.fn.selectpicker=e,a.fn.selectpicker.Constructor=f,a.fn.selectpicker.noConflict=function(){return a.fn.selectpicker=g,this},a(document).data("keycount",0).on("keydown",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bs-searchbox input",f.prototype.keydown).on("focusin.modal",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bs-searchbox input",function(a){a.stopPropagation()}),a(window).on("load.bs.select.data-api",function(){a(".selectpicker").each(function(){var b=a(this);e.call(b,b.data())})})}(jQuery),jQuery(document).ready(function(){jQuery(".color-picker-field").length&&(jQuery(".color-picker-field").wpColorPicker(),jQuery(".meta-box-sortables").sortable({disabled:!0}),jQuery(".postbox .hndle").css("cursor","pointer"))});
1
+ /*
2
+ * @Plugin Timeline Express
3
+ * @Author Code Parrots
4
+ * @Site https://www.wp-timelineexpress.com
5
+ * @Version 1.2.8.4
6
+ * @Build 09-12-2016
7
+ */
8
+ /*
9
+ * @Plugin Timeline Express
10
+ * @Author Code Parrots
11
+ * @Site https://www.wp-timelineexpress.com
12
+ * @Version 1.2.8.4
13
+ * @Build 09-12-2016
14
+ */
15
+ /*
16
+ * @Plugin Timeline Express
17
+ * @Author Code Parrots
18
+ * @Site https://www.wp-timelineexpress.com
19
+ * @Version 1.2.8.4
20
+ * @Build 09-12-2016
21
+ */
22
+ /*
23
+ * @Plugin Timeline Express
24
+ * @Author Code Parrots
25
+ * @Site https://www.wp-timelineexpress.com
26
+ * @Version 1.2.8.4
27
+ * @Build 09-12-2016
28
+ */
29
+ /*
30
+ * @Plugin Timeline Express
31
+ * @Author Code Parrots
32
+ * @Site https://www.wp-timelineexpress.com
33
+ * @Version 1.2.8.4
34
+ * @Build 09-12-2016
35
+ */
36
+ /*
37
+ * @Plugin Timeline Express
38
+ * @Author Code Parrots
39
+ * @Site https://www.wp-timelineexpress.com
40
+ * @Version 1.2.8.4
41
+ * @Build 09-12-2016
42
+ */
43
  function changeRandomTrimLengthCheckbox(){var a=jQuery('input[name="excerpt-random-length"]').prop("checked");"1"==a?(jQuery('input[name="excerpt-trim-length"]').fadeOut("fast",function(){jQuery('input[name="excerpt-random-length"]').css("margin-left","0em")}),jQuery("#random-lenth-text-container").removeClass("random-length-text")):(jQuery('input[name="excerpt-random-length"]').css("margin-left",".5em"),jQuery('input[name="excerpt-trim-length"]').fadeIn("fast"),jQuery("#random-lenth-text-container").addClass("random-length-text"))}function toggleDeleteCheckClass(){var a=jQuery('input[name="delete-announcement-posts-on-uninstallation"]').prop("checked");a===!0?(jQuery(".delete-no").addClass("delete-yes"),jQuery(".delete-yes").removeClass("delete-no")):(jQuery(".delete-yes").addClass("delete-no"),jQuery(".delete-no").removeClass("delete-yes"))}function toggle_delete_checkbox(){var a=jQuery('input[name="delete-announcement-posts-on-uninstallation"]').prop("checked");a===!1?(jQuery(".delete-no").addClass("delete-yes"),jQuery(".delete-yes").removeClass("delete-no"),jQuery('input[name="delete-announcement-posts-on-uninstallation"]').attr("checked",!0)):(jQuery(".delete-yes").addClass("delete-no"),jQuery(".delete-no").removeClass("delete-yes"),jQuery('input[name="delete-announcement-posts-on-uninstallation"]').attr("checked",!1))}!function(a){"use strict";function b(a,b){return a.toUpperCase().indexOf(b.toUpperCase())>-1}function c(b){var c=[{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}];return a.each(c,function(){b=b.replace(this.re,this.ch)}),b}function d(a){var b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c="(?:"+Object.keys(b).join("|")+")",d=new RegExp(c),e=new RegExp(c,"g"),f=null==a?"":""+a;return d.test(f)?f.replace(e,function(a){return b[a]}):f}function e(b,c){var d=arguments,e=b,b=d[0],c=d[1];[].shift.apply(d),"undefined"==typeof b&&(b=e);var g,h=this.each(function(){var e=a(this);if(e.is("select")){var h=e.data("selectpicker"),i="object"==typeof b&&b;if(h){if(i)for(var j in i)i.hasOwnProperty(j)&&(h.options[j]=i[j])}else{var k=a.extend({},f.DEFAULTS,a.fn.selectpicker.defaults||{},e.data(),i);e.data("selectpicker",h=new f(this,k,c))}"string"==typeof b&&(g=h[b]instanceof Function?h[b].apply(h,d):h.options[b])}});return"undefined"!=typeof g?g:h}a.expr[":"].icontains=function(c,d,e){return b(a(c).text(),e[3])},a.expr[":"].aicontains=function(c,d,e){return b(a(c).data("normalizedText")||a(c).text(),e[3])};var f=function(b,c,d){d&&(d.stopPropagation(),d.preventDefault()),this.$element=a(b),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=c,null===this.options.title&&(this.options.title=this.$element.attr("title")),this.val=f.prototype.val,this.render=f.prototype.render,this.refresh=f.prototype.refresh,this.setStyle=f.prototype.setStyle,this.selectAll=f.prototype.selectAll,this.deselectAll=f.prototype.deselectAll,this.destroy=f.prototype.remove,this.remove=f.prototype.remove,this.show=f.prototype.show,this.hide=f.prototype.hide,this.init()};f.VERSION="1.6.3",f.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results match",countSelectedText:function(a,b){return 1==a?"{0} item selected":"{0} items selected"},maxOptionsText:function(a,b){var c=[];return c[0]=1==a?"Limit reached ({n} item max)":"Limit reached ({n} items max)",c[1]=1==b?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)",c},selectAllText:"Select All",deselectAllText:"Deselect All",multipleSeparator:", ",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,actionsBox:!1,iconBase:"fa",tickIcon:"fa-ok",maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,searchAccentInsensitive:!1},f.prototype={constructor:f,init:function(){var b=this,c=this.$element.attr("id");this.$element.hide(),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement),this.$menu=this.$newElement.find("> .dropdown-menu"),this.$button=this.$newElement.find("> button"),this.$searchbox=this.$newElement.find("input"),this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right"),"undefined"!=typeof c&&(this.$button.attr("data-id",c),a('label[for="'+c+'"]').click(function(a){a.preventDefault(),b.$button.focus()})),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.liHeight(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile()},createDropdown:function(){var b=this.multiple?" show-tick":"",c=this.$element.parent().hasClass("input-group")?" input-group-btn":"",d=this.autofocus?" autofocus":"",e=this.$element.parents().hasClass("form-group-lg")?" btn-lg":this.$element.parents().hasClass("form-group-sm")?" btn-sm":"",f=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>":"",g=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="input-block-level form-control" autocomplete="off" /></div>':"",h=this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-block"><button class="actions-btn bs-select-all btn btn-sm btn-default">'+this.options.selectAllText+'</button><button class="actions-btn bs-deselect-all btn btn-sm btn-default">'+this.options.deselectAllText+"</button></div></div>":"",i='<div class="btn-group bootstrap-select'+b+c+'"><button type="button" class="btn dropdown-toggle selectpicker'+e+'" data-toggle="dropdown"'+d+'><span class="filter-option pull-left"></span>&nbsp;<span class="caret"></span></button><div class="dropdown-menu open">'+f+g+h+'<ul class="dropdown-menu inner selectpicker" role="menu"></ul></div></div>';return a(i)},createView:function(){var a=this.createDropdown(),b=this.createLi();return a.find("ul").append(b),a},reloadLi:function(){this.destroyLi();var a=this.createLi();this.$menu.find("ul").append(a)},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var b=this,e=[],f=0,g=function(a,b,c){return"<li"+("undefined"!=typeof c?' class="'+c+'"':"")+("undefined"!=typeof b|null===b?' data-original-index="'+b+'"':"")+">"+a+"</li>"},h=function(a,e,f,g){var h=c(d(a));return'<a tabindex="0"'+("undefined"!=typeof e?' class="'+e+'"':"")+("undefined"!=typeof f?' style="'+f+'"':"")+("undefined"!=typeof g?'data-optgroup="'+g+'"':"")+' data-normalized-text="'+h+'">'+a+'<span class="'+b.options.iconBase+" "+b.options.tickIcon+' check-mark"></span></a>'};return this.$element.find("option").each(function(){var c=a(this),d=c.attr("class")||"",i=c.attr("style"),j=c.data("content")?c.data("content"):c.html(),k="undefined"!=typeof c.data("subtext")?'<small class="muted text-muted">'+c.data("subtext")+"</small>":"",l="undefined"!=typeof c.data("icon")?'<span class="'+b.options.iconBase+" "+c.data("icon")+'"></span> ':"",m=c.is(":disabled")||c.parent().is(":disabled"),n=c[0].index;if(""!==l&&m&&(l="<span>"+l+"</span>"),c.data("content")||(j=l+'<span class="text">'+j+k+"</span>"),!b.options.hideDisabled||!m)if(c.parent().is("optgroup")&&c.data("divider")!==!0){if(0===c.index()){f+=1;var o=c.parent().attr("label"),p="undefined"!=typeof c.parent().data("subtext")?'<small class="muted text-muted">'+c.parent().data("subtext")+"</small>":"",q=c.parent().data("icon")?'<span class="'+b.options.iconBase+" "+c.parent().data("icon")+'"></span> ':"";o=q+'<span class="text">'+o+p+"</span>",0!==n&&e.length>0&&e.push(g("",null,"divider")),e.push(g(o,null,"dropdown-header"))}e.push(g(h(j,"opt "+d,i,f),n))}else c.data("divider")===!0?e.push(g("",n,"divider")):c.data("hidden")===!0?e.push(g(h(j,d,i),n,"hide is-hidden")):e.push(g(h(j,d,i),n))}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),a(e.join(""))},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(b){var c=this;b!==!1&&this.$element.find("option").each(function(b){c.setDisabled(b,a(this).is(":disabled")||a(this).parent().is(":disabled")),c.setSelected(b,a(this).is(":selected"))}),this.tabIndex();var e=this.options.hideDisabled?":not([disabled])":"",f=this.$element.find("option:selected"+e).map(function(){var b,d=a(this),e=d.data("icon")&&c.options.showIcon?'<i class="'+c.options.iconBase+" "+d.data("icon")+'"></i> ':"";return b=c.options.showSubtext&&d.attr("data-subtext")&&!c.multiple?' <small class="muted text-muted">'+d.data("subtext")+"</small>":"",d.data("content")&&c.options.showContent?d.data("content"):"undefined"!=typeof d.attr("title")?d.attr("title"):e+d.html()+b}).toArray(),g=this.multiple?f.join(this.options.multipleSeparator):f[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var h=this.options.selectedTextFormat.split(">");if(h.length>1&&f.length>h[1]||1==h.length&&f.length>=2){e=this.options.hideDisabled?", [disabled]":"";var i=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+e).length,j="function"==typeof this.options.countSelectedText?this.options.countSelectedText(f.length,i):this.options.countSelectedText;g=j.replace("{0}",f.length.toString()).replace("{1}",i.toString())}}this.options.title=this.$element.attr("title"),"static"==this.options.selectedTextFormat&&(g=this.options.title),g||(g="undefined"!=typeof this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",d(g)),this.$newElement.find(".filter-option").html(g)},setStyle:function(a,b){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|validate\[.*\]/gi,""));var c=a?a:this.options.style;"add"==b?this.$button.addClass(c):"remove"==b?this.$button.removeClass(c):(this.$button.removeClass(this.options.style),this.$button.addClass(c))},liHeight:function(){if(this.options.size!==!1){var a=this.$menu.parent().clone().find("> .dropdown-toggle").prop("autofocus",!1).end().appendTo("body"),b=a.addClass("open").find("> .dropdown-menu"),c=b.find("li").not(".divider").not(".dropdown-header").filter(":visible").children("a").outerHeight(),d=this.options.header?b.find(".popover-title").outerHeight():0,e=this.options.liveSearch?b.find(".bs-searchbox").outerHeight():0,f=this.options.actionsBox?b.find(".bs-actionsbox").outerHeight():0;a.remove(),this.$newElement.data("liHeight",c).data("headerHeight",d).data("searchHeight",e).data("actionsHeight",f)}},setSize:function(){this.findLis();var b,c,d,e=this,f=this.$menu,g=f.find(".inner"),h=this.$newElement.outerHeight(),i=this.$newElement.data("liHeight"),j=this.$newElement.data("headerHeight"),k=this.$newElement.data("searchHeight"),l=this.$newElement.data("actionsHeight"),m=this.$lis.filter(".divider").outerHeight(!0),n=parseInt(f.css("padding-top"))+parseInt(f.css("padding-bottom"))+parseInt(f.css("border-top-width"))+parseInt(f.css("border-bottom-width")),o=this.options.hideDisabled?", .disabled":"",p=a(window),q=n+parseInt(f.css("margin-top"))+parseInt(f.css("margin-bottom"))+2,r=function(){c=e.$newElement.offset().top-p.scrollTop(),d=p.height()-c-h};if(r(),this.options.header&&f.css("padding-top",0),"auto"==this.options.size){var s=function(){var a,h=e.$lis.not(".hide");r(),b=d-q,e.options.dropupAuto&&e.$newElement.toggleClass("dropup",c>d&&b-q<f.height()),e.$newElement.hasClass("dropup")&&(b=c-q),a=h.length+h.filter(".dropdown-header").length>3?3*i+q-2:0,f.css({"max-height":b+"px",overflow:"hidden","min-height":a+j+k+l+"px"}),g.css({"max-height":b-j-k-l-n+"px","overflow-y":"auto","min-height":Math.max(a-n,0)+"px"})};s(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",s),a(window).off("resize.getSize").on("resize.getSize",s),a(window).off("scroll.getSize").on("scroll.getSize",s)}else if(this.options.size&&"auto"!=this.options.size&&f.find("li"+o).length>this.options.size){var t=this.$lis.not(".divider"+o).find(" > *").slice(0,this.options.size).last().parent().index(),u=this.$lis.slice(0,t+1).filter(".divider").length;b=i*this.options.size+u*m+n,e.options.dropupAuto&&this.$newElement.toggleClass("dropup",c>d&&b<f.height()),f.css({"max-height":b+j+k+l+"px",overflow:"hidden"}),g.css({"max-height":b-n+"px","overflow-y":"auto"})}},setWidth:function(){if("auto"==this.options.width){this.$menu.css("min-width","0");var a=this.$newElement.clone().appendTo("body"),b=a.find("> .dropdown-menu").css("width"),c=a.css("width","auto").find("> button").css("width");a.remove(),this.$newElement.css("width",Math.max(parseInt(b),parseInt(c))+"px")}else"fit"==this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){var b,c,d=this,e="<div />",f=a(e),g=function(a){f.addClass(a.attr("class").replace(/form-control/gi,"")).toggleClass("dropup",a.hasClass("dropup")),b=a.offset(),c=a.hasClass("dropup")?0:a[0].offsetHeight,f.css({top:b.top+c,left:b.left,width:a[0].offsetWidth,position:"absolute"})};this.$newElement.on("click",function(){d.isDisabled()||(g(a(this)),f.appendTo(d.options.container),f.toggleClass("open",!a(this).hasClass("open")),f.append(d.$menu))}),a(window).resize(function(){g(d.$newElement)}),a(window).on("scroll",function(){g(d.$newElement)}),a("html").on("click",function(b){a(b.target).closest(d.$newElement).length<1&&f.removeClass("open")})},setSelected:function(a,b){this.findLis(),this.$lis.filter('[data-original-index="'+a+'"]').toggleClass("selected",b)},setDisabled:function(a,b){this.findLis(),b?this.$lis.filter('[data-original-index="'+a+'"]').addClass("disabled").find("a").attr("href","#").attr("tabindex",-1):this.$lis.filter('[data-original-index="'+a+'"]').removeClass("disabled").find("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element.is(":disabled")},checkDisabled:function(){var a=this;this.isDisabled()?this.$button.addClass("disabled").attr("tabindex",-1):(this.$button.hasClass("disabled")&&this.$button.removeClass("disabled"),-1==this.$button.attr("tabindex")&&(this.$element.data("tabindex")||this.$button.removeAttr("tabindex"))),this.$button.click(function(){return!a.isDisabled()})},tabIndex:function(){this.$element.is("[tabindex]")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")))},clickListener:function(){var b=this;this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(a){a.stopPropagation()}),this.$newElement.on("click",function(){b.setSize(),b.options.liveSearch||b.multiple||setTimeout(function(){b.$menu.find(".selected a").focus()},10)}),this.$menu.on("click","li a",function(c){var d=a(this),e=d.parent().data("originalIndex"),f=b.$element.val(),g=b.$element.prop("selectedIndex");if(b.multiple&&c.stopPropagation(),c.preventDefault(),!b.isDisabled()&&!d.parent().hasClass("disabled")){var h=b.$element.find("option"),i=h.eq(e),j=i.prop("selected"),k=i.parent("optgroup"),l=b.options.maxOptions,m=k.data("maxOptions")||!1;if(b.multiple){if(i.prop("selected",!j),b.setSelected(e,!j),d.blur(),l!==!1||m!==!1){var n=l<h.filter(":selected").length,o=m<k.find("option:selected").length;if(l&&n||m&&o)if(l&&1==l)h.prop("selected",!1),i.prop("selected",!0),b.$menu.find(".selected").removeClass("selected"),b.setSelected(e,!0);else if(m&&1==m){k.find("option:selected").prop("selected",!1),i.prop("selected",!0);var p=d.data("optgroup");b.$menu.find(".selected").has('a[data-optgroup="'+p+'"]').removeClass("selected"),b.setSelected(e,!0)}else{var q="function"==typeof b.options.maxOptionsText?b.options.maxOptionsText(l,m):b.options.maxOptionsText,r=q[0].replace("{n}",l),s=q[1].replace("{n}",m),t=a('<div class="notify"></div>');q[2]&&(r=r.replace("{var}",q[2][l>1?0:1]),s=s.replace("{var}",q[2][m>1?0:1])),i.prop("selected",!1),b.$menu.append(t),l&&n&&(t.append(a("<div>"+r+"</div>")),b.$element.trigger("maxReached.bs.select")),m&&o&&(t.append(a("<div>"+s+"</div>")),b.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){b.setSelected(e,!1)},10),t.delay(750).fadeOut(300,function(){a(this).remove()})}}}else h.prop("selected",!1),i.prop("selected",!0),b.$menu.find(".selected").removeClass("selected"),b.setSelected(e,!0);b.multiple?b.options.liveSearch&&b.$searchbox.focus():b.$button.focus(),(f!=b.$element.val()&&b.multiple||g!=b.$element.prop("selectedIndex")&&!b.multiple)&&b.$element.change()}}),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(a){a.target==this&&(a.preventDefault(),a.stopPropagation(),b.options.liveSearch?b.$searchbox.focus():b.$button.focus())}),this.$menu.on("click","li.divider, li.dropdown-header",function(a){a.preventDefault(),a.stopPropagation(),b.options.liveSearch?b.$searchbox.focus():b.$button.focus()}),this.$menu.on("click",".popover-title .close",function(){b.$button.focus()}),this.$searchbox.on("click",function(a){a.stopPropagation()}),this.$menu.on("click",".actions-btn",function(c){b.options.liveSearch?b.$searchbox.focus():b.$button.focus(),c.preventDefault(),c.stopPropagation(),a(this).is(".bs-select-all")?b.selectAll():b.deselectAll(),b.$element.change()}),this.$element.change(function(){b.render(!1)})},liveSearchListener:function(){var b=this,e=a('<li class="no-results"></li>');this.$newElement.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){b.$menu.find(".active").removeClass("active"),b.$searchbox.val()&&(b.$searchbox.val(""),b.$lis.not(".is-hidden").removeClass("hide"),e.parent().length&&e.remove()),b.multiple||b.$menu.find(".selected").addClass("active"),setTimeout(function(){b.$searchbox.focus()},10)}),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(a){a.stopPropagation()}),this.$searchbox.on("input propertychange",function(){b.$searchbox.val()?(b.options.searchAccentInsensitive?b.$lis.not(".is-hidden").removeClass("hide").find("a").not(":aicontains("+c(b.$searchbox.val())+")").parent().addClass("hide"):b.$lis.not(".is-hidden").removeClass("hide").find("a").not(":icontains("+b.$searchbox.val()+")").parent().addClass("hide"),b.$menu.find("li").filter(":visible:not(.no-results)").length?e.parent().length&&e.remove():(e.parent().length&&e.remove(),e.html(b.options.noneResultsText+' "'+d(b.$searchbox.val())+'"').show(),b.$menu.find("li").last().after(e))):(b.$lis.not(".is-hidden").removeClass("hide"),e.parent().length&&e.remove()),b.$menu.find("li.active").removeClass("active"),b.$menu.find("li").filter(":visible:not(.divider)").eq(0).addClass("active").find("a").focus(),a(this).focus()})},val:function(a){return"undefined"!=typeof a?(this.$element.val(a),this.render(),this.$element):this.$element.val()},selectAll:function(){this.findLis(),this.$lis.not(".divider").not(".disabled").not(".selected").filter(":visible").find("a").click()},deselectAll:function(){this.findLis(),this.$lis.not(".divider").not(".disabled").filter(".selected").filter(":visible").find("a").click()},keydown:function(b){var d,e,f,g,h,i,j,k,l,m=a(this),n=m.is("input")?m.parent().parent():m.parent(),o=n.data("this"),p={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};if(o.options.liveSearch&&(n=m.parent().parent()),o.options.container&&(n=o.$menu),d=a("[role=menu] li a",n),l=o.$menu.parent().hasClass("open"),!l&&/([0-9]|[A-z])/.test(String.fromCharCode(b.keyCode))&&(o.options.container?o.$newElement.trigger("click"):(o.setSize(),o.$menu.parent().addClass("open"),l=!0),o.$searchbox.focus()),o.options.liveSearch&&(/(^9$|27)/.test(b.keyCode.toString(10))&&l&&0===o.$menu.find(".active").length&&(b.preventDefault(),o.$menu.parent().removeClass("open"),o.$button.focus()),d=a("[role=menu] li:not(.divider):not(.dropdown-header):visible",n),m.val()||/(38|40)/.test(b.keyCode.toString(10))||0===d.filter(".active").length&&(d=o.options.searchAccentInsensitive?o.$newElement.find("li").filter(":aicontains("+c(p[b.keyCode])+")"):o.$newElement.find("li").filter(":icontains("+p[b.keyCode]+")"))),d.length){if(/(38|40)/.test(b.keyCode.toString(10)))e=d.index(d.filter(":focus")),g=d.parent(":not(.disabled):visible").first().index(),h=d.parent(":not(.disabled):visible").last().index(),f=d.eq(e).parent().nextAll(":not(.disabled):visible").eq(0).index(),i=d.eq(e).parent().prevAll(":not(.disabled):visible").eq(0).index(),j=d.eq(f).parent().prevAll(":not(.disabled):visible").eq(0).index(),o.options.liveSearch&&(d.each(function(b){a(this).is(":not(.disabled)")&&a(this).data("index",b)}),e=d.index(d.filter(".active")),g=d.filter(":not(.disabled):visible").first().data("index"),h=d.filter(":not(.disabled):visible").last().data("index"),f=d.eq(e).nextAll(":not(.disabled):visible").eq(0).data("index"),i=d.eq(e).prevAll(":not(.disabled):visible").eq(0).data("index"),j=d.eq(f).prevAll(":not(.disabled):visible").eq(0).data("index")),k=m.data("prevIndex"),38==b.keyCode&&(o.options.liveSearch&&(e-=1),e!=j&&e>i&&(e=i),g>e&&(e=g),e==k&&(e=h)),40==b.keyCode&&(o.options.liveSearch&&(e+=1),-1==e&&(e=0),e!=j&&f>e&&(e=f),e>h&&(e=h),e==k&&(e=g)),m.data("prevIndex",e),o.options.liveSearch?(b.preventDefault(),m.is(".dropdown-toggle")||(d.removeClass("active"),d.eq(e).addClass("active").find("a").focus(),m.focus())):d.eq(e).focus();else if(!m.is("input")){var q,r,s=[];d.each(function(){a(this).parent().is(":not(.disabled)")&&a.trim(a(this).text().toLowerCase()).substring(0,1)==p[b.keyCode]&&s.push(a(this).parent().index())}),q=a(document).data("keycount"),q++,a(document).data("keycount",q),r=a.trim(a(":focus").text().toLowerCase()).substring(0,1),r!=p[b.keyCode]?(q=1,a(document).data("keycount",q)):q>=s.length&&(a(document).data("keycount",0),q>s.length&&(q=1)),d.eq(s[q-1]).focus()}(/(13|32)/.test(b.keyCode.toString(10))||/(^9$)/.test(b.keyCode.toString(10))&&o.options.selectOnTab)&&l&&(/(32)/.test(b.keyCode.toString(10))||b.preventDefault(),o.options.liveSearch?/(32)/.test(b.keyCode.toString(10))||(o.$menu.find(".active a").click(),m.focus()):a(":focus").click(),a(document).data("keycount",0)),(/(^9$|27)/.test(b.keyCode.toString(10))&&l&&(o.multiple||o.options.liveSearch)||/(27)/.test(b.keyCode.toString(10))&&!l)&&(o.$menu.parent().removeClass("open"),o.$button.focus())}},mobile:function(){this.$element.addClass("mobile-device").appendTo(this.$newElement),this.options.container&&this.$menu.hide()},refresh:function(){this.$lis=null,this.reloadLi(),this.render(),this.setWidth(),this.setStyle(),this.checkDisabled(),this.liHeight()},update:function(){this.reloadLi(),this.setWidth(),this.setStyle(),this.checkDisabled(),this.liHeight()},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()}};var g=a.fn.selectpicker;a.fn.selectpicker=e,a.fn.selectpicker.Constructor=f,a.fn.selectpicker.noConflict=function(){return a.fn.selectpicker=g,this},a(document).data("keycount",0).on("keydown",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bs-searchbox input",f.prototype.keydown).on("focusin.modal",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bs-searchbox input",function(a){a.stopPropagation()}),a(window).on("load.bs.select.data-api",function(){a(".selectpicker").each(function(){var b=a(this);e.call(b,b.data())})})}(jQuery),jQuery(document).ready(function(){jQuery(".color-picker-field").length&&(jQuery(".color-picker-field").wpColorPicker(),jQuery(".meta-box-sortables").sortable({disabled:!0}),jQuery(".postbox .hndle").css("cursor","pointer"))});
lib/admin/js/min/timeline-express-tinymce.min.js CHANGED
@@ -1 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  !function(){tinymce.PluginManager.add("timeline_express",function(a,b){function c(){this.disabled(!this.disabled()),a.insertContent("[timeline-express]")}a.on("keyup",function(){a.getContent().indexOf("[timeline-express]")>-1?a.controlManager.setDisabled("timeline_express_shortcode_button",!0):a.controlManager.setDisabled("timeline_express_shortcode_button",!1)}),a.addButton("timeline_express_shortcode_button",{title:"Timeline Express Shortcode",text:!1,image:b+"/../../images/timeline-express-menu-icon.png",onclick:c}),a.onSetContent.add(function(a,b){a.getContent().indexOf("[timeline-express]")>-1&&a.controlManager.setDisabled("timeline_express_shortcode_button",!0)})})}();
1
+ /*
2
+ * @Plugin Timeline Express
3
+ * @Author Code Parrots
4
+ * @Site https://www.wp-timelineexpress.com
5
+ * @Version 1.2.8.4
6
+ * @Build 09-12-2016
7
+ */
8
+ /*
9
+ * @Plugin Timeline Express
10
+ * @Author Code Parrots
11
+ * @Site https://www.wp-timelineexpress.com
12
+ * @Version 1.2.8.4
13
+ * @Build 09-12-2016
14
+ */
15
+ /*
16
+ * @Plugin Timeline Express
17
+ * @Author Code Parrots
18
+ * @Site https://www.wp-timelineexpress.com
19
+ * @Version 1.2.8.4
20
+ * @Build 09-12-2016
21
+ */
22
+ /*
23
+ * @Plugin Timeline Express
24
+ * @Author Code Parrots
25
+ * @Site https://www.wp-timelineexpress.com
26
+ * @Version 1.2.8.4
27
+ * @Build 09-12-2016
28
+ */
29
+ /*
30
+ * @Plugin Timeline Express
31
+ * @Author Code Parrots
32
+ * @Site https://www.wp-timelineexpress.com
33
+ * @Version 1.2.8.4
34
+ * @Build 09-12-2016
35
+ */
36
+ /*
37
+ * @Plugin Timeline Express
38
+ * @Author Code Parrots
39
+ * @Site https://www.wp-timelineexpress.com
40
+ * @Version 1.2.8.4
41
+ * @Build 09-12-2016
42
+ */
43
  !function(){tinymce.PluginManager.add("timeline_express",function(a,b){function c(){this.disabled(!this.disabled()),a.insertContent("[timeline-express]")}a.on("keyup",function(){a.getContent().indexOf("[timeline-express]")>-1?a.controlManager.setDisabled("timeline_express_shortcode_button",!0):a.controlManager.setDisabled("timeline_express_shortcode_button",!1)}),a.addButton("timeline_express_shortcode_button",{title:"Timeline Express Shortcode",text:!1,image:b+"/../../images/timeline-express-menu-icon.png",onclick:c}),a.onSetContent.add(function(a,b){a.getContent().indexOf("[timeline-express]")>-1&&a.controlManager.setDisabled("timeline_express_shortcode_button",!0)})})}();
lib/classes/class.timeline-express-initialize.php CHANGED
@@ -28,8 +28,7 @@ class Timeline_Express_Initialize {
28
  */
29
  /* Scripts */
30
  wp_enqueue_script( 'jquery-masonry' );
31
- wp_enqueue_script( 'jquery-collision', TIMELINE_EXPRESS_URL . 'lib/public/js/min/jquery-collision.min.js', array( 'jquery-masonry' ) );
32
- wp_enqueue_script( 'timeline-express-js-base', TIMELINE_EXPRESS_URL . 'lib/public/js/min/timeline-express.min.js', array( 'jquery-collision' ) );
33
  /* pass the disabled state to our script */
34
  wp_localize_script( 'timeline-express-js-base', 'timeline_express_data', array(
35
  'animation_disabled' => $animation_disabled,
28
  */
29
  /* Scripts */
30
  wp_enqueue_script( 'jquery-masonry' );
31
+ wp_enqueue_script( 'timeline-express-js-base', TIMELINE_EXPRESS_URL . 'lib/public/js/min/timeline-express.min.js', array( 'jquery-masonry' ) );
 
32
  /* pass the disabled state to our script */
33
  wp_localize_script( 'timeline-express-js-base', 'timeline_express_data', array(
34
  'animation_disabled' => $animation_disabled,
lib/helpers.php CHANGED
@@ -27,6 +27,20 @@ add_action( 'cmb2_render_te_bootstrap_dropdown', 'cmb2_render_callback_te_bootst
27
  add_filter( 'cmb2_sanitize_te_date_time_stamp_custom', 'cmb2_sanitize_te_date_time_stamp_custom_callback', 10, 2 );
28
  /* Sanitize custom bootstrap icons dropdown field */
29
  add_filter( 'cmb2_sanitize_te_bootstrap_dropdown', 'cmb2_validate_te_bootstrap_dropdown_callback', 10, 2 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  /**
31
  * Retreive plugin settings from the database
32
  *
@@ -280,6 +294,15 @@ function get_timeline_express_template( $template_name = 'timeline-container' )
280
  case 'single-announcement':
281
  $file_name = 'single-timeline-express-content';
282
  break;
 
 
 
 
 
 
 
 
 
283
  }
284
  // check for and load file
285
  if ( file_exists( get_stylesheet_directory() . '/timeline-express/' . $file_name . '.php' ) ) {
@@ -528,4 +551,45 @@ function timeline_express_get_custom_meta( $post_id, $meta_name, $array = true )
528
  /* Return the post meta, or false if nothing was found */
529
  return ( get_post_meta( $post_id, $meta_name, $array ) ) ? get_post_meta( $post_id, $meta_name, $array ) : false;
530
  }
531
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  add_filter( 'cmb2_sanitize_te_date_time_stamp_custom', 'cmb2_sanitize_te_date_time_stamp_custom_callback', 10, 2 );
28
  /* Sanitize custom bootstrap icons dropdown field */
29
  add_filter( 'cmb2_sanitize_te_bootstrap_dropdown', 'cmb2_validate_te_bootstrap_dropdown_callback', 10, 2 );
30
+
31
+ /*
32
+ * Output the Start and End content wrappers on the single timeline express template
33
+ * @since 1.2.8.5
34
+ */
35
+ add_action( 'timeline_express_before_main_content', 'timeline_express_generate_page_wrapper_start', 10 );
36
+ add_action( 'timeline_express_after_main_content', 'timeline_express_generate_page_wrapper_end', 10 );
37
+
38
+ /**
39
+ * Output the Timeline Express Sidebar on the single announcement template
40
+ * @since 1.2.8.5
41
+ */
42
+ add_action( 'timeline_express_sidebar', 'timeline_express_generate_sidebar', 10 );
43
+
44
  /**
45
  * Retreive plugin settings from the database
46
  *
294
  case 'single-announcement':
295
  $file_name = 'single-timeline-express-content';
296
  break;
297
+ case 'page-wrappers-start':
298
+ $file_name = 'timeline-express-page-wrappers-start';
299
+ break;
300
+ case 'page-wrappers-end':
301
+ $file_name = 'timeline-express-page-wrappers-end';
302
+ break;
303
+ case 'timeline-express-sidebar':
304
+ $file_name = 'timeline-express-sidebar';
305
+ break;
306
  }
307
  // check for and load file
308
  if ( file_exists( get_stylesheet_directory() . '/timeline-express/' . $file_name . '.php' ) ) {
551
  /* Return the post meta, or false if nothing was found */
552
  return ( get_post_meta( $post_id, $meta_name, $array ) ) ? get_post_meta( $post_id, $meta_name, $array ) : false;
553
  }
554
+
555
+ if ( ! function_exists( 'timeline_express_generate_page_wrapper_start' ) ) {
556
+
557
+ /**
558
+ * Generate the Timeline Express beginning page wrappers
559
+ * @return mixed
560
+ */
561
+ function timeline_express_generate_page_wrapper_start() {
562
+
563
+ get_timeline_express_template( 'page-wrappers-start' );
564
+
565
+ }
566
+
567
+ }
568
+
569
+ if ( ! function_exists( 'timeline_express_generate_page_wrapper_end' ) ) {
570
+
571
+ /**
572
+ * Generate the Timeline Express ending page wrappers
573
+ * @return mixed
574
+ */
575
+ function timeline_express_generate_page_wrapper_end() {
576
+
577
+ get_timeline_express_template( 'page-wrappers-end' );
578
+
579
+ }
580
+
581
+ }
582
+
583
+ if ( ! function_exists( 'timeline_express_generate_sidebar' ) ) {
584
+
585
+ /**
586
+ * Generate the Timeline Express ending page wrappers
587
+ * @return mixed
588
+ */
589
+ function timeline_express_generate_sidebar() {
590
+
591
+ get_timeline_express_template( 'timeline-express-sidebar' );
592
+
593
+ }
594
+
595
+ }
lib/public/css/min/timeline-express.min.css CHANGED
@@ -1,8 +1,8 @@
1
- /*
2
- * @Plugin Timeline Express
3
- * @Author Code Parrots
4
- * @Site https://www.wp-timelineexpress.com
5
- * @Version 1.2.8.4
6
- * @Build 08-13-2016
7
- */
8
- .cd-container{width:95%;margin:0 auto}.cd-container::after{content:'';display:table;clear:both}.cd-timeline-announcement-image{box-shadow:none!important;width:100%;display:block;margin:1em auto}#cd-timeline{position:relative;padding:2em 0;margin-top:2em;margin-bottom:3em;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);-moz-opacity:0;-khtml-opacity:0;opacity:0}#cd-timeline::before{content:'';position:absolute;top:0;left:18px;height:100%;width:4px;background:#d7e4ed}.cd-timeline-block:after,.cd-timeline-content:after{content:"";clear:both}.announcement-banner-image{margin-bottom:5px;border-radius:3px}.timeline-express-single-page-announcement-date{display:block;margin-bottom:1em}@media only screen and (min-width:822px){#cd-timeline{margin-top:3em;margin-bottom:5.5em}#cd-timeline::before{left:50%;margin-left:-2px}}.cd-timeline-block{margin:25px 0;width:100%!important}.cd-timeline-block:after{display:table}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-block:last-child{margin-bottom:0}@media only screen and (min-width:822px){.cd-timeline-block{width:100%;margin:-3.5em 0}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-block:last-child{margin-bottom:0}}.cd-timeline-img{position:absolute;top:-5px;left:-10px;height:55px;width:55px;border-radius:50%;box-shadow:0 0 0 4px #fff,inset 0 2px 0 rgba(0,0,0,.08),0 3px 0 4px rgba(0,0,0,.05)}.cd-timeline-img span.year{display:inline-block;width:100%;height:100%;text-align:center;line-height:55px}.cd-timeline-img img{display:block;position:relative;left:50%;top:50%;margin-left:-12px;margin-top:-12px}.cd-timeline-img.cd-picture{background:#75ce66}.cd-timeline-img.cd-movie{background:#c03b44}.cd-timeline-img.cd-location{background:#f0ca45}@media only screen and (min-width:822px){.cd-timeline-img{width:60px;height:60px;left:50%;margin-left:-30px;-webkit-transform:translateZ(0);-webkit-backface-visibility:hidden}.cd-timeline-img span.year{display:inline-block;width:100%;height:100%;line-height:60px;text-align:center}.cssanimations .cd-timeline-img.is-hidden{visibility:hidden}.cssanimations .cd-timeline-img.bounce-in{visibility:visible;animation:cd-bounce-1 .6s}}@keyframes cd-bounce-1{0%{opacity:0;transform:scale(.5)}60%{opacity:1;transform:scale(1.2)}100%{transform:scale(1)}}.cd-timeline-content{position:relative;margin-left:60px;background:#fff;border-radius:.25em;padding:1em;box-shadow:0 3px 0 #B9C5CD;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box}.cd-timeline-content:after{display:table}.cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:9999}.cd-timeline-content .cd-date{float:left;padding:.8em 0;opacity:.7;font-size:12px}.cd-timeline-title-container{display:inline-block;width:100%;float:left}.cd-timeline-title-container+.the-excerpt,.cd-timeline-title-container+img{margin-top:5px}.cd-timeline-content .timeline-date{display:block;margin:5px 0}.cd-timeline-content::before{content:'';position:absolute;top:16px;right:100%;height:0;width:0;border:12px solid transparent}@media only screen and (min-width:768px){.cd-timeline-content h2{margin-top:0;margin-bottom:0}.cd-timeline-content .the-excerpt{position:relative;display:block;float:left;width:100%;z-index:9}.cd-timeline-content .cd-date,.cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:10}}@media only screen and (min-width:822px){.cd-container{width:100%}.cd-timeline-content{margin-left:0;padding:1.6em;width:42.5%;background:#EFEFEF}.cd-timeline-content::before{top:12px;left:100%;border-color:transparent transparent transparent #EFEFEF}.cd-timeline-content .cd-date{position:absolute;width:100%;left:125%;top:15px}.cd-timeline-block:nth-child(even) .cd-timeline-content{float:right}.cd-timeline-block:nth-child(even) .cd-timeline-content::before{top:12px;left:auto;right:100%;border-color:transparent #EFEFEF transparent transparent}.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date{left:auto;right:125%;text-align:right}.cssanimations .cd-timeline-content.is-hidden{visibility:hidden}.cssanimations .cd-timeline-content.bounce-in{visibility:visible;animation:cd-bounce-2 .6s}.cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in{animation:cd-bounce-2-inverse .6s}}@keyframes cd-bounce-2{0%{opacity:0;transform:translateX(-100px)}60%{opacity:1;transform:translateX(20px)}100%{transform:translateX(0)}}@keyframes cd-bounce-2-inverse{0%{opacity:0;transform:translateX(100px)}60%{opacity:1;transform:translateX(-20px)}100%{transform:translateX(0)}}.more-to-come-container{position:relative;background:#EFEFEF;display:block;width:100%;text-align:center}.more-to-come{margin:10em 0 0;padding:1em 0;font-weight:200;color:rgba(100,100,100,.46)}.page article.page{background:0 0!important;box-shadow:none;border:none;-webkit-box-shadow:none}#cd-timeline span.fa{color:#fff;font-size:28px;display:block;text-align:center;margin-top:17px}.cd-timeline-icon-link{color:#fff!important}@media only screen and (max-width:821px){#cd-timeline span.fa{color:#fff;font-size:24px;display:block;text-align:center;margin-top:15px}.cd-timeline-block:nth-child(even) .cd-timeline-content .timeline-express-read-more-link,.cd-timeline-block:nth-child(odd) .cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:10}.cd-timeline-content::before{border:9px solid transparent}}.timeline-width100{width:100%}.timeline-width34{width:34%}.timeline-width30{width:30%}.timeline-date-left{width:100%;float:left!important}body.single-te_announcements .timeline-express-content-area{width:100%}body.single-te_announcements .timeline-express-main{max-width:960px}body.single-te_announcements .announcement-banner-image{width:auto}body.single-te_announcements .timeline-express-single-page-announcement-date{display:block;margin:.5em 0}body.single-te_announcements .timeline-express-single-page-content{margin:.5em 0 1em}body.single-te_announcements nav.navigation.post-navigation{display:none}
1
+ /*
2
+ * @Plugin Timeline Express
3
+ * @Author Code Parrots
4
+ * @Site https://www.wp-timelineexpress.com
5
+ * @Version 1.2.8.4
6
+ * @Build 09-12-2016
7
+ */
8
+ .cd-container{width:95%;margin:0 auto}.cd-container::after{content:'';display:table;clear:both}.cd-timeline-announcement-image{box-shadow:none!important;width:100%;display:block;margin:1em auto}#cd-timeline{position:relative;padding:2em 0;margin-top:2em;margin-bottom:3em;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);-moz-opacity:0;-khtml-opacity:0;opacity:0}#cd-timeline::before{content:'';position:absolute;top:0;left:18px;height:100%;width:4px;background:#d7e4ed}.cd-timeline-block:after,.cd-timeline-content:after{content:"";clear:both}.announcement-banner-image{margin-bottom:5px;border-radius:3px}.timeline-express-single-page-announcement-date{display:block;margin-bottom:1em}@media only screen and (min-width:822px){#cd-timeline{margin-top:3em;margin-bottom:5.5em}#cd-timeline::before{left:50%;margin-left:-2px}}.cd-timeline-block{margin:25px 0;width:100%!important}.cd-timeline-block:after{display:table}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-block:last-child{margin-bottom:0}@media only screen and (min-width:822px){.cd-timeline-block{width:100%;margin:-3.5em 0}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-block:last-child{margin-bottom:0}}.cd-timeline-img{position:absolute;top:-5px;left:-10px;height:55px;width:55px;border-radius:50%;box-shadow:0 0 0 4px #fff,inset 0 2px 0 rgba(0,0,0,.08),0 3px 0 4px rgba(0,0,0,.05)}.cd-timeline-img span.year{display:inline-block;width:100%;height:100%;text-align:center;line-height:55px}.cd-timeline-img img{display:block;position:relative;left:50%;top:50%;margin-left:-12px;margin-top:-12px}.cd-timeline-img.cd-picture{background:#75ce66}.cd-timeline-img.cd-movie{background:#c03b44}.cd-timeline-img.cd-location{background:#f0ca45}@media only screen and (min-width:822px){.cd-timeline-img{width:60px;height:60px;left:50%;margin-left:-30px;-webkit-transform:translateZ(0);-webkit-backface-visibility:hidden}.cd-timeline-img span.year{display:inline-block;width:100%;height:100%;line-height:60px;text-align:center}.cssanimations .cd-timeline-img.is-hidden{visibility:hidden}.cssanimations .cd-timeline-img.bounce-in{visibility:visible;animation:cd-bounce-1 .6s}}@keyframes cd-bounce-1{0%{opacity:0;transform:scale(.5)}60%{opacity:1;transform:scale(1.2)}100%{transform:scale(1)}}.cd-timeline-content{position:relative;margin-left:60px;background:#fff;border-radius:.25em;padding:1em;box-shadow:0 3px 0 #B9C5CD;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box}.cd-timeline-content:after{display:table}.cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:9999}.cd-timeline-content .cd-date{float:left;padding:.8em 0;opacity:.7;font-size:12px}.cd-timeline-title-container{display:inline-block;width:100%;float:left}.cd-timeline-title-container+.the-excerpt,.cd-timeline-title-container+img{margin-top:5px}.cd-timeline-content .timeline-date{display:block;margin:5px 0}.cd-timeline-content::before{content:'';position:absolute;top:16px;right:100%;height:0;width:0;border:12px solid transparent}@media only screen and (min-width:768px){.cd-timeline-content h2{margin-top:0;margin-bottom:0}.cd-timeline-content .the-excerpt{position:relative;display:block;float:left;width:100%;z-index:9}.cd-timeline-content .cd-date,.cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:10}}@media only screen and (min-width:822px){.cd-container{width:100%}.cd-timeline-content{margin-left:0;padding:1.6em;width:42.5%;background:#EFEFEF}.cd-timeline-content::before{top:12px;left:100%;border-color:transparent transparent transparent #EFEFEF}.cd-timeline-content .cd-date{position:absolute;width:100%;left:125%;top:15px}.cd-timeline-block:nth-child(even) .cd-timeline-content{float:right}.cd-timeline-block:nth-child(even) .cd-timeline-content::before{top:12px;left:auto;right:100%;border-color:transparent #EFEFEF transparent transparent}.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date{left:auto;right:125%;text-align:right}.cssanimations .cd-timeline-content.is-hidden{visibility:hidden}.cssanimations .cd-timeline-content.bounce-in{visibility:visible;animation:cd-bounce-2 .6s}.cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in{animation:cd-bounce-2-inverse .6s}}@keyframes cd-bounce-2{0%{opacity:0;transform:translateX(-100px)}60%{opacity:1;transform:translateX(20px)}100%{transform:translateX(0)}}@keyframes cd-bounce-2-inverse{0%{opacity:0;transform:translateX(100px)}60%{opacity:1;transform:translateX(-20px)}100%{transform:translateX(0)}}.more-to-come-container{position:relative;background:#EFEFEF;display:block;width:100%;text-align:center}.more-to-come{margin:10em 0 0;padding:1em 0;font-weight:200;color:rgba(100,100,100,.46)}.page article.page{background:0 0!important;box-shadow:none;border:none;-webkit-box-shadow:none}#cd-timeline span.fa{color:#fff;font-size:28px;display:block;text-align:center;margin-top:17px}.cd-timeline-icon-link{color:#fff!important}@media only screen and (max-width:821px){#cd-timeline span.fa{color:#fff;font-size:24px;display:block;text-align:center;margin-top:15px}.cd-timeline-block:nth-child(even) .cd-timeline-content .timeline-express-read-more-link,.cd-timeline-block:nth-child(odd) .cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:10}.cd-timeline-content::before{border:9px solid transparent}}.timeline-width100{width:100%}.timeline-width34{width:34%}.timeline-width30{width:30%}.timeline-date-left{width:100%;float:left!important}body.single-te_announcements .timeline-express-content-area{width:100%}body.single-te_announcements .timeline-express-main{max-width:960px}body.single-te_announcements .announcement-banner-image{width:auto}body.single-te_announcements .timeline-express-single-page-announcement-date{display:block;margin:.5em 0}body.single-te_announcements .timeline-express-single-page-content{margin:.5em 0 1em}body.single-te_announcements nav.navigation.post-navigation{display:none}body.single-te_announcements .content-area.twentyfifteen article.te_announcements .entry-header h1{margin-top:0}
lib/public/css/timeline-express-single-page.css CHANGED
@@ -22,4 +22,8 @@ body.single-te_announcements .timeline-express-single-page-content {
22
  body.single-te_announcements nav.navigation.post-navigation {
23
  display: none;
24
  }
25
- /*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRpbWVsaW5lLWV4cHJlc3Mtc2luZ2xlLXBhZ2UuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0NBQ0EsWUFBQTtDQUNDOztDQUVEO0VBQ0EsaUJBQUE7RUFDQTs7Q0FFQTtFQUNBLFlBQUE7RUFDQTs7QUFFQTtDQUNBLGVBQUE7Q0FDQyxlQUFBO0NBQ0E7O0FBRUQ7Q0FDQyxxQkFBYztDQUNkOztBQUVEO0NBQ0MsY0FBYztDQUNkIiwiZmlsZSI6InRpbWVsaW5lLWV4cHJlc3Mtc2luZ2xlLXBhZ2UuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyogU2luZ2xlLXRlX2Fubm91bmNlbWVudHMgU3R5bGVzICovXG4uc2luZ2xlLXRlX2Fubm91bmNlbWVudHMgaW1nLmFubm91bmNlbWVudC1iYW5uZXItaW1hZ2Uge1xuXHRmbG9hdDogbGVmdDtcblx0bWFyZ2luOiA1cHggMTVweCAxNXB4IDA7XG59Il19 */
 
 
 
 
22
  body.single-te_announcements nav.navigation.post-navigation {
23
  display: none;
24
  }
25
+
26
+ body.single-te_announcements .content-area.twentyfifteen article.te_announcements .entry-header h1 {
27
+ margin-top: 0;
28
+ }
29
+ /*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRpbWVsaW5lLWV4cHJlc3Mtc2luZ2xlLXBhZ2UuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0NBQ0EsWUFBQTtDQUNDOztDQUVEO0VBQ0EsaUJBQUE7RUFDQTs7Q0FFQTtFQUNBLFlBQUE7RUFDQTs7QUFFQTtDQUNBLGVBQUE7Q0FDQyxlQUFBO0NBQ0E7O0FBRUQ7Q0FDQyxxQkFBYztDQUNkOztBQUVEO0NBQ0MsY0FBYztDQUNkIiwiZmlsZSI6InRpbWVsaW5lLWV4cHJlc3Mtc2luZ2xlLXBhZ2UuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyogU2luZ2xlLXRlX2Fubm91bmNlbWVudHMgU3R5bGVzICovXG4uc2luZ2xlLXRlX2Fubm91bmNlbWVudHMgaW1nLmFubm91bmNlbWVudC1iYW5uZXItaW1hZ2Uge1xuXHRmbG9hdDogbGVmdDtcblx0bWFyZ2luOiA1cHggMTVweCAxNXB4IDA7XG59Il19 */
lib/public/js/jquery-collision.js DELETED
@@ -1,394 +0,0 @@
1
- /*
2
- Copyright (c) 2011 Sean Cusack
3
-
4
- MIT-LICENSE:
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining
7
- a copy of this software and associated documentation files (the
8
- "Software"), to deal in the Software without restriction, including
9
- without limitation the rights to use, copy, modify, merge, publish,
10
- distribute, sublicense, and/or sell copies of the Software, and to
11
- permit persons to whom the Software is furnished to do so, subject to
12
- the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be
15
- included in all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
- */
25
-
26
- (function($){
27
-
28
- //
29
- // Private classes
30
- //
31
-
32
- function CollisionCoords( proto, containment )
33
- {
34
- if( ! proto )
35
- {
36
- // default if nothing else:
37
- this.x1 = this.y1 = this.x2 = this.y2 = 0;
38
- this.proto = null;
39
- }
40
- else if( "offset" in proto )
41
- {
42
- // used to grab stuff from a jquery object
43
- // if it has collision-coordinates data, use that
44
- // otherwise just pull in the offset
45
-
46
- var d = proto.data("jquery-collision-coordinates");
47
- if( d )
48
- {
49
- this.x1 = d.x1;
50
- this.y1 = d.y1;
51
- this.x2 = d.x2;
52
- this.y2 = d.y2;
53
- }
54
- else if( containment && containment.length && containment.length >= 4 )
55
- {
56
- this.x1 = containment[0];
57
- this.y1 = containment[1];
58
- this.x2 = containment[2]+proto.outerWidth(true);
59
- this.y2 = containment[3]+proto.outerHeight(true);
60
- }
61
- else if( proto.parent().length <= 0 )
62
- {
63
- this.x1 = parseInt(proto.css("left" )) || 0;
64
- this.y1 = parseInt(proto.css("top" )) || 0;
65
- this.x2 = parseInt(proto.css("width" )) || 0;
66
- this.y2 = parseInt(proto.css("height")) || 0;
67
- this.x2 += this.x1;
68
- this.x2 += (parseInt(proto.css("margin-left"))||0) + (parseInt(proto.css("border-left"))||0) + (parseInt(proto.css("padding-left"))||0) +
69
- (parseInt(proto.css("padding-right"))||0) + (parseInt(proto.css("border-right"))||0) + (parseInt(proto.css("margin-right"))||0);
70
- this.y2 += this.y1;
71
- this.y2 += (parseInt(proto.css("margin-top"))||0) + (parseInt(proto.css("border-top"))||0) + (parseInt(proto.css("padding-top"))||0) +
72
- (parseInt(proto.css("padding-bottom"))||0) + (parseInt(proto.css("border-bottom"))||0) + (parseInt(proto.css("margin-bottom"))||0);
73
- }
74
- else
75
- {
76
- var o = proto.offset();
77
- this.x1 = o.left - (parseInt(proto.css("margin-left"))||0); // not also border -- offset starts from inside margin but outside border
78
- this.y1 = o.top - (parseInt(proto.css("margin-top" ))||0); // not also border -- offset starts from inside margin but outside border
79
- this.x2 = this.x1 + proto.outerWidth(true);
80
- this.y2 = this.y1 + proto.outerHeight(true);
81
- }
82
- this.proto = proto;
83
- }
84
- else if( "x1" in proto )
85
- {
86
- // used to effectively "clone"
87
- this.x1 = proto.x1;
88
- this.y1 = proto.y1;
89
- this.x2 = proto.x2;
90
- this.y2 = proto.y2;
91
- this.proto = proto;
92
- }
93
-
94
- if( "dir" in proto )
95
- {
96
- this.dir = proto.dir;
97
- }
98
- }
99
-
100
- CollisionCoords.prototype.innerContainer = function()
101
- {
102
- var clone = new CollisionCoords( this );
103
- if( this.proto["css"] )
104
- {
105
- clone.x1 += parseInt( this.proto.css( "margin-left" ) ) || 0;
106
- clone.x1 += parseInt( this.proto.css( "border-left" ) ) || 0;
107
- clone.x1 += parseInt( this.proto.css("padding-left" ) ) || 0;
108
- clone.x2 -= parseInt( this.proto.css("padding-right" ) ) || 0;
109
- clone.x2 -= parseInt( this.proto.css( "border-right" ) ) || 0;
110
- clone.x2 -= parseInt( this.proto.css( "margin-right" ) ) || 0;
111
- clone.y1 += parseInt( this.proto.css( "margin-top" ) ) || 0;
112
- clone.y1 += parseInt( this.proto.css( "border-top" ) ) || 0;
113
- clone.y1 += parseInt( this.proto.css("padding-top" ) ) || 0;
114
- clone.y2 -= parseInt( this.proto.css("padding-bottom") ) || 0;
115
- clone.y2 -= parseInt( this.proto.css( "border-bottom") ) || 0;
116
- clone.y2 -= parseInt( this.proto.css( "margin-bottom") ) || 0;
117
- }
118
- return clone;
119
- }
120
-
121
- CollisionCoords.prototype.move = function( dx, dy )
122
- {
123
- this.x1 += dx;
124
- this.x2 += dx;
125
- this.y1 += dy;
126
- this.y2 += dy;
127
- return this;
128
- };
129
-
130
- CollisionCoords.prototype.update = function( obj )
131
- {
132
- if( "x1" in obj ) this.x1 = obj["x1"];
133
- if( "x2" in obj ) this.x1 = obj["x2"];
134
- if( "y1" in obj ) this.x1 = obj["y1"];
135
- if( "y2" in obj ) this.x1 = obj["y2"];
136
- if( "left" in obj )
137
- {
138
- var w = this.x2-this.x1;
139
- this.x1 = obj["left"];
140
- this.x2 = this.x1 + w;
141
- }
142
- if( "top" in obj )
143
- {
144
- var h = this.y2-this.y1;
145
- this.y1 = obj["top"];
146
- this.y2 = this.y1 + h;
147
- }
148
- if( "offset" in obj )
149
- {
150
- var o = obj.offset();
151
- this.update( o );
152
- this.x2 = this.x1 + obj.width();
153
- this.y2 = this.y1 + obj.height();
154
- }
155
- if( "dir" in obj ) this.x1 = obj["dir"];
156
- return this;
157
- };
158
-
159
- CollisionCoords.prototype.width = function() { return ( this.x2 - this.x1 ); };
160
- CollisionCoords.prototype.height = function() { return ( this.y2 - this.y1 ); };
161
- CollisionCoords.prototype.centerx = function() { return ( this.x1 + this.x2 ) / 2; };
162
- CollisionCoords.prototype.centery = function() { return ( this.y1 + this.y2 ) / 2; };
163
-
164
-
165
- CollisionCoords.prototype.toString = function()
166
- {
167
- return ( this.proto["get"] ? "#"+this.proto.get(0).id : "" ) + "["+[this.x1,this.y1,this.x2,this.y2].join(",")+"]";
168
- };
169
-
170
- // the big mistake in a lot of collision-detectors,
171
- // make floating-point arithmetic work for you, not against you:
172
- CollisionCoords.EPSILON = 0.001;
173
-
174
- CollisionCoords.prototype.containsPoint = function( x, y, inclusive )
175
- {
176
- if( ! inclusive ) inclusive = false;
177
- var epsilon = ( inclusive ? -1 : +1 ) * CollisionCoords.EPSILON;
178
- if( ( x > ( this.x1 + epsilon ) && x < ( this.x2 - epsilon ) ) &&
179
- ( y > ( this.y1 + epsilon ) && y < ( this.y2 - epsilon ) ) )
180
- return true;
181
- else
182
- return false;
183
- };
184
-
185
- CollisionCoords.prototype.overlaps = function( other, inclusive )
186
- {
187
- var hit = this._overlaps( other, inclusive );
188
- if( hit.length > 0 ) return hit;
189
- hit = other._overlaps( this, inclusive );
190
- if( hit.length > 0 )
191
- {
192
- hit[0].dir = hit[0].dir == "Inside" ? "Outside" :
193
- hit[0].dir == "Outside" ? "Inside" :
194
- hit[0].dir == "N" ? "S" :
195
- hit[0].dir == "S" ? "N" :
196
- hit[0].dir == "W" ? "E" :
197
- hit[0].dir == "E" ? "W" :
198
- hit[0].dir == "NE" ? "SW" :
199
- hit[0].dir == "SW" ? "NE" :
200
- hit[0].dir == "SE" ? "NW" :
201
- hit[0].dir == "NW" ? "SE" :
202
- undefined;
203
- }
204
- return hit || [];
205
- }
206
-
207
- CollisionCoords.prototype._overlaps = function( other, inclusive )
208
- {
209
- var c1 = other;
210
- var c2 = this;
211
- if( ! inclusive ) inclusive = false;
212
- var ax = c1.centerx();
213
- var ay = c1.centery();
214
- // nine points to check whether they're in e2: e1's four corners, e1's center-sides, and e1's center
215
- // if center of e1 is within e2, there's some kind of total inclusion
216
- var points = [ [c1.x1,c1.y1,"SE"], [c1.x2,c1.y1,"SW"], [c1.x2,c1.y2,"NW"], [c1.x1,c1.y2,"NE"], [ax,c1.y1,"S"], [c1.x2,ay,"W"], [ax,c1.y2,"N"], [c1.x1,ay,"E"], [ax,ay,undefined] ];
217
- var hit = null;
218
- var dirs = { NW:false, N:false, NE:false, E:false, SE:false, S:false, SW:false, W:false };
219
- for( var i=0; i<points.length; i++ )
220
- {
221
- if( this.containsPoint( points[i][0], points[i][1], inclusive ) )
222
- {
223
- if( points[i][2] ) dirs[points[i][2]] = true;
224
- if( hit ) continue; // don't need to make another one - it'll be the same anyways //
225
- hit = [ new CollisionCoords( { x1: Math.max(c1.x1,c2.x1), y1: Math.max(c1.y1,c2.y1),
226
- x2: Math.min(c1.x2,c2.x2), y2: Math.min(c1.y2,c2.y2), dir: points[i][2] } ) ];
227
- }
228
- }
229
- if( hit )
230
- {
231
- if( dirs["NW"] && dirs["NE"] ) hit[0].dir = "N";
232
- if( dirs["NE"] && dirs["SE"] ) hit[0].dir = "E";
233
- if( dirs["SE"] && dirs["SW"] ) hit[0].dir = "S";
234
- if( dirs["SW"] && dirs["NW"] ) hit[0].dir = "W";
235
- if( dirs["NW"] && dirs["NE"] &&
236
- dirs["SE"] && dirs["SW"] ) hit[0].dir = "Outside";
237
- if( !dirs["NW"] && !dirs["NE"] &&
238
- !dirs["SE"] && !dirs["SW"] &&
239
- !dirs["N"] && !dirs["E"] &&
240
- !dirs["S"] && !dirs["W"] ) hit[0].dir = "Inside";
241
- }
242
- return hit || [];
243
- };
244
-
245
- CollisionCoords.prototype._protrusion = function( area, dir, list )
246
- {
247
- var o = this.overlaps( new CollisionCoords( area ), false );
248
- if( o.length <= 0 ) return list;
249
- o[0].dir = dir;
250
- list.push( o[0] );
251
- return list;
252
- };
253
-
254
- CollisionCoords.prototype.protrusions = function( container )
255
- {
256
- var list = [];
257
- var n = Number.NEGATIVE_INFINITY;
258
- var p = Number.POSITIVE_INFINITY;
259
- var l = container.x1;
260
- var r = container.x2;
261
- var t = container.y1;
262
- var b = container.y2;
263
- list = this._protrusion( { x1:l, y1:n, x2:r, y2:t }, "N" , list );
264
- list = this._protrusion( { x1:r, y1:n, x2:p, y2:t }, "NE", list );
265
- list = this._protrusion( { x1:r, y1:t, x2:p, y2:b }, "E" , list );
266
- list = this._protrusion( { x1:r, y1:b, x2:p, y2:p }, "SE", list );
267
- list = this._protrusion( { x1:l, y1:b, x2:r, y2:p }, "S" , list );
268
- list = this._protrusion( { x1:n, y1:b, x2:l, y2:p }, "SW", list );
269
- list = this._protrusion( { x1:n, y1:t, x2:l, y2:b }, "W" , list );
270
- list = this._protrusion( { x1:n, y1:n, x2:l, y2:t }, "NW", list );
271
- return list;
272
- };
273
-
274
- function Collision( targetNode, obstacleNode, overlapCoords, overlapType )
275
- {
276
- this.target = targetNode;
277
- this.obstacle = obstacleNode;
278
- this.overlap = overlapCoords;
279
- this.overlapType = overlapType;
280
- }
281
-
282
- Collision.prototype.distance = function( other )
283
- {
284
- var tc = c.target;
285
- var oc = c.overlap;
286
- return Math.sqrt( (tc.centerx()-oc.centerx())*(tc.centerx()-oc.centerx()) +
287
- (tc.centery()-oc.centery())*(tc.centery()-oc.centery()) );
288
- }
289
-
290
- function CollisionFactory( targets, obstacles, containment )
291
- {
292
- this.targets = targets;
293
- this.obstacles = obstacles;
294
- this.collisions = null;
295
- this.cache = null;
296
- if( containment ) this.containment = containment;
297
- else this.containment = null;
298
- }
299
-
300
- CollisionFactory.prototype.getCollisions = function( overlapType )
301
- {
302
- if( this.collisions !== null ) return this.collisions;
303
- this.cache = {};
304
- this.collisions = [];
305
- // note: doesn't do any dup-detection, so if you ask if something collides with
306
- // itself, it will!
307
- if( ! overlapType ) overlapType = "collision";
308
- if( overlapType != "collision" && overlapType != "protrusion" ) return [];
309
- var c = [];
310
- var t = this.targets;
311
- var o = this.obstacles;
312
- for( var ti=0; ti<t.length; ti++ )
313
- {
314
- var tc = t[ti];
315
- for( var oi=0; oi<o.length; oi++ )
316
- {
317
- var oc = o[oi];
318
- var ol = ( (overlapType=="collision") ? tc.overlaps( oc ) : tc.protrusions( oc.innerContainer() ) );
319
- for( var oli=0; oli<ol.length; oli++ )
320
- {
321
- c.push( new Collision( t[ti], o[oi], ol[oli], overlapType ) );
322
- }
323
- }
324
- }
325
- this.collisions = c;
326
- return c;
327
- };
328
-
329
- //
330
- // Setup
331
- //
332
-
333
- function makeCoordsArray( j )
334
- {
335
- return $(j).get().map(function(e,i,a){ return new CollisionCoords( $(e) ); });
336
- }
337
-
338
- function combineQueries( array )
339
- {
340
- var j = $();
341
- for( var i=0; i<array.length; i++ )
342
- {
343
- j=j.add( array[i] );
344
- }
345
- return j;
346
- }
347
-
348
- $.fn.collision = function( selector, options )
349
- {
350
- if( ! options ) options = {};
351
- var mode = "collision";
352
- var as = null;
353
- var cd = null;
354
- var od = null;
355
- var dd = null;
356
- var rel = "body"; // can be "body" (default), "collider", "obstacle", or a selector
357
- if( options.mode == "protrusion" ) mode = options.mode;
358
- if( options.as ) as = options.as;
359
- if( options.colliderData ) cd = options.colliderData;
360
- if( options.obstacleData ) od = options.obstacleData;
361
- if( options.directionData ) dd = options.directionData;
362
- if( options.relative ) rel = options.relative;
363
- var cf = new CollisionFactory( makeCoordsArray(this), makeCoordsArray(selector) );
364
- var ov = cf.getCollisions( mode );
365
- var array;
366
- // if no "as", then just the jquery object that we collided with
367
- // but if there's as="<div/>", then make div's out of the overlaps
368
- if( ! as ) array = $.map( ov, function(e,i,a){ return e.obstacle.proto; } );
369
- else array = $.map( ov, function(e,i,a){ var xoff = e.overlap.x1;
370
- var yoff = e.overlap.y1;
371
- if( rel && rel != "body" )
372
- {
373
- var r = rel == "collider" ? $(e.target.proto) :
374
- rel == "obstacle" ? $(e.obstacle.proto) :
375
- $(rel);
376
- if( r.length>0 )
377
- {
378
- var roff = r.offset();
379
- xoff -= roff.left;
380
- yoff -= roff.top;
381
- }
382
- }
383
- var c = $(as).offset( { left: xoff, top: yoff } )
384
- .width( e.overlap.width() )
385
- .height( e.overlap.height() );
386
- if( cd ) c.data(cd, $(e.target.proto));
387
- if( od ) c.data(od, $(e.obstacle.proto));
388
- if( dd && e.overlap.dir ) c.data(dd, e.overlap.dir);
389
- return c;
390
- } );
391
- return combineQueries( array );
392
- };
393
-
394
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/public/js/min/jquery-collision.min.js DELETED
@@ -1,71 +0,0 @@
1
-
2
- (function($){function CollisionCoords(proto,containment)
3
- {if(!proto)
4
- {this.x1=this.y1=this.x2=this.y2=0;this.proto=null;}
5
- else if("offset"in proto)
6
- {var d=proto.data("jquery-collision-coordinates");if(d)
7
- {this.x1=d.x1;this.y1=d.y1;this.x2=d.x2;this.y2=d.y2;}
8
- else if(containment&&containment.length&&containment.length>=4)
9
- {this.x1=containment[0];this.y1=containment[1];this.x2=containment[2]+proto.outerWidth(true);this.y2=containment[3]+proto.outerHeight(true);}
10
- else if(proto.parent().length<=0)
11
- {this.x1=parseInt(proto.css("left"))||0;this.y1=parseInt(proto.css("top"))||0;this.x2=parseInt(proto.css("width"))||0;this.y2=parseInt(proto.css("height"))||0;this.x2+=this.x1;this.x2+=(parseInt(proto.css("margin-left"))||0)+(parseInt(proto.css("border-left"))||0)+(parseInt(proto.css("padding-left"))||0)+
12
- (parseInt(proto.css("padding-right"))||0)+(parseInt(proto.css("border-right"))||0)+(parseInt(proto.css("margin-right"))||0);this.y2+=this.y1;this.y2+=(parseInt(proto.css("margin-top"))||0)+(parseInt(proto.css("border-top"))||0)+(parseInt(proto.css("padding-top"))||0)+
13
- (parseInt(proto.css("padding-bottom"))||0)+(parseInt(proto.css("border-bottom"))||0)+(parseInt(proto.css("margin-bottom"))||0);}
14
- else
15
- {var o=proto.offset();this.x1=o.left-(parseInt(proto.css("margin-left"))||0);this.y1=o.top-(parseInt(proto.css("margin-top"))||0);this.x2=this.x1+proto.outerWidth(true);this.y2=this.y1+proto.outerHeight(true);}
16
- this.proto=proto;}
17
- else if("x1"in proto)
18
- {this.x1=proto.x1;this.y1=proto.y1;this.x2=proto.x2;this.y2=proto.y2;this.proto=proto;}
19
- if("dir"in proto)
20
- {this.dir=proto.dir;}}
21
- CollisionCoords.prototype.innerContainer=function()
22
- {var clone=new CollisionCoords(this);if(this.proto["css"])
23
- {clone.x1+=parseInt(this.proto.css("margin-left"))||0;clone.x1+=parseInt(this.proto.css("border-left"))||0;clone.x1+=parseInt(this.proto.css("padding-left"))||0;clone.x2-=parseInt(this.proto.css("padding-right"))||0;clone.x2-=parseInt(this.proto.css("border-right"))||0;clone.x2-=parseInt(this.proto.css("margin-right"))||0;clone.y1+=parseInt(this.proto.css("margin-top"))||0;clone.y1+=parseInt(this.proto.css("border-top"))||0;clone.y1+=parseInt(this.proto.css("padding-top"))||0;clone.y2-=parseInt(this.proto.css("padding-bottom"))||0;clone.y2-=parseInt(this.proto.css("border-bottom"))||0;clone.y2-=parseInt(this.proto.css("margin-bottom"))||0;}
24
- return clone;}
25
- CollisionCoords.prototype.move=function(dx,dy)
26
- {this.x1+=dx;this.x2+=dx;this.y1+=dy;this.y2+=dy;return this;};CollisionCoords.prototype.update=function(obj)
27
- {if("x1"in obj)this.x1=obj["x1"];if("x2"in obj)this.x1=obj["x2"];if("y1"in obj)this.x1=obj["y1"];if("y2"in obj)this.x1=obj["y2"];if("left"in obj)
28
- {var w=this.x2-this.x1;this.x1=obj["left"];this.x2=this.x1+w;}
29
- if("top"in obj)
30
- {var h=this.y2-this.y1;this.y1=obj["top"];this.y2=this.y1+h;}
31
- if("offset"in obj)
32
- {var o=obj.offset();this.update(o);this.x2=this.x1+obj.width();this.y2=this.y1+obj.height();}
33
- if("dir"in obj)this.x1=obj["dir"];return this;};CollisionCoords.prototype.width=function(){return(this.x2-this.x1);};CollisionCoords.prototype.height=function(){return(this.y2-this.y1);};CollisionCoords.prototype.centerx=function(){return(this.x1+this.x2)/2;};CollisionCoords.prototype.centery=function(){return(this.y1+this.y2)/2;};CollisionCoords.prototype.toString=function()
34
- {return(this.proto["get"]?"#"+this.proto.get(0).id:"")+"["+[this.x1,this.y1,this.x2,this.y2].join(",")+"]";};CollisionCoords.EPSILON=0.001;CollisionCoords.prototype.containsPoint=function(x,y,inclusive)
35
- {if(!inclusive)inclusive=false;var epsilon=(inclusive?-1:+1)*CollisionCoords.EPSILON;if((x>(this.x1+epsilon)&&x<(this.x2-epsilon))&&(y>(this.y1+epsilon)&&y<(this.y2-epsilon)))
36
- return true;else
37
- return false;};CollisionCoords.prototype.overlaps=function(other,inclusive)
38
- {var hit=this._overlaps(other,inclusive);if(hit.length>0)return hit;hit=other._overlaps(this,inclusive);if(hit.length>0)
39
- {hit[0].dir=hit[0].dir=="Inside"?"Outside":hit[0].dir=="Outside"?"Inside":hit[0].dir=="N"?"S":hit[0].dir=="S"?"N":hit[0].dir=="W"?"E":hit[0].dir=="E"?"W":hit[0].dir=="NE"?"SW":hit[0].dir=="SW"?"NE":hit[0].dir=="SE"?"NW":hit[0].dir=="NW"?"SE":undefined;}
40
- return hit||[];}
41
- CollisionCoords.prototype._overlaps=function(other,inclusive)
42
- {var c1=other;var c2=this;if(!inclusive)inclusive=false;var ax=c1.centerx();var ay=c1.centery();var points=[[c1.x1,c1.y1,"SE"],[c1.x2,c1.y1,"SW"],[c1.x2,c1.y2,"NW"],[c1.x1,c1.y2,"NE"],[ax,c1.y1,"S"],[c1.x2,ay,"W"],[ax,c1.y2,"N"],[c1.x1,ay,"E"],[ax,ay,undefined]];var hit=null;var dirs={NW:false,N:false,NE:false,E:false,SE:false,S:false,SW:false,W:false};for(var i=0;i<points.length;i++)
43
- {if(this.containsPoint(points[i][0],points[i][1],inclusive))
44
- {if(points[i][2])dirs[points[i][2]]=true;if(hit)continue;hit=[new CollisionCoords({x1:Math.max(c1.x1,c2.x1),y1:Math.max(c1.y1,c2.y1),x2:Math.min(c1.x2,c2.x2),y2:Math.min(c1.y2,c2.y2),dir:points[i][2]})];}}
45
- if(hit)
46
- {if(dirs["NW"]&&dirs["NE"])hit[0].dir="N";if(dirs["NE"]&&dirs["SE"])hit[0].dir="E";if(dirs["SE"]&&dirs["SW"])hit[0].dir="S";if(dirs["SW"]&&dirs["NW"])hit[0].dir="W";if(dirs["NW"]&&dirs["NE"]&&dirs["SE"]&&dirs["SW"])hit[0].dir="Outside";if(!dirs["NW"]&&!dirs["NE"]&&!dirs["SE"]&&!dirs["SW"]&&!dirs["N"]&&!dirs["E"]&&!dirs["S"]&&!dirs["W"])hit[0].dir="Inside";}
47
- return hit||[];};CollisionCoords.prototype._protrusion=function(area,dir,list)
48
- {var o=this.overlaps(new CollisionCoords(area),false);if(o.length<=0)return list;o[0].dir=dir;list.push(o[0]);return list;};CollisionCoords.prototype.protrusions=function(container)
49
- {var list=[];var n=Number.NEGATIVE_INFINITY;var p=Number.POSITIVE_INFINITY;var l=container.x1;var r=container.x2;var t=container.y1;var b=container.y2;list=this._protrusion({x1:l,y1:n,x2:r,y2:t},"N",list);list=this._protrusion({x1:r,y1:n,x2:p,y2:t},"NE",list);list=this._protrusion({x1:r,y1:t,x2:p,y2:b},"E",list);list=this._protrusion({x1:r,y1:b,x2:p,y2:p},"SE",list);list=this._protrusion({x1:l,y1:b,x2:r,y2:p},"S",list);list=this._protrusion({x1:n,y1:b,x2:l,y2:p},"SW",list);list=this._protrusion({x1:n,y1:t,x2:l,y2:b},"W",list);list=this._protrusion({x1:n,y1:n,x2:l,y2:t},"NW",list);return list;};function Collision(targetNode,obstacleNode,overlapCoords,overlapType)
50
- {this.target=targetNode;this.obstacle=obstacleNode;this.overlap=overlapCoords;this.overlapType=overlapType;}
51
- Collision.prototype.distance=function(other)
52
- {var tc=c.target;var oc=c.overlap;return Math.sqrt((tc.centerx()-oc.centerx())*(tc.centerx()-oc.centerx())+
53
- (tc.centery()-oc.centery())*(tc.centery()-oc.centery()));}
54
- function CollisionFactory(targets,obstacles,containment)
55
- {this.targets=targets;this.obstacles=obstacles;this.collisions=null;this.cache=null;if(containment)this.containment=containment;else this.containment=null;}
56
- CollisionFactory.prototype.getCollisions=function(overlapType)
57
- {if(this.collisions!==null)return this.collisions;this.cache={};this.collisions=[];if(!overlapType)overlapType="collision";if(overlapType!="collision"&&overlapType!="protrusion")return[];var c=[];var t=this.targets;var o=this.obstacles;for(var ti=0;ti<t.length;ti++)
58
- {var tc=t[ti];for(var oi=0;oi<o.length;oi++)
59
- {var oc=o[oi];var ol=((overlapType=="collision")?tc.overlaps(oc):tc.protrusions(oc.innerContainer()));for(var oli=0;oli<ol.length;oli++)
60
- {c.push(new Collision(t[ti],o[oi],ol[oli],overlapType));}}}
61
- this.collisions=c;return c;};function makeCoordsArray(j)
62
- {return $(j).get().map(function(e,i,a){return new CollisionCoords($(e));});}
63
- function combineQueries(array)
64
- {var j=$();for(var i=0;i<array.length;i++)
65
- {j=j.add(array[i]);}
66
- return j;}
67
- $.fn.collision=function(selector,options)
68
- {if(!options)options={};var mode="collision";var as=null;var cd=null;var od=null;var dd=null;var rel="body";if(options.mode=="protrusion")mode=options.mode;if(options.as)as=options.as;if(options.colliderData)cd=options.colliderData;if(options.obstacleData)od=options.obstacleData;if(options.directionData)dd=options.directionData;if(options.relative)rel=options.relative;var cf=new CollisionFactory(makeCoordsArray(this),makeCoordsArray(selector));var ov=cf.getCollisions(mode);var array;if(!as)array=$.map(ov,function(e,i,a){return e.obstacle.proto;});else array=$.map(ov,function(e,i,a){var xoff=e.overlap.x1;var yoff=e.overlap.y1;if(rel&&rel!="body")
69
- {var r=rel=="collider"?$(e.target.proto):rel=="obstacle"?$(e.obstacle.proto):$(rel);if(r.length>0)
70
- {var roff=r.offset();xoff-=roff.left;yoff-=roff.top;}}
71
- var c=$(as).offset({left:xoff,top:yoff}).width(e.overlap.width()).height(e.overlap.height());if(cd)c.data(cd,$(e.target.proto));if(od)c.data(od,$(e.obstacle.proto));if(dd&&e.overlap.dir)c.data(dd,e.overlap.dir);return c;});return combineQueries(array);};})(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/public/js/min/timeline-express.min.js CHANGED
@@ -1 +1,43 @@
1
- function check_collisions(a){var b=1;a.each(function(){var a=jQuery(this)[0],c=getPositions(a),d=jQuery(this).next().hasClass("cd-timeline-block")?jQuery(this).next().next()[0]:!1;if(d){var e=getPositions(d);if(comparePositions(c,e)){var f=jQuery(this).css("margin-bottom").replace("px","").trim();f=parseInt(f)+parseInt(30),jQuery(this).css("margin-bottom",f+"px"),check_collisions(jQuery(".cd-timeline-block"))}else initialize_timeline_express_container(".timeline-express")}b++})}function getPositions(a){var b=jQuery(a),c=b.position(),d=(b.width(),b.height());return[c.top,c.top+d]}function comparePositions(a,b){var c=a[0]<b[0]?a:b,d=a[0]<b[0]?b:a;return c[1]>d[0]||c[0]===d[0]}function initialize_timeline_express_container(a){"undefined"==typeof a&&(a=document.querySelector(".timeline-express"));var b=new Masonry(a,{itemSelector:".cd-timeline-block"});return setTimeout(function(){new Masonry(a,{itemSelector:".cd-timeline-block"})},50),b}jQuery(document).ready(function(){jQuery("html").addClass("cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions");var a=jQuery(".cd-timeline-block");check_collisions(a),a.each(function(){timeline_express_data.animation_disabled||jQuery(this).offset().top>jQuery(window).scrollTop()+.75*jQuery(window).height()&&jQuery(this).find(".cd-timeline-img, .cd-timeline-content").addClass("is-hidden")}),timeline_express_data.animation_disabled||jQuery(window).on("scroll",function(){a.each(function(){jQuery(this).offset().top<=jQuery(window).scrollTop()+.75*jQuery(window).height()&&jQuery(this).find(".cd-timeline-img").hasClass("is-hidden")&&jQuery(this).find(".cd-timeline-img, .cd-timeline-content").removeClass("is-hidden").addClass("bounce-in")})});var b=jQuery(".timeline-express");b.imagesLoaded(function(){b.masonry({itemSelector:".cd-timeline-block"}),jQuery(".timeline-express").fadeTo("fast",1)})});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * @Plugin Timeline Express
3
+ * @Author Code Parrots
4
+ * @Site https://www.wp-timelineexpress.com
5
+ * @Version 1.2.8.4
6
+ * @Build 09-12-2016
7
+ */
8
+ /*
9
+ * @Plugin Timeline Express
10
+ * @Author Code Parrots
11
+ * @Site https://www.wp-timelineexpress.com
12
+ * @Version 1.2.8.4
13
+ * @Build 09-12-2016
14
+ */
15
+ /*
16
+ * @Plugin Timeline Express
17
+ * @Author Code Parrots
18
+ * @Site https://www.wp-timelineexpress.com
19
+ * @Version 1.2.8.4
20
+ * @Build 09-12-2016
21
+ */
22
+ /*
23
+ * @Plugin Timeline Express
24
+ * @Author Code Parrots
25
+ * @Site https://www.wp-timelineexpress.com
26
+ * @Version 1.2.8.4
27
+ * @Build 09-12-2016
28
+ */
29
+ /*
30
+ * @Plugin Timeline Express
31
+ * @Author Code Parrots
32
+ * @Site https://www.wp-timelineexpress.com
33
+ * @Version 1.2.8.4
34
+ * @Build 09-12-2016
35
+ */
36
+ /*
37
+ * @Plugin Timeline Express
38
+ * @Author Code Parrots
39
+ * @Site https://www.wp-timelineexpress.com
40
+ * @Version 1.2.8.4
41
+ * @Build 09-12-2016
42
+ */
43
+ jQuery(document).ready(function(){jQuery("html").addClass("cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions");var a=jQuery(".cd-timeline-block");a.each(function(){timeline_express_data.animation_disabled||jQuery(this).offset().top>jQuery(window).scrollTop()+.75*jQuery(window).height()&&jQuery(this).find(".cd-timeline-img, .cd-timeline-content").addClass("is-hidden")}),timeline_express_data.animation_disabled||jQuery(window).on("scroll",function(){a.each(function(){jQuery(this).offset().top<=jQuery(window).scrollTop()+.75*jQuery(window).height()&&jQuery(this).find(".cd-timeline-img").hasClass("is-hidden")&&jQuery(this).find(".cd-timeline-img, .cd-timeline-content").removeClass("is-hidden").addClass("bounce-in")})});var b=jQuery(".timeline-express");b.imagesLoaded(function(){b.masonry({itemSelector:".cd-timeline-block"}),jQuery(".timeline-express").fadeTo("fast",1)})});
lib/public/js/timeline-express.js CHANGED
@@ -11,9 +11,6 @@ jQuery(document).ready(function(){
11
 
12
  var timeline_block = jQuery( '.cd-timeline-block' );
13
 
14
- // Check for collisions
15
- check_collisions( timeline_block );
16
-
17
  //hide timeline blocks which are outside the viewport
18
  timeline_block.each( function() {
19
  /* If the animation is set to disabled, do not hide the items */
@@ -44,71 +41,3 @@ jQuery(document).ready(function(){
44
  jQuery( '.timeline-express' ).fadeTo( 'fast' , 1 );
45
  });
46
  });
47
-
48
- /**
49
- * Check collisions between containers
50
- * @param {[type]} containers [description]
51
- * @return {[type]} [description]
52
- */
53
- function check_collisions( containers ) {
54
- var x = 1;
55
- containers.each( function() {
56
- var curr_item = jQuery( this )[0];
57
- var current_item_position = getPositions( curr_item );
58
-
59
- var next_item = ( jQuery( this ).next().hasClass( 'cd-timeline-block' ) ) ? jQuery( this ).next().next()[0] : false;
60
-
61
- if ( next_item ) {
62
- var next_item_position = getPositions( next_item );
63
- if ( comparePositions( current_item_position, next_item_position ) ) {
64
- var current_margin_bottom = jQuery( this ).css( 'margin-bottom' ).replace( 'px', '' ).trim();
65
- current_margin_bottom = parseInt( current_margin_bottom ) + parseInt( 30 );
66
- jQuery( this ).css( 'margin-bottom', current_margin_bottom + 'px' );
67
- check_collisions( jQuery( '.cd-timeline-block' ) );
68
- } else {
69
- initialize_timeline_express_container( '.timeline-express' );
70
- }
71
- }
72
- x++;
73
- });
74
- }
75
-
76
- // Get positions of box
77
- function getPositions( box ) {
78
- var $box = jQuery(box);
79
- var pos = $box.position();
80
- var width = $box.width();
81
- var height = $box.height();
82
- // Top position, top position + height of container
83
- return [ pos.top, pos.top + height ];
84
- }
85
-
86
- // Compare the positions, for collisions
87
- function comparePositions( p1, p2 ) {
88
- var x1 = p1[0] < p2[0] ? p1 : p2;
89
- var x2 = p1[0] < p2[0] ? p2 : p1;
90
- return x1[1] > x2[0] || x1[0] === x2[0] ? true : false;
91
- }
92
-
93
- /**
94
- * Initialize the timeline container, passing in the parent element ID/class (.timeline-express)
95
- * @param object timeline_express_container The container to initialize (eg: .timeline-express)
96
- * @return object The masonry instance passed back for usage
97
- */
98
- function initialize_timeline_express_container( timeline_express_container ) {
99
- if ( typeof timeline_express_container === 'undefined' ) {
100
- /* Store the timeline parent container */
101
- timeline_express_container = document.querySelector( '.timeline-express' );
102
- }
103
- // layout the masonry timeline
104
- var msnry = new Masonry( timeline_express_container, {
105
- "itemSelector" : ".cd-timeline-block"
106
- });
107
- setTimeout( function() {
108
- // layout the masonry timeline
109
- var msnry = new Masonry( timeline_express_container, {
110
- "itemSelector" : ".cd-timeline-block"
111
- });
112
- }, 50);
113
- return msnry;
114
- }
11
 
12
  var timeline_block = jQuery( '.cd-timeline-block' );
13
 
 
 
 
14
  //hide timeline blocks which are outside the viewport
15
  timeline_block.each( function() {
16
  /* If the animation is set to disabled, do not hide the items */
41
  jQuery( '.timeline-express' ).fadeTo( 'fast' , 1 );
42
  });
43
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/public/partials/single-timeline-express.php CHANGED
@@ -9,32 +9,64 @@
9
  * @since Twenty Sixteen 1.2.5
10
  */
11
 
12
- get_header(); ?>
13
 
14
- <div id="primary" class="content-area timeline-express-content-area">
15
- <main id="main" class="site-main timeline-express-main" role="main">
16
- <?php
17
- // Start the loop.
18
- while ( have_posts() ) : the_post();
 
 
 
 
 
 
19
 
20
- ?>
21
- <header class="entry-header">
22
- <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
23
- </header><!-- .entry-header -->
24
 
25
- <div class="entry-content">
26
- <?php
27
- // Include the single post content template.
28
- get_timeline_express_template( 'single-announcement' );
29
- ?>
30
- </div>
 
 
 
31
 
32
  <?php
33
- // End of the loop.
34
- endwhile;
35
  ?>
36
 
37
- </main><!-- .site-main -->
38
- </div><!-- .content-area -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- <?php get_footer(); ?>
 
9
  * @since Twenty Sixteen 1.2.5
10
  */
11
 
12
+ get_header();
13
 
14
+ /**
15
+ * @action timeline_express_before_main_content
16
+ *
17
+ * @hooked timeline_express_generate_content_wrapper_start - 10 (outputs opening divs for the content)
18
+ *
19
+ * @since 1.2.8.5
20
+ */
21
+ do_action( 'timeline_express_before_main_content' );
22
+ ?>
23
+
24
+ <article itemscope itemtype="" id="announcement-<?php the_ID(); ?>" <?php post_class(); ?>>
25
 
26
+ <?php
 
 
 
27
 
28
+ do_action( 'timeline_express_before_announcement_content' );
29
+
30
+ // Start the loop.
31
+ while ( have_posts() ) : the_post();
32
+
33
+ ?>
34
+ <header class="entry-header">
35
+ <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
36
+ </header><!-- .entry-header -->
37
 
38
  <?php
39
+ // Include the single post content template.
40
+ get_timeline_express_template( 'single-announcement' );
41
  ?>
42
 
43
+ <?php
44
+ // End of the loop.
45
+ endwhile;
46
+
47
+ do_action( 'timeline_express_after_announcement_content' );
48
+ ?>
49
+
50
+ </article><!-- .content-area -->
51
+
52
+ <?php
53
+ /**
54
+ * @action timeline_express_after_main_content
55
+ *
56
+ * @hooked timeline_express_generate_page_wrapper_end - 10 (outputs closing divs for the content)
57
+ *
58
+ * @since 1.2.8.5
59
+ */
60
+ do_action( 'timeline_express_after_main_content' );
61
+
62
+ /**
63
+ * @action timeline_express_sidebar
64
+ *
65
+ * @hooked timeline_express_generate_sidebar - 10
66
+ *
67
+ * @since 1.2.8.5
68
+ */
69
+ do_action( 'timeline_express_sidebar' );
70
 
71
+ get_footer();
72
+ ?>
lib/public/partials/timeline-express-page-wrappers-end.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Content wrapper endings
4
+ *
5
+ * This template can be overridden by copying it to yourtheme/timeline-express/timeline-express-page-wrappers-end.php.
6
+ *
7
+ * @version 1.0.0
8
+ */
9
+
10
+ if ( ! defined( 'ABSPATH' ) ) {
11
+ exit; // Exit if accessed directly
12
+ }
13
+
14
+ $template = get_option( 'template' );
15
+
16
+ switch ( $template ) {
17
+
18
+ case 'twentyeleven' :
19
+ echo '</div>';
20
+ get_sidebar( 'shop' );
21
+ echo '</div>';
22
+ break;
23
+
24
+ case 'twentytwelve' :
25
+ echo '</div></div>';
26
+ break;
27
+
28
+ case 'twentythirteen' :
29
+ echo '</div></div>';
30
+ break;
31
+
32
+ case 'twentyfourteen' :
33
+ echo '</div></div></div>';
34
+ get_sidebar( 'content' );
35
+ break;
36
+
37
+ case 'twentyfifteen' :
38
+ echo '</div></div>';
39
+ break;
40
+
41
+ case 'twentysixteen' :
42
+ echo '</main></div>';
43
+ break;
44
+
45
+ default :
46
+ echo '</div></div>';
47
+ break;
48
+ }
lib/public/partials/timeline-express-page-wrappers-start.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Content wrappers beginngs
4
+ *
5
+ * This template can be overridden by copying it to yourtheme/level-playing-field/global/timeline-express-page-wrappers-start.php.
6
+ *
7
+ * @version 1.0.0
8
+ */
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit; // Exit if accessed directly
11
+ }
12
+ $template = get_option( 'template' );
13
+ switch ( $template ) {
14
+
15
+ case 'twentyeleven' :
16
+ echo '<div id="primary"><div id="content" role="main" class="twentyeleven">';
17
+ break;
18
+
19
+ case 'twentytwelve' :
20
+ echo '<div id="primary" class="site-content"><div id="content" role="main" class="twentytwelve">';
21
+ break;
22
+
23
+ case 'twentythirteen' :
24
+ echo '<div id="primary" class="site-content"><div id="content" role="main" class="entry-content twentythirteen">';
25
+ break;
26
+
27
+ case 'twentyfourteen' :
28
+ echo '<div id="primary" class="content-area"><div id="content" role="main" class="site-content twentyfourteen"><div class="tfwc entry-content">';
29
+ break;
30
+
31
+ case 'twentyfifteen' :
32
+ add_action( 'timeline_express_before_announcement_content', 'timeline_express_twenty_fifteen_top_container' );
33
+ add_action( 'timeline_express_after_announcement_content', 'timeline_express_twenty_fifteen_bottom_container' );
34
+ echo '<div id="primary" role="main" class="content-area twentyfifteen"><div id="main" class="site-main t15wc">';
35
+ break;
36
+
37
+ case 'twentysixteen' :
38
+ echo '<div id="primary" class="content-area twentysixteen"><main id="main" class="site-main" role="main">';
39
+ break;
40
+
41
+ default :
42
+ echo '<div id="container"><div id="content" role="main">';
43
+ break;
44
+
45
+ }
46
+ /**
47
+ * Twenty Fifteen Helper
48
+ */
49
+ function timeline_express_twenty_fifteen_top_container() {
50
+ echo '<div class="entry-content">';
51
+ }
52
+ /**
53
+ * Twenty Fifteen Helper
54
+ */
55
+ function timeline_express_twenty_fifteen_bottom_container() {
56
+ echo '</div>';
57
+ }
lib/public/partials/timeline-express-sidebar.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Timeline Express Sidebar
4
+ *
5
+ * This template can be overridden by copying it to yourtheme/timeline-express/timeline-express-sidebar.php.
6
+ *
7
+ * @since 1.0.0
8
+ */
9
+
10
+ // Exit if accessed directly
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+
13
+ exit;
14
+
15
+ }
16
+
17
+ get_sidebar( 'timeline-express' );
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: codeparrots, eherman24
3
  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
4
  Requires at least: 4.0
5
- Tested up to: 4.6
6
- Stable tag: 1.2.8.4
7
  License: GPLv2 or later
8
 
9
  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,14 @@ The above example will load font awesome version 4.4.0 instead of the current st
357
 
358
  == Changelog ==
359
 
 
 
 
 
 
 
 
 
360
  = 1.2.8.4 - August 13th, 2016 =
361
  - Prepped for post type add-on (re-factored sections, including template inclusions).
362
  - Altered the date function, switched out the parameter from $announcement_date to $post_id (post ID can be used to retrieve appropriate data from the announcements)
@@ -646,9 +654,5 @@ The above example will load font awesome version 4.4.0 instead of the current st
646
 
647
  == Upgrade Notice ==
648
 
649
- = 1.2.8.4 - August 13th, 2016 =
650
- - Prepped for post type add-on (re-factored sections, including template inclusions).
651
- - Altered the date function, switched out the parameter from $announcement_date to $post_id (post ID can be used to retrieve appropriate data from the announcements)
652
- - Set a fall back date (current time) on the announcement container classes when no announcement date is set.
653
- - Added new collision detection between announcement containers.
654
- - Included jquery collision plugin.
2
  Contributors: codeparrots, eherman24
3
  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
4
  Requires at least: 4.0
5
+ Tested up to: 4.6.1
6
+ Stable tag: 1.2.8.5
7
  License: GPLv2 or later
8
 
9
  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.2.8.5 - September 12th, 2016 =
361
+ - Removed collision detection, causing initialization issues for certain users.
362
+ - Introduced new templating engine, to aid in creation of the `single-announcement` template page wrappers (no longer requires user interaction on most themes).
363
+ - Introduced new template files (`timeline-express-page-wrappers-start.php`, `timeline-express-page-wrappers-end.php`, `timeline-express-sidebar.php`)
364
+ - Introduced new action hooks inside of `single-timeline-express.php` ( `timeline_express_before_main_content`, `timeline_express_after_main_content`,`timeline_express_sidebar`)
365
+ - Added additional single announcement template styles.
366
+ - Tested with bundled WordPress themes (TwentyFourteen-TwentySixteen), and a few other popular themes (Divi, X Theme etc.)
367
+
368
  = 1.2.8.4 - August 13th, 2016 =
369
  - Prepped for post type add-on (re-factored sections, including template inclusions).
370
  - Altered the date function, switched out the parameter from $announcement_date to $post_id (post ID can be used to retrieve appropriate data from the announcements)
654
 
655
  == Upgrade Notice ==
656
 
657
+ = 1.2.8.5 - September 12th, 2016 =
658
+ - Removed collision detection, causing issues for certain users.
 
 
 
 
timeline-express.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Timeline Express
5
  Plugin URI: https://www.wp-timelineexpress.com
6
  Description: Create a beautiful vertical, CSS3 animated and responsive timeline in minutes flat without writing code.
7
- Version: 1.2.8.4
8
  Author: Code Parrots
9
  Text Domain: timeline-express
10
  Author URI: http://www.codeparrots.com
4
  Plugin Name: Timeline Express
5
  Plugin URI: https://www.wp-timelineexpress.com
6
  Description: Create a beautiful vertical, CSS3 animated and responsive timeline in minutes flat without writing code.
7
+ Version: 1.2.8.5
8
  Author: Code Parrots
9
  Text Domain: timeline-express
10
  Author URI: http://www.codeparrots.com