Plugin Directory

Changeset 1808573


Ignore:
Timestamp:
01/24/2018 01:18:33 PM (8 years ago)
Author:
akshitsethi
Message:

Updates to the plugin.

Location:
maintenance-mode-coming-soon/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • maintenance-mode-coming-soon/trunk/framework/admin/css/admin.css

    r1794511 r1808573  
    441441    color: #909090;
    442442}
     443
    443444/* --- Section: Social --- */
    444445.as-double-group.as-social {
     
    477478    background: #ebf8fe;
    478479}
     480
    479481/* --- Section : Preview --- */
    480482.s-popup {
     
    518520}
    519521
     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
    520595/* --- Alerts & Buttons --- */
    521 .as-alert {
     596.as-notice {
     597    background-color: #fffcee;
    522598    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;
    529600    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 {
    535607    color: #438a85;
    536608    background-color: #f3faf8;
    537609    border-color: #bfd1cf;
    538610}
    539 .as-alert-info {
     611.as-info {
    540612    color: #246a8e;
    541613    background-color: #ebf6fb;
    542614    border-color: #bfd4de;
    543615}
    544 .as-alert-warning {
     616.as-warning {
    545617    background-color: #fcf8e3;
    546618    border-color: #8a6d3b;
    547619    color: #8a6d3b;
    548620}
    549 .as-alert-danger {
     621.as-error {
    550622    color: #e76e70;
    551623    background-color: #fff6f4;
  • maintenance-mode-coming-soon/trunk/framework/admin/init.php

    r1794511 r1808573  
    2727
    2828// Menu for the support and about panel
     29// -------------------------------------------------
     30
    2931function mmcs_add_menu() {
    3032
     
    4749
    4850
    49 // Registering .js and .css files
     51// Styles & Scripts
     52// -------------------------------------------------
     53
    5054function mmcs_admin_scripts() {
    5155
     
    7276
    7377
    74 // Scripts & styles for the plugin
     78// Load
    7579function mmcs_load_scripts() {
    7680
     
    8084
    8185
    82 // Including file for the management panel
     86// Notices
     87// -------------------------------------------------
     88
     89function 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
     101if ( empty( $mmcs_reg_key ) ) {
     102    add_action( 'admin_notices', 'mmcs_reg_notice' );
     103}
     104
     105
     106// Settings
     107// -------------------------------------------------
     108
    83109require_once AS_MMCS_PATH . 'framework/admin/settings.php';
  • maintenance-mode-coming-soon/trunk/framework/admin/js/admin.js

    r1794511 r1808573  
    550550        } );
    551551
     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
    552612    } );
    553613
  • maintenance-mode-coming-soon/trunk/framework/admin/settings.php

    r1794511 r1808573  
    576576}
    577577add_action( 'wp_ajax_mmcs_ajax_preview', 'mmcs_preview' );
     578
     579
     580// AJAX : Registration
     581function 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}
     622add_action( 'wp_ajax_mmcs_ajax_register', 'mmcs_register' );
  • maintenance-mode-coming-soon/trunk/framework/admin/views/settings-about.php

    r1794511 r1808573  
    1313<div class="as-tile" id="about">
    1414    <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>
    1716
    1817        <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
    1934            <div class="as-share">
    2035                <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  
    128128                        <input type="checkbox" class="as-form-ios" name="mmcs_branding" value="1"<?php checked( '1', $options['basic']['branding'] ); ?>>
    129129
    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 small shameless 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>
    131131                    </div>
    132132                </div>
  • maintenance-mode-coming-soon/trunk/framework/admin/views/settings.php

    r1794511 r1808573  
    3030                <li><a href="#preview"><?php esc_html_e( 'Preview', 'maintenance-mode-coming-soon' ); ?></a></li>
    3131                <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>
    3233                <li><a href="#about"><?php esc_html_e( 'About', 'maintenance-mode-coming-soon' ); ?></a></li>
    3334            </ul>
     
    6667                require_once 'settings-preview.php';    // preview
    6768                require_once 'settings-support.php';    // support
     69                require_once 'settings-license.php';    // license
    6870                require_once 'settings-about.php';      // about
    6971
  • maintenance-mode-coming-soon/trunk/maintenance-mode-coming-soon.php

    r1794514 r1808573  
    1111 * Plugin URI:          http://www.akshitsethi.com/wordpress-plugin/maintenance-mode.php
    1212 * 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.0
     13 * Version:             1.1.0
    1414 * Author:              akshitsethi
    1515 * Author URI:          http://www.akshitsethi.com
     
    2121 *
    2222 * Maintenance Mode & Coming Soon Plugin
    23  * Copyright (C) 2017, akshitsethi - [email protected]
     23 * Copyright (C) 2018, akshitsethi - [email protected]
    2424 *
    2525 * This program is free software: you can redistribute it and/or modify
     
    5252define( 'AS_MMCS_URL', plugins_url( '', __FILE__ ) );
    5353define( 'AS_MMCS_PATH', plugin_dir_path( __FILE__ ) );
    54 define( 'AS_MMCS_VERSION', '0.1' );
     54define( 'AS_MMCS_VERSION', '1.1.0' );
    5555
    5656
  • maintenance-mode-coming-soon/trunk/readme.txt

    r1794511 r1808573  
    22Contributors: akshitsethi
    33Donate 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 construction
     4Tags: 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
    55Requires at least: 4.0
    66Tested up to: 4.9.2
    7 Stable tag: 1.0
     7Stable tag: 1.1.0
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010
    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.
     11Maintenance 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.
    1212
    1313
    1414== 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.
     15The **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.
    1616
    1717
     
    2121* Completely customizable look and feel including Background Color, Cover Image, Fonts etc.
    2222* 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.
    2424* Arrange position of the page elements as per preference.
    2525* W3 Total Cache and WP Super Cache Support.
    2626* 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.
    3030* 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.
    3434* Stretch Background Image to Cover the Entire Browser.
    3535* Uses HTML5 & CSS3.
    3636* Translation Ready, i18n Support.
    37 * Powerful Options Panel (75+ options to configure).
     37* Powerful Options Panel (100+ options to configure).
    3838* Get support within the options panel. It's something you going to love.
    3939
    40 **COMING SOON**
     40**Coming Soon**
    4141
    4242I 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.
     
    5454I'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.
    5555
    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)
    5757
    5858
     
    8282== Changelog ==
    8383
     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
    8489= 1.0 =
    8590* Exciting new features added
  • maintenance-mode-coming-soon/trunk/uninstall.php

    r1794511 r1808573  
    2727delete_option( 'mmcs_options_social' );     // social
    2828delete_option( 'mmcs_options_advanced' );   // advanced
     29delete_option( 'as_reg_mmcs' );             // registration
Note: See TracChangeset for help on using the changeset viewer.