Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 3.5.7 |
Comparing to | |
See all releases |
Code changes from version 3.5.6 to 3.5.7
- img/thumbnails/tempie/screenshot1.jpg +0 -0
- img/thumbnails/tempie/screenshot2.jpg +0 -0
- img/thumbnails/tempie/screenshot3.jpg +0 -0
- img/thumbnails/tempie_thumbnail.jpg +0 -0
- inc/class-cmp-render_html.php +81 -61
- inc/settings/settings-social-media.php +5 -0
- niteo-cmp.php +4 -2
- readme.txt +10 -2
- themes/tempie.txt +4 -0
img/thumbnails/tempie/screenshot1.jpg
ADDED
Binary file
|
img/thumbnails/tempie/screenshot2.jpg
ADDED
Binary file
|
img/thumbnails/tempie/screenshot3.jpg
ADDED
Binary file
|
img/thumbnails/tempie_thumbnail.jpg
ADDED
Binary file
|
inc/class-cmp-render_html.php
CHANGED
@@ -1354,7 +1354,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1354 |
default:
|
1355 |
break;
|
1356 |
} ?>
|
1357 |
-
|
1358 |
}
|
1359 |
</script>
|
1360 |
|
@@ -1394,9 +1393,9 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1394 |
src: '<?php echo esc_url( $banner_url ); ?>',
|
1395 |
type: 'YouTube',
|
1396 |
poster: '<?php echo esc_url( $video_poster ); ?>',
|
1397 |
-
quality: 'hd1080'
|
1398 |
-
|
1399 |
-
);
|
1400 |
|
1401 |
<?php
|
1402 |
break;
|
@@ -1531,9 +1530,18 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1531 |
<?php
|
1532 |
}
|
1533 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1534 |
|
1535 |
-
// include jquery and CF7 scripts for
|
1536 |
-
if ( in_array( $themeslug, $this->cmp_cf7_themes() ) && get_option('niteoCS_contact_form_type') == 'cf7' ) {
|
1537 |
|
1538 |
$site_url = str_replace( '/', '\/', site_url() );
|
1539 |
|
@@ -1736,46 +1744,46 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1736 |
* @since 3.5.6
|
1737 |
* @return array
|
1738 |
**/
|
1739 |
-
public function cmp_filter_head_scripts_and_styles( $allowed, $in_footer ) {
|
1740 |
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
|
1776 |
-
|
1777 |
|
1778 |
-
}
|
1779 |
|
1780 |
/**
|
1781 |
* print whitelisted scripts and styles to cmp_head
|
@@ -1792,15 +1800,15 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1792 |
)
|
1793 |
);
|
1794 |
|
1795 |
-
$handles_src = $this->cmp_filter_head_scripts_and_styles( $handles_allowed, false );
|
1796 |
|
1797 |
-
foreach ( $handles_src['scripts'] as $src ) {
|
1798 |
-
|
1799 |
-
}
|
1800 |
|
1801 |
-
foreach ( $handles_src['styles'] as $src ) {
|
1802 |
-
|
1803 |
-
}
|
1804 |
|
1805 |
// handle actions added by allowed plugins in wp_head
|
1806 |
|
@@ -1820,25 +1828,31 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1820 |
**/
|
1821 |
public function cmp_wp_footer() {
|
1822 |
|
1823 |
-
|
1824 |
-
|
1825 |
-
|
1826 |
-
|
1827 |
-
'styles' => array(
|
1828 |
|
1829 |
-
|
1830 |
-
|
|
|
|
|
|
|
1831 |
|
1832 |
-
|
|
|
1833 |
|
1834 |
-
|
1835 |
-
echo '<script src="' . esc_url( $src ). '"></script>' . PHP_EOL;
|
1836 |
-
}
|
1837 |
|
|
|
|
|
|
|
1838 |
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
|
|
|
|
1842 |
|
1843 |
|
1844 |
// handle actions added by allowed plugins in wp_footer
|
@@ -1848,6 +1862,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1848 |
$ihaf->frontendFooter();
|
1849 |
}
|
1850 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1851 |
}
|
1852 |
|
1853 |
}
|
1354 |
default:
|
1355 |
break;
|
1356 |
} ?>
|
|
|
1357 |
}
|
1358 |
</script>
|
1359 |
|
1393 |
src: '<?php echo esc_url( $banner_url ); ?>',
|
1394 |
type: 'YouTube',
|
1395 |
poster: '<?php echo esc_url( $video_poster ); ?>',
|
1396 |
+
quality: 'hd1080',
|
1397 |
+
muted: true
|
1398 |
+
});
|
1399 |
|
1400 |
<?php
|
1401 |
break;
|
1530 |
<?php
|
1531 |
}
|
1532 |
|
1533 |
+
// check for CMP Subscribe shortcode to include CF7 captcha
|
1534 |
+
$subscribe = get_option('niteoCS_subscribe_type');
|
1535 |
+
$sub_cf7 = false;
|
1536 |
+
if ( $subscribe == '1' ) {
|
1537 |
+
$subscribe_code = get_option('niteoCS_subscribe_code');
|
1538 |
+
if ( strpos($subscribe_code, 'contact-form-7') !== false ) {
|
1539 |
+
$sub_cf7 = true;
|
1540 |
+
}
|
1541 |
+
}
|
1542 |
|
1543 |
+
// include jquery and CF7 scripts for CF7 themes or themes using CF7 for subscribe form
|
1544 |
+
if ( (in_array( $themeslug, $this->cmp_cf7_themes() ) && get_option('niteoCS_contact_form_type') == 'cf7') || $sub_cf7 === true ) {
|
1545 |
|
1546 |
$site_url = str_replace( '/', '\/', site_url() );
|
1547 |
|
1744 |
* @since 3.5.6
|
1745 |
* @return array
|
1746 |
**/
|
1747 |
+
// public function cmp_filter_head_scripts_and_styles( $allowed, $in_footer ) {
|
1748 |
|
1749 |
+
// // we must fake wp_head to actually get all scripts and styles
|
1750 |
+
// ob_start();
|
1751 |
+
// wp_head();
|
1752 |
+
// ob_end_clean();
|
1753 |
|
1754 |
+
// $handles = array();
|
1755 |
+
// $handles['scripts'] = array();
|
1756 |
+
// $handles['styles'] = array();
|
1757 |
|
1758 |
+
// // Print all loaded Scripts
|
1759 |
+
// global $wp_scripts;
|
1760 |
+
// global $wp_styles;
|
1761 |
+
|
1762 |
+
// // get scripts
|
1763 |
+
// foreach( $allowed['scripts'] as $handle ) :
|
1764 |
+
|
1765 |
+
// if ( !$in_footer ) {
|
1766 |
+
// if ( in_array( $handle, $wp_scripts->groups ) && isset($wp_scripts->registered[$handle]) ) {
|
1767 |
+
// $handles['scripts'][] = $wp_scripts->registered[$handle]->src;
|
1768 |
+
// }
|
1769 |
+
// } else {
|
1770 |
+
// if ( in_array( $handle, $wp_scripts->groups ) && in_array( $handle, $wp_scripts->in_footer ) && isset($wp_scripts->registered[$handle]) ) {
|
1771 |
+
// $handles['scripts'][] = $wp_scripts->registered[$handle]->src;
|
1772 |
+
// }
|
1773 |
+
// }
|
1774 |
+
|
1775 |
+
// endforeach;
|
1776 |
|
1777 |
+
// // get_styles
|
1778 |
+
// foreach( $wp_styles->queue as $style ) :
|
1779 |
+
// if ( isset( $wp_styles->registered[$style] ) && is_object( $wp_styles->registered[$style] ) && in_array( $wp_styles->registered[$style]->handle, $allowed['styles'] ) ) {
|
1780 |
+
// $handles['styles'][] = $wp_styles->registered[$style]->src;
|
1781 |
+
// }
|
1782 |
+
// endforeach;
|
1783 |
|
1784 |
+
// return $handles;
|
1785 |
|
1786 |
+
// }
|
1787 |
|
1788 |
/**
|
1789 |
* print whitelisted scripts and styles to cmp_head
|
1800 |
)
|
1801 |
);
|
1802 |
|
1803 |
+
// $handles_src = $this->cmp_filter_head_scripts_and_styles( $handles_allowed, false );
|
1804 |
|
1805 |
+
// foreach ( $handles_src['scripts'] as $src ) {
|
1806 |
+
// echo '<script src="' . esc_url( $src ) . '"></script>' . PHP_EOL;
|
1807 |
+
// }
|
1808 |
|
1809 |
+
// foreach ( $handles_src['styles'] as $src ) {
|
1810 |
+
// echo '<link href="' . esc_url( $src ). '" rel="stylesheet">' . PHP_EOL;
|
1811 |
+
// }
|
1812 |
|
1813 |
// handle actions added by allowed plugins in wp_head
|
1814 |
|
1828 |
**/
|
1829 |
public function cmp_wp_footer() {
|
1830 |
|
1831 |
+
/**
|
1832 |
+
* Detect plugin. For use on Front End only.
|
1833 |
+
*/
|
1834 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
|
|
1835 |
|
1836 |
+
// $handles_allowed = array(
|
1837 |
+
// 'scripts' => array(
|
1838 |
+
// 'simpleanalytics_script'
|
1839 |
+
// ),
|
1840 |
+
// 'styles' => array(
|
1841 |
|
1842 |
+
// )
|
1843 |
+
// );
|
1844 |
|
1845 |
+
// $handles_src = $this->cmp_filter_head_scripts_and_styles( $handles_allowed, true );
|
|
|
|
|
1846 |
|
1847 |
+
// foreach ( $handles_src['scripts'] as $src ) {
|
1848 |
+
// echo '<script src="' . esc_url( $src ). '"></script>' . PHP_EOL;
|
1849 |
+
// }
|
1850 |
|
1851 |
+
|
1852 |
+
// foreach ( $handles_src['styles'] as $src ) {
|
1853 |
+
// echo '<link href="' . esc_url( $src ). '" rel="stylesheet">' . PHP_EOL;
|
1854 |
+
// }
|
1855 |
+
|
1856 |
|
1857 |
|
1858 |
// handle actions added by allowed plugins in wp_footer
|
1862 |
$ihaf->frontendFooter();
|
1863 |
}
|
1864 |
|
1865 |
+
// Plugin Name: SimpleAnalytics
|
1866 |
+
|
1867 |
+
if ( is_plugin_active( 'simpleanalytics/simple-analytics.php' ) ) {
|
1868 |
+
echo '<script src="https://cdn.simpleanalytics.io/hello.js"></script>' . PHP_EOL;
|
1869 |
+
}
|
1870 |
+
|
1871 |
}
|
1872 |
|
1873 |
}
|
inc/settings/settings-social-media.php
CHANGED
@@ -7,6 +7,9 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
7 |
<h3><?php _e('Social Media', 'cmp-coming-soon-maintenance');?></h3>
|
8 |
<table class="content">
|
9 |
<tbody>
|
|
|
|
|
|
|
10 |
<tr>
|
11 |
<th><?php _e('Social Section Title', 'cmp-coming-soon-maintenance');?></th>
|
12 |
<td>
|
@@ -15,6 +18,8 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
15 |
</fieldset>
|
16 |
</td>
|
17 |
</tr>
|
|
|
|
|
18 |
|
19 |
<tr>
|
20 |
<th><?php _e('Social Media Icons', 'cmp-coming-soon-maintenance');?></th>
|
7 |
<h3><?php _e('Social Media', 'cmp-coming-soon-maintenance');?></h3>
|
8 |
<table class="content">
|
9 |
<tbody>
|
10 |
+
|
11 |
+
<?php
|
12 |
+
if ( !isset( $theme_supports['social_title'] ) || (isset( $theme_supports['social_title'] ) && $theme_supports['social_title'] === true ) ) { ?>
|
13 |
<tr>
|
14 |
<th><?php _e('Social Section Title', 'cmp-coming-soon-maintenance');?></th>
|
15 |
<td>
|
18 |
</fieldset>
|
19 |
</td>
|
20 |
</tr>
|
21 |
+
<?php
|
22 |
+
} ?>
|
23 |
|
24 |
<tr>
|
25 |
<th><?php _e('Social Media Icons', 'cmp-coming-soon-maintenance');?></th>
|
niteo-cmp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: CMP - Coming Soon & Maintenance Plugin
|
4 |
Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
|
5 |
Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
|
6 |
-
Version: 3.5.
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -64,7 +64,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
64 |
|
65 |
private function constants() {
|
66 |
// define constants
|
67 |
-
$this->define( 'CMP_VERSION', '3.5.
|
68 |
$this->define( 'CMP_DEBUG', FALSE );
|
69 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
70 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -225,6 +225,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
225 |
|
226 |
$premium_themes = array();
|
227 |
|
|
|
|
|
228 |
array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=mercury', 'price' => '10') );
|
229 |
|
230 |
array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://niteothemes.com/downloads/cmp-fifty-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
|
3 |
Plugin Name: CMP - Coming Soon & Maintenance Plugin
|
4 |
Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
|
5 |
Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
|
6 |
+
Version: 3.5.7
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
64 |
|
65 |
private function constants() {
|
66 |
// define constants
|
67 |
+
$this->define( 'CMP_VERSION', '3.5.7' );
|
68 |
$this->define( 'CMP_DEBUG', FALSE );
|
69 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
70 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
225 |
|
226 |
$premium_themes = array();
|
227 |
|
228 |
+
array_push( $premium_themes, array('name' => 'tempie', 'url' => 'https://niteothemes.com/downloads/cmp-tempie-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=tempie', 'price' => '10') );
|
229 |
+
|
230 |
array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=mercury', 'price' => '10') );
|
231 |
|
232 |
array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://niteothemes.com/downloads/cmp-fifty-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: coming soon, landing page, launch page, maintenance mode, under constructi
|
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.2
|
8 |
-
Stable tag: 3.5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -82,7 +82,8 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
82 |
26. CMP - Agency Theme
|
83 |
27. CMP - Eclipse Theme
|
84 |
28. CMP - Juno Theme
|
85 |
-
29. CMP -
|
|
|
86 |
|
87 |
== Installation ==
|
88 |
|
@@ -142,6 +143,13 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
142 |
<p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
|
143 |
|
144 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
<h4>CMP 3.5.6 - 22-Jun-19</h4>
|
146 |
<ul>
|
147 |
<li>New feature - CMP Import and Export! You can now import/export/backup CMP Settings under CMP Advanced submenu!</li>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.2
|
8 |
+
Stable tag: 3.5.7
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
82 |
26. CMP - Agency Theme
|
83 |
27. CMP - Eclipse Theme
|
84 |
28. CMP - Juno Theme
|
85 |
+
29. CMP - Pluto Theme
|
86 |
+
30. CMP - Tempie Theme
|
87 |
|
88 |
== Installation ==
|
89 |
|
143 |
<p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
|
144 |
|
145 |
== Changelog ==
|
146 |
+
<h4>CMP 3.5.7 - 11-Jul-19</h4>
|
147 |
+
<ul>
|
148 |
+
<li>New Theme - Tempie - great for a small maintenance!</li>
|
149 |
+
<li>Resolved few PHP Notices with PHP debug - thanks to @scarpinoc for a notice!</li>
|
150 |
+
<li>Added Recaptcha support for Contact Form 7 subscribe forms - thanks to @sprockettechweb!</li>
|
151 |
+
</ul>
|
152 |
+
|
153 |
<h4>CMP 3.5.6 - 22-Jun-19</h4>
|
154 |
<ul>
|
155 |
<li>New feature - CMP Import and Export! You can now import/export/backup CMP Settings under CMP Advanced submenu!</li>
|
themes/tempie.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
Theme Name: Tempie
|
3 |
+
Description: <p>CMP Tempie is Premium CMP theme for our free CMP WordPress Plugin. This CMP theme allows you to stylishly display some basic information about your Maintenance process. You can change the main active color. This will also change the color of elements in the enclosed thematic image. You can even improve the design by activating bubble or constellation effects. Possibility to change the logo, information text, icons on social networks and footer text is a must have too.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Text</li></ul>
|
4 |
+
|