Changeset 1808573
- Timestamp:
- 01/24/2018 01:18:33 PM (8 years ago)
- Location:
- maintenance-mode-coming-soon/trunk
- Files:
-
- 10 edited
-
framework/admin/css/admin.css (modified) (3 diffs)
-
framework/admin/init.php (modified) (4 diffs)
-
framework/admin/js/admin.js (modified) (1 diff)
-
framework/admin/settings.php (modified) (1 diff)
-
framework/admin/views/settings-about.php (modified) (1 diff)
-
framework/admin/views/settings-basic.php (modified) (1 diff)
-
framework/admin/views/settings.php (modified) (2 diffs)
-
maintenance-mode-coming-soon.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
maintenance-mode-coming-soon/trunk/framework/admin/css/admin.css
r1794511 r1808573 441 441 color: #909090; 442 442 } 443 443 444 /* --- Section: Social --- */ 444 445 .as-double-group.as-social { … … 477 478 background: #ebf8fe; 478 479 } 480 479 481 /* --- Section : Preview --- */ 480 482 .s-popup { … … 518 520 } 519 521 522 /* --- Section : License --- */ 523 .as-product-register { 524 margin-bottom: 45px; 525 } 526 .as-register-button, 527 .as-product-license { 528 display: block; 529 width: 100%; 530 height: 50px; 531 color: #ffffff; 532 background: #f2385a; 533 font-weight: 600; 534 font-size: 1rem; 535 line-height: 50px; 536 text-decoration: none; 537 text-align: center; 538 border: 0; 539 cursor: pointer; 540 border-radius: 6px; 541 box-shadow: 0px 15px 0px 0px #f02046; 542 transition: all 0.2s; 543 } 544 .as-register-button:hover, 545 .as-product-license:hover { 546 box-shadow: 0px 15px 0px 0px #f02046, 0px 0px 20px 0px #bbbbbb; 547 color: #ffffff; 548 } 549 .as-register-button:active, 550 .as-register-button:focus, 551 .as-product-license:active, 552 .as-product-license:focus { 553 color: #ffffff; 554 box-shadow: 0px 7px 0px 0px #f02046; 555 } 556 .as-product-license { 557 background: #049372; 558 box-shadow: 0px 15px 0px 0px #028264; 559 margin-bottom: 30px; 560 } 561 .as-product-license:hover { 562 box-shadow: 0px 15px 0px 0px #028264, 0px 0px 20px 0px #bbbbbb; 563 } 564 .as-product-license:active, 565 .as-product-license:focus { 566 box-shadow: 0px 7px 0px 0px #028264; 567 } 568 .highlight-key { 569 font-weight: 600; 570 -webkit-hyphens: auto; 571 -moz-hyphens: auto; 572 -ms-hyphens: auto; 573 hyphens: auto; 574 } 575 .highlight-key span { 576 font-weight: 400; 577 } 578 .as-product-benefits { 579 border: 1px solid #f1f1f1; 580 padding: 20px 20px 0; 581 } 582 .as-product-benefits h3 { 583 margin-top: 0; 584 border-bottom: 1px solid #f1f1f1; 585 padding-bottom: 8px; 586 margin-bottom: 30px; 587 } 588 .as-product-benefits .as-title { 589 font-size: 16px; 590 } 591 .as-product-benefits .fa { 592 font-size: 26px; 593 } 594 520 595 /* --- Alerts & Buttons --- */ 521 .as-alert { 596 .as-notice { 597 background-color: #fffcee; 522 598 color: #ce8f22; 523 background-color: #fffcee; 524 background-image: none; 525 box-shadow: none; 526 text-shadow: none; 527 padding: 9px 19px 9px 15px; 528 border-radius: 3px 3px 3px 3px; 599 padding: 6px 15px; 529 600 border: 1px solid #f0dbb4; 530 margin-bottom: 20px; 531 -webkit-transition: all 0.2s linear 0s; 532 transition: all 0.2s linear 0s; 533 } 534 .as-alert-success { 601 margin: 20px 0; 602 font-size: 0.938rem; 603 line-height: 1.769; 604 border-radius: 2px; 605 } 606 .as-success { 535 607 color: #438a85; 536 608 background-color: #f3faf8; 537 609 border-color: #bfd1cf; 538 610 } 539 .as- alert-info {611 .as-info { 540 612 color: #246a8e; 541 613 background-color: #ebf6fb; 542 614 border-color: #bfd4de; 543 615 } 544 .as- alert-warning {616 .as-warning { 545 617 background-color: #fcf8e3; 546 618 border-color: #8a6d3b; 547 619 color: #8a6d3b; 548 620 } 549 .as- alert-danger {621 .as-error { 550 622 color: #e76e70; 551 623 background-color: #fff6f4; -
maintenance-mode-coming-soon/trunk/framework/admin/init.php
r1794511 r1808573 27 27 28 28 // Menu for the support and about panel 29 // ------------------------------------------------- 30 29 31 function mmcs_add_menu() { 30 32 … … 47 49 48 50 49 // Registering .js and .css files 51 // Styles & Scripts 52 // ------------------------------------------------- 53 50 54 function mmcs_admin_scripts() { 51 55 … … 72 76 73 77 74 // Scripts & styles for the plugin78 // Load 75 79 function mmcs_load_scripts() { 76 80 … … 80 84 81 85 82 // Including file for the management panel 86 // Notices 87 // ------------------------------------------------- 88 89 function mmcs_reg_notice() { 90 91 $class = 'notice notice-warning'; 92 $message = '<strong>' . esc_html__( 'Maintenance Mode & Coming Soon', 'maintenance-mode-coming-soon' ) . '</strong> - ' . wp_kses( __( 'Register the plugin to enjoy member exclusive benefits such as priority support, automatic updates, feature requests, discounts and much more. Registration is absolutely free and takes few seconds only. To register, go to the <strong>License</strong> tab in the options panel of the plugin.', 'maintenance-mode-coming-soon' ), array( 'strong' => array() ) ) . '<br/><span style="display: block; margin: 0.5em 0.5em 0 0; clear: both;"><a href="' . admin_url( 'options-general.php?page=maintenance_mode_options' ) . '"><strong>' . esc_html__( 'Register Now', 'maintenance-mode-coming-soon' ) . '</strong></a></span>'; 93 94 printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message ); 95 96 } 97 98 // Registration Key 99 $mmcs_reg_key = get_option( 'as_reg_mmcs' ); 100 101 if ( empty( $mmcs_reg_key ) ) { 102 add_action( 'admin_notices', 'mmcs_reg_notice' ); 103 } 104 105 106 // Settings 107 // ------------------------------------------------- 108 83 109 require_once AS_MMCS_PATH . 'framework/admin/settings.php'; -
maintenance-mode-coming-soon/trunk/framework/admin/js/admin.js
r1794511 r1808573 550 550 } ); 551 551 552 // Registration 553 // ------------------------------------------------- 554 555 $( document ).on( 'submit', '.as-register-form', function( e ) { 556 557 e.preventDefault(); 558 559 // Form : Data 560 var as_data = new FormData( $( this )[0] ); 561 562 // Append : Action 563 as_data.append( 'action', 'mmcs_ajax_register' ); 564 565 // AJAX 566 $.ajax( { 567 type: 'POST', 568 url: ajaxurl, 569 data: as_data, 570 processData: false, 571 contentType: false, 572 beforeSend: function() { 573 $( '.as-product-register' ).block( { 574 message: '<center><div class="as-strong" style="background: #ecf0f1; padding: 6px; color: #000;">Processing..</div></center>', 575 css: { 576 border: 'none', 577 backgroundColor: 'none' 578 }, 579 overlayCSS: { 580 backgroundColor: '#eee', 581 opacity: '0.5', 582 cursor: 'wait' 583 } 584 } ); 585 } 586 } ).done( function( data ) { 587 // Unblock 588 $( '.as-product-register' ).unblock(); 589 590 if( data.type == 'success' ) { 591 // Notification 592 toastr.success( '<strong>Hey!</strong> ' + data.message ); 593 594 // HTML 595 $( '#as-ajax-response' ).html( '<div class="as-notice as-success"><strong>Hey!</strong> ' + data.message + '</div>' ); 596 597 // Reload 598 setTimeout( function() { 599 window.location.reload(false); 600 }, 5000 ); 601 } else { 602 // Notification 603 toastr.error( '<strong>Oops!</strong> ' + data.message ); 604 605 // HTML 606 $( '#as-ajax-response' ).html( '<div class="as-notice as-error"><strong>Oops!</strong> ' + data.message + '</div>' ); 607 } 608 } ); 609 610 } ); 611 552 612 } ); 553 613 -
maintenance-mode-coming-soon/trunk/framework/admin/settings.php
r1794511 r1808573 576 576 } 577 577 add_action( 'wp_ajax_mmcs_ajax_preview', 'mmcs_preview' ); 578 579 580 // AJAX : Registration 581 function mmcs_register() { 582 583 // Process 584 // ------------------------------------------------- 585 // We are going to store the response in the $response() array 586 587 $response = array( 588 'type' => 'error', 589 'message' => esc_html__( 'This seems like an invalid request for registration. Please try again after some time.', 'maintenance-mode-coming-soon' ) 590 ); 591 592 // Filtering and sanitizing the support issue 593 if ( ! empty( $_POST['as_email'] ) && ! empty( $_POST['as_website'] ) && ! empty( $_POST['as_product'] ) ) { 594 $input['email'] = esc_html( $_POST['as_email'] ); 595 $input['website'] = esc_html( $_POST['as_website'] ); 596 $input['product'] = esc_html( $_POST['as_product'] ); 597 598 if ( ! empty( $input['email'] ) && ! empty( $input['website'] ) && ! empty( $input['product'] ) ) { 599 $remote = wp_remote_get( 'http://www.akshitsethi.com/api/license.php?r=register_product&email=' . $input['email'] . '&website=' . $input['website'] . '&product=' . $input['product'] ); 600 601 if ( ! is_wp_error( $remote ) ) { 602 $response = json_decode( $remote['body'], TRUE ); 603 604 if ( 'success' == $response['type'] && ( '200' == $response['code'] || '400' == $response['code'] ) ) { 605 $key = esc_html( $response['key'] ); 606 607 // Update Database 608 update_option( 'as_reg_mmcs', $key ); 609 } 610 } 611 } 612 } 613 614 // Sending proper headers and sending the response back in the JSON format 615 header( "Content-Type: application/json" ); 616 echo json_encode( $response ); 617 618 // Exiting the AJAX function. This is always required 619 exit(); 620 621 } 622 add_action( 'wp_ajax_mmcs_ajax_register', 'mmcs_register' ); -
maintenance-mode-coming-soon/trunk/framework/admin/views/settings-about.php
r1794511 r1808573 13 13 <div class="as-tile" id="about"> 14 14 <div class="as-tile-body"> 15 <img src="<?php echo AS_MMCS_URL; ?>/framework/admin/img/logo.png" alt="Akshit Sethi" class="as-profile-logo" /> 16 <p><?php esc_html_e( 'Hola! I\'m Akshit Sethi, Designer + Developer by profession & Entrepreneur by passion. In love with WWW and Spanish. Travel is life. When I am not coding, I am reading anything worth reading. I create premium WordPress themes & plugins.', 'maintenance-mode-coming-soon' ); ?></p> 15 <div class="as-tile-title"><?php esc_html_e( 'ABOUT', 'maintenance-mode-coming-soon' ); ?></div> 17 16 18 17 <div class="as-section-content"> 18 <div itemscope itemtype='http://schema.org/Person' class='fiverr-seller-widget' style='display: inline-block;'> 19 <a itemprop='url' href=https://www.fiverr.com/aksethi rel="nofollow" target="_blank" style='display: inline-block;'> 20 <div class='fiverr-seller-content' id='fiverr-seller-widget-content-334801bb-ec71-428f-b0ca-1aa6969fb310' itemprop='contentURL' style='display: none;'></div> 21 <div id='fiverr-widget-seller-data' style='display: none;'> 22 <div itemprop='name' >aksethi</div> 23 <div itemscope itemtype='http://schema.org/Organization'><span itemprop='name'>Fiverr</span></div> 24 <div itemprop='jobtitle'>Seller</div> 25 <div itemprop='description'>I am a WordPress / Full-Stack Developer having 8+ years of experience creating Websites, Themes, Plugins, and Mobile Apps.</div> 26 </div> 27 </a> 28 </div> 29 30 <script id='fiverr-seller-widget-script-334801bb-ec71-428f-b0ca-1aa6969fb310' src='https://widgets.fiverr.com/api/v1/seller/aksethi?widget_id=334801bb-ec71-428f-b0ca-1aa6969fb310' data-config='{"category_name":"\n Programming \u0026 Tech\n\n "}' async='true' defer='true'></script> 31 32 <p><?php esc_html_e( 'Hola! I\'m Akshit Sethi, Designer + Developer by profession & Entrepreneur by passion. In love with WWW and Spanish. Travel is life. When I am not coding, I am reading anything worth reading. I create premium WordPress themes & plugins.', 'maintenance-mode-coming-soon' ); ?></p> 33 19 34 <div class="as-share"> 20 35 <p><?php esc_html_e( 'Show me some love and connect with me via social channels.', 'maintenance-mode-coming-soon' ); ?></p> -
maintenance-mode-coming-soon/trunk/framework/admin/views/settings-basic.php
r1794511 r1808573 128 128 <input type="checkbox" class="as-form-ios" name="mmcs_branding" value="1"<?php checked( '1', $options['basic']['branding'] ); ?>> 129 129 130 <p class="as-form-help-block"><?php esc_html_e( 'Shower us some love and enable this option so that we can do a smallshameless self promotion.', 'maintenance-mode-coming-soon' ); ?></p>130 <p class="as-form-help-block"><?php esc_html_e( 'Shower me some love and enable this option so that I can do a tiny bit of shameless self promotion.', 'maintenance-mode-coming-soon' ); ?></p> 131 131 </div> 132 132 </div> -
maintenance-mode-coming-soon/trunk/framework/admin/views/settings.php
r1794511 r1808573 30 30 <li><a href="#preview"><?php esc_html_e( 'Preview', 'maintenance-mode-coming-soon' ); ?></a></li> 31 31 <li><a href="#support"><?php esc_html_e( 'Support', 'maintenance-mode-coming-soon' ); ?></a></li> 32 <li><a href="#license"><?php esc_html_e( 'License', 'maintenance-mode-coming-soon' ); ?></a></li> 32 33 <li><a href="#about"><?php esc_html_e( 'About', 'maintenance-mode-coming-soon' ); ?></a></li> 33 34 </ul> … … 66 67 require_once 'settings-preview.php'; // preview 67 68 require_once 'settings-support.php'; // support 69 require_once 'settings-license.php'; // license 68 70 require_once 'settings-about.php'; // about 69 71 -
maintenance-mode-coming-soon/trunk/maintenance-mode-coming-soon.php
r1794514 r1808573 11 11 * Plugin URI: http://www.akshitsethi.com/wordpress-plugin/maintenance-mode.php 12 12 * Description: The Maintenance Mode & Coming Soon plugin allows you to quickly and easily set up a Maintenance Page or Coming Soon / Launch Page for your website. 13 * Version: 1. 013 * Version: 1.1.0 14 14 * Author: akshitsethi 15 15 * Author URI: http://www.akshitsethi.com … … 21 21 * 22 22 * Maintenance Mode & Coming Soon Plugin 23 * Copyright (C) 201 7, akshitsethi - [email protected]23 * Copyright (C) 2018, akshitsethi - [email protected] 24 24 * 25 25 * This program is free software: you can redistribute it and/or modify … … 52 52 define( 'AS_MMCS_URL', plugins_url( '', __FILE__ ) ); 53 53 define( 'AS_MMCS_PATH', plugin_dir_path( __FILE__ ) ); 54 define( 'AS_MMCS_VERSION', ' 0.1' );54 define( 'AS_MMCS_VERSION', '1.1.0' ); 55 55 56 56 -
maintenance-mode-coming-soon/trunk/readme.txt
r1794511 r1808573 2 2 Contributors: akshitsethi 3 3 Donate link: http://www.akshitsethi.com/ 4 Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction4 Tags: maintenance mode, coming soon, landing page, launch page, under construction, maintenance mode page, coming soon page, wp maintenance, wordpress coming soon, wordpress maintenance mode, wordpress under construction, wp maintenance mode, wp coming soon, wp launch page, wp under contruction, free wordpress maintenance mode plugin, free coming soon plugin, free launch page plugin, maintenance mode with mailchimp 5 5 Requires at least: 4.0 6 6 Tested up to: 4.9.2 7 Stable tag: 1. 07 Stable tag: 1.1.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 10 11 Yet another Maintenance Mode & Coming Soon plugin for WordPress? Definitely NOT. You need to try this and I bet this will become your only choice for setting up an Maintenance or Launch page for your website. 11 Maintenance Mode + Coming Soon + Landing Page plugin for WordPress with support for MailChimp to collect emails. It is so powerful that it can be used for different needs. Plus, it is absolutely 100% free without any paid version and it will remain free forever. 12 12 13 13 14 14 == Description == 15 The Maintenance Mode & Coming Soon plugin allows you to quickly and easily set up a Coming Soon or Launch Page for your website. It's Simple + flexible and works with any WordPress theme you have installed on your site. And let's you have full control over the frontend of the website. It allows you to configure every element as per your preference.15 The **Maintenance Mode & Coming Soon** plugin allows you to quickly and easily set up a Maintenance Mode or Coming Soon or Launch Page for your website. It's simple + flexible and works with any WordPress theme you have installed on your website. It let's you have full control over the frontend of the maintenance page. You can configure every element of the plugin as per your preference. Not to forget, you can also setup MailChimp email form to collect email addresses from visitors and also link to your social media profiles. 16 16 17 17 … … 21 21 * Completely customizable look and feel including Background Color, Cover Image, Fonts etc. 22 22 * Each and every element of the maintenance page can be configured. 23 * Option to preview the maintenance page for changes made before activating it. 23 * Option to preview the maintenance page for changes made before activating it. You can also preview every change almost instantly without leaving the options panel of the plugin. 24 24 * Arrange position of the page elements as per preference. 25 25 * W3 Total Cache and WP Super Cache Support. 26 26 * Easily add Custom CSS and HTML. 27 * Collect Emails with MailChimp. 28 * You can let search engines to view website normally while visitors see the "Maintenance " or "Coming Soon" page.29 * Visible to only non logged in users so you can build your site while visitors see the "Coming Soon"page. Configurable via the options panel.27 * Collect Emails with MailChimp. You can also select between traditional form or advanced AJAX form to collect emails from visitors. 28 * You can let search engines to view website normally while visitors see the "Maintenance Page" or "Coming Soon Page". 29 * Visible to only non-logged in users so you can build your site while visitors see the maintenance page. Configurable via the options panel. 30 30 * Supports Custom Login URL. 31 * Track visitors with support for Analytics.32 * Integrated with Google Fonts. 33 * Showcase Social Links using Icons with drag-n-drop support to arrange the order.31 * Track visitors with support for Google Analytics. 32 * Integrated with Google Fonts. Use any Google Font for different sections of the maintenance mode. 33 * Showcase your Social Links using Icons with drag-n-drop support to arrange the order. 34 34 * Stretch Background Image to Cover the Entire Browser. 35 35 * Uses HTML5 & CSS3. 36 36 * Translation Ready, i18n Support. 37 * Powerful Options Panel ( 75+ options to configure).37 * Powerful Options Panel (100+ options to configure). 38 38 * Get support within the options panel. It's something you going to love. 39 39 40 **C OMING SOON**40 **Coming Soon** 41 41 42 42 I pledge to keep improving this plugin with continous bug fixes, new features, and fill it with more awesomeness. For the next update of the plugin, I have already started working on the following features. … … 54 54 I'm **Akshit Sethi**, Designer + Developer by profession & Entrepreneur by passion. In love with WWW and Spanish. I create premium WordPress themes & plugins. Building some crazy stuff these days. 55 55 56 [Website](http://www.akshitsethi.com) | [ Themes](http://www.akshitsethi.com/themes.php) | [Plugins](http://www.akshitsethi.com/plugins.php)56 [Website](http://www.akshitsethi.com) | [WordPress Themes](http://www.akshitsethi.com/themes.php) | [WordPress Plugins](http://www.akshitsethi.com/plugins.php) 57 57 58 58 … … 82 82 == Changelog == 83 83 84 = 1.1.0 = 85 * Bug fixes and performance improvements 86 * Plugin registration has been added with many benefits attached 87 * Design issues have been fixed 88 84 89 = 1.0 = 85 90 * Exciting new features added -
maintenance-mode-coming-soon/trunk/uninstall.php
r1794511 r1808573 27 27 delete_option( 'mmcs_options_social' ); // social 28 28 delete_option( 'mmcs_options_advanced' ); // advanced 29 delete_option( 'as_reg_mmcs' ); // registration
Note: See TracChangeset
for help on using the changeset viewer.