ThemeGrill Demo Importer - Version 1.5.2

Version Description

  • 25-09-2018 =
  • Fix - Custom CSS migration on demo import.
  • Fix - Live Preview button when demo is successfully imported in demo preview page.
Download this release

Release Info

Developer ThemeGrill
Plugin Icon 128x128 ThemeGrill Demo Importer
Version 1.5.2
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.2

CHANGELOG.txt CHANGED
@@ -1,5 +1,12 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
3
  = 1.5.0 - 21-08-2018 =
4
  * Feature - Fetches the demo config from GitHub repo.
5
  * Feature - Category and pagebuilder routes for views.
1
  == Changelog ==
2
 
3
+ = TBD =
4
+ * Fix - Custom CSS migration on demo import.
5
+ * Fix - Live Preview button when demo is successfully imported in demo preview page.
6
+
7
+ = 1.5.1 - 24-08-2018 =
8
+ * Support - Cenote Pro theme.
9
+
10
  = 1.5.0 - 21-08-2018 =
11
  * Feature - Fetches the demo config from GitHub repo.
12
  * Feature - Category and pagebuilder routes for views.
assets/css/demo-importer-rtl.css CHANGED
@@ -1 +1 @@
1
- @-webkit-keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.appearance_page_demo-importer .demo-importer .wp-filter{padding:0 20px}.appearance_page_demo-importer .demo-importer .wp-filter .search-form{margin-right:1em}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section{float:right}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section.right{float:left}.appearance_page_demo-importer .demo-importer .wp-filter .filter-links li>a:focus{box-shadow:none}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner{position:absolute;top:15px;left:-16px;color:#fff;padding:0 20px;font-weight:600;min-height:30px;line-height:28px;background:#5fbd0a;text-transform:uppercase}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after,.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{content:'';position:absolute}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{right:-15px;color:#fff;border:15px solid #5fbd0a;border-right-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after{top:30px;left:0;border:8px solid #478d07;border-left-color:transparent;border-bottom-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .theme-screenshot img{-o-object-fit:cover;object-fit:cover}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-header{background-color:#eee}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content{z-index:1;bottom:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-version{margin-top:0}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-screenshot{width:100%;box-sizing:border-box}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .premium-demo-tag{color:#fff;font-size:13px;font-weight:400;margin-right:5px;padding:0 10px;line-height:22px;border-radius:3px;background:#67c016;display:inline-block}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table{margin-bottom:1em}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status{float:left}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span{width:20px;height:20px;overflow:hidden;border-radius:50%;position:relative;vertical-align:top;white-space:nowrap;text-indent:-9999px;display:inline-block;border:2px solid #bfbfbf}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active{border-color:#5cb85c}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active::after{position:absolute;right:50%;top:50%;opacity:1;width:25%;height:50%;content:'';-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top;border-top:2px solid #5cb85c;border-left:2px solid #5cb85c;-webkit-transform:scaleX(-1) rotate(-135deg) translate(58%,-40%);-ms-transform:scaleX(-1) rotate(-135deg) translate(58%,-40%);transform:scaleX(-1) rotate(-135deg) translate(58%,-40%)}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.updating-message{border-right-color:#5cb85c;-webkit-animation:spin .75s linear infinite;animation:spin .75s linear infinite}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer{height:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:focus,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:hover{background-color:transparent}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions{padding:20px;background:#fff;border-bottom:1px solid #ddd}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button{width:100%;text-align:center}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.installed::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.installing::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updated-message::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updating-message::before{margin-left:6px;vertical-align:text-bottom}.appearance_page_demo-importer .demo-importer .theme-install-overlay.expanded .wp-full-overlay-footer{right:initial}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_arrow{right:50%;margin-right:-6px}
1
+ @-webkit-keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.appearance_page_demo-importer .demo-importer .wp-filter{padding:0 20px}.appearance_page_demo-importer .demo-importer .wp-filter .search-form{margin-right:1em}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section{float:right}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section.right{float:left}.appearance_page_demo-importer .demo-importer .wp-filter .filter-links li>a:focus{box-shadow:none}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner{position:absolute;top:15px;left:-16px;color:#fff;padding:0 20px;font-weight:600;min-height:30px;line-height:28px;background:#5fbd0a;text-transform:uppercase}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after,.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{content:'';position:absolute}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{right:-15px;color:#fff;border:15px solid #5fbd0a;border-right-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after{top:30px;left:0;border:8px solid #478d07;border-left-color:transparent;border-bottom-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .theme-screenshot img{-o-object-fit:cover;object-fit:cover}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-header{background-color:#eee}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content{z-index:1;bottom:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-version{margin-top:0}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-screenshot{width:100%;box-sizing:border-box}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .premium-demo-tag{color:#fff;font-size:13px;font-weight:400;margin-right:5px;padding:0 10px;line-height:22px;border-radius:3px;background:#67c016;display:inline-block}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table{margin-bottom:1em}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status{float:left}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span{width:20px;height:20px;overflow:hidden;border-radius:50%;position:relative;vertical-align:top;white-space:nowrap;text-indent:-9999px;display:inline-block;border:2px solid #bfbfbf}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active{border-color:#5cb85c}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active::after{position:absolute;right:50%;top:50%;opacity:1;width:25%;height:50%;content:'';-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top;border-top:2px solid #5cb85c;border-left:2px solid #5cb85c;-webkit-transform:scaleX(-1) rotate(-135deg) translate(58%,-40%);-ms-transform:scaleX(-1) rotate(-135deg) translate(58%,-40%);transform:scaleX(-1) rotate(-135deg) translate(58%,-40%)}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.updating-message{border-right-color:#5cb85c;-webkit-animation:spin .75s linear infinite;animation:spin .75s linear infinite}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer{height:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:focus,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:hover{background-color:transparent}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions{padding:20px;background:#fff;border-bottom:1px solid #ddd}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button{width:100%;text-align:center}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updated-message::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updating-message::before{margin-top:11px}.appearance_page_demo-importer .demo-importer .theme-install-overlay.expanded .wp-full-overlay-footer{right:initial}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_arrow{right:50%;margin-right:-6px}
assets/css/demo-importer.css CHANGED
@@ -1 +1 @@
1
- @-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.appearance_page_demo-importer .demo-importer .wp-filter{padding:0 20px}.appearance_page_demo-importer .demo-importer .wp-filter .search-form{margin-left:1em}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section{float:left}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section.right{float:right}.appearance_page_demo-importer .demo-importer .wp-filter .filter-links li>a:focus{box-shadow:none}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner{position:absolute;top:15px;right:-16px;color:#fff;padding:0 20px;font-weight:600;min-height:30px;line-height:28px;background:#5fbd0a;text-transform:uppercase}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after,.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{content:'';position:absolute}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{left:-15px;color:#fff;border:15px solid #5fbd0a;border-left-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after{top:30px;right:0;border:8px solid #478d07;border-right-color:transparent;border-bottom-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .theme-screenshot img{-o-object-fit:cover;object-fit:cover}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-header{background-color:#eee}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content{z-index:1;bottom:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-version{margin-top:0}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-screenshot{width:100%;box-sizing:border-box}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .premium-demo-tag{color:#fff;font-size:13px;font-weight:400;margin-left:5px;padding:0 10px;line-height:22px;border-radius:3px;background:#67c016;display:inline-block}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table{margin-bottom:1em}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status{float:right}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span{width:20px;height:20px;overflow:hidden;border-radius:50%;position:relative;vertical-align:top;white-space:nowrap;text-indent:-9999px;display:inline-block;border:2px solid #bfbfbf}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active{border-color:#5cb85c}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active::after{position:absolute;left:50%;top:50%;opacity:1;width:25%;height:50%;content:'';-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;border-top:2px solid #5cb85c;border-right:2px solid #5cb85c;-webkit-transform:scaleX(-1) rotate(135deg) translate(-58%,-40%);-ms-transform:scaleX(-1) rotate(135deg) translate(-58%,-40%);transform:scaleX(-1) rotate(135deg) translate(-58%,-40%)}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.updating-message{border-left-color:#5cb85c;-webkit-animation:spin .75s linear infinite;animation:spin .75s linear infinite}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer{height:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:focus,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:hover{background-color:transparent}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions{padding:20px;background:#fff;border-bottom:1px solid #ddd}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button{width:100%;text-align:center}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.installed::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.installing::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updated-message::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updating-message::before{margin-right:6px;vertical-align:text-bottom}.appearance_page_demo-importer .demo-importer .theme-install-overlay.expanded .wp-full-overlay-footer{left:initial}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}
1
+ @-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.appearance_page_demo-importer .demo-importer .wp-filter{padding:0 20px}.appearance_page_demo-importer .demo-importer .wp-filter .search-form{margin-left:1em}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section{float:left}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section.right{float:right}.appearance_page_demo-importer .demo-importer .wp-filter .filter-links li>a:focus{box-shadow:none}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner{position:absolute;top:15px;right:-16px;color:#fff;padding:0 20px;font-weight:600;min-height:30px;line-height:28px;background:#5fbd0a;text-transform:uppercase}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after,.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{content:'';position:absolute}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{left:-15px;color:#fff;border:15px solid #5fbd0a;border-left-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after{top:30px;right:0;border:8px solid #478d07;border-right-color:transparent;border-bottom-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .theme-screenshot img{-o-object-fit:cover;object-fit:cover}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-header{background-color:#eee}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content{z-index:1;bottom:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-version{margin-top:0}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-screenshot{width:100%;box-sizing:border-box}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .premium-demo-tag{color:#fff;font-size:13px;font-weight:400;margin-left:5px;padding:0 10px;line-height:22px;border-radius:3px;background:#67c016;display:inline-block}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table{margin-bottom:1em}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status{float:right}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span{width:20px;height:20px;overflow:hidden;border-radius:50%;position:relative;vertical-align:top;white-space:nowrap;text-indent:-9999px;display:inline-block;border:2px solid #bfbfbf}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active{border-color:#5cb85c}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active::after{position:absolute;left:50%;top:50%;opacity:1;width:25%;height:50%;content:'';-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;border-top:2px solid #5cb85c;border-right:2px solid #5cb85c;-webkit-transform:scaleX(-1) rotate(135deg) translate(-58%,-40%);-ms-transform:scaleX(-1) rotate(135deg) translate(-58%,-40%);transform:scaleX(-1) rotate(135deg) translate(-58%,-40%)}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.updating-message{border-left-color:#5cb85c;-webkit-animation:spin .75s linear infinite;animation:spin .75s linear infinite}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer{height:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:focus,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:hover{background-color:transparent}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions{padding:20px;background:#fff;border-bottom:1px solid #ddd}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button{width:100%;text-align:center}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updated-message::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updating-message::before{margin-top:11px}.appearance_page_demo-importer .demo-importer .theme-install-overlay.expanded .wp-full-overlay-footer{left:initial}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}
assets/css/demo-importer.scss CHANGED
@@ -171,13 +171,10 @@
171
  width: 100%;
172
  text-align: center;
173
 
174
- &.installed,
175
- &.installing,
176
  &.updated-message,
177
  &.updating-message {
178
  &::before {
179
- margin-right: 6px;
180
- vertical-align: text-bottom;
181
  }
182
  }
183
  }
171
  width: 100%;
172
  text-align: center;
173
 
 
 
174
  &.updated-message,
175
  &.updating-message {
176
  &::before {
177
+ margin-top: 11px;
 
178
  }
179
  }
180
  }
includes/admin/views/html-admin-page-importer.php CHANGED
@@ -132,7 +132,11 @@ defined( 'ABSPATH' ) || exit;
132
  <# } else if ( data.requiredPlugins ) { #>
133
  <button class="button button-secondary hide-if-no-js plugins-install"><?php _e( 'Install Plugins', 'themegrill-demo-importer' ); ?></button>
134
  <# } else { #>
135
- <a class="button button-primary hide-if-no-js demo-import" href="#" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Import Demo', 'themegrill-demo-importer' ); ?></a>
 
 
 
 
136
  <# } #>
137
  </div>
138
  <div class="wp-full-overlay-sidebar-content">
@@ -216,7 +220,11 @@ defined( 'ABSPATH' ) || exit;
216
  <# } else if ( data.requiredPlugins ) { #>
217
  <button class="button button-hero button-secondary hide-if-no-js plugins-install"><?php _e( 'Install Plugins', 'themegrill-demo-importer' ); ?></button>
218
  <# } else { #>
219
- <a class="button button-hero button-primary hide-if-no-js demo-import" href="#" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Import Demo', 'themegrill-demo-importer' ); ?></a>
 
 
 
 
220
  <# } #>
221
  </div>
222
  <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar', 'themegrill-demo-importer' ); ?>">
132
  <# } else if ( data.requiredPlugins ) { #>
133
  <button class="button button-secondary hide-if-no-js plugins-install"><?php _e( 'Install Plugins', 'themegrill-demo-importer' ); ?></button>
134
  <# } else { #>
135
+ <# if ( data.active ) { #>
136
+ <a class="button button-primary live-preview" target="_blank" href="<?php echo home_url( '/' ); ?>"><?php _e( 'Live Preview', 'themegrill-demo-importer' ); ?></a>
137
+ <# } else { #>
138
+ <a class="button button-primary hide-if-no-js demo-import" href="#" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Import Demo', 'themegrill-demo-importer' ); ?></a>
139
+ <# } #>
140
  <# } #>
141
  </div>
142
  <div class="wp-full-overlay-sidebar-content">
220
  <# } else if ( data.requiredPlugins ) { #>
221
  <button class="button button-hero button-secondary hide-if-no-js plugins-install"><?php _e( 'Install Plugins', 'themegrill-demo-importer' ); ?></button>
222
  <# } else { #>
223
+ <# if ( data.active ) { #>
224
+ <a class="button button-primary live-preview button-hero hide-if-no-js" target="_blank" href="<?php echo home_url( '/' ); ?>"><?php _e( 'Live Preview', 'themegrill-demo-importer' ); ?></a>
225
+ <# } else { #>
226
+ <a class="button button-hero button-primary hide-if-no-js demo-import" href="#" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Import Demo', 'themegrill-demo-importer' ); ?></a>
227
+ <# } #>
228
  <# } #>
229
  </div>
230
  <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar', 'themegrill-demo-importer' ); ?>">
includes/class-themegrill-demo-importer.php CHANGED
@@ -20,7 +20,7 @@ final class ThemeGrill_Demo_Importer {
20
  *
21
  * @var string
22
  */
23
- public $version = '1.5.1';
24
 
25
  /**
26
  * Theme single instance of this class.
20
  *
21
  * @var string
22
  */
23
+ public $version = '1.5.2';
24
 
25
  /**
26
  * Theme single instance of this class.
includes/importers/class-customizer-importer.php CHANGED
@@ -70,6 +70,11 @@ class TG_Customizer_Importer {
70
  }
71
  }
72
 
 
 
 
 
 
73
  // Loop through theme mods and update them.
74
  if ( ! empty( $data['mods'] ) ) {
75
  foreach ( $data['mods'] as $key => $value ) {
70
  }
71
  }
72
 
73
+ // If wp_css is set then import it.
74
+ if ( function_exists( 'wp_update_custom_css_post' ) && isset( $data['wp_css'] ) && '' !== $data['wp_css'] ) {
75
+ wp_update_custom_css_post( $data['wp_css'] );
76
+ }
77
+
78
  // Loop through theme mods and update them.
79
  if ( ! empty( $data['mods'] ) ) {
80
  foreach ( $data['mods'] as $key => $value ) {
package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "themegrill-demo-importer",
3
- "version": "1.5.1",
4
  "lockfileVersion": 1,
5
  "requires": true,
6
  "dependencies": {
1
  {
2
  "name": "themegrill-demo-importer",
3
+ "version": "1.5.2",
4
  "lockfileVersion": 1,
5
  "requires": true,
6
  "dependencies": {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ThemeGrill, shivapoudel
3
  Tags: themegrill, theme demos, demo, importer, one click import
4
  Requires at least: 4.7
5
  Tested up to: 4.9
6
- Stable tag: 1.5.1
7
  License: GPLv3 or later
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -73,6 +73,10 @@ Yes you can! Join in on our [GitHub repository](https://github.com/themegrill/th
73
 
74
  == Changelog ==
75
 
 
 
 
 
76
  = 1.5.1 - 24-08-2018 =
77
  * Support - Cenote Pro theme.
78
 
3
  Tags: themegrill, theme demos, demo, importer, one click import
4
  Requires at least: 4.7
5
  Tested up to: 4.9
6
+ Stable tag: 1.5.2
7
  License: GPLv3 or later
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
73
 
74
  == Changelog ==
75
 
76
+ = 1.5.2 - 25-09-2018 =
77
+ * Fix - Custom CSS migration on demo import.
78
+ * Fix - Live Preview button when demo is successfully imported in demo preview page.
79
+
80
  = 1.5.1 - 24-08-2018 =
81
  * Support - Cenote Pro theme.
82
 
themegrill-demo-importer.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ThemeGrill Demo Importer
4
  * Plugin URI: https://themegrill.com/demo-importer/
5
  * Description: Import ThemeGrill official themes demo content, widgets and theme settings with just one click.
6
- * Version: 1.5.1
7
  * Author: ThemeGrill
8
  * Author URI: https://themegrill.com
9
  * License: GPLv3 or later
3
  * Plugin Name: ThemeGrill Demo Importer
4
  * Plugin URI: https://themegrill.com/demo-importer/
5
  * Description: Import ThemeGrill official themes demo content, widgets and theme settings with just one click.
6
+ * Version: 1.5.2
7
  * Author: ThemeGrill
8
  * Author URI: https://themegrill.com
9
  * License: GPLv3 or later