Plugin Directory

Changeset 2643772


Ignore:
Timestamp:
12/14/2021 09:38:21 AM (4 years ago)
Author:
catchsquare
Message:

2.0.2

Location:
cs-popup-maker
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • cs-popup-maker/trunk/cs-popup-maker.php

    r2638144 r2643772  
    1717 * Plugin URI:        #
    1818 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
    19  * Version:           2.0.1
     19 * Version:           2.0.2
    2020 * Author:            catchsquare
    2121 * Contributors:      catchsquare,csarmy,ashokmhrj,abindrard
  • cs-popup-maker/trunk/public/class-cs-popup-maker-public.php

    r2638138 r2643772  
    7373         * class.
    7474         */
     75         
     76         
    7577        $min = '';
    7678        if( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) {
    7779            $min = '.min';
    7880        }
    79 
    80         wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/cs-popup-maker-public' . $min . '.css', array(), $this->version, 'all' );
     81        $cspopup = get_option( 'cs-popup' );
     82        if( isset($cspopup['cs_popup_status']) && 1 == $cspopup['cs_popup_status'] ) {
     83       
     84            wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/cs-popup-maker-public' . $min . '.css', array(), $this->version, 'all' );
     85        }
    8186
    8287    }
     
    104109            $min = '.min';
    105110        }
    106 
    107         wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/cs-popup-maker-public' . $min . '.js', array( 'jquery','underscore' ), $this->version, false );
    108         # Localize the script with new data               
    109         wp_localize_script( $this->plugin_name, 'cs_obj',  $this->localized_script() );
     111        $cspopup = get_option( 'cs-popup' );
     112        if( isset($cspopup['cs_popup_status']) && 1 == $cspopup['cs_popup_status'] ) {
     113            wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/cs-popup-maker-public' . $min . '.js', array( 'jquery','underscore' ), $this->version, false );
     114            # Localize the script with new data               
     115            wp_localize_script( $this->plugin_name, 'cs_obj',  $this->localized_script() );
     116        }
    110117
    111118    }
  • cs-popup-maker/trunk/public/css/cs-popup-maker-public.css

    r2638138 r2643772  
    44 */
    55
    6 
    7 *{margin:0; padding: 0;}
    8 body{text-align: center; color: #fff; font-family: 'open sans';}
    9 img{ outline: none; border: none; max-width: 100%; height: auto}
     6.cs-popup-container img{ outline: none; border: none; max-width: 100%; height: auto}
    107
    118.transition{-webkit-transition: all 0.5s ease;
  • cs-popup-maker/trunk/public/css/cs-popup-maker-public.min.css

    r2638138 r2643772  
    1 *{margin:0;padding:0}body{text-align:center;color:#fff;font-family:'open sans'}img{outline:0;border:none;max-width:100%;height:auto}.transition{-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.cs-overlay{background:rgba(0,0,0,.5);position:fixed;width:100%;height:100%;z-index:98}.cs-popup-container{position:relative;z-index:9999}.cs-popup-wrap{width:auto;max-width:90%;border-radius:5px;border:10px solid #fff;position:fixed;top:50%;left:50%;-ms-transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);box-shadow:0 0 10px 3px rgba(0,0,0,.12)}.cs-popup-wrap img{float:left}.cs-popup-wrap .close-button{position:absolute;top:20px;right:20px;width:35px;height:35px;padding:1px;background:#fff;border-radius:50%;cursor:pointer;opacity:.1;-webkit-transition:all ease .5s;-moz-transition:all ease .5s;transition:all ease .5s}.cs-popup-wrap:hover .close-button{opacity:1}@media screen and (max-width:768px){.cs-popup-wrap .close-button{width:25px;height:25px;right:10px;top:10px;padding:0}}@media screen and (max-width:550px){.cs-popup-wrap{width:80%;text-align:center;background:#fff}.cs-popup-wrap img{float:none}}
     1.cs-popup-container img{outline:0;border:none;max-width:100%;height:auto}.transition{-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.cs-overlay{background:rgba(0,0,0,.5);position:fixed;width:100%;height:100%;z-index:98}.cs-popup-container{position:relative;z-index:9999}.cs-popup-wrap{width:auto;max-width:90%;border-radius:5px;border:10px solid #fff;position:fixed;top:50%;left:50%;-ms-transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);box-shadow:0 0 10px 3px rgba(0,0,0,.12)}.cs-popup-wrap img{float:left}.cs-popup-wrap .close-button{position:absolute;top:20px;right:20px;width:35px;height:35px;padding:1px;background:#fff;border-radius:50%;cursor:pointer;opacity:.1;-webkit-transition:all ease .5s;-moz-transition:all ease .5s;transition:all ease .5s}.cs-popup-wrap:hover .close-button{opacity:1}@media screen and (max-width:768px){.cs-popup-wrap .close-button{width:25px;height:25px;right:10px;top:10px;padding:0}}@media screen and (max-width:550px){.cs-popup-wrap{width:80%;text-align:center;background:#fff}.cs-popup-wrap img{float:none}}
  • cs-popup-maker/trunk/readme.txt

    r2638144 r2643772  
    44Requires at least: 4.5
    55Tested up to: 5.8
    6 Stable tag: 2.0.1
     6Stable tag: 2.0.2
    77Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=contact%40catchsquare%2ecom&lc=US&item_name=Catchsquare%20Popup&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest
    88License: GPLv2 or later
     
    1515CS Popup Maker is a simple Wordpress plugin to show a popup image in homepage, single page or multiple pages. It is an easy-to-use plugin which is controlled from backend and displays as image pop-up in homepage / single page or multiple pages which is helpful to give your visitors information about your business.
    1616
    17 CS Popup Maker is a simple WordPress plugin to show a popups in homepage, single page or multiple pages. Currently, the plugins supports image popup but will be updated with new features in near future. Stayed tuned....
     17Currently, the plugins supports image popup but will be updated with new features in near future. Stayed tuned....
    1818
    1919You will find following options with plugins:
     
    4040
    4141== Credits ==
    42 * Underscores (_s) starter theme http://underscores.me [GPL](http://www.gnu.org/licenses/gpl.html)
    4342* Semantic ui https://semantic-ui.com [MIT](http://opensource.org/licenses/MIT)
    4443
     
    4948= 2.0 =
    5049Initial version
     50= 2.0.2 =
     51Change CSS
Note: See TracChangeset for help on using the changeset viewer.