Changeset 1764507
- Timestamp:
- 11/12/2017 08:02:03 PM (8 years ago)
- Location:
- under-construction-maintenance-mode
- Files:
-
- 9 edited
- 2 copied
-
tags/1.0.3 (copied) (copied from under-construction-maintenance-mode/trunk)
-
tags/1.0.3/assets/js/customize-controls.js (modified) (1 diff)
-
tags/1.0.3/classes/customizer.php (modified) (3 diffs)
-
tags/1.0.3/readme.txt (copied) (copied from under-construction-maintenance-mode/trunk/readme.txt) (3 diffs)
-
tags/1.0.3/ucmm-customize.php (modified) (5 diffs)
-
tags/1.0.3/under-construction-maintenance-mode.php (modified) (3 diffs)
-
trunk/assets/js/customize-controls.js (modified) (1 diff)
-
trunk/classes/customizer.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/ucmm-customize.php (modified) (5 diffs)
-
trunk/under-construction-maintenance-mode.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
under-construction-maintenance-mode/tags/1.0.3/assets/js/customize-controls.js
r1618462 r1764507 4 4 ( function( $ ) { 5 5 6 // header text h1 7 // wp.customize( 'ucmm_wpbrigade_customization[ucmm_logo_width]', function( value ) { 8 // value.bind( function( newval ) { 9 // 10 // if ( '' != newval) { 11 // $('#customize-preview iframe').contents().find( '.ucmm-logo img' ).css( 'width', newval ); 12 // } 13 // 14 // } ); 15 // } ); 16 // // header text h1 17 // wp.customize( 'ucmm_wpbrigade_customization[ucmm_logo_height]', function( value ) { 18 // value.bind( function( newval ) { 19 // 20 // if ( '' != newval) { 21 // $('#customize-preview iframe').contents().find( '.ucmm-logo img' ).css( 'height', newval ); 22 // } 23 // 24 // } ); 25 // } ); 6 26 // header text h1 7 27 wp.customize( 'ucmm_wpbrigade_customization[header_text]', function( value ) { -
under-construction-maintenance-mode/tags/1.0.3/classes/customizer.php
r1618462 r1764507 60 60 61 61 $logo_control = array( 'ucmm_logo_width', 'ucmm_logo_height', 'ucmm_logo_padding', 'ucmm_logo_hover', 'ucmm_logo_hover_title' ); 62 $logo_default = array( ' 200px', '100px', '200px', '', '' );62 $logo_default = array( '100px', '100px', '200px', '', '' ); 63 63 $logo_label = array( 64 64 __( 'Logo Width:', 'ucmm-wpbrigade' ), … … 69 69 ); 70 70 71 //$logo = 0;72 // while ( $logo < 5) :73 // 74 //$wp_customize->add_setting( "ucmm_wpbrigade_customization[{$logo_control[$logo]}]", array(75 //'default' => $logo_default[$logo],76 //'type' => 'option',77 //'capability' => 'manage_options',78 //// 'transport' => 'postMessage'79 //));80 // 81 //$wp_customize->add_control( $logo_control[$logo], array(82 //'label' => $logo_label[$logo],83 //'section' => 'ucmm_wpbrigade_logo_section',84 //'priority' => 10,85 //'settings' => "ucmm_wpbrigade_customization[{$logo_control[$logo]}]"86 //));87 // 88 //$logo++;89 //endwhile;71 $logo = 0; 72 while ( $logo < 2 ) : 73 74 $wp_customize->add_setting( "ucmm_wpbrigade_customization[{$logo_control[$logo]}]", array( 75 'default' => $logo_default[$logo], 76 'type' => 'option', 77 'capability' => 'manage_options', 78 // 'transport' => 'postMessage' 79 )); 80 81 $wp_customize->add_control( $logo_control[$logo], array( 82 'label' => $logo_label[$logo], 83 'section' => 'ucmm_wpbrigade_logo_section', 84 'priority' => 10, 85 'settings' => "ucmm_wpbrigade_customization[{$logo_control[$logo]}]" 86 )); 87 88 $logo++; 89 endwhile; 90 90 91 91 // ============================= … … 176 176 'type' => 'checkbox', 177 177 ) ); 178 179 // ============================= 180 // = Section for Social Links = 181 // ============================= 182 183 $social_control_c = array( 'ucmm_facebook_c', 'ucmm_twitter_c', 'ucmm_linkedin_c', 'ucmm_google_c', 'ucmm_youtube_c', 'ucmm_instagram_c', 'ucmm_pinterest_c', 'ucmm_codepen_c' ); 184 $social_label_c = array( 185 __( 'Show Facebook Icon:', 'ucmm-wpbrigade' ), 186 __( 'Show Twitter Icon:', 'ucmm-wpbrigade' ), 187 __( 'Show Linkedin Icon:', 'ucmm-wpbrigade' ), 188 __( 'Show Google Plus Icon:', 'ucmm-wpbrigade' ), 189 __( 'Show Youtube Icon:', 'ucmm-wpbrigade' ), 190 __( 'Show Instagram Icon:', 'ucmm-wpbrigade' ), 191 __( 'Show Pinterest Icon:', 'ucmm-wpbrigade' ), 192 __( 'Show Codepen Icon:', 'ucmm-wpbrigade' ) 193 ); 194 $social_control = array( 'ucmm_facebook', 'ucmm_twitter', 'ucmm_linkedin', 'ucmm_google', 'ucmm_youtube', 'ucmm_instagram', 'ucmm_pinterest', 'ucmm_codepen' ); 195 $social_default = array( "https://www.facebook.com/", "https://twitter.com/", "https://www.linkedin.com/", "https://plus.google.com/", "https://www.youtube.com/", "https://www.instagram.com/", "https://www.pinterest.com/", "https://codepen.io/" ); 196 $social_label = array( 197 __( 'Facebook Link:', 'ucmm-wpbrigade' ), 198 __( 'Twitter Link:', 'ucmm-wpbrigade' ), 199 __( 'Linkedin Link:', 'ucmm-wpbrigade' ), 200 __( 'Google Plus Link:', 'ucmm-wpbrigade' ), 201 __( 'YouTube Link:', 'ucmm-wpbrigade' ), 202 __( 'Instagram Link:', 'ucmm-wpbrigade' ), 203 __( 'Pinterest Link:', 'ucmm-wpbrigade' ), 204 __( 'Codepen Link:', 'ucmm-wpbrigade' ) 205 ); 206 207 $wp_customize->add_section( 'ucmm_social_icon_section', array( 208 'title' => __( 'Add Social Icons', 'ucmm-wpbrigade' ), 209 'priority' => 25, 210 'panel' => 'ucmm_wpbrigade_panel', 211 ) ); 212 213 $social = 0; 214 while ( $social < 8 ) : 215 216 $wp_customize->add_setting( "ucmm_wpbrigade_customization[{$social_control_c[$social]}]", array( 217 'default' => false, 218 'type' => 'option', 219 'capability' => 'manage_options', 220 // 'transport' => 'postMessage' 221 ) ); 222 223 $wp_customize->add_control( $social_control_c[$social], array( 224 'settings' => "ucmm_wpbrigade_customization[{$social_control_c[$social]}]", 225 'label' => $social_label_c[$social], 226 'section' => 'ucmm_social_icon_section', 227 // 'priority' => 5, 228 'type' => 'checkbox', 229 ) ); 230 231 $wp_customize->add_setting( 232 "ucmm_wpbrigade_customization[{$social_control[$social]}]", array( 233 'default' => $social_default[$social], 234 'type' => 'option', 235 'capability' => 'manage_options', 236 // 'transport' => 'postMessage' 237 ) ); 238 239 $wp_customize->add_control( $social_control[$social], array( 240 'label' => $social_label[$social], 241 'section' => 'ucmm_social_icon_section', 242 // 'priority' => 10, 243 'settings' => "ucmm_wpbrigade_customization[{$social_control[$social]}]" 244 )); 245 246 $social++; 247 endwhile; 248 249 // ============================= 250 // = Section for Custom CSS = 251 // ============================= 252 $wp_customize->add_section( 253 'ucmm_section_css', 254 array( 255 'title' => __( 'Custom CSS', 'ucmm-wpbrigade' ), 256 'description' => '', 257 'priority' => 30, 258 'panel' => 'ucmm_wpbrigade_panel', 259 ) ); 260 261 $wp_customize->add_setting( 'ucmm_wpbrigade_customization[ucmm_custom_css]', array( 262 'default' => "/* You can add your custom CSS here. */", 263 'type' => 'option', 264 'capability' => 'manage_options', 265 'transport' => 'postMessage' 266 ) ); 267 268 $wp_customize->add_control( 'ucmm_wpbrigade_customization[ucmm_custom_css]', array( 269 'label' => __( 'Customize CSS', 'ucmm-wpbrigade' ), 270 'type' => 'textarea', 271 'section' => 'ucmm_section_css', 272 'priority' => 5, 273 'settings' => 'ucmm_wpbrigade_customization[ucmm_custom_css]' 274 ) ); 275 276 // ============================= 277 // = Section for SEO Configuration 278 // ============================= 279 280 $seo_control = array( 'ucmm_seo_title', 'ucmm_seo_description', 'ucmm_seo_url', 'ucmm_seo_sitename', 'ucmm_seo_admin', 'ucmm_seo_keywords' ); 281 $seo_default = array( "", "", get_bloginfo( 'url' ), get_bloginfo( 'name' ), "", "" ); 282 $seo_label = array( 283 __( 'SEO Title:', 'ucmm-wpbrigade' ), 284 __( 'SEO Description:', 'ucmm-wpbrigade' ), 285 __( 'SEO URL:', 'ucmm-wpbrigade' ), 286 __( 'SEO Site Name:', 'ucmm-wpbrigade' ), 287 __( 'SEO Author Name:', 'ucmm-wpbrigade' ), 288 __( 'SEO Keywords:', 'ucmm-wpbrigade' ) 289 ); 290 291 $wp_customize->add_section( 292 'ucmm_seo_section', 293 array( 294 'title' => __( 'SEO Configuration', 'ucmm-wpbrigade' ), 295 'description' => '', 296 'priority' => 35, 297 'panel' => 'ucmm_wpbrigade_panel', 298 ) ); 299 300 $seo = 0; 301 while ( $seo < 6 ) : 302 303 $wp_customize->add_setting( 304 "ucmm_wpbrigade_customization[{$seo_control[$seo]}]", array( 305 'default' => $seo_default[$seo], 306 'type' => 'option', 307 'capability' => 'manage_options', 308 // 'transport' => 'postMessage' 309 ) ); 310 311 $wp_customize->add_control( $seo_control[$seo], array( 312 'label' => $seo_label[$seo], 313 'section' => 'ucmm_seo_section', 314 'settings' => "ucmm_wpbrigade_customization[{$seo_control[$seo]}]" 315 )); 316 317 $seo++; 318 endwhile; 319 320 // ============================= 321 // = Section for Google Analytics 322 // ============================= 323 $wp_customize->add_section( 324 'ucmm_ga_tracking_section', 325 array( 326 'title' => __( 'Google Analytics Tracking Code', 'ucmm-wpbrigade' ), 327 'description' => '', 328 'priority' => 40, 329 'panel' => 'ucmm_wpbrigade_panel', 330 ) ); 331 332 $wp_customize->add_setting( 'ucmm_wpbrigade_customization[ucmm_ga_tracking_code]', array( 333 'default' => "/* Google Analytics Tracking Code here. */", 334 'type' => 'option', 335 'capability' => 'manage_options', 336 'transport' => 'postMessage' 337 ) ); 338 339 $wp_customize->add_control( 'ucmm_wpbrigade_customization[ucmm_ga_tracking_code]', array( 340 'label' => __( 'Google Analytics Tracking Code', 'ucmm-wpbrigade' ), 341 'type' => 'textarea', 342 'section' => 'ucmm_ga_tracking_section', 343 'priority' => 5, 344 'settings' => 'ucmm_wpbrigade_customization[ucmm_ga_tracking_code]' 345 ) ); 178 346 } 179 347 } -
under-construction-maintenance-mode/tags/1.0.3/readme.txt
r1764505 r1764507 4 4 Tags: coming soon, under construction, maintenance mode, behind the scenes, maintenance, comingsoon, 5 5 Requires at least: 3.0 6 Tested up to: 4. 7.37 Stable tag: 1.0. 26 Tested up to: 4.9 7 Stable tag: 1.0.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 46 46 == Changelog == 47 47 48 = 1.0.3 = 49 * New Feature: Custimize all the layout with WordPress Customizer and see it live preview along with changes live. 50 * New Feature: Add your own logo for Under Construction Page. 51 * New Feature: Add Social Media links at Under Construction Page. 52 * New Feature: SEO Configuration for Under Construction Page. 53 * New Feature: Add Google Analytics tracking for Under Construction Page. 54 * New Feature: Customize Under Construction Page with Custom CSS section. 55 * New Feature: Change Under Construction Page Background with WordPress Customizer. 56 48 57 = 1.0.2 = 49 58 * PostMessage Integration i.e no more refrsh while editing the page in customizer. … … 59 68 == Upgrade Notice == 60 69 61 = 1.0. 2=62 Upgrade Immediately .70 = 1.0.3 = 71 Upgrade Immediately - 4.9 Compatible and A whole set of NEW FEATURES for FREE :) -
under-construction-maintenance-mode/tags/1.0.3/ucmm-customize.php
r1618462 r1764507 1 1 <?php 2 2 /** 3 * @var $ucmm_wpbrigade_array get_option4 * @since 1.0.05 */3 * @var $ucmm_wpbrigade_array get_option 4 * @since 1.0.0 5 */ 6 6 $ucmm_wpbrigade_array = (array) get_option( 'ucmm_wpbrigade_customization' ); 7 7 … … 12 12 return $ucmm_wpbrigade_array[ $ucmm_key ]; 13 13 14 }14 } 15 15 // else { 16 // return false;17 // }16 // return false; 17 // } 18 18 } 19 19 /** 20 * ucmm_wpbrigade_default_option_key21 * @since 1.0.222 */20 * ucmm_wpbrigade_default_option_key 21 * @since 1.0.2 22 */ 23 23 function ucmm_wpbrigade_default_option_key( $ucmm_key, $ucmm_wpbrigade_array ) { 24 24 … … 27 27 return $ucmm_wpbrigade_array[ $ucmm_key ]; 28 28 29 }29 } 30 30 else { 31 return true;32 }31 return true; 32 } 33 33 } 34 34 … … 37 37 $ucmm_header = ucmm_wpbrigade_option_key( 'header_text', $ucmm_wpbrigade_array); 38 38 $ucmm_footer = ucmm_wpbrigade_option_key( 'footer_text', $ucmm_wpbrigade_array); 39 $ucmm_logo_width = ucmm_wpbrigade_option_key( 'ucmm_logo_width', $ucmm_wpbrigade_array); 40 $ucmm_logo_height = ucmm_wpbrigade_option_key( 'ucmm_logo_height', $ucmm_wpbrigade_array); 41 $ucmm_seo_title = ucmm_wpbrigade_option_key( 'ucmm_seo_title', $ucmm_wpbrigade_array); 42 $ucmm_seo_description = ucmm_wpbrigade_option_key( 'ucmm_seo_description', $ucmm_wpbrigade_array); 43 $ucmm_seo_url = ucmm_wpbrigade_option_key( 'ucmm_seo_url', $ucmm_wpbrigade_array); 44 $ucmm_seo_sitename = ucmm_wpbrigade_option_key( 'ucmm_seo_sitename', $ucmm_wpbrigade_array); 45 $ucmm_seo_admin = ucmm_wpbrigade_option_key( 'ucmm_seo_admin', $ucmm_wpbrigade_array); 46 $ucmm_seo_keywords = ucmm_wpbrigade_option_key( 'ucmm_seo_keywords', $ucmm_wpbrigade_array); 47 $ucmm_custom_css = ucmm_wpbrigade_option_key( 'ucmm_custom_css', $ucmm_wpbrigade_array ); 48 $ucmm_ga_tracking_code = ucmm_wpbrigade_option_key( 'ucmm_ga_tracking_code', $ucmm_wpbrigade_array ); 39 49 $ucmm_footer_love = ucmm_wpbrigade_default_option_key( 'ucmm_display_footer_text', $ucmm_wpbrigade_array); 50 51 if ( $ucmm_logo ) { 52 $_ucmm_logo = '<img src="'.$ucmm_logo.'" alt="">'; 53 } 54 else { 55 $_ucmm_logo = '';//get_bloginfo('name'); 56 } 40 57 ?> 41 58 <html xmlns="http://www.w3.org/1999/xhtml"> 42 59 <head> 43 <!-- <link rel="icon" href="<?php //echo site_icon_url();?>" sizes="32x32" /> --> 44 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 45 <!-- <meta name="description" content="" /> 46 <meta name="locale" content="" /> 47 <meta name="type" content="" /> 48 <meta name="title" content="" /> 49 <meta name="description" content="" /> 50 <meta name="url" content="" /> 51 <meta name="site_name" content="" /> --> 52 <title><?php echo get_bloginfo('name'); ?></title> 53 <style media="screen"> 54 html{ 55 height: 100%; 56 } 57 body{ 58 display: table; 59 min-height: 100%; 60 margin: 0; 61 text-align: center; 62 width: 100%; 63 background: url(<?php echo null != $ucmm_bg ? $ucmm_bg : plugins_url( 'img/coming-soon.png', __FILE__ ); ?>); 64 background-size: cover; 65 background-position: center; 66 } 67 h1{ 68 /*display: table-header-group; 69 width: 100%;*/ 70 font-size: 60px; 71 color: #fff; 72 text-transform: uppercase; 60 <!-- <link rel="icon" href="<?php //echo site_icon_url();?>" sizes="32x32" /> --> 61 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 62 <meta name="title" content="<?php echo $ucmm_seo_title;?>" /> 63 <meta name="description" content="<?php echo $ucmm_seo_description;?>" /> 64 <meta name="url" content="<?php echo $ucmm_seo_url;?>" /> 65 <meta name="site_name" content="<?php echo $ucmm_seo_sitename;?>" /> 66 <meta name="author" content="<?php echo $ucmm_seo_admin;?>"> 67 <meta name="keywords" content="<?php echo $ucmm_seo_keywords;?>"> 68 <title><?php echo get_bloginfo('name'); ?></title> 69 <style media="screen"> 70 html{ 71 height: 100%; 72 } 73 body{ 74 display: table; 75 min-height: 100%; 73 76 margin: 0; 74 } 75 .ucmm-logo{ 76 /*display: table-cell;*/ 77 text-align: center; 78 width: 100%; 79 background: url(<?php echo null != $ucmm_bg ? $ucmm_bg : plugins_url( 'img/coming-soon.png', __FILE__ ); ?>); 80 background-size: cover; 81 <?php if ( '' == $ucmm_logo ): ?> 82 background-position: center; 83 <?php endif; ?> 84 } 85 h1{ 86 font-size: 60px; 87 color: #fff; 88 text-transform: uppercase; 89 margin: 0; 90 } 91 .ucmm-logo{ 92 <?php if ( '' == $ucmm_logo ): ?> 77 93 padding-top: 70px; 78 vertical-align: middle; 79 text-align: center; 80 width: 100%; 81 font-size: 50px; 82 font-weight: bold; 83 color: #fff; 84 } 85 h2{ 86 /*display: table-footer-group; 87 width: 100%;*/ 88 font-size: 20px; 89 color: #fff; 94 <?php else : ?> 95 padding-top: 20px; 96 <?php endif; ?> 97 vertical-align: middle; 98 text-align: center; 99 width: 100%; 100 font-size: 50px; 101 font-weight: bold; 102 color: #fff; 103 } 104 .ucmm-logo img{ 105 width: <?php echo $ucmm_logo_width; ?>; 106 height: <?php echo $ucmm_logo_height; ?>; 107 } 108 h2{ 109 font-size: 20px; 110 color: #fff; 90 111 margin: 0; 91 font-family: inherit; 92 /*text-transform: uppercase;*/ 93 } 112 font-family: inherit; 113 } 94 114 .footer-love { 95 position: absolute;115 position: absolute; 96 116 color: #fff; 97 right: 0;98 bottom: 0;99 padding-right: 20px;100 padding-bottom: 5px;117 right: 0; 118 bottom: 0; 119 padding-right: 20px; 120 padding-bottom: 5px; 101 121 } 102 122 .footer-love a{ … … 107 127 color: #3BB9FF; 108 128 } 109 </style> 110 <?php 111 if ( $ucmm_logo ) { 112 $_ucmm_logo = '<img src="'.$ucmm_logo.'" alt="">'; 113 } else { 114 $_ucmm_logo = get_bloginfo('name'); 115 } 116 ?>129 130 <?php if ( ! empty( $ucmm_custom_css ) ) : ?> 131 <?php echo $ucmm_custom_css; ?> 132 <?php endif; ?> 133 </style> 134 <?php if ( ! empty( $ucmm_ga_tracking_code ) ) : ?> 135 <?php echo $ucmm_ga_tracking_code; ?> 136 <?php endif; ?> 117 137 </head> 118 138 <body> 119 <!-- <div class="ucmm-container"> --> 139 <div class="ucmm-logo"> 140 <?php echo $_ucmm_logo;?> 141 <h1><?php if ( $ucmm_header ) { 142 echo $ucmm_header; 143 } else { 144 echo __("UNDER CONSTRUCTION", 'ucmm-wpbrigade'); 145 } ?></h1> 146 <h2> <?php if ( $ucmm_footer ) { 147 echo $ucmm_footer; 148 } else { 149 echo __( 'We are working hard to bring you new experience', 'ucmm-wpbrigade' ); 150 } ?> </h2> 120 151 121 122 <div class="ucmm-logo">123 <?php //echo $_ucmm_logo;?>124 <h1><?php if ( $ucmm_header ) {125 echo $ucmm_header;126 } else {127 echo __("UNDER CONSTRUCTION", 'ucmm-wpbrigade');128 } ?></h1>129 <h2> <?php if ( $ucmm_footer ) {130 echo $ucmm_footer;131 } else {132 echo __( 'We are working hard to bring you new experience', 'ucmm-wpbrigade' );133 } ?> </h2>134 135 </div>136 <?php if ( $ucmm_footer_love ) : ?>137 <div class="footer-love">138 Powered by: <a href="https://wordpress.org/plugins/under-construction-maintenance-mode/" target="_blank">WPBrigade</a>139 152 </div> 140 <?php endif; ?> 141 142 <!-- </div> --> 153 <?php if ( $ucmm_footer_love ) : ?> 154 <div class="footer-love"> 155 <?php _e( 'Powered by:', 'ucmm-wpbrigade' ); ?> <a href="https://wordpress.org/plugins/under-construction-maintenance-mode/" target="_blank">WPBrigade</a> 156 </div> 157 <?php endif; ?> 143 158 144 159 </body> -
under-construction-maintenance-mode/tags/1.0.3/under-construction-maintenance-mode.php
r1618462 r1764507 4 4 * Plugin URI: https://wpbrigade.com/wordpress/plugins/under-construction-maintenance-mode/ 5 5 * Description: This plugin will Display an Under Construction, Maintenance Mode or Coming Soon landing Page that takes 5 seconds to setup, while you're doing maintenance work on your site. 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: WPBrigade 8 8 * Author URI: https://www.WPBrigade.com/ 9 9 * Requires at least: 4.0 10 * Tested up to: 4. 7.310 * Tested up to: 4.9 11 11 * Text Domain: ucmm-wpbrigade 12 12 * Domain Path: /languages … … 28 28 * @var string 29 29 */ 30 public $version = '1.0. 2';30 public $version = '1.0.3'; 31 31 32 32 function __construct() { … … 110 110 if( $_GET['page'] == "under-construction-maintenance-mode" ){ 111 111 112 // wp_redirect( admin_url( "customize.php?autofocus[panel]=ucmm_wpbrigade_panel&url=".home_url()."/ucmm-customize.php?watch=ucmm-customizer" ));113 114 wp_redirect(get_admin_url()."customize.php?url=".home_url()."/ucmm-customize.php?watch=ucmm-customizer");112 wp_redirect( admin_url( ) ."customize.php?autofocus[panel]=ucmm_wpbrigade_panel&url=".home_url()."/ucmm-customize.php?watch=ucmm-customizer" ); 113 114 // wp_redirect(get_admin_url()."customize.php?url=".home_url()."/ucmm-customize.php?watch=ucmm-customizer"); 115 115 } 116 116 } -
under-construction-maintenance-mode/trunk/assets/js/customize-controls.js
r1618462 r1764507 4 4 ( function( $ ) { 5 5 6 // header text h1 7 // wp.customize( 'ucmm_wpbrigade_customization[ucmm_logo_width]', function( value ) { 8 // value.bind( function( newval ) { 9 // 10 // if ( '' != newval) { 11 // $('#customize-preview iframe').contents().find( '.ucmm-logo img' ).css( 'width', newval ); 12 // } 13 // 14 // } ); 15 // } ); 16 // // header text h1 17 // wp.customize( 'ucmm_wpbrigade_customization[ucmm_logo_height]', function( value ) { 18 // value.bind( function( newval ) { 19 // 20 // if ( '' != newval) { 21 // $('#customize-preview iframe').contents().find( '.ucmm-logo img' ).css( 'height', newval ); 22 // } 23 // 24 // } ); 25 // } ); 6 26 // header text h1 7 27 wp.customize( 'ucmm_wpbrigade_customization[header_text]', function( value ) { -
under-construction-maintenance-mode/trunk/classes/customizer.php
r1618462 r1764507 60 60 61 61 $logo_control = array( 'ucmm_logo_width', 'ucmm_logo_height', 'ucmm_logo_padding', 'ucmm_logo_hover', 'ucmm_logo_hover_title' ); 62 $logo_default = array( ' 200px', '100px', '200px', '', '' );62 $logo_default = array( '100px', '100px', '200px', '', '' ); 63 63 $logo_label = array( 64 64 __( 'Logo Width:', 'ucmm-wpbrigade' ), … … 69 69 ); 70 70 71 //$logo = 0;72 // while ( $logo < 5) :73 // 74 //$wp_customize->add_setting( "ucmm_wpbrigade_customization[{$logo_control[$logo]}]", array(75 //'default' => $logo_default[$logo],76 //'type' => 'option',77 //'capability' => 'manage_options',78 //// 'transport' => 'postMessage'79 //));80 // 81 //$wp_customize->add_control( $logo_control[$logo], array(82 //'label' => $logo_label[$logo],83 //'section' => 'ucmm_wpbrigade_logo_section',84 //'priority' => 10,85 //'settings' => "ucmm_wpbrigade_customization[{$logo_control[$logo]}]"86 //));87 // 88 //$logo++;89 //endwhile;71 $logo = 0; 72 while ( $logo < 2 ) : 73 74 $wp_customize->add_setting( "ucmm_wpbrigade_customization[{$logo_control[$logo]}]", array( 75 'default' => $logo_default[$logo], 76 'type' => 'option', 77 'capability' => 'manage_options', 78 // 'transport' => 'postMessage' 79 )); 80 81 $wp_customize->add_control( $logo_control[$logo], array( 82 'label' => $logo_label[$logo], 83 'section' => 'ucmm_wpbrigade_logo_section', 84 'priority' => 10, 85 'settings' => "ucmm_wpbrigade_customization[{$logo_control[$logo]}]" 86 )); 87 88 $logo++; 89 endwhile; 90 90 91 91 // ============================= … … 176 176 'type' => 'checkbox', 177 177 ) ); 178 179 // ============================= 180 // = Section for Social Links = 181 // ============================= 182 183 $social_control_c = array( 'ucmm_facebook_c', 'ucmm_twitter_c', 'ucmm_linkedin_c', 'ucmm_google_c', 'ucmm_youtube_c', 'ucmm_instagram_c', 'ucmm_pinterest_c', 'ucmm_codepen_c' ); 184 $social_label_c = array( 185 __( 'Show Facebook Icon:', 'ucmm-wpbrigade' ), 186 __( 'Show Twitter Icon:', 'ucmm-wpbrigade' ), 187 __( 'Show Linkedin Icon:', 'ucmm-wpbrigade' ), 188 __( 'Show Google Plus Icon:', 'ucmm-wpbrigade' ), 189 __( 'Show Youtube Icon:', 'ucmm-wpbrigade' ), 190 __( 'Show Instagram Icon:', 'ucmm-wpbrigade' ), 191 __( 'Show Pinterest Icon:', 'ucmm-wpbrigade' ), 192 __( 'Show Codepen Icon:', 'ucmm-wpbrigade' ) 193 ); 194 $social_control = array( 'ucmm_facebook', 'ucmm_twitter', 'ucmm_linkedin', 'ucmm_google', 'ucmm_youtube', 'ucmm_instagram', 'ucmm_pinterest', 'ucmm_codepen' ); 195 $social_default = array( "https://www.facebook.com/", "https://twitter.com/", "https://www.linkedin.com/", "https://plus.google.com/", "https://www.youtube.com/", "https://www.instagram.com/", "https://www.pinterest.com/", "https://codepen.io/" ); 196 $social_label = array( 197 __( 'Facebook Link:', 'ucmm-wpbrigade' ), 198 __( 'Twitter Link:', 'ucmm-wpbrigade' ), 199 __( 'Linkedin Link:', 'ucmm-wpbrigade' ), 200 __( 'Google Plus Link:', 'ucmm-wpbrigade' ), 201 __( 'YouTube Link:', 'ucmm-wpbrigade' ), 202 __( 'Instagram Link:', 'ucmm-wpbrigade' ), 203 __( 'Pinterest Link:', 'ucmm-wpbrigade' ), 204 __( 'Codepen Link:', 'ucmm-wpbrigade' ) 205 ); 206 207 $wp_customize->add_section( 'ucmm_social_icon_section', array( 208 'title' => __( 'Add Social Icons', 'ucmm-wpbrigade' ), 209 'priority' => 25, 210 'panel' => 'ucmm_wpbrigade_panel', 211 ) ); 212 213 $social = 0; 214 while ( $social < 8 ) : 215 216 $wp_customize->add_setting( "ucmm_wpbrigade_customization[{$social_control_c[$social]}]", array( 217 'default' => false, 218 'type' => 'option', 219 'capability' => 'manage_options', 220 // 'transport' => 'postMessage' 221 ) ); 222 223 $wp_customize->add_control( $social_control_c[$social], array( 224 'settings' => "ucmm_wpbrigade_customization[{$social_control_c[$social]}]", 225 'label' => $social_label_c[$social], 226 'section' => 'ucmm_social_icon_section', 227 // 'priority' => 5, 228 'type' => 'checkbox', 229 ) ); 230 231 $wp_customize->add_setting( 232 "ucmm_wpbrigade_customization[{$social_control[$social]}]", array( 233 'default' => $social_default[$social], 234 'type' => 'option', 235 'capability' => 'manage_options', 236 // 'transport' => 'postMessage' 237 ) ); 238 239 $wp_customize->add_control( $social_control[$social], array( 240 'label' => $social_label[$social], 241 'section' => 'ucmm_social_icon_section', 242 // 'priority' => 10, 243 'settings' => "ucmm_wpbrigade_customization[{$social_control[$social]}]" 244 )); 245 246 $social++; 247 endwhile; 248 249 // ============================= 250 // = Section for Custom CSS = 251 // ============================= 252 $wp_customize->add_section( 253 'ucmm_section_css', 254 array( 255 'title' => __( 'Custom CSS', 'ucmm-wpbrigade' ), 256 'description' => '', 257 'priority' => 30, 258 'panel' => 'ucmm_wpbrigade_panel', 259 ) ); 260 261 $wp_customize->add_setting( 'ucmm_wpbrigade_customization[ucmm_custom_css]', array( 262 'default' => "/* You can add your custom CSS here. */", 263 'type' => 'option', 264 'capability' => 'manage_options', 265 'transport' => 'postMessage' 266 ) ); 267 268 $wp_customize->add_control( 'ucmm_wpbrigade_customization[ucmm_custom_css]', array( 269 'label' => __( 'Customize CSS', 'ucmm-wpbrigade' ), 270 'type' => 'textarea', 271 'section' => 'ucmm_section_css', 272 'priority' => 5, 273 'settings' => 'ucmm_wpbrigade_customization[ucmm_custom_css]' 274 ) ); 275 276 // ============================= 277 // = Section for SEO Configuration 278 // ============================= 279 280 $seo_control = array( 'ucmm_seo_title', 'ucmm_seo_description', 'ucmm_seo_url', 'ucmm_seo_sitename', 'ucmm_seo_admin', 'ucmm_seo_keywords' ); 281 $seo_default = array( "", "", get_bloginfo( 'url' ), get_bloginfo( 'name' ), "", "" ); 282 $seo_label = array( 283 __( 'SEO Title:', 'ucmm-wpbrigade' ), 284 __( 'SEO Description:', 'ucmm-wpbrigade' ), 285 __( 'SEO URL:', 'ucmm-wpbrigade' ), 286 __( 'SEO Site Name:', 'ucmm-wpbrigade' ), 287 __( 'SEO Author Name:', 'ucmm-wpbrigade' ), 288 __( 'SEO Keywords:', 'ucmm-wpbrigade' ) 289 ); 290 291 $wp_customize->add_section( 292 'ucmm_seo_section', 293 array( 294 'title' => __( 'SEO Configuration', 'ucmm-wpbrigade' ), 295 'description' => '', 296 'priority' => 35, 297 'panel' => 'ucmm_wpbrigade_panel', 298 ) ); 299 300 $seo = 0; 301 while ( $seo < 6 ) : 302 303 $wp_customize->add_setting( 304 "ucmm_wpbrigade_customization[{$seo_control[$seo]}]", array( 305 'default' => $seo_default[$seo], 306 'type' => 'option', 307 'capability' => 'manage_options', 308 // 'transport' => 'postMessage' 309 ) ); 310 311 $wp_customize->add_control( $seo_control[$seo], array( 312 'label' => $seo_label[$seo], 313 'section' => 'ucmm_seo_section', 314 'settings' => "ucmm_wpbrigade_customization[{$seo_control[$seo]}]" 315 )); 316 317 $seo++; 318 endwhile; 319 320 // ============================= 321 // = Section for Google Analytics 322 // ============================= 323 $wp_customize->add_section( 324 'ucmm_ga_tracking_section', 325 array( 326 'title' => __( 'Google Analytics Tracking Code', 'ucmm-wpbrigade' ), 327 'description' => '', 328 'priority' => 40, 329 'panel' => 'ucmm_wpbrigade_panel', 330 ) ); 331 332 $wp_customize->add_setting( 'ucmm_wpbrigade_customization[ucmm_ga_tracking_code]', array( 333 'default' => "/* Google Analytics Tracking Code here. */", 334 'type' => 'option', 335 'capability' => 'manage_options', 336 'transport' => 'postMessage' 337 ) ); 338 339 $wp_customize->add_control( 'ucmm_wpbrigade_customization[ucmm_ga_tracking_code]', array( 340 'label' => __( 'Google Analytics Tracking Code', 'ucmm-wpbrigade' ), 341 'type' => 'textarea', 342 'section' => 'ucmm_ga_tracking_section', 343 'priority' => 5, 344 'settings' => 'ucmm_wpbrigade_customization[ucmm_ga_tracking_code]' 345 ) ); 178 346 } 179 347 } -
under-construction-maintenance-mode/trunk/readme.txt
r1764505 r1764507 4 4 Tags: coming soon, under construction, maintenance mode, behind the scenes, maintenance, comingsoon, 5 5 Requires at least: 3.0 6 Tested up to: 4. 7.37 Stable tag: 1.0. 26 Tested up to: 4.9 7 Stable tag: 1.0.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 46 46 == Changelog == 47 47 48 = 1.0.3 = 49 * New Feature: Custimize all the layout with WordPress Customizer and see it live preview along with changes live. 50 * New Feature: Add your own logo for Under Construction Page. 51 * New Feature: Add Social Media links at Under Construction Page. 52 * New Feature: SEO Configuration for Under Construction Page. 53 * New Feature: Add Google Analytics tracking for Under Construction Page. 54 * New Feature: Customize Under Construction Page with Custom CSS section. 55 * New Feature: Change Under Construction Page Background with WordPress Customizer. 56 48 57 = 1.0.2 = 49 58 * PostMessage Integration i.e no more refrsh while editing the page in customizer. … … 59 68 == Upgrade Notice == 60 69 61 = 1.0. 2=62 Upgrade Immediately .70 = 1.0.3 = 71 Upgrade Immediately - 4.9 Compatible and A whole set of NEW FEATURES for FREE :) -
under-construction-maintenance-mode/trunk/ucmm-customize.php
r1618462 r1764507 1 1 <?php 2 2 /** 3 * @var $ucmm_wpbrigade_array get_option4 * @since 1.0.05 */3 * @var $ucmm_wpbrigade_array get_option 4 * @since 1.0.0 5 */ 6 6 $ucmm_wpbrigade_array = (array) get_option( 'ucmm_wpbrigade_customization' ); 7 7 … … 12 12 return $ucmm_wpbrigade_array[ $ucmm_key ]; 13 13 14 }14 } 15 15 // else { 16 // return false;17 // }16 // return false; 17 // } 18 18 } 19 19 /** 20 * ucmm_wpbrigade_default_option_key21 * @since 1.0.222 */20 * ucmm_wpbrigade_default_option_key 21 * @since 1.0.2 22 */ 23 23 function ucmm_wpbrigade_default_option_key( $ucmm_key, $ucmm_wpbrigade_array ) { 24 24 … … 27 27 return $ucmm_wpbrigade_array[ $ucmm_key ]; 28 28 29 }29 } 30 30 else { 31 return true;32 }31 return true; 32 } 33 33 } 34 34 … … 37 37 $ucmm_header = ucmm_wpbrigade_option_key( 'header_text', $ucmm_wpbrigade_array); 38 38 $ucmm_footer = ucmm_wpbrigade_option_key( 'footer_text', $ucmm_wpbrigade_array); 39 $ucmm_logo_width = ucmm_wpbrigade_option_key( 'ucmm_logo_width', $ucmm_wpbrigade_array); 40 $ucmm_logo_height = ucmm_wpbrigade_option_key( 'ucmm_logo_height', $ucmm_wpbrigade_array); 41 $ucmm_seo_title = ucmm_wpbrigade_option_key( 'ucmm_seo_title', $ucmm_wpbrigade_array); 42 $ucmm_seo_description = ucmm_wpbrigade_option_key( 'ucmm_seo_description', $ucmm_wpbrigade_array); 43 $ucmm_seo_url = ucmm_wpbrigade_option_key( 'ucmm_seo_url', $ucmm_wpbrigade_array); 44 $ucmm_seo_sitename = ucmm_wpbrigade_option_key( 'ucmm_seo_sitename', $ucmm_wpbrigade_array); 45 $ucmm_seo_admin = ucmm_wpbrigade_option_key( 'ucmm_seo_admin', $ucmm_wpbrigade_array); 46 $ucmm_seo_keywords = ucmm_wpbrigade_option_key( 'ucmm_seo_keywords', $ucmm_wpbrigade_array); 47 $ucmm_custom_css = ucmm_wpbrigade_option_key( 'ucmm_custom_css', $ucmm_wpbrigade_array ); 48 $ucmm_ga_tracking_code = ucmm_wpbrigade_option_key( 'ucmm_ga_tracking_code', $ucmm_wpbrigade_array ); 39 49 $ucmm_footer_love = ucmm_wpbrigade_default_option_key( 'ucmm_display_footer_text', $ucmm_wpbrigade_array); 50 51 if ( $ucmm_logo ) { 52 $_ucmm_logo = '<img src="'.$ucmm_logo.'" alt="">'; 53 } 54 else { 55 $_ucmm_logo = '';//get_bloginfo('name'); 56 } 40 57 ?> 41 58 <html xmlns="http://www.w3.org/1999/xhtml"> 42 59 <head> 43 <!-- <link rel="icon" href="<?php //echo site_icon_url();?>" sizes="32x32" /> --> 44 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 45 <!-- <meta name="description" content="" /> 46 <meta name="locale" content="" /> 47 <meta name="type" content="" /> 48 <meta name="title" content="" /> 49 <meta name="description" content="" /> 50 <meta name="url" content="" /> 51 <meta name="site_name" content="" /> --> 52 <title><?php echo get_bloginfo('name'); ?></title> 53 <style media="screen"> 54 html{ 55 height: 100%; 56 } 57 body{ 58 display: table; 59 min-height: 100%; 60 margin: 0; 61 text-align: center; 62 width: 100%; 63 background: url(<?php echo null != $ucmm_bg ? $ucmm_bg : plugins_url( 'img/coming-soon.png', __FILE__ ); ?>); 64 background-size: cover; 65 background-position: center; 66 } 67 h1{ 68 /*display: table-header-group; 69 width: 100%;*/ 70 font-size: 60px; 71 color: #fff; 72 text-transform: uppercase; 60 <!-- <link rel="icon" href="<?php //echo site_icon_url();?>" sizes="32x32" /> --> 61 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 62 <meta name="title" content="<?php echo $ucmm_seo_title;?>" /> 63 <meta name="description" content="<?php echo $ucmm_seo_description;?>" /> 64 <meta name="url" content="<?php echo $ucmm_seo_url;?>" /> 65 <meta name="site_name" content="<?php echo $ucmm_seo_sitename;?>" /> 66 <meta name="author" content="<?php echo $ucmm_seo_admin;?>"> 67 <meta name="keywords" content="<?php echo $ucmm_seo_keywords;?>"> 68 <title><?php echo get_bloginfo('name'); ?></title> 69 <style media="screen"> 70 html{ 71 height: 100%; 72 } 73 body{ 74 display: table; 75 min-height: 100%; 73 76 margin: 0; 74 } 75 .ucmm-logo{ 76 /*display: table-cell;*/ 77 text-align: center; 78 width: 100%; 79 background: url(<?php echo null != $ucmm_bg ? $ucmm_bg : plugins_url( 'img/coming-soon.png', __FILE__ ); ?>); 80 background-size: cover; 81 <?php if ( '' == $ucmm_logo ): ?> 82 background-position: center; 83 <?php endif; ?> 84 } 85 h1{ 86 font-size: 60px; 87 color: #fff; 88 text-transform: uppercase; 89 margin: 0; 90 } 91 .ucmm-logo{ 92 <?php if ( '' == $ucmm_logo ): ?> 77 93 padding-top: 70px; 78 vertical-align: middle; 79 text-align: center; 80 width: 100%; 81 font-size: 50px; 82 font-weight: bold; 83 color: #fff; 84 } 85 h2{ 86 /*display: table-footer-group; 87 width: 100%;*/ 88 font-size: 20px; 89 color: #fff; 94 <?php else : ?> 95 padding-top: 20px; 96 <?php endif; ?> 97 vertical-align: middle; 98 text-align: center; 99 width: 100%; 100 font-size: 50px; 101 font-weight: bold; 102 color: #fff; 103 } 104 .ucmm-logo img{ 105 width: <?php echo $ucmm_logo_width; ?>; 106 height: <?php echo $ucmm_logo_height; ?>; 107 } 108 h2{ 109 font-size: 20px; 110 color: #fff; 90 111 margin: 0; 91 font-family: inherit; 92 /*text-transform: uppercase;*/ 93 } 112 font-family: inherit; 113 } 94 114 .footer-love { 95 position: absolute;115 position: absolute; 96 116 color: #fff; 97 right: 0;98 bottom: 0;99 padding-right: 20px;100 padding-bottom: 5px;117 right: 0; 118 bottom: 0; 119 padding-right: 20px; 120 padding-bottom: 5px; 101 121 } 102 122 .footer-love a{ … … 107 127 color: #3BB9FF; 108 128 } 109 </style> 110 <?php 111 if ( $ucmm_logo ) { 112 $_ucmm_logo = '<img src="'.$ucmm_logo.'" alt="">'; 113 } else { 114 $_ucmm_logo = get_bloginfo('name'); 115 } 116 ?>129 130 <?php if ( ! empty( $ucmm_custom_css ) ) : ?> 131 <?php echo $ucmm_custom_css; ?> 132 <?php endif; ?> 133 </style> 134 <?php if ( ! empty( $ucmm_ga_tracking_code ) ) : ?> 135 <?php echo $ucmm_ga_tracking_code; ?> 136 <?php endif; ?> 117 137 </head> 118 138 <body> 119 <!-- <div class="ucmm-container"> --> 139 <div class="ucmm-logo"> 140 <?php echo $_ucmm_logo;?> 141 <h1><?php if ( $ucmm_header ) { 142 echo $ucmm_header; 143 } else { 144 echo __("UNDER CONSTRUCTION", 'ucmm-wpbrigade'); 145 } ?></h1> 146 <h2> <?php if ( $ucmm_footer ) { 147 echo $ucmm_footer; 148 } else { 149 echo __( 'We are working hard to bring you new experience', 'ucmm-wpbrigade' ); 150 } ?> </h2> 120 151 121 122 <div class="ucmm-logo">123 <?php //echo $_ucmm_logo;?>124 <h1><?php if ( $ucmm_header ) {125 echo $ucmm_header;126 } else {127 echo __("UNDER CONSTRUCTION", 'ucmm-wpbrigade');128 } ?></h1>129 <h2> <?php if ( $ucmm_footer ) {130 echo $ucmm_footer;131 } else {132 echo __( 'We are working hard to bring you new experience', 'ucmm-wpbrigade' );133 } ?> </h2>134 135 </div>136 <?php if ( $ucmm_footer_love ) : ?>137 <div class="footer-love">138 Powered by: <a href="https://wordpress.org/plugins/under-construction-maintenance-mode/" target="_blank">WPBrigade</a>139 152 </div> 140 <?php endif; ?> 141 142 <!-- </div> --> 153 <?php if ( $ucmm_footer_love ) : ?> 154 <div class="footer-love"> 155 <?php _e( 'Powered by:', 'ucmm-wpbrigade' ); ?> <a href="https://wordpress.org/plugins/under-construction-maintenance-mode/" target="_blank">WPBrigade</a> 156 </div> 157 <?php endif; ?> 143 158 144 159 </body> -
under-construction-maintenance-mode/trunk/under-construction-maintenance-mode.php
r1618462 r1764507 4 4 * Plugin URI: https://wpbrigade.com/wordpress/plugins/under-construction-maintenance-mode/ 5 5 * Description: This plugin will Display an Under Construction, Maintenance Mode or Coming Soon landing Page that takes 5 seconds to setup, while you're doing maintenance work on your site. 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: WPBrigade 8 8 * Author URI: https://www.WPBrigade.com/ 9 9 * Requires at least: 4.0 10 * Tested up to: 4. 7.310 * Tested up to: 4.9 11 11 * Text Domain: ucmm-wpbrigade 12 12 * Domain Path: /languages … … 28 28 * @var string 29 29 */ 30 public $version = '1.0. 2';30 public $version = '1.0.3'; 31 31 32 32 function __construct() { … … 110 110 if( $_GET['page'] == "under-construction-maintenance-mode" ){ 111 111 112 // wp_redirect( admin_url( "customize.php?autofocus[panel]=ucmm_wpbrigade_panel&url=".home_url()."/ucmm-customize.php?watch=ucmm-customizer" ));113 114 wp_redirect(get_admin_url()."customize.php?url=".home_url()."/ucmm-customize.php?watch=ucmm-customizer");112 wp_redirect( admin_url( ) ."customize.php?autofocus[panel]=ucmm_wpbrigade_panel&url=".home_url()."/ucmm-customize.php?watch=ucmm-customizer" ); 113 114 // wp_redirect(get_admin_url()."customize.php?url=".home_url()."/ucmm-customize.php?watch=ucmm-customizer"); 115 115 } 116 116 }
Note: See TracChangeset
for help on using the changeset viewer.