Version Description
Download this release
Release Info
Developer | eherman24 |
Plugin | Timeline Express |
Version | 1.7.0 |
Comparing to | |
See all releases |
Code changes from version 1.6.0 to 1.7.0
- constants.php +1 -23
- lib/admin/css/min/timeline-express-admin-rtl.min.css +2 -2
- lib/admin/css/min/timeline-express-admin.min.css +2 -2
- lib/admin/js/min/timeline-express-admin.min.js +3 -3
- lib/admin/js/min/timeline-express-tinymce.min.js +2 -2
- lib/admin/js/script.options-color-picker-custom.js +0 -24
- lib/admin/metaboxes/metaboxes.announcements.php +33 -39
- lib/admin/metaboxes/partials/advertisment-metabox.php +4 -5
- lib/admin/pages/page.addons.php +21 -21
- lib/admin/pages/page.options.php +58 -11
- lib/classes/class-timeline-express-2-week-notice.php +3 -3
- lib/classes/class-timeline-express-admin.php +59 -25
- lib/classes/class-timeline-express-initialize.php +5 -5
- lib/classes/class-timeline-express-public.php +2 -2
- lib/classes/class-timeline-express.php +2 -2
- lib/helpers.php +30 -31
- lib/public/css/min/timeline-express-rtl.min.css +2 -2
- lib/public/css/min/timeline-express.min.css +2 -2
- lib/public/js/min/timeline-express.min.js +2 -2
- readme.txt +2 -2
- timeline-express.php +22 -22
- uninstall.php +0 -1
constants.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
*/
|
16 |
if ( ! defined( 'TIMELINE_EXPRESS_VERSION_CURRENT' ) ) {
|
17 |
|
18 |
-
define( 'TIMELINE_EXPRESS_VERSION_CURRENT', '1.
|
19 |
|
20 |
}
|
21 |
|
@@ -54,25 +54,3 @@ if ( ! defined( 'TIMELINE_EXPRESS_SITE_URL' ) ) {
|
|
54 |
define( 'TIMELINE_EXPRESS_SITE_URL', 'https://www.wp-timelineexpress.com' );
|
55 |
|
56 |
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* Define the tracking project ID
|
60 |
-
*
|
61 |
-
* @since 1.3
|
62 |
-
*/
|
63 |
-
if ( ! defined( 'TIMELINE_EXPRESS_TRACKING_PROJECT_ID' ) ) {
|
64 |
-
|
65 |
-
define( 'TIMELINE_EXPRESS_TRACKING_PROJECT_ID', '57fc20538db53dfda8a731c9' );
|
66 |
-
|
67 |
-
}
|
68 |
-
|
69 |
-
/**
|
70 |
-
* Define the tracking write key
|
71 |
-
*
|
72 |
-
* @since 1.3
|
73 |
-
*/
|
74 |
-
if ( ! defined( 'TIMELINE_EXPRESS_TRACKING_WRITE_KEY' ) ) {
|
75 |
-
|
76 |
-
define( 'TIMELINE_EXPRESS_TRACKING_WRITE_KEY', 'F0775BBAE5037EE4BB7F31A2AE70DD57F121F47C334D6A1E5D66866F2C9101615DE7A9702151A8CB2FE83C89DFE94DD5F24257D62FD4EB1C3ECD793D6C8263BD8CB1C95C0837BBBC946150BB8A8514215C961E4B31A9A90A4A680279F5C35840' );
|
77 |
-
|
78 |
-
}
|
15 |
*/
|
16 |
if ( ! defined( 'TIMELINE_EXPRESS_VERSION_CURRENT' ) ) {
|
17 |
|
18 |
+
define( 'TIMELINE_EXPRESS_VERSION_CURRENT', '1.7.0' );
|
19 |
|
20 |
}
|
21 |
|
54 |
define( 'TIMELINE_EXPRESS_SITE_URL', 'https://www.wp-timelineexpress.com' );
|
55 |
|
56 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/admin/css/min/timeline-express-admin-rtl.min.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
-
* @Version 1.
|
6 |
-
* @Build
|
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}#timeline-express-addons .group:after,#timeline-express-addons .timeline-express-clear:after{clear:both}.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-right: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}h2.nav-tab-wrapper.te-options{padding-bottom:0!important}h2.nav-tab-wrapper.te-options a.nav-tab:nth-child(1){margin-right:0!important}#advert_metabox .inside{padding:0;margin-top:0}#advert_metabox .inside .cmb2-id-announcement-advertisments{padding:0!important;border:none;background:0 0;margin-bottom:0}#advert_metabox .inside .cmb2-id-announcement-advertisments p{padding:0 10px}#advert_metabox .inside .cmb2-id-announcement-advertisments a.advertisment-link{position:relative;display:block;max-height:278px}div.cmb2-id-announcement-help-docs{padding-top:0!important;padding-bottom:0!important}label[for=help_docs_metabox-hide],label[for=timeline_express_ads-hide],label[for=announcement_metabox-hide]{display:none!important}#timeline-express-icon{background:url(../../images/timeline-express-logo-128.png) no-repeat;display:block;float:right;padding:0 .5em 0 0;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}body.te_announcements_page_timeline-express-settings .te-sidebar.add-ons-active{margin-top:3.3em}body.te_announcements_page_timeline-express-settings .wrap h2.nav-tab-wrapper{border-bottom:none}.settings-header{display:inline-block;width:100%;padding-right: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:left;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:right;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-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."}#ui-datepicker-div.cmb2-element{z-index:999999!important}.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:right}.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:right;margin-top:.5em;padding:.5em .5em 1em 1em;color:#f15353}body.admin_page_timeline-express-welcome .timeline-express-image{background:-moz-linear-gradient(top,rgba(206,220,231,.7) 100%,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}#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:right}#timeline-express-support-page-header .support-subhead{display:block;margin:2em 1em 0 0;float:right;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-right:-.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)}.codeparrots-tracking-notice{background-image:url(../../images/flying-parrot.png);background-position:center left;background-repeat:no-repeat;background-size:120px}.codeparrots-tracking-notice p{max-width:90%}#premium-support-contact-form{float:right;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:right;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}}.timeline-express-about-wrap .timeline-express-badge{float:left;border-radius:4px;margin:0 15px 15px 0;max-width:100%}.timeline-express-about-wrap #timeline-express-header{margin-bottom:15px}.timeline-express-about-wrap #timeline-express-header h1{margin-bottom:15px!important}.timeline-express-about-wrap .about-text{margin:0 0 15px;max-width:670px}.timeline-express-about-wrap .feature-section{margin-top:20px}.timeline-express-about-wrap .feature-section-content,.timeline-express-about-wrap .feature-section-media{width:50%;box-sizing:border-box}.timeline-express-about-wrap .feature-section-content{float:right;padding-left:50px}.timeline-express-about-wrap .feature-section-content h4{margin:0 0 1em}.timeline-express-about-wrap .feature-section-media{float:left;text-align:left;margin-bottom:20px}.timeline-express-about-wrap img{border:none}.timeline-express-about-wrap .feature-section:not(.under-the-hood) .col{margin-top:0}@media all and (max-width:782px){.timeline-express-about-wrap .feature-section-content,.timeline-express-about-wrap .feature-section-media{float:none;padding-left:0;width:100%;text-align:right}.timeline-express-about-wrap .feature-section-media img{float:none;margin:0 0 20px}}.about-wrap .timeline-express-badge{position:absolute;top:0;left: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 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:left}.about-wrap .timeline-express-features-button{font-size:14px;height:auto;padding:5px 15px;margin-top:15px}#timeline-express-addons .the-list{display:inline-block}#timeline-express-addons hr{display:block;width:100%;margin:2em 0}#timeline-express-addons .timeline-express-clear:after,#timeline-express-addons .timeline-express-clear:before{content:" ";display:table}#timeline-express-addons .intro{margin-bottom:10px}#timeline-express-addons h2.widefat{margin:1.5em 0 8px}#timeline-express-addons h2.widefat:first-child{margin-top:0}#timeline-express-addons h2.widefat+p{margin-bottom:1rem}#timeline-express-addons a.view-all-addons.button-primary{position:absolute;margin-right:10px}.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}.timeline-express-addon-image{float:right;height:92px;width:92px;border:1px solid #ddd;margin:12px 12px 0 0;border-radius:3px}.timeline-express-addon-image img{display:block;margin:0 auto;max-width:100%;border-radius:3px}.timeline-express-addon-item .icons{display:block}.timeline-express-addon-item .icons .badge:first-child{margin-top:.5em}.timeline-express-addon-item .icons .badge{border:1px solid transparent;border-radius:.25rem;padding:2px 5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;display:block;width:100%;margin:3px 0}.timeline-express-addon-item .icons .badge .dashicons{font-size:15px;line-height:20px;opacity:.75}.timeline-express-addon-item .icons .badge.free{background-color:#dff0d8;border-color:#d0e9c6;color:#3c763d}.timeline-express-addon-item .icons .badge.popular{background-color:#d9edf7;border-color:#bcdff1;color:#31708f}.timeline-express-addon-text{margin:0 126px 0 12px;padding:13px 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{text-align:center;margin:-3em 0 1em}.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-installed-container a:hover{background-color:#0085ba}.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-action .button-addon-installed,.timeline-express-addon-action .button-addon-installed:hover,.timeline-express-addon-installed-container{opacity:.5}.timeline-express-addon-action .button-addon-installed[href="#"]:hover{cursor:no-drop}#timeline-express-addons .section{clear:both;padding:0;margin:0}#timeline-express-addons .col{display:block;float:right;margin:1% 1.6% 1% 0}#timeline-express-addons .col:first-child{margin-right:0}#timeline-express-addons .group:after,#timeline-express-addons .group:before{content:"";display:table}#timeline-express-addons .group{zoom:1}#timeline-express-addons .span_3_of_3{width:100%}#timeline-express-addons .span_2_of_3{width:calc(66.13% - 2px)}#timeline-express-addons .span_1_of_3{width:calc(32.26% - 2px)}@media only screen and (max-width:960px){#timeline-express-addons .col{margin:1% 0}#timeline-express-addons .span_1_of_3,#timeline-express-addons .span_2_of_3,#timeline-express-addons .span_3_of_3{width:100%}}
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
+
* @Version 1.7.0
|
6 |
+
* @Build 05-25-2018
|
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}#timeline-express-addons .group:after,#timeline-express-addons .timeline-express-clear:after{clear:both}.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-right: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}h2.nav-tab-wrapper.te-options{padding-bottom:0!important}h2.nav-tab-wrapper.te-options a.nav-tab:nth-child(1){margin-right:0!important}#advert_metabox .inside{padding:0;margin-top:0}#advert_metabox .inside .cmb2-id-announcement-advertisments{padding:0!important;border:none;background:0 0;margin-bottom:0}#advert_metabox .inside .cmb2-id-announcement-advertisments p{padding:0 10px}#advert_metabox .inside .cmb2-id-announcement-advertisments a.advertisment-link{position:relative;display:block;max-height:278px}div.cmb2-id-announcement-help-docs{padding-top:0!important;padding-bottom:0!important}label[for=help_docs_metabox-hide],label[for=timeline_express_ads-hide],label[for=announcement_metabox-hide]{display:none!important}#timeline-express-icon{background:url(../../images/timeline-express-logo-128.png) no-repeat;display:block;float:right;padding:0 .5em 0 0;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}body.te_announcements_page_timeline-express-settings .te-sidebar.add-ons-active{margin-top:3.3em}body.te_announcements_page_timeline-express-settings .wrap h2.nav-tab-wrapper{border-bottom:none}.settings-header{display:inline-block;width:100%;padding-right: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:left;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:right;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-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."}#ui-datepicker-div.cmb2-element{z-index:999999!important}.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:right}.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:right;margin-top:.5em;padding:.5em .5em 1em 1em;color:#f15353}body.admin_page_timeline-express-welcome .timeline-express-image{background:-moz-linear-gradient(top,rgba(206,220,231,.7) 100%,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}#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:right}#timeline-express-support-page-header .support-subhead{display:block;margin:2em 1em 0 0;float:right;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-right:-.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)}.codeparrots-tracking-notice{background-image:url(../../images/flying-parrot.png);background-position:center left;background-repeat:no-repeat;background-size:120px}.codeparrots-tracking-notice p{max-width:90%}#premium-support-contact-form{float:right;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:right;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}}.timeline-express-about-wrap .timeline-express-badge{float:left;border-radius:4px;margin:0 15px 15px 0;max-width:100%}.timeline-express-about-wrap #timeline-express-header{margin-bottom:15px}.timeline-express-about-wrap #timeline-express-header h1{margin-bottom:15px!important}.timeline-express-about-wrap .about-text{margin:0 0 15px;max-width:670px}.timeline-express-about-wrap .feature-section{margin-top:20px}.timeline-express-about-wrap .feature-section-content,.timeline-express-about-wrap .feature-section-media{width:50%;box-sizing:border-box}.timeline-express-about-wrap .feature-section-content{float:right;padding-left:50px}.timeline-express-about-wrap .feature-section-content h4{margin:0 0 1em}.timeline-express-about-wrap .feature-section-media{float:left;text-align:left;margin-bottom:20px}.timeline-express-about-wrap img{border:none}.timeline-express-about-wrap .feature-section:not(.under-the-hood) .col{margin-top:0}@media all and (max-width:782px){.timeline-express-about-wrap .feature-section-content,.timeline-express-about-wrap .feature-section-media{float:none;padding-left:0;width:100%;text-align:right}.timeline-express-about-wrap .feature-section-media img{float:none;margin:0 0 20px}}.about-wrap .timeline-express-badge{position:absolute;top:0;left: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 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:left}.about-wrap .timeline-express-features-button{font-size:14px;height:auto;padding:5px 15px;margin-top:15px}#timeline-express-addons .the-list{display:inline-block}#timeline-express-addons hr{display:block;width:100%;margin:2em 0}#timeline-express-addons .timeline-express-clear:after,#timeline-express-addons .timeline-express-clear:before{content:" ";display:table}#timeline-express-addons .intro{margin-bottom:10px}#timeline-express-addons h2.widefat{margin:1.5em 0 8px}#timeline-express-addons h2.widefat:first-child{margin-top:0}#timeline-express-addons h2.widefat+p{margin-bottom:1rem}#timeline-express-addons a.view-all-addons.button-primary{position:absolute;margin-right:10px}.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}.timeline-express-addon-image{float:right;height:92px;width:92px;border:1px solid #ddd;margin:12px 12px 0 0;border-radius:3px}.timeline-express-addon-image img{display:block;margin:0 auto;max-width:100%;border-radius:3px}.timeline-express-addon-item .icons{display:block}.timeline-express-addon-item .icons .badge:first-child{margin-top:.5em}.timeline-express-addon-item .icons .badge{border:1px solid transparent;border-radius:.25rem;padding:2px 5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;display:block;width:100%;margin:3px 0}.timeline-express-addon-item .icons .badge .dashicons{font-size:15px;line-height:20px;opacity:.75}.timeline-express-addon-item .icons .badge.free{background-color:#dff0d8;border-color:#d0e9c6;color:#3c763d}.timeline-express-addon-item .icons .badge.popular{background-color:#d9edf7;border-color:#bcdff1;color:#31708f}.timeline-express-addon-text{margin:0 126px 0 12px;padding:13px 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{text-align:center;margin:-3em 0 1em}.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-installed-container a:hover{background-color:#0085ba}.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-action .button-addon-installed,.timeline-express-addon-action .button-addon-installed:hover,.timeline-express-addon-installed-container{opacity:.5}.timeline-express-addon-action .button-addon-installed[href="#"]:hover{cursor:no-drop}#timeline-express-addons .section{clear:both;padding:0;margin:0}#timeline-express-addons .col{display:block;float:right;margin:1% 1.6% 1% 0}#timeline-express-addons .col:first-child{margin-right:0}#timeline-express-addons .group:after,#timeline-express-addons .group:before{content:"";display:table}#timeline-express-addons .group{zoom:1}#timeline-express-addons .span_3_of_3{width:100%}#timeline-express-addons .span_2_of_3{width:calc(66.13% - 2px)}#timeline-express-addons .span_1_of_3{width:calc(32.26% - 2px)}@media only screen and (max-width:960px){#timeline-express-addons .col{margin:1% 0}#timeline-express-addons .span_1_of_3,#timeline-express-addons .span_2_of_3,#timeline-express-addons .span_3_of_3{width:100%}}
|
lib/admin/css/min/timeline-express-admin.min.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
-
* @Version 1.
|
6 |
-
* @Build
|
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}#timeline-express-addons .group:after,#timeline-express-addons .timeline-express-clear:after{clear:both}.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}h2.nav-tab-wrapper.te-options{padding-bottom:0!important}h2.nav-tab-wrapper.te-options a.nav-tab:nth-child(1){margin-left:0!important}#advert_metabox .inside{padding:0;margin-top:0}#advert_metabox .inside .cmb2-id-announcement-advertisments{padding:0!important;border:none;background:0 0;margin-bottom:0}#advert_metabox .inside .cmb2-id-announcement-advertisments p{padding:0 10px}#advert_metabox .inside .cmb2-id-announcement-advertisments a.advertisment-link{position:relative;display:block;max-height:278px}div.cmb2-id-announcement-help-docs{padding-top:0!important;padding-bottom:0!important}label[for=help_docs_metabox-hide],label[for=timeline_express_ads-hide],label[for=announcement_metabox-hide]{display:none!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}body.te_announcements_page_timeline-express-settings .te-sidebar.add-ons-active{margin-top:3.3em}body.te_announcements_page_timeline-express-settings .wrap h2.nav-tab-wrapper{border-bottom:none}.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-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."}#ui-datepicker-div.cmb2-element{z-index:999999!important}.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}#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)}.codeparrots-tracking-notice{background-image:url(../../images/flying-parrot.png);background-position:center right;background-repeat:no-repeat;background-size:120px}.codeparrots-tracking-notice p{max-width:90%}#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}}.timeline-express-about-wrap .timeline-express-badge{float:right;border-radius:4px;margin:0 0 15px 15px;max-width:100%}.timeline-express-about-wrap #timeline-express-header{margin-bottom:15px}.timeline-express-about-wrap #timeline-express-header h1{margin-bottom:15px!important}.timeline-express-about-wrap .about-text{margin:0 0 15px;max-width:670px}.timeline-express-about-wrap .feature-section{margin-top:20px}.timeline-express-about-wrap .feature-section-content,.timeline-express-about-wrap .feature-section-media{width:50%;box-sizing:border-box}.timeline-express-about-wrap .feature-section-content{float:left;padding-right:50px}.timeline-express-about-wrap .feature-section-content h4{margin:0 0 1em}.timeline-express-about-wrap .feature-section-media{float:right;text-align:right;margin-bottom:20px}.timeline-express-about-wrap img{border:none}.timeline-express-about-wrap .feature-section:not(.under-the-hood) .col{margin-top:0}@media all and (max-width:782px){.timeline-express-about-wrap .feature-section-content,.timeline-express-about-wrap .feature-section-media{float:none;padding-right:0;width:100%;text-align:left}.timeline-express-about-wrap .feature-section-media img{float:none;margin:0 0 20px}}.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 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:15px}#timeline-express-addons .the-list{display:inline-block}#timeline-express-addons hr{display:block;width:100%;margin:2em 0}#timeline-express-addons .timeline-express-clear:after,#timeline-express-addons .timeline-express-clear:before{content:" ";display:table}#timeline-express-addons .intro{margin-bottom:10px}#timeline-express-addons h2.widefat{margin:1.5em 0 8px}#timeline-express-addons h2.widefat:first-child{margin-top:0}#timeline-express-addons h2.widefat+p{margin-bottom:1rem}#timeline-express-addons a.view-all-addons.button-primary{position:absolute;margin-left:10px}.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}.timeline-express-addon-image{float:left;height:92px;width:92px;border:1px solid #ddd;margin:12px 0 0 12px;border-radius:3px}.timeline-express-addon-image img{display:block;margin:0 auto;max-width:100%;border-radius:3px}.timeline-express-addon-item .icons{display:block}.timeline-express-addon-item .icons .badge:first-child{margin-top:.5em}.timeline-express-addon-item .icons .badge{border:1px solid transparent;border-radius:.25rem;padding:2px 5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;display:block;width:100%;margin:3px 0}.timeline-express-addon-item .icons .badge .dashicons{font-size:15px;line-height:20px;opacity:.75}.timeline-express-addon-item .icons .badge.free{background-color:#dff0d8;border-color:#d0e9c6;color:#3c763d}.timeline-express-addon-item .icons .badge.popular{background-color:#d9edf7;border-color:#bcdff1;color:#31708f}.timeline-express-addon-text{margin:0 12px 0 126px;padding:13px 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{text-align:center;margin:-3em 0 1em}.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-installed-container a:hover{background-color:#0085ba}.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-action .button-addon-installed,.timeline-express-addon-action .button-addon-installed:hover,.timeline-express-addon-installed-container{opacity:.5}.timeline-express-addon-action .button-addon-installed[href="#"]:hover{cursor:no-drop}#timeline-express-addons .section{clear:both;padding:0;margin:0}#timeline-express-addons .col{display:block;float:left;margin:1% 0 1% 1.6%}#timeline-express-addons .col:first-child{margin-left:0}#timeline-express-addons .group:after,#timeline-express-addons .group:before{content:"";display:table}#timeline-express-addons .group{zoom:1}#timeline-express-addons .span_3_of_3{width:100%}#timeline-express-addons .span_2_of_3{width:calc(66.13% - 2px)}#timeline-express-addons .span_1_of_3{width:calc(32.26% - 2px)}@media only screen and (max-width:960px){#timeline-express-addons .col{margin:1% 0}#timeline-express-addons .span_1_of_3,#timeline-express-addons .span_2_of_3,#timeline-express-addons .span_3_of_3{width:100%}}
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
+
* @Version 1.7.0
|
6 |
+
* @Build 05-25-2018
|
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}#timeline-express-addons .group:after,#timeline-express-addons .timeline-express-clear:after{clear:both}.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}h2.nav-tab-wrapper.te-options{padding-bottom:0!important}h2.nav-tab-wrapper.te-options a.nav-tab:nth-child(1){margin-left:0!important}#advert_metabox .inside{padding:0;margin-top:0}#advert_metabox .inside .cmb2-id-announcement-advertisments{padding:0!important;border:none;background:0 0;margin-bottom:0}#advert_metabox .inside .cmb2-id-announcement-advertisments p{padding:0 10px}#advert_metabox .inside .cmb2-id-announcement-advertisments a.advertisment-link{position:relative;display:block;max-height:278px}div.cmb2-id-announcement-help-docs{padding-top:0!important;padding-bottom:0!important}label[for=help_docs_metabox-hide],label[for=timeline_express_ads-hide],label[for=announcement_metabox-hide]{display:none!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}body.te_announcements_page_timeline-express-settings .te-sidebar.add-ons-active{margin-top:3.3em}body.te_announcements_page_timeline-express-settings .wrap h2.nav-tab-wrapper{border-bottom:none}.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-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."}#ui-datepicker-div.cmb2-element{z-index:999999!important}.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}#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)}.codeparrots-tracking-notice{background-image:url(../../images/flying-parrot.png);background-position:center right;background-repeat:no-repeat;background-size:120px}.codeparrots-tracking-notice p{max-width:90%}#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}}.timeline-express-about-wrap .timeline-express-badge{float:right;border-radius:4px;margin:0 0 15px 15px;max-width:100%}.timeline-express-about-wrap #timeline-express-header{margin-bottom:15px}.timeline-express-about-wrap #timeline-express-header h1{margin-bottom:15px!important}.timeline-express-about-wrap .about-text{margin:0 0 15px;max-width:670px}.timeline-express-about-wrap .feature-section{margin-top:20px}.timeline-express-about-wrap .feature-section-content,.timeline-express-about-wrap .feature-section-media{width:50%;box-sizing:border-box}.timeline-express-about-wrap .feature-section-content{float:left;padding-right:50px}.timeline-express-about-wrap .feature-section-content h4{margin:0 0 1em}.timeline-express-about-wrap .feature-section-media{float:right;text-align:right;margin-bottom:20px}.timeline-express-about-wrap img{border:none}.timeline-express-about-wrap .feature-section:not(.under-the-hood) .col{margin-top:0}@media all and (max-width:782px){.timeline-express-about-wrap .feature-section-content,.timeline-express-about-wrap .feature-section-media{float:none;padding-right:0;width:100%;text-align:left}.timeline-express-about-wrap .feature-section-media img{float:none;margin:0 0 20px}}.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 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:15px}#timeline-express-addons .the-list{display:inline-block}#timeline-express-addons hr{display:block;width:100%;margin:2em 0}#timeline-express-addons .timeline-express-clear:after,#timeline-express-addons .timeline-express-clear:before{content:" ";display:table}#timeline-express-addons .intro{margin-bottom:10px}#timeline-express-addons h2.widefat{margin:1.5em 0 8px}#timeline-express-addons h2.widefat:first-child{margin-top:0}#timeline-express-addons h2.widefat+p{margin-bottom:1rem}#timeline-express-addons a.view-all-addons.button-primary{position:absolute;margin-left:10px}.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}.timeline-express-addon-image{float:left;height:92px;width:92px;border:1px solid #ddd;margin:12px 0 0 12px;border-radius:3px}.timeline-express-addon-image img{display:block;margin:0 auto;max-width:100%;border-radius:3px}.timeline-express-addon-item .icons{display:block}.timeline-express-addon-item .icons .badge:first-child{margin-top:.5em}.timeline-express-addon-item .icons .badge{border:1px solid transparent;border-radius:.25rem;padding:2px 5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;display:block;width:100%;margin:3px 0}.timeline-express-addon-item .icons .badge .dashicons{font-size:15px;line-height:20px;opacity:.75}.timeline-express-addon-item .icons .badge.free{background-color:#dff0d8;border-color:#d0e9c6;color:#3c763d}.timeline-express-addon-item .icons .badge.popular{background-color:#d9edf7;border-color:#bcdff1;color:#31708f}.timeline-express-addon-text{margin:0 12px 0 126px;padding:13px 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{text-align:center;margin:-3em 0 1em}.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-installed-container a:hover{background-color:#0085ba}.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-action .button-addon-installed,.timeline-express-addon-action .button-addon-installed:hover,.timeline-express-addon-installed-container{opacity:.5}.timeline-express-addon-action .button-addon-installed[href="#"]:hover{cursor:no-drop}#timeline-express-addons .section{clear:both;padding:0;margin:0}#timeline-express-addons .col{display:block;float:left;margin:1% 0 1% 1.6%}#timeline-express-addons .col:first-child{margin-left:0}#timeline-express-addons .group:after,#timeline-express-addons .group:before{content:"";display:table}#timeline-express-addons .group{zoom:1}#timeline-express-addons .span_3_of_3{width:100%}#timeline-express-addons .span_2_of_3{width:calc(66.13% - 2px)}#timeline-express-addons .span_1_of_3{width:calc(32.26% - 2px)}@media only screen and (max-width:960px){#timeline-express-addons .col{margin:1% 0}#timeline-express-addons .span_1_of_3,#timeline-express-addons .span_2_of_3,#timeline-express-addons .span_3_of_3{width:100%}}
|
lib/admin/js/min/timeline-express-admin.min.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
-
* @Version 1.
|
6 |
-
* @Build
|
7 |
*/
|
8 |
-
function changeRandomTrimLengthCheckbox(){"1"===jQuery('input[name="excerpt-random-length"]').prop("checked")?(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(){!0===jQuery('input[name="delete-announcement-posts-on-uninstallation"]').prop("checked")?(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(){!1===jQuery('input[name="delete-announcement-posts-on-uninstallation"]').prop("checked")?(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={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},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),void 0===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 void 0!==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"),void 0!==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">×</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>":"";return a('<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> <span class="caret"></span></button><div class="dropdown-menu open">'+f+g+h+'<ul class="dropdown-menu inner selectpicker" role="menu"></ul></div></div>')},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"+(void 0!==c?' class="'+c+'"':"")+(void 0!==b|null===b?' data-original-index="'+b+'"':"")+">"+a+"</li>"},h=function(a,e,f,g){var h=c(d(a));return'<a tabindex="0"'+(void 0!==e?' class="'+e+'"':"")+(void 0!==f?' style="'+f+'"':"")+(void 0!==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=void 0!==c.data("subtext")?'<small class="muted text-muted">'+c.data("subtext")+"</small>":"",l=void 0!==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")&&!0!==c.data("divider")){if(0===c.index()){f+=1;var o=c.parent().attr("label"),p=void 0!==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!0===c.data("divider")?e.push(g("",n,"divider")):!0===c.data("hidden")?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;!1!==b&&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"):void 0!==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;g=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(f.length,i):this.options.countSelectedText).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=void 0!==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||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(!1!==this.options.size){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(),!1!==l||!1!==m){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 void 0!==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),e<g&&(e=g),e==k&&(e=h)),40==b.keyCode&&(o.options.liveSearch&&(e+=1),-1==e&&(e=0),e!=j&&e<f&&(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"))});
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
+
* @Version 1.7.0
|
6 |
+
* @Build 05-25-2018
|
7 |
*/
|
8 |
+
function changeRandomTrimLengthCheckbox(){"1"===jQuery('input[name="excerpt-random-length"]').prop("checked")?(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(){!0===jQuery('input[name="delete-announcement-posts-on-uninstallation"]').prop("checked")?(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(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={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},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),void 0===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 void 0!==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"),void 0!==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">×</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>":"";return a('<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> <span class="caret"></span></button><div class="dropdown-menu open">'+f+g+h+'<ul class="dropdown-menu inner selectpicker" role="menu"></ul></div></div>')},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"+(void 0!==c?' class="'+c+'"':"")+(void 0!==b|null===b?' data-original-index="'+b+'"':"")+">"+a+"</li>"},h=function(a,e,f,g){var h=c(d(a));return'<a tabindex="0"'+(void 0!==e?' class="'+e+'"':"")+(void 0!==f?' style="'+f+'"':"")+(void 0!==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=void 0!==c.data("subtext")?'<small class="muted text-muted">'+c.data("subtext")+"</small>":"",l=void 0!==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")&&!0!==c.data("divider")){if(0===c.index()){f+=1;var o=c.parent().attr("label"),p=void 0!==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!0===c.data("divider")?e.push(g("",n,"divider")):!0===c.data("hidden")?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;!1!==b&&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"):void 0!==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;g=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(f.length,i):this.options.countSelectedText).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=void 0!==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||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(!1!==this.options.size){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(),!1!==l||!1!==m){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 void 0!==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),e<g&&(e=g),e==k&&(e=h)),40==b.keyCode&&(o.options.liveSearch&&(e+=1),-1==e&&(e=0),e!=j&&e<f&&(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
@@ -2,7 +2,7 @@
|
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
-
* @Version 1.
|
6 |
-
* @Build
|
7 |
*/
|
8 |
!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)})})}();
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
+
* @Version 1.7.0
|
6 |
+
* @Build 05-25-2018
|
7 |
*/
|
8 |
!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/admin/js/script.options-color-picker-custom.js
CHANGED
@@ -73,27 +73,3 @@ function toggleDeleteCheckClass() {
|
|
73 |
}
|
74 |
|
75 |
}
|
76 |
-
|
77 |
-
function toggle_delete_checkbox() {
|
78 |
-
|
79 |
-
var deletePostsCheckboxValue = jQuery('input[name="delete-announcement-posts-on-uninstallation"]').prop('checked');
|
80 |
-
|
81 |
-
if ( deletePostsCheckboxValue === false ) {
|
82 |
-
|
83 |
-
jQuery('.delete-no').addClass('delete-yes');
|
84 |
-
|
85 |
-
jQuery('.delete-yes').removeClass('delete-no');
|
86 |
-
|
87 |
-
jQuery('input[name="delete-announcement-posts-on-uninstallation"]').attr('checked',true);
|
88 |
-
|
89 |
-
} else {
|
90 |
-
|
91 |
-
jQuery('.delete-yes').addClass('delete-no');
|
92 |
-
|
93 |
-
jQuery('.delete-no').removeClass('delete-yes');
|
94 |
-
|
95 |
-
jQuery('input[name="delete-announcement-posts-on-uninstallation"]').attr('checked',false);
|
96 |
-
|
97 |
-
}
|
98 |
-
|
99 |
-
}
|
73 |
}
|
74 |
|
75 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/admin/metaboxes/metaboxes.announcements.php
CHANGED
@@ -22,13 +22,13 @@ $timeline_express_singular_name = apply_filters( 'timeline_express_singular_name
|
|
22 |
*/
|
23 |
$announcement_metabox = new_cmb2_box(
|
24 |
array(
|
25 |
-
'id'
|
26 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
27 |
-
'title'
|
28 |
-
'object_types'
|
29 |
-
'context'
|
30 |
-
'priority'
|
31 |
-
'show_names'
|
32 |
)
|
33 |
);
|
34 |
|
@@ -36,12 +36,12 @@ $announcement_metabox = new_cmb2_box(
|
|
36 |
$announcement_metabox->add_field(
|
37 |
array(
|
38 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
39 |
-
'name'
|
40 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
41 |
-
'desc'
|
42 |
-
'id'
|
43 |
-
'type'
|
44 |
-
'default'
|
45 |
)
|
46 |
);
|
47 |
|
@@ -49,11 +49,11 @@ $announcement_metabox->add_field(
|
|
49 |
$announcement_metabox->add_field(
|
50 |
array(
|
51 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
52 |
-
'name'
|
53 |
/* translators: Timeline Express singular post type name (eg: announcement) */
|
54 |
-
'desc'
|
55 |
-
'id'
|
56 |
-
'type'
|
57 |
'default' => 'fa-' . $timeline_express_options['default-announcement-icon'],
|
58 |
)
|
59 |
);
|
@@ -83,11 +83,11 @@ $announcement_metabox->add_field(
|
|
83 |
$announcement_metabox->add_field(
|
84 |
array(
|
85 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
86 |
-
'name'
|
87 |
/* translators: Timeline Express singular post type name - lowercase (eg: announcement) */
|
88 |
-
'desc'
|
89 |
-
'id'
|
90 |
-
'type'
|
91 |
'options' => array(
|
92 |
'url' => false, // Hide the text input for the url
|
93 |
),
|
@@ -105,12 +105,12 @@ if ( defined( 'TIMELINE_EXPRESS_CONTAINER_CLASSES' ) && TIMELINE_EXPRESS_CONTAIN
|
|
105 |
// Custom Announcement Container Info. Metabox
|
106 |
$announcement_container_metabox = new_cmb2_box(
|
107 |
array(
|
108 |
-
'id'
|
109 |
-
'title'
|
110 |
-
'object_types'
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
)
|
115 |
);
|
116 |
|
@@ -133,12 +133,12 @@ if ( defined( 'TIMELINE_EXPRESS_CONTAINER_CLASSES' ) && TIMELINE_EXPRESS_CONTAIN
|
|
133 |
// Documentation Metabox
|
134 |
$help_docs_metabox = new_cmb2_box(
|
135 |
array(
|
136 |
-
'id'
|
137 |
-
'title'
|
138 |
-
'object_types'
|
139 |
-
'context'
|
140 |
-
'priority'
|
141 |
-
'show_names'
|
142 |
)
|
143 |
);
|
144 |
|
@@ -196,18 +196,12 @@ if ( ! empty( $custom_fields ) ) {
|
|
196 |
foreach ( $custom_fields as $user_defined_field ) {
|
197 |
|
198 |
// Email text field
|
199 |
-
$announcement_metabox->add_field(
|
200 |
-
array(
|
201 |
-
'name' => $custom_fields[ $i ]['name'],
|
202 |
-
'desc' => $custom_fields[ $i ]['desc'],
|
203 |
-
'id' => $custom_fields[ $i ]['id'],
|
204 |
-
'type' => $custom_fields[ $i ]['type'],
|
205 |
-
)
|
206 |
-
);
|
207 |
|
208 |
$i++;
|
209 |
|
210 |
}
|
|
|
211 |
}
|
212 |
|
213 |
// Action hook to allow users to hook in and define new metaboxes
|
22 |
*/
|
23 |
$announcement_metabox = new_cmb2_box(
|
24 |
array(
|
25 |
+
'id' => 'announcement_metabox',
|
26 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
27 |
+
'title' => sprintf( esc_html( '%s Info.', 'timeline-express' ), $timeline_express_singular_name ),
|
28 |
+
'object_types' => array( 'te_announcements' ),
|
29 |
+
'context' => 'advanced',
|
30 |
+
'priority' => 'high',
|
31 |
+
'show_names' => true,
|
32 |
)
|
33 |
);
|
34 |
|
36 |
$announcement_metabox->add_field(
|
37 |
array(
|
38 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
39 |
+
'name' => sprintf( esc_html( '%s Color', 'timeline-express' ), $timeline_express_singular_name ),
|
40 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
41 |
+
'desc' => sprintf( esc_html( 'Select the color for this %s.', 'timeline-express' ), strtolower( $timeline_express_singular_name ) ),
|
42 |
+
'id' => $prefix . 'color',
|
43 |
+
'type' => 'colorpicker',
|
44 |
+
'default' => $timeline_express_options['default-announcement-color'],
|
45 |
)
|
46 |
);
|
47 |
|
49 |
$announcement_metabox->add_field(
|
50 |
array(
|
51 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
52 |
+
'name' => sprintf( esc_html( '%s Icon', 'Timeline Express singular post type name (eg: Announcement)', 'timeline-express' ), $timeline_express_singular_name ),
|
53 |
/* translators: Timeline Express singular post type name (eg: announcement) */
|
54 |
+
'desc' => sprintf( esc_html( 'Select an icon from the drop down above. This is used for the icon associated with the %s.', 'timeline-express' ), strtolower( $timeline_express_singular_name ) ),
|
55 |
+
'id' => $prefix . 'icon',
|
56 |
+
'type' => 'te_bootstrap_dropdown',
|
57 |
'default' => 'fa-' . $timeline_express_options['default-announcement-icon'],
|
58 |
)
|
59 |
);
|
83 |
$announcement_metabox->add_field(
|
84 |
array(
|
85 |
/* translators: Timeline Express singular post type name (eg: Announcement) */
|
86 |
+
'name' => sprintf( esc_html( '%s Banner', 'timeline-express' ), $timeline_express_singular_name ),
|
87 |
/* translators: Timeline Express singular post type name - lowercase (eg: announcement) */
|
88 |
+
'desc' => sprintf( esc_html( 'Select a banner image for this %s (optional). (recommended 650px wide or larger)', 'timeline-express' ), strtolower( $timeline_express_singular_name ) ),
|
89 |
+
'id' => $prefix . 'image',
|
90 |
+
'type' => 'file',
|
91 |
'options' => array(
|
92 |
'url' => false, // Hide the text input for the url
|
93 |
),
|
105 |
// Custom Announcement Container Info. Metabox
|
106 |
$announcement_container_metabox = new_cmb2_box(
|
107 |
array(
|
108 |
+
'id' => 'announcement_container_metabox',
|
109 |
+
'title' => esc_html__( 'Announcement Container Info.', 'timeline-express' ),
|
110 |
+
'object_types' => array( 'te_announcements' ), // Post type
|
111 |
+
'context' => 'advanced',
|
112 |
+
'priority' => 'high',
|
113 |
+
'show_names' => true, // Show field names on the left
|
114 |
)
|
115 |
);
|
116 |
|
133 |
// Documentation Metabox
|
134 |
$help_docs_metabox = new_cmb2_box(
|
135 |
array(
|
136 |
+
'id' => 'help_docs_metabox',
|
137 |
+
'title' => esc_html__( 'Help & Documentation', 'timeline-express' ),
|
138 |
+
'object_types' => array( 'te_announcements' ),
|
139 |
+
'context' => 'side',
|
140 |
+
'priority' => 'low',
|
141 |
+
'show_names' => true,
|
142 |
)
|
143 |
);
|
144 |
|
196 |
foreach ( $custom_fields as $user_defined_field ) {
|
197 |
|
198 |
// Email text field
|
199 |
+
$announcement_metabox->add_field( $custom_fields[ $i ] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
|
201 |
$i++;
|
202 |
|
203 |
}
|
204 |
+
|
205 |
}
|
206 |
|
207 |
// Action hook to allow users to hook in and define new metaboxes
|
lib/admin/metaboxes/partials/advertisment-metabox.php
CHANGED
@@ -7,12 +7,11 @@
|
|
7 |
* @since 1.2
|
8 |
*/
|
9 |
|
10 |
-
$ad_data
|
11 |
-
|
12 |
-
$
|
13 |
-
$addon_image = $ad_data['image'];
|
14 |
$addon_content = ( ! empty( $ad_data['content'] ) ) ? $ad_data['content'] : false;
|
15 |
-
$addon_url
|
16 |
|
17 |
?>
|
18 |
|
7 |
* @since 1.2
|
8 |
*/
|
9 |
|
10 |
+
$ad_data = $field->args['ad_data'];
|
11 |
+
$addon_title = $ad_data['title'];
|
12 |
+
$addon_image = $ad_data['image'];
|
|
|
13 |
$addon_content = ( ! empty( $ad_data['content'] ) ) ? $ad_data['content'] : false;
|
14 |
+
$addon_url = $ad_data['url'];
|
15 |
|
16 |
?>
|
17 |
|
lib/admin/pages/page.addons.php
CHANGED
@@ -32,8 +32,8 @@ wp_localize_script(
|
|
32 |
'admin_nonce' => wp_create_nonce( 'timeline_express_add_on_install_nonce' ),
|
33 |
'install_now' => __( 'Are you sure you want to install this add-on?', 'timeline-express' ),
|
34 |
'install_btn' => __( 'Install' ), // core i18n
|
35 |
-
|
36 |
-
|
37 |
)
|
38 |
);
|
39 |
|
@@ -49,10 +49,10 @@ $free_addons = array(
|
|
49 |
'popular' => true,
|
50 |
),
|
51 |
array(
|
52 |
-
'name'
|
53 |
),
|
54 |
array(
|
55 |
-
'name'
|
56 |
),
|
57 |
);
|
58 |
|
@@ -124,11 +124,11 @@ usort( $premium_addons, 'compare_addon_names' );
|
|
124 |
|
125 |
array_unshift(
|
126 |
$premium_addons, array(
|
127 |
-
'name'
|
128 |
/* translators: Integer value for the number of add-ons in the add-on list. (eg: 6) */
|
129 |
-
'description'
|
130 |
-
'purchase_url'
|
131 |
-
'popular'
|
132 |
)
|
133 |
);
|
134 |
|
@@ -262,8 +262,8 @@ function timeline_express_build_addon_data( $data, $free = false ) {
|
|
262 |
|
263 |
$plugin_installed = array_key_exists( $plugin_file, $all_plugins );
|
264 |
|
265 |
-
$data['button_class']
|
266 |
-
$data['button_text']
|
267 |
|
268 |
$data['description'] = $api['short_description'];
|
269 |
|
@@ -310,26 +310,26 @@ function timeline_express_render_addon( $addon, $free = false ) {
|
|
310 |
* @var array
|
311 |
*/
|
312 |
$plugins_allowedtags = array(
|
313 |
-
'a'
|
314 |
'href' => array(),
|
315 |
'title' => array(),
|
316 |
'target' => array(),
|
317 |
),
|
318 |
-
'abbr'
|
319 |
'title' => array(),
|
320 |
),
|
321 |
'acronym' => array(
|
322 |
'title' => array(),
|
323 |
),
|
324 |
-
'code'
|
325 |
-
'pre'
|
326 |
-
'em'
|
327 |
-
'strong'
|
328 |
-
'ul'
|
329 |
-
'ol'
|
330 |
-
'li'
|
331 |
-
'p'
|
332 |
-
'br'
|
333 |
);
|
334 |
|
335 |
$link = isset( $addon['purchase_url'] ) ? $addon['purchase_url'] : '#';
|
32 |
'admin_nonce' => wp_create_nonce( 'timeline_express_add_on_install_nonce' ),
|
33 |
'install_now' => __( 'Are you sure you want to install this add-on?', 'timeline-express' ),
|
34 |
'install_btn' => __( 'Install' ), // core i18n
|
35 |
+
'activate_btn' => __( 'Activate' ), // core i18n
|
36 |
+
'installed_btn' => __( 'Active', 'timeline-express' ),
|
37 |
)
|
38 |
);
|
39 |
|
49 |
'popular' => true,
|
50 |
),
|
51 |
array(
|
52 |
+
'name' => esc_html__( 'Timeline Express - Single Column', 'timeline-express' ),
|
53 |
),
|
54 |
array(
|
55 |
+
'name' => esc_html__( 'Timeline Express - No Icons', 'timeline-express' ),
|
56 |
),
|
57 |
);
|
58 |
|
124 |
|
125 |
array_unshift(
|
126 |
$premium_addons, array(
|
127 |
+
'name' => esc_html__( 'Timeline Express - Product Bundle', 'timeline-express' ),
|
128 |
/* translators: Integer value for the number of add-ons in the add-on list. (eg: 6) */
|
129 |
+
'description' => sprintf( esc_html( "Get all %s of the Timeline Express add-ons for one low price! Select a 5 or 10 site license, and receive all current and future add-ons for Timeline Express along with updates and priority product support. An amazing deal, don't miss it!", 'timeline-express' ), count( $premium_addons ) ),
|
130 |
+
'purchase_url' => 'https://www.wp-timelineexpress.com/products/timeline-express-bundle/',
|
131 |
+
'popular' => true,
|
132 |
)
|
133 |
);
|
134 |
|
262 |
|
263 |
$plugin_installed = array_key_exists( $plugin_file, $all_plugins );
|
264 |
|
265 |
+
$data['button_class'] = $plugin_installed ? ( is_plugin_active( $plugin_file ) ? 'button disabled' : 'activate button button-primary' ) : 'install button';
|
266 |
+
$data['button_text'] = $plugin_installed ? ( is_plugin_active( $plugin_file ) ? __( 'Active', 'timeline-express' ) : __( 'Activate', 'timeline-express' ) ) : __( 'Install' );
|
267 |
|
268 |
$data['description'] = $api['short_description'];
|
269 |
|
310 |
* @var array
|
311 |
*/
|
312 |
$plugins_allowedtags = array(
|
313 |
+
'a' => array(
|
314 |
'href' => array(),
|
315 |
'title' => array(),
|
316 |
'target' => array(),
|
317 |
),
|
318 |
+
'abbr' => array(
|
319 |
'title' => array(),
|
320 |
),
|
321 |
'acronym' => array(
|
322 |
'title' => array(),
|
323 |
),
|
324 |
+
'code' => array(),
|
325 |
+
'pre' => array(),
|
326 |
+
'em' => array(),
|
327 |
+
'strong' => array(),
|
328 |
+
'ul' => array(),
|
329 |
+
'ol' => array(),
|
330 |
+
'li' => array(),
|
331 |
+
'p' => array(),
|
332 |
+
'br' => array(),
|
333 |
);
|
334 |
|
335 |
$link = isset( $addon['purchase_url'] ) ? $addon['purchase_url'] : '#';
|
lib/admin/pages/page.options.php
CHANGED
@@ -12,10 +12,10 @@ $current_options = timeline_express_get_options();
|
|
12 |
|
13 |
// Setup the options for our WYSIWYG editors for the optin messages.
|
14 |
$additional_editor_parameters = array(
|
15 |
-
'textarea_name'
|
16 |
-
'teeny'
|
17 |
-
'textarea_rows'
|
18 |
-
'tabindex'
|
19 |
'drag_drop_upload' => true,
|
20 |
);
|
21 |
|
@@ -108,7 +108,7 @@ $timeline_express_plural_name = apply_filters( 'timeline_express_plural_name',
|
|
108 |
<?php esc_html_e( 'All (Past & Future)', 'timeline-express' ); ?>
|
109 |
</option>
|
110 |
<option value="2" <?php selected( $current_options['announcement-time-frame'], '2' ); ?>>
|
111 |
-
<?php esc_html_e( 'Past','timeline-express' ); ?>
|
112 |
</option>
|
113 |
</select>
|
114 |
<p class="description">
|
@@ -185,7 +185,7 @@ $timeline_express_plural_name = apply_filters( 'timeline_express_plural_name',
|
|
185 |
?>
|
186 |
</p>
|
187 |
<p class="description">
|
188 |
-
|
189 |
</p>
|
190 |
</td>
|
191 |
</tr>
|
@@ -224,10 +224,10 @@ $timeline_express_plural_name = apply_filters( 'timeline_express_plural_name',
|
|
224 |
</th>
|
225 |
<td>
|
226 |
<select name="timeline_express_storage[read-more-visibility]" id="read-more-visibility" class="regular-text" />
|
227 |
-
<option value="1" <?php selected( $current_options['read-more-visibility']
|
228 |
<?php esc_html_e( 'Visible', 'timeline-express' ); ?>
|
229 |
</option>
|
230 |
-
<option value="0" <?php selected( $current_options['read-more-visibility']
|
231 |
<?php esc_html_e( 'Hidden', 'timeline-express' ); ?>
|
232 |
</option>
|
233 |
</select>
|
@@ -421,7 +421,7 @@ $timeline_express_plural_name = apply_filters( 'timeline_express_plural_name',
|
|
421 |
</label>
|
422 |
</th>
|
423 |
<td>
|
424 |
-
<input type="checkbox" name="timeline_express_storage[disable-animation]" <?php if ( isset( $current_options['disable-animation'] ) ) { checked( $current_options['disable-animation']
|
425 |
<p class="description">
|
426 |
<?php esc_html_e( 'Check this option off to disable the timeline animations while scrolling.', 'timeline-express' ); ?>
|
427 |
</p>
|
@@ -439,8 +439,8 @@ $timeline_express_plural_name = apply_filters( 'timeline_express_plural_name',
|
|
439 |
</label>
|
440 |
</th>
|
441 |
<td>
|
442 |
-
<input type="checkbox" name="timeline_express_storage[delete-announcement-posts-on-uninstallation]" onclick="toggleDeleteCheckClass();" <?php checked( $current_options['delete-announcement-posts-on-uninstallation']
|
443 |
-
<span class="
|
444 |
<p class="description">
|
445 |
<?php
|
446 |
/* translators: Timeline Express plural name (eg: announcements) */
|
@@ -449,6 +449,7 @@ $timeline_express_plural_name = apply_filters( 'timeline_express_plural_name',
|
|
449 |
</p>
|
450 |
</td>
|
451 |
</tr>
|
|
|
452 |
<!-- Submit Button -->
|
453 |
<tr>
|
454 |
<td></td>
|
@@ -559,6 +560,52 @@ $timeline_express_plural_name = apply_filters( 'timeline_express_plural_name',
|
|
559 |
</div>
|
560 |
<!-- .postbox -->
|
561 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
562 |
</div>
|
563 |
<!-- .meta-box-sortables -->
|
564 |
|
12 |
|
13 |
// Setup the options for our WYSIWYG editors for the optin messages.
|
14 |
$additional_editor_parameters = array(
|
15 |
+
'textarea_name' => 'timeline_express_storage[no-events-message]',
|
16 |
+
'teeny' => true,
|
17 |
+
'textarea_rows' => 15,
|
18 |
+
'tabindex' => 1,
|
19 |
'drag_drop_upload' => true,
|
20 |
);
|
21 |
|
108 |
<?php esc_html_e( 'All (Past & Future)', 'timeline-express' ); ?>
|
109 |
</option>
|
110 |
<option value="2" <?php selected( $current_options['announcement-time-frame'], '2' ); ?>>
|
111 |
+
<?php esc_html_e( 'Past', 'timeline-express' ); ?>
|
112 |
</option>
|
113 |
</select>
|
114 |
<p class="description">
|
185 |
?>
|
186 |
</p>
|
187 |
<p class="description">
|
188 |
+
<code><?php esc_html_e( 'Minimum Length: 25; 50 = 50 character excerpt length.', 'timeline-express' ); ?></code>
|
189 |
</p>
|
190 |
</td>
|
191 |
</tr>
|
224 |
</th>
|
225 |
<td>
|
226 |
<select name="timeline_express_storage[read-more-visibility]" id="read-more-visibility" class="regular-text" />
|
227 |
+
<option value="1" <?php selected( $current_options['read-more-visibility'], '1' ); ?>>
|
228 |
<?php esc_html_e( 'Visible', 'timeline-express' ); ?>
|
229 |
</option>
|
230 |
+
<option value="0" <?php selected( $current_options['read-more-visibility'], '0' ); ?>>
|
231 |
<?php esc_html_e( 'Hidden', 'timeline-express' ); ?>
|
232 |
</option>
|
233 |
</select>
|
421 |
</label>
|
422 |
</th>
|
423 |
<td>
|
424 |
+
<input type="checkbox" name="timeline_express_storage[disable-animation]" <?php if ( isset( $current_options['disable-animation'] ) ) { checked( $current_options['disable-animation'], '1' ); } ?> value="1" />
|
425 |
<p class="description">
|
426 |
<?php esc_html_e( 'Check this option off to disable the timeline animations while scrolling.', 'timeline-express' ); ?>
|
427 |
</p>
|
439 |
</label>
|
440 |
</th>
|
441 |
<td>
|
442 |
+
<input type="checkbox" name="timeline_express_storage[delete-announcement-posts-on-uninstallation]" onclick="toggleDeleteCheckClass();" <?php checked( $current_options['delete-announcement-posts-on-uninstallation'], '1' ); ?> value="1" />
|
443 |
+
<span class="delete-yes"></span>
|
444 |
<p class="description">
|
445 |
<?php
|
446 |
/* translators: Timeline Express plural name (eg: announcements) */
|
449 |
</p>
|
450 |
</td>
|
451 |
</tr>
|
452 |
+
|
453 |
<!-- Submit Button -->
|
454 |
<tr>
|
455 |
<td></td>
|
560 |
</div>
|
561 |
<!-- .postbox -->
|
562 |
|
563 |
+
<!-- Documentation Metabox -->
|
564 |
+
<div class="postbox">
|
565 |
+
<h2 style="text-align:center;">
|
566 |
+
<span>
|
567 |
+
<?php esc_html_e( 'Flush Cached Data', 'timeline-express' ); ?>
|
568 |
+
</span>
|
569 |
+
</h2>
|
570 |
+
|
571 |
+
<div class="inside">
|
572 |
+
<p><?php esc_html_e(
|
573 |
+
'Flush all cached Timeline Express data. This will reset any cached data so your timelines will update on the front of site. If you notice your timelines are not up to date, try clearing the cache below.',
|
574 |
+
'timeline-express'
|
575 |
+
); ?></p>
|
576 |
+
|
577 |
+
<?php
|
578 |
+
global $wpdb;
|
579 |
+
|
580 |
+
// Query the database for all transients with the text 'timeline-express-query'
|
581 |
+
$results = $wpdb->get_results(
|
582 |
+
$wpdb->prepare(
|
583 |
+
"SELECT * from `{$wpdb->prefix}options` WHERE option_name LIKE %s;", '%' . $wpdb->esc_like( 'timeline-express-query' ) . '%'
|
584 |
+
)
|
585 |
+
);
|
586 |
+
|
587 |
+
$class = '';
|
588 |
+
|
589 |
+
if ( ! $results || empty( $results ) ) {
|
590 |
+
|
591 |
+
$class = 'disabled';
|
592 |
+
|
593 |
+
}
|
594 |
+
|
595 |
+
printf(
|
596 |
+
'<a href="%s" class="button button-secondary %s widefat" style="text-align: center;" name="">%s</a>',
|
597 |
+
wp_nonce_url( admin_url( 'edit.php?post_type=te_announcements&page=timeline-express-settings' ), 'flush_cache' ),
|
598 |
+
esc_attr( $class ),
|
599 |
+
esc_html__( 'Flush Cache', 'timeline-express' )
|
600 |
+
);
|
601 |
+
|
602 |
+
?>
|
603 |
+
|
604 |
+
</div>
|
605 |
+
<!-- .inside -->
|
606 |
+
</div>
|
607 |
+
<!-- .postbox -->
|
608 |
+
|
609 |
</div>
|
610 |
<!-- .meta-box-sortables -->
|
611 |
|
lib/classes/class-timeline-express-2-week-notice.php
CHANGED
@@ -27,7 +27,7 @@ class Timeline_Express_Two_Weeks_Notice {
|
|
27 |
}
|
28 |
|
29 |
add_action( 'admin_notices', array( $this, 'admin_notice' ) );
|
30 |
-
add_action( 'admin_init',
|
31 |
|
32 |
}
|
33 |
|
@@ -57,7 +57,7 @@ class Timeline_Express_Two_Weeks_Notice {
|
|
57 |
if ( current_user_can( 'manage_options' ) ) {
|
58 |
|
59 |
printf(
|
60 |
-
'<div class="notice notice-info codeparrots-
|
61 |
<p>%s</p>
|
62 |
</div>',
|
63 |
wp_kses_post( $this->get_message() )
|
@@ -115,7 +115,7 @@ class Timeline_Express_Two_Weeks_Notice {
|
|
115 |
%7$s
|
116 |
</a>
|
117 |
</p>',
|
118 |
-
esc_html__( 'It looks like you have been using Timeline Express for
|
119 |
esc_html__( 'Leave a Review', 'timeline-express' ),
|
120 |
esc_html__( 'Upgrade to Pro', 'timeline-express' ),
|
121 |
esc_url( admin_url( 'edit.php?post_type=te_announcements&page=timeline-express-addons' ) ),
|
27 |
}
|
28 |
|
29 |
add_action( 'admin_notices', array( $this, 'admin_notice' ) );
|
30 |
+
add_action( 'admin_init', array( $this, 'dismiss_rating_notice' ), 10 );
|
31 |
|
32 |
}
|
33 |
|
57 |
if ( current_user_can( 'manage_options' ) ) {
|
58 |
|
59 |
printf(
|
60 |
+
'<div class="notice notice-info codeparrots-2-week-notice">
|
61 |
<p>%s</p>
|
62 |
</div>',
|
63 |
wp_kses_post( $this->get_message() )
|
115 |
%7$s
|
116 |
</a>
|
117 |
</p>',
|
118 |
+
esc_html__( 'It looks like you have been using Timeline Express for two weeks now. If you are enjoying the plugin we would love it if you could leave us a 5 star review!', 'timeline-express' ),
|
119 |
esc_html__( 'Leave a Review', 'timeline-express' ),
|
120 |
esc_html__( 'Upgrade to Pro', 'timeline-express' ),
|
121 |
esc_url( admin_url( 'edit.php?post_type=te_announcements&page=timeline-express-addons' ) ),
|
lib/classes/class-timeline-express-admin.php
CHANGED
@@ -16,14 +16,6 @@ class Timeline_Express_Admin {
|
|
16 |
*/
|
17 |
public function __construct() {
|
18 |
|
19 |
-
if ( version_compare( PHP_VERSION, '5.6.0', '>=' ) ) {
|
20 |
-
|
21 |
-
include_once( TIMELINE_EXPRESS_PATH . 'lib/classes/usage-tracking/class-wp-plugin-usage-tracker.php' );
|
22 |
-
|
23 |
-
new WP_Plugin_Usage_Tracker;
|
24 |
-
|
25 |
-
}
|
26 |
-
|
27 |
include_once( TIMELINE_EXPRESS_PATH . 'lib/classes/class-timeline-express-2-week-notice.php' );
|
28 |
|
29 |
new Timeline_Express_Two_Weeks_Notice;
|
@@ -55,6 +47,9 @@ class Timeline_Express_Admin {
|
|
55 |
/* Add our announcement met adata to the REST API */
|
56 |
add_action( 'rest_api_init', array( $this, 'timeline_express_rest_api' ) );
|
57 |
|
|
|
|
|
|
|
58 |
/**
|
59 |
* Include CMB2 - Metabox Framework
|
60 |
* @resource https://github.com/WebDevStudios/CMB2
|
@@ -75,7 +70,7 @@ class Timeline_Express_Admin {
|
|
75 |
*/
|
76 |
add_action( 'admin_enqueue_scripts', array( $this, 'add_timeline_express_admin_scripts_and_styles' ) );
|
77 |
|
78 |
-
add_action( 'wp_ajax_timeline_express_add_on_installer',
|
79 |
add_action( 'wp_ajax_timeline_express_add_on_activation', array( $this, 'timeline_express_add_on_activation' ) ); // Activate add-on
|
80 |
|
81 |
}
|
@@ -226,28 +221,44 @@ class Timeline_Express_Admin {
|
|
226 |
|
227 |
}
|
228 |
|
229 |
-
|
230 |
-
$current_url = admin_url( add_query_arg( null, null ) );
|
231 |
-
|
232 |
-
$split_url = wp_parse_args( $current_url );
|
233 |
|
234 |
// When the settings were not updated, or it isn't set to true, abort
|
235 |
-
if (
|
236 |
|
237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
}
|
240 |
|
241 |
-
|
242 |
-
<div class="notice notice-success">
|
243 |
|
244 |
-
|
245 |
-
|
246 |
-
</p>
|
247 |
|
248 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
|
250 |
-
<?php
|
251 |
}
|
252 |
|
253 |
/**
|
@@ -395,6 +406,29 @@ class Timeline_Express_Admin {
|
|
395 |
|
396 |
}
|
397 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
/**
|
399 |
* Expose our announcement meta data to the REST API
|
400 |
*
|
@@ -586,7 +620,7 @@ class Timeline_Express_Admin {
|
|
586 |
$api = plugins_api(
|
587 |
'plugin_information',
|
588 |
array(
|
589 |
-
'slug'
|
590 |
'fields' => array(
|
591 |
'short_description' => false,
|
592 |
'sections' => false,
|
@@ -725,7 +759,7 @@ class Timeline_Express_Admin {
|
|
725 |
activate_plugin( $main_plugin_file );
|
726 |
|
727 |
$status = 'success';
|
728 |
-
$msg
|
729 |
/* translators: The name of the plugin. */
|
730 |
__( '%s successfully activated.', 'timeline-express' ),
|
731 |
esc_html( $api->name )
|
@@ -736,7 +770,7 @@ class Timeline_Express_Admin {
|
|
736 |
} else {
|
737 |
|
738 |
$status = 'failed';
|
739 |
-
$msg
|
740 |
/* translators: The name of the plugin. */
|
741 |
__( 'There was an error activating %s.', 'timeline-express' ),
|
742 |
esc_html( $api->name )
|
16 |
*/
|
17 |
public function __construct() {
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
include_once( TIMELINE_EXPRESS_PATH . 'lib/classes/class-timeline-express-2-week-notice.php' );
|
20 |
|
21 |
new Timeline_Express_Two_Weeks_Notice;
|
47 |
/* Add our announcement met adata to the REST API */
|
48 |
add_action( 'rest_api_init', array( $this, 'timeline_express_rest_api' ) );
|
49 |
|
50 |
+
/* Flush the transients when the button is pressed */
|
51 |
+
add_action( 'admin_init', array( $this, 'timeline_express_flush_cache' ) );
|
52 |
+
|
53 |
/**
|
54 |
* Include CMB2 - Metabox Framework
|
55 |
* @resource https://github.com/WebDevStudios/CMB2
|
70 |
*/
|
71 |
add_action( 'admin_enqueue_scripts', array( $this, 'add_timeline_express_admin_scripts_and_styles' ) );
|
72 |
|
73 |
+
add_action( 'wp_ajax_timeline_express_add_on_installer', array( $this, 'timeline_express_add_on_installer' ) ); // Install add-on
|
74 |
add_action( 'wp_ajax_timeline_express_add_on_activation', array( $this, 'timeline_express_add_on_activation' ) ); // Activate add-on
|
75 |
|
76 |
}
|
221 |
|
222 |
}
|
223 |
|
224 |
+
$settings_updated = filter_input( INPUT_GET, 'settings-updated', FILTER_SANITIZE_STRING );
|
|
|
|
|
|
|
225 |
|
226 |
// When the settings were not updated, or it isn't set to true, abort
|
227 |
+
if ( $settings_updated && 'true' === $settings_updated ) {
|
228 |
|
229 |
+
?>
|
230 |
+
|
231 |
+
<div class="notice notice-success">
|
232 |
+
|
233 |
+
<p>
|
234 |
+
<span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Timeline Express settings saved successfully!', 'timeline-express' ); ?>
|
235 |
+
</p>
|
236 |
+
|
237 |
+
</div>
|
238 |
+
|
239 |
+
<?php
|
240 |
|
241 |
}
|
242 |
|
243 |
+
$cache_flushed = filter_input( INPUT_GET, 'cache_flushed', FILTER_SANITIZE_STRING );
|
|
|
244 |
|
245 |
+
// When the settings were not updated, or it isn't set to true, abort
|
246 |
+
if ( $cache_flushed && 'true' === $cache_flushed ) {
|
|
|
247 |
|
248 |
+
?>
|
249 |
+
|
250 |
+
<div class="notice notice-success">
|
251 |
+
|
252 |
+
<p>
|
253 |
+
<span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Timeline Express cache flushed.', 'timeline-express' ); ?>
|
254 |
+
</p>
|
255 |
+
|
256 |
+
</div>
|
257 |
+
|
258 |
+
<?php
|
259 |
+
|
260 |
+
}
|
261 |
|
|
|
262 |
}
|
263 |
|
264 |
/**
|
406 |
|
407 |
}
|
408 |
|
409 |
+
/**
|
410 |
+
* Process the cache flush button press.
|
411 |
+
*
|
412 |
+
* @since 1.6.1
|
413 |
+
*/
|
414 |
+
public function timeline_express_flush_cache() {
|
415 |
+
|
416 |
+
$nonce = filter_input( INPUT_GET, '_wpnonce', FILTER_SANITIZE_STRING );
|
417 |
+
|
418 |
+
if ( ! $nonce || ! wp_verify_nonce( $nonce, 'flush_cache' ) ) {
|
419 |
+
|
420 |
+
return;
|
421 |
+
|
422 |
+
}
|
423 |
+
|
424 |
+
delete_timeline_express_transients();
|
425 |
+
|
426 |
+
wp_safe_redirect( admin_url( 'edit.php?post_type=te_announcements&page=timeline-express-settings&cache_flushed=true' ), 200 );
|
427 |
+
|
428 |
+
exit;
|
429 |
+
|
430 |
+
}
|
431 |
+
|
432 |
/**
|
433 |
* Expose our announcement meta data to the REST API
|
434 |
*
|
620 |
$api = plugins_api(
|
621 |
'plugin_information',
|
622 |
array(
|
623 |
+
'slug' => $plugin,
|
624 |
'fields' => array(
|
625 |
'short_description' => false,
|
626 |
'sections' => false,
|
759 |
activate_plugin( $main_plugin_file );
|
760 |
|
761 |
$status = 'success';
|
762 |
+
$msg = sprintf(
|
763 |
/* translators: The name of the plugin. */
|
764 |
__( '%s successfully activated.', 'timeline-express' ),
|
765 |
esc_html( $api->name )
|
770 |
} else {
|
771 |
|
772 |
$status = 'failed';
|
773 |
+
$msg = sprintf(
|
774 |
/* translators: The name of the plugin. */
|
775 |
__( 'There was an error activating %s.', 'timeline-express' ),
|
776 |
esc_html( $api->name )
|
lib/classes/class-timeline-express-initialize.php
CHANGED
@@ -276,10 +276,10 @@ class Timeline_Express_Initialize {
|
|
276 |
|
277 |
/* Set up the announcement arguments */
|
278 |
$announcement_args = array(
|
279 |
-
'post_type'
|
280 |
-
'meta_key'
|
281 |
-
'orderby'
|
282 |
-
'order'
|
283 |
'posts_per_page' => $shortcode_attributes['limit'],
|
284 |
);
|
285 |
|
@@ -290,7 +290,7 @@ class Timeline_Express_Initialize {
|
|
290 |
array(
|
291 |
'key' => 'announcement_date',
|
292 |
'value' => strtotime( current_time( 'm/d/Y' ) ),
|
293 |
-
'type'
|
294 |
'compare' => $compare_sign,
|
295 |
),
|
296 |
);
|
276 |
|
277 |
/* Set up the announcement arguments */
|
278 |
$announcement_args = array(
|
279 |
+
'post_type' => 'te_announcements',
|
280 |
+
'meta_key' => 'announcement_date',
|
281 |
+
'orderby' => 'meta_value_num',
|
282 |
+
'order' => $display_order,
|
283 |
'posts_per_page' => $shortcode_attributes['limit'],
|
284 |
);
|
285 |
|
290 |
array(
|
291 |
'key' => 'announcement_date',
|
292 |
'value' => strtotime( current_time( 'm/d/Y' ) ),
|
293 |
+
'type' => 'NUMERIC',
|
294 |
'compare' => $compare_sign,
|
295 |
),
|
296 |
);
|
lib/classes/class-timeline-express-public.php
CHANGED
@@ -42,8 +42,8 @@ class Timeline_Express_Public {
|
|
42 |
/* Parse the shortcode attributes */
|
43 |
$atts = shortcode_atts(
|
44 |
array(
|
45 |
-
'limit'
|
46 |
-
'order'
|
47 |
'display' => $options['announcement-time-frame'],
|
48 |
), $atts, 'timeline-express'
|
49 |
);
|
42 |
/* Parse the shortcode attributes */
|
43 |
$atts = shortcode_atts(
|
44 |
array(
|
45 |
+
'limit' => -1,
|
46 |
+
'order' => $options['announcement-display-order'],
|
47 |
'display' => $options['announcement-time-frame'],
|
48 |
), $atts, 'timeline-express'
|
49 |
);
|
lib/classes/class-timeline-express.php
CHANGED
@@ -112,8 +112,8 @@ class TimelineExpressBase {
|
|
112 |
esc_html__( 'Sorry, the nonce security check did not pass. Please go back to the settings page, refresh the page and try to save your settings again.', 'timeline-express' ),
|
113 |
__( 'Failed Nonce Security Check', 'timeline-express' ),
|
114 |
array(
|
115 |
-
'response'
|
116 |
-
'back_link'
|
117 |
'text_direction' => ( is_rtl() ) ? 'rtl' : 'ltr',
|
118 |
)
|
119 |
);
|
112 |
esc_html__( 'Sorry, the nonce security check did not pass. Please go back to the settings page, refresh the page and try to save your settings again.', 'timeline-express' ),
|
113 |
__( 'Failed Nonce Security Check', 'timeline-express' ),
|
114 |
array(
|
115 |
+
'response' => 500,
|
116 |
+
'back_link' => true,
|
117 |
'text_direction' => ( is_rtl() ) ? 'rtl' : 'ltr',
|
118 |
)
|
119 |
);
|
lib/helpers.php
CHANGED
@@ -53,22 +53,22 @@ function timeline_express_get_options() {
|
|
53 |
return apply_filters(
|
54 |
'timeline_express_options', get_option(
|
55 |
TIMELINE_EXPRESS_OPTION, array(
|
56 |
-
'announcement-time-frame'
|
57 |
-
'announcement-display-order'
|
58 |
-
'excerpt-trim-length'
|
59 |
-
'excerpt-random-length'
|
60 |
-
'date-visibility'
|
61 |
-
'read-more-visibility'
|
62 |
-
'default-announcement-icon'
|
63 |
-
'default-announcement-color'
|
64 |
-
'announcement-box-shadow-color'
|
65 |
-
'announcement-background-line-color'
|
66 |
-
'announcement-bg-color'
|
67 |
-
'no-events-message'
|
68 |
-
'announcement-appear-in-searches'
|
69 |
-
'disable-animation'
|
70 |
'delete-announcement-posts-on-uninstallation' => 0,
|
71 |
-
'version'
|
72 |
)
|
73 |
)
|
74 |
);
|
@@ -172,24 +172,23 @@ function cmb2_validate_te_bootstrap_dropdown_callback( $override_value, $value )
|
|
172 |
*/
|
173 |
function timeline_express_enqueue_font_awesome() {
|
174 |
|
175 |
-
$local_font_awesome = ( defined( 'TIMELINE_EXPRESS_FONT_AWESOME_LOCAL' ) && TIMELINE_EXPRESS_FONT_AWESOME_LOCAL ) ? true : false;
|
176 |
|
177 |
-
|
178 |
|
179 |
-
|
|
|
180 |
|
181 |
-
|
182 |
-
if ( ! $local_font_awesome && wp_remote_get( $http . '//netdna.bootstrapcdn.com/font-awesome/' . $font_awesome_version . '/css/font-awesome.css' ) ) {
|
183 |
|
184 |
-
|
185 |
-
wp_enqueue_style( 'font-awesome', $http . '//netdna.bootstrapcdn.com/font-awesome/' . $font_awesome_version . '/css/font-awesome.min.css', array(), $font_awesome_version );
|
186 |
|
187 |
-
|
188 |
|
189 |
-
|
190 |
-
wp_enqueue_style( 'font-awesome', TIMELINE_EXPRESS_URL . 'lib/icons/css/font-awesome.min.css', array(), $font_awesome_version );
|
191 |
|
192 |
-
|
|
|
193 |
|
194 |
}
|
195 |
|
@@ -300,7 +299,7 @@ function timeline_express_build_bootstrap_icon_dropdown( $field, $meta ) {
|
|
300 |
/* sort the bootstrap icons alphabetically */
|
301 |
foreach ( $icons as $icon_name => $icon_content ) { ?>
|
302 |
|
303 |
-
<option class="fa" data-icon="fa-<?php echo esc_attr( $icon_name ); ?>" <?php selected( 'fa-' . $icon_name
|
304 |
|
305 |
<?php } ?>
|
306 |
|
@@ -578,10 +577,10 @@ function timeline_express_get_announcement_image( $post_id, $image_size = 'timel
|
|
578 |
$img_src = ( is_integer( $image ) ) ? wp_get_attachment_image_url( $image, $image_size ) : $image;
|
579 |
|
580 |
$image_attributes = array(
|
581 |
-
'class'
|
582 |
-
'src'
|
583 |
-
'sizes'
|
584 |
-
'alt'
|
585 |
);
|
586 |
|
587 |
$img_srcset = wp_get_attachment_image_srcset( get_post_meta( $post_id, 'announcement_image_id', true ), $image_size );
|
53 |
return apply_filters(
|
54 |
'timeline_express_options', get_option(
|
55 |
TIMELINE_EXPRESS_OPTION, array(
|
56 |
+
'announcement-time-frame' => '1',
|
57 |
+
'announcement-display-order' => 'ASC',
|
58 |
+
'excerpt-trim-length' => 50,
|
59 |
+
'excerpt-random-length' => 0,
|
60 |
+
'date-visibility' => '1',
|
61 |
+
'read-more-visibility' => '1',
|
62 |
+
'default-announcement-icon' => 'exclamation-triangle',
|
63 |
+
'default-announcement-color' => '#75CE66',
|
64 |
+
'announcement-box-shadow-color' => '#B9C5CD',
|
65 |
+
'announcement-background-line-color' => '#D7E4ED',
|
66 |
+
'announcement-bg-color' => '#EFEFEF',
|
67 |
+
'no-events-message' => esc_html__( 'No announcements found', 'timeline-express' ),
|
68 |
+
'announcement-appear-in-searches' => 'true',
|
69 |
+
'disable-animation' => 0,
|
70 |
'delete-announcement-posts-on-uninstallation' => 0,
|
71 |
+
'version' => TIMELINE_EXPRESS_VERSION_CURRENT,
|
72 |
)
|
73 |
)
|
74 |
);
|
172 |
*/
|
173 |
function timeline_express_enqueue_font_awesome() {
|
174 |
|
175 |
+
$local_font_awesome = ( ! defined( 'TIMELINE_EXPRESS_FONT_AWESOME_LOCAL' ) || ( defined( 'TIMELINE_EXPRESS_FONT_AWESOME_LOCAL' ) && TIMELINE_EXPRESS_FONT_AWESOME_LOCAL ) ) ? true : false;
|
176 |
|
177 |
+
if ( $local_font_awesome ) {
|
178 |
|
179 |
+
/* If not, load the local version */
|
180 |
+
wp_enqueue_style( 'font-awesome', TIMELINE_EXPRESS_URL . 'lib/icons/css/font-awesome.min.css', array(), '4.7.0' );
|
181 |
|
182 |
+
return;
|
|
|
183 |
|
184 |
+
}
|
|
|
185 |
|
186 |
+
$font_awesome_version = apply_filters( 'timeline_express_font_awesome_version', '4.7.0' );
|
187 |
|
188 |
+
$http = ( is_ssl() ) ? 'https:' : 'http:';
|
|
|
189 |
|
190 |
+
/* Enqueue font awesome for use in column display */
|
191 |
+
wp_enqueue_style( 'font-awesome', $http . '//netdna.bootstrapcdn.com/font-awesome/' . $font_awesome_version . '/css/font-awesome.min.css', array(), $font_awesome_version );
|
192 |
|
193 |
}
|
194 |
|
299 |
/* sort the bootstrap icons alphabetically */
|
300 |
foreach ( $icons as $icon_name => $icon_content ) { ?>
|
301 |
|
302 |
+
<option class="fa" data-icon="fa-<?php echo esc_attr( $icon_name ); ?>" <?php selected( 'fa-' . $icon_name, $meta ); ?>><?php echo esc_html( $icon_name ); ?></option>
|
303 |
|
304 |
<?php } ?>
|
305 |
|
577 |
$img_src = ( is_integer( $image ) ) ? wp_get_attachment_image_url( $image, $image_size ) : $image;
|
578 |
|
579 |
$image_attributes = array(
|
580 |
+
'class' => 'announcement-banner-image',
|
581 |
+
'src' => esc_url( $img_src ),
|
582 |
+
'sizes' => '(max-width: 100%) 75vw, 680px',
|
583 |
+
'alt' => get_the_title(),
|
584 |
);
|
585 |
|
586 |
$img_srcset = wp_get_attachment_image_srcset( get_post_meta( $post_id, 'announcement_image_id', true ), $image_size );
|
lib/public/css/min/timeline-express-rtl.min.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
-
* @Version 1.
|
6 |
-
* @Build
|
7 |
*/
|
8 |
.cd-container{width:95%;margin:0 auto}.cd-container::after{content:'';display:table;clear:both}#cd-timeline{position:relative;padding:1em 0;margin-top:2em;margin-bottom:3em}.cd-timeline-block:last-child,.cd-timeline-content .the-excerpt p{margin-bottom:0}#cd-timeline::before{content:'';position:absolute;top:0;right:18px;height:100%;width:4px;background:rgba(179,177,179,.75)}.cd-timeline-block:after,.cd-timeline-content:after{content:"";clear:both}.cd-timeline-content h2{margin:0}.cd-timeline-content .cd-date,.cd-timeline-content .the-excerpt,.cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:10}.announcement-banner-image{border-radius:3px}.cd-timeline-block{width:100%;display:inline-block}.cd-timeline-block:after{display:table}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-img{position:absolute;right:-5px;height:50px;width:50px;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;color:#fff}.cd-timeline-img img{display:block;position:relative;right:50%;top:50%;margin-right:-12px;margin-top:-12px}.cd-timeline-content{position:relative;margin-right:70px;top:0;background:#fff;border-radius:.25em;padding:1em;box-shadow:0 3px 0 #B9C5CD;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;-ms-box-sizing:border-box!important;margin-bottom:1em}.cd-timeline-content:after{display:table}.cd-timeline-content .cd-date{float:right;padding:.8em 0;opacity:.7;font-size:12px}.cd-timeline-title-container+img{margin:.75em 0;width:100%;max-width:100%}.cd-timeline-title-container+.the-excerpt{margin-top:.5em}.cd-timeline-title-container .timeline-date{font-style:italic;display:block;margin:3px 0 0}@keyframes cd-reveal-image{0%{opacity:0;transform:scale(.5)}60%{opacity:1;transform:scale(1.2)}100%{transform:scale(1)}}@keyframes te-slide-in-left{0%{opacity:0;transform:translateX(100px)}60%{opacity:1;transform:translateX(-20px)}100%{transform:translateX(0)}}@keyframes te-slide-in-right{0%{opacity:0;transform:translateX(-100px)}60%{opacity:1;transform:translateX(20px)}100%{transform:translateX(0)}}.cd-timeline-icon-link,.cd-timeline-icon-link:hover{color:transparent;margin:0;box-shadow:none;-webkit-box-shadow:none;text-decoration:none}#cd-timeline span.fa{color:#fff;font-size:23px;display:block;text-align:center;line-height:52px}.cd-timeline-content::before{content:'';position:absolute;top:16px;left:100%;height:0;width:0;border:12px solid transparent}@media only screen and (min-width:822px){#cd-timeline{margin:3.5em 0}#cd-timeline::before{right:50%;margin-right:-2px}#cd-timeline span.fa{font-size:25px;line-height:63px;height:100%}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-block:last-child{margin-bottom:0}.cd-timeline-img{width:60px;height:60px;right:50%;margin-right:-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-reveal-image .6s}.cd-container{width:100%}.cd-timeline-content{margin-right:0;top:8px;padding:1.6em;width:42.5%;background:#EFEFEF}.cd-timeline-content::before{top:12px;right:100%;border-color:transparent #EFEFEF transparent transparent}.cd-timeline-content .cd-date{position:absolute;width:100%;right:125%;top:15px}.cd-timeline-block:nth-child(even) .cd-timeline-content{float:left}.cd-timeline-block:nth-child(even) .cd-timeline-content::before{top:12px;right:auto;left:100%;border-color:transparent}.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date{right:auto;left:125%;text-align:left}.cssanimations .cd-timeline-content.is-hidden{visibility:hidden}.cssanimations .cd-timeline-content.bounce-in{visibility:visible;animation:te-slide-in-right .6s}.cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in{animation:te-slide-in-left .6s}}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;font-style:italic}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}
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
+
* @Version 1.7.0
|
6 |
+
* @Build 05-25-2018
|
7 |
*/
|
8 |
.cd-container{width:95%;margin:0 auto}.cd-container::after{content:'';display:table;clear:both}#cd-timeline{position:relative;padding:1em 0;margin-top:2em;margin-bottom:3em}.cd-timeline-block:last-child,.cd-timeline-content .the-excerpt p{margin-bottom:0}#cd-timeline::before{content:'';position:absolute;top:0;right:18px;height:100%;width:4px;background:rgba(179,177,179,.75)}.cd-timeline-block:after,.cd-timeline-content:after{content:"";clear:both}.cd-timeline-content h2{margin:0}.cd-timeline-content .cd-date,.cd-timeline-content .the-excerpt,.cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:10}.announcement-banner-image{border-radius:3px}.cd-timeline-block{width:100%;display:inline-block}.cd-timeline-block:after{display:table}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-img{position:absolute;right:-5px;height:50px;width:50px;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;color:#fff}.cd-timeline-img img{display:block;position:relative;right:50%;top:50%;margin-right:-12px;margin-top:-12px}.cd-timeline-content{position:relative;margin-right:70px;top:0;background:#fff;border-radius:.25em;padding:1em;box-shadow:0 3px 0 #B9C5CD;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;-ms-box-sizing:border-box!important;margin-bottom:1em}.cd-timeline-content:after{display:table}.cd-timeline-content .cd-date{float:right;padding:.8em 0;opacity:.7;font-size:12px}.cd-timeline-title-container+img{margin:.75em 0;width:100%;max-width:100%}.cd-timeline-title-container+.the-excerpt{margin-top:.5em}.cd-timeline-title-container .timeline-date{font-style:italic;display:block;margin:3px 0 0}@keyframes cd-reveal-image{0%{opacity:0;transform:scale(.5)}60%{opacity:1;transform:scale(1.2)}100%{transform:scale(1)}}@keyframes te-slide-in-left{0%{opacity:0;transform:translateX(100px)}60%{opacity:1;transform:translateX(-20px)}100%{transform:translateX(0)}}@keyframes te-slide-in-right{0%{opacity:0;transform:translateX(-100px)}60%{opacity:1;transform:translateX(20px)}100%{transform:translateX(0)}}.cd-timeline-icon-link,.cd-timeline-icon-link:hover{color:transparent;margin:0;box-shadow:none;-webkit-box-shadow:none;text-decoration:none}#cd-timeline span.fa{color:#fff;font-size:23px;display:block;text-align:center;line-height:52px}.cd-timeline-content::before{content:'';position:absolute;top:16px;left:100%;height:0;width:0;border:12px solid transparent}@media only screen and (min-width:822px){#cd-timeline{margin:3.5em 0}#cd-timeline::before{right:50%;margin-right:-2px}#cd-timeline span.fa{font-size:25px;line-height:63px;height:100%}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-block:last-child{margin-bottom:0}.cd-timeline-img{width:60px;height:60px;right:50%;margin-right:-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-reveal-image .6s}.cd-container{width:100%}.cd-timeline-content{margin-right:0;top:8px;padding:1.6em;width:42.5%;background:#EFEFEF}.cd-timeline-content::before{top:12px;right:100%;border-color:transparent #EFEFEF transparent transparent}.cd-timeline-content .cd-date{position:absolute;width:100%;right:125%;top:15px}.cd-timeline-block:nth-child(even) .cd-timeline-content{float:left}.cd-timeline-block:nth-child(even) .cd-timeline-content::before{top:12px;right:auto;left:100%;border-color:transparent}.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date{right:auto;left:125%;text-align:left}.cssanimations .cd-timeline-content.is-hidden{visibility:hidden}.cssanimations .cd-timeline-content.bounce-in{visibility:visible;animation:te-slide-in-right .6s}.cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in{animation:te-slide-in-left .6s}}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;font-style:italic}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/min/timeline-express.min.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
-
* @Version 1.
|
6 |
-
* @Build
|
7 |
*/
|
8 |
.cd-container{width:95%;margin:0 auto}.cd-container::after{content:'';display:table;clear:both}#cd-timeline{position:relative;padding:1em 0;margin-top:2em;margin-bottom:3em}.cd-timeline-block:last-child,.cd-timeline-content .the-excerpt p{margin-bottom:0}#cd-timeline::before{content:'';position:absolute;top:0;left:18px;height:100%;width:4px;background:rgba(179,177,179,.75)}.cd-timeline-block:after,.cd-timeline-content:after{content:"";clear:both}.cd-timeline-content h2{margin:0}.cd-timeline-content .cd-date,.cd-timeline-content .the-excerpt,.cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:10}.announcement-banner-image{border-radius:3px}.cd-timeline-block{width:100%;display:inline-block}.cd-timeline-block:after{display:table}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-img{position:absolute;left:-5px;height:50px;width:50px;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;color:#fff}.cd-timeline-img img{display:block;position:relative;left:50%;top:50%;margin-left:-12px;margin-top:-12px}.cd-timeline-content{position:relative;margin-left:70px;top:0;background:#fff;border-radius:.25em;padding:1em;box-shadow:0 3px 0 #B9C5CD;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;-ms-box-sizing:border-box!important;margin-bottom:1em}.cd-timeline-content:after{display:table}.cd-timeline-content .cd-date{float:left;padding:.8em 0;opacity:.7;font-size:12px}.cd-timeline-title-container+img{margin:.75em 0;width:100%;max-width:100%}.cd-timeline-title-container+.the-excerpt{margin-top:.5em}.cd-timeline-title-container .timeline-date{font-style:italic;display:block;margin:3px 0 0}@keyframes cd-reveal-image{0%{opacity:0;transform:scale(.5)}60%{opacity:1;transform:scale(1.2)}100%{transform:scale(1)}}@keyframes te-slide-in-left{0%{opacity:0;transform:translateX(-100px)}60%{opacity:1;transform:translateX(20px)}100%{transform:translateX(0)}}@keyframes te-slide-in-right{0%{opacity:0;transform:translateX(100px)}60%{opacity:1;transform:translateX(-20px)}100%{transform:translateX(0)}}.cd-timeline-icon-link,.cd-timeline-icon-link:hover{color:transparent;margin:0;box-shadow:none;-webkit-box-shadow:none;text-decoration:none}#cd-timeline span.fa{color:#fff;font-size:23px;display:block;text-align:center;line-height:52px}.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:822px){#cd-timeline{margin:3.5em 0}#cd-timeline::before{left:50%;margin-left:-2px}#cd-timeline span.fa{font-size:25px;line-height:63px;height:100%}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-block:last-child{margin-bottom:0}.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-reveal-image .6s}.cd-container{width:100%}.cd-timeline-content{margin-left:0;top:8px;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}.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:te-slide-in-left .6s}.cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in{animation:te-slide-in-right .6s}}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;font-style:italic}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}
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
+
* @Version 1.7.0
|
6 |
+
* @Build 05-25-2018
|
7 |
*/
|
8 |
.cd-container{width:95%;margin:0 auto}.cd-container::after{content:'';display:table;clear:both}#cd-timeline{position:relative;padding:1em 0;margin-top:2em;margin-bottom:3em}.cd-timeline-block:last-child,.cd-timeline-content .the-excerpt p{margin-bottom:0}#cd-timeline::before{content:'';position:absolute;top:0;left:18px;height:100%;width:4px;background:rgba(179,177,179,.75)}.cd-timeline-block:after,.cd-timeline-content:after{content:"";clear:both}.cd-timeline-content h2{margin:0}.cd-timeline-content .cd-date,.cd-timeline-content .the-excerpt,.cd-timeline-content .timeline-express-read-more-link{position:relative;z-index:10}.announcement-banner-image{border-radius:3px}.cd-timeline-block{width:100%;display:inline-block}.cd-timeline-block:after{display:table}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-img{position:absolute;left:-5px;height:50px;width:50px;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;color:#fff}.cd-timeline-img img{display:block;position:relative;left:50%;top:50%;margin-left:-12px;margin-top:-12px}.cd-timeline-content{position:relative;margin-left:70px;top:0;background:#fff;border-radius:.25em;padding:1em;box-shadow:0 3px 0 #B9C5CD;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;-ms-box-sizing:border-box!important;margin-bottom:1em}.cd-timeline-content:after{display:table}.cd-timeline-content .cd-date{float:left;padding:.8em 0;opacity:.7;font-size:12px}.cd-timeline-title-container+img{margin:.75em 0;width:100%;max-width:100%}.cd-timeline-title-container+.the-excerpt{margin-top:.5em}.cd-timeline-title-container .timeline-date{font-style:italic;display:block;margin:3px 0 0}@keyframes cd-reveal-image{0%{opacity:0;transform:scale(.5)}60%{opacity:1;transform:scale(1.2)}100%{transform:scale(1)}}@keyframes te-slide-in-left{0%{opacity:0;transform:translateX(-100px)}60%{opacity:1;transform:translateX(20px)}100%{transform:translateX(0)}}@keyframes te-slide-in-right{0%{opacity:0;transform:translateX(100px)}60%{opacity:1;transform:translateX(-20px)}100%{transform:translateX(0)}}.cd-timeline-icon-link,.cd-timeline-icon-link:hover{color:transparent;margin:0;box-shadow:none;-webkit-box-shadow:none;text-decoration:none}#cd-timeline span.fa{color:#fff;font-size:23px;display:block;text-align:center;line-height:52px}.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:822px){#cd-timeline{margin:3.5em 0}#cd-timeline::before{left:50%;margin-left:-2px}#cd-timeline span.fa{font-size:25px;line-height:63px;height:100%}.cd-timeline-block:first-child{margin-top:0}.cd-timeline-block:last-child{margin-bottom:0}.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-reveal-image .6s}.cd-container{width:100%}.cd-timeline-content{margin-left:0;top:8px;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}.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:te-slide-in-left .6s}.cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in{animation:te-slide-in-right .6s}}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;font-style:italic}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/js/min/timeline-express.min.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
-
* @Version 1.
|
6 |
-
* @Build
|
7 |
*/
|
8 |
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")})})});
|
2 |
* @Plugin Timeline Express
|
3 |
* @Author Code Parrots
|
4 |
* @Site https://www.wp-timelineexpress.com
|
5 |
+
* @Version 1.7.0
|
6 |
+
* @Build 05-25-2018
|
7 |
*/
|
8 |
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")})})});
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Timeline Express ===
|
2 |
Contributors: codeparrots, eherman24
|
3 |
-
Tags: timeline, responsive,
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Timeline Express creates a beautiful vertical animated and responsive timeline of posts, in chronological order.
|
1 |
=== Timeline Express ===
|
2 |
Contributors: codeparrots, eherman24
|
3 |
+
Tags: timeline, responsive, vertical, animated, company, history, font awesome, events, calendar, scroll, dates, milestone
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 1.7.0
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Timeline Express creates a beautiful vertical animated and responsive timeline of posts, in chronological order.
|
timeline-express.php
CHANGED
@@ -1,30 +1,30 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
*
|
29 |
* @link http://www.codeparrots.com
|
30 |
*
|
1 |
<?php
|
2 |
/**
|
3 |
+
#_________________________________________________ PLUGIN
|
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.7.0
|
8 |
+
Author: Code Parrots
|
9 |
+
Text Domain: timeline-express
|
10 |
+
Author URI: http://www.codeparrots.com
|
11 |
+
License: GPL2
|
12 |
+
#_________________________________________________ LICENSE
|
13 |
+
Copyright 2012-16 Code Parrots (email : codeparrots@gmail.com)
|
14 |
|
15 |
+
This program is free software; you can redistribute it and/or modify
|
16 |
+
it under the terms of the GNU General Public License, version 2, as
|
17 |
+
published by the Free Software Foundation.
|
18 |
|
19 |
+
This program is distributed in the hope that it will be useful,
|
20 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
+
GNU General Public License for more details.
|
23 |
|
24 |
+
You should have received a copy of the GNU General Public License
|
25 |
+
along with this program; if not, write to the Free Software
|
26 |
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
+
#_________________________________________________ CONSTANTS
|
28 |
*
|
29 |
* @link http://www.codeparrots.com
|
30 |
*
|
uninstall.php
CHANGED
@@ -25,7 +25,6 @@ if ( isset( $options['delete-announcement-posts-on-uninstallation'] ) && '1' ===
|
|
25 |
|
26 |
/* Delete Timeline Express options */
|
27 |
delete_option( 'timeline_express_storage' );
|
28 |
-
delete_option( 'timeline-express_tracking' );
|
29 |
delete_option( 'timeline-express_nobug' );
|
30 |
delete_option( 'timeline-express_rating_nobug' );
|
31 |
|
25 |
|
26 |
/* Delete Timeline Express options */
|
27 |
delete_option( 'timeline_express_storage' );
|
|
|
28 |
delete_option( 'timeline-express_nobug' );
|
29 |
delete_option( 'timeline-express_rating_nobug' );
|
30 |
|