Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 3.5.4 |
Comparing to | |
See all releases |
Code changes from version 3.5.3 to 3.5.4
- inc/class-cmp-render_html.php +9 -5
- niteo-cmp.php +2 -2
- readme.txt +6 -1
inc/class-cmp-render_html.php
CHANGED
@@ -959,7 +959,11 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
959 |
|
960 |
$title = stripslashes( get_option('niteoCS_title', get_bloginfo('name').' Coming soon!') );
|
961 |
$descr = stripslashes( get_option('niteoCS_descr', 'Just another Coming Soon Page') );
|
962 |
-
|
|
|
|
|
|
|
|
|
963 |
<!-- SEO -->
|
964 |
<title><?php echo esc_html( $title ); ?></title>
|
965 |
<meta name="description" content="<?php echo esc_html( $descr ); ?>"/>
|
@@ -967,16 +971,16 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
967 |
<!-- og meta for facebook, googleplus -->
|
968 |
<meta property="og:title" content="<?php echo esc_html( $title ); ?>"/>
|
969 |
<meta property="og:description" content="<?php echo esc_html( $descr ); ?>"/>
|
970 |
-
<meta property="og:url" content="<?php
|
971 |
<meta property="og:type" content="website" />
|
972 |
-
<meta property="og:image" content="<?php echo esc_url( $
|
973 |
|
974 |
<!-- twitter meta -->
|
975 |
<meta name="twitter:card" content="summary_large_image">
|
976 |
<meta name="twitter:title" content="<?php echo esc_html( $title ); ?>"/>
|
977 |
<meta name="twitter:description" content="<?php echo esc_html( $descr ); ?>"/>
|
978 |
-
<meta name="twitter:url" content="<?php
|
979 |
-
<meta name="twitter:image" content="<?php echo esc_url( $
|
980 |
|
981 |
<?php
|
982 |
// display favicon
|
959 |
|
960 |
$title = stripslashes( get_option('niteoCS_title', get_bloginfo('name').' Coming soon!') );
|
961 |
$descr = stripslashes( get_option('niteoCS_descr', 'Just another Coming Soon Page') );
|
962 |
+
|
963 |
+
$seo_img_id = get_option('niteoCS_seo_img_id');
|
964 |
+
$seo_img_url = wp_get_attachment_image_src($seo_img_id, 'large');
|
965 |
+
$seo_img_url = isset($seo_img_url[0]) ? $seo_img_url[0] : $this->cmp_get_background_img();
|
966 |
+
?>
|
967 |
<!-- SEO -->
|
968 |
<title><?php echo esc_html( $title ); ?></title>
|
969 |
<meta name="description" content="<?php echo esc_html( $descr ); ?>"/>
|
971 |
<!-- og meta for facebook, googleplus -->
|
972 |
<meta property="og:title" content="<?php echo esc_html( $title ); ?>"/>
|
973 |
<meta property="og:description" content="<?php echo esc_html( $descr ); ?>"/>
|
974 |
+
<meta property="og:url" content="<?php echo get_home_url()?>"/>
|
975 |
<meta property="og:type" content="website" />
|
976 |
+
<meta property="og:image" content="<?php echo esc_url( $seo_img_url );?>"/>
|
977 |
|
978 |
<!-- twitter meta -->
|
979 |
<meta name="twitter:card" content="summary_large_image">
|
980 |
<meta name="twitter:title" content="<?php echo esc_html( $title ); ?>"/>
|
981 |
<meta name="twitter:description" content="<?php echo esc_html( $descr ); ?>"/>
|
982 |
+
<meta name="twitter:url" content="<?php echo get_home_url();?>"/>
|
983 |
+
<meta name="twitter:image" content="<?php echo esc_url( $seo_img_url );?>"/>
|
984 |
|
985 |
<?php
|
986 |
// display favicon
|
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' );
|
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.4
|
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.4' );
|
68 |
$this->define( 'CMP_DEBUG', FALSE );
|
69 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
70 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
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 |
|
@@ -135,6 +135,11 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
135 |
<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>
|
136 |
|
137 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
138 |
<h4>CMP 3.5.3 - 09-Jun-19</h4>
|
139 |
<ul>
|
140 |
<li>Fixed broken templates preview links</li>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.2
|
8 |
+
Stable tag: 3.5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
135 |
<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>
|
136 |
|
137 |
== Changelog ==
|
138 |
+
<h4>CMP 3.5.4 - 12-Jun-19</h4>
|
139 |
+
<ul>
|
140 |
+
<li>Resolved issue with SEO image not properly set for Open Graph Protocol - thanks to @jeegrobot!</li>
|
141 |
+
</ul>
|
142 |
+
|
143 |
<h4>CMP 3.5.3 - 09-Jun-19</h4>
|
144 |
<ul>
|
145 |
<li>Fixed broken templates preview links</li>
|