Plugin Directory

Changeset 2531006


Ignore:
Timestamp:
05/13/2021 07:22:17 AM (5 years ago)
Author:
ampenhancer
Message:

updated to version 1.0.42

Location:
amp-enhancer
Files:
160 added
5 edited

Legend:

Unmodified
Added
Removed
  • amp-enhancer/trunk/admin/amp-enhancer-popup/amp-enhancer-popup-admin.php

    r2442041 r2531006  
    7272          .slider.round {border-radius: 34px;}
    7373         .slider.round:before {border-radius: 50%;}
     74         .popup-switch .duration_input, body .popup-switch input[type="text"]{width: 46%;}
    7475     </style>
    7576      <table class="option-table-class">
     
    194195    $popup_cookie_duration = get_post_meta($post->ID, 'en_cookie_time', true);
    195196    $popup_cookie_type  = get_post_meta($post->ID, 'en_popup_cookie_type', true);
    196     $popup_with_cookie     = get_post_meta($post->ID, 'en_popup_set_time', true); ?>
     197    $popup_with_cookie     = get_post_meta($post->ID, 'en_popup_set_time', true);
     198    $popup_duration_type     = get_post_meta($post->ID, 'en_popup_duration_type', true);
     199     ?>
    197200    <script>
    198201      jQuery(document).ready(function($){
     
    255258            <tr id="en_popup_with_cookie_txtwpr" <?php if((!isset($popup_with_cookie) || $popup_with_cookie !=1) || $popup_cookie_type == 'popup_without_cookie'){echo 'style="display:none"'; }?> >
    256259            <td>
    257               <label for="en_set_cookie_time_text"><?php echo esc_html__( 'Set the Time Interval in Hours, only in numerics ( eg: 12 )', 'amp-enhancer' ); ?></label> 
    258             </td>
    259             <td>
    260               <input type="text" id="en_set_cookie_time_text" name="en_cookie_time" value="<?php if( isset($popup_cookie_duration) ){echo esc_attr($popup_cookie_duration); } else{ echo '12'; } ?>">
     260              <label for="en_set_cookie_time_text"><?php echo esc_html__( 'Set Time Interval in Hours or Minutes, only in numerics ( eg: 12 )', 'amp-enhancer' ); ?></label> 
     261            </td>
     262            <td>
     263              <input type="text" id="en_set_cookie_time_text" class="duration_input" name="en_cookie_time" value="<?php if( isset($popup_cookie_duration) ){echo esc_attr($popup_cookie_duration); } else{ echo '12'; } ?>">
     264
     265              <select id="en_popup_time_type" class="duration_input" name="en_popup_duration_type">
     266                  <?php
     267                    $time_array = array(
     268                       'en_popup_hour' => 'Hour',
     269                       'en_popup_minute' => 'Minute',
     270                   );
     271                    foreach ($time_array as $key => $value) {
     272                      $sel = '';
     273                      if($popup_duration_type==$key){
     274                        $sel = 'selected';
     275                      }
     276                      echo "<option value='".esc_attr($key)."' ".esc_attr($sel).">".esc_html__($value, 'amp-enhancer' )."</option>";
     277                    }
     278                  ?>
     279                </select>
     280
    261281            </td>
    262282        </tr>
     
    283303    $post_popup_with_cookie =  sanitize_text_field($_POST['en_popup_set_time']);
    284304    $popup_duration =  sanitize_text_field($_POST['en_cookie_time']);
     305    $popup_duration_type =  sanitize_text_field($_POST['en_popup_duration_type']);
    285306
    286307    update_post_meta(
     
    314335      $popup_duration
    315336    );
     337    update_post_meta(
     338      $post_id,
     339      'en_popup_duration_type',
     340      $popup_duration_type
     341    );
    316342
    317343
  • amp-enhancer/trunk/amp-enhancer.php

    r2524569 r2531006  
    44Description: AMP Enhancer is a Compatibility Layer for Official AMP Plugin ( Its Plug & Play, Requires No Settings )
    55Author: ampenhancer
    6 Version: 1.0.41
     6Version: 1.0.42
    77Author URI: http://ampenhancer.com
    88License: GPLv2 or later
     
    1313if ( ! defined( 'ABSPATH' ) ) exit;
    1414
    15 define('AMP_ENHANCER_VERSION','1.0.41');
     15define('AMP_ENHANCER_VERSION','1.0.42');
    1616define('AMP_ENHANCER_PLUGIN_URI', plugin_dir_url(__FILE__));
    1717define('AMP_ENHANCER_PLUGIN_DIR', plugin_dir_path(__FILE__));
     
    2222define('AMP_ENHANCER_PAGEBUILDER_URI', plugin_dir_url(__FILE__).'pagebuilders/');
    2323
    24 
     24require_once(AMP_ENHANCER_PLUGIN_DIR.'admin/admin-notices.php'); 
    2525require_once(AMP_ENHANCER_PLUGIN_DIR.'includes/functions.php');
    2626
     
    132132
    133133}
     134
     135register_activation_hook( __FILE__ , 'amp_enhancer_activating_functionalities' );
     136
     137function amp_enhancer_activating_functionalities(){
     138   
     139    // Add plugin installation date and variable for request review
     140         add_option( 'amp_enhancer_install_date', date( 'Y-m-d h:i:s' ) );
     141         add_option( 'amp_enhancer_review_rating', 'no' );
     142 
     143}
  • amp-enhancer/trunk/includes/features/popup/popup-frontend.php

    r2516662 r2531006  
    9696                    'en_popup_set_time' => get_post_meta( $post_id, 'en_popup_set_time', true),
    9797                    'en_cookie_duration' => get_post_meta( $post_id, 'en_cookie_time', true),
     98                    'en_popup_duration_type' => get_post_meta( $post_id, 'en_popup_duration_type', true),
    9899                    'post_id'   => $post_id,
    99100
  • amp-enhancer/trunk/includes/functions.php

    r2514071 r2531006  
    306306
    307307function amp_enhancer_admin_notice() {
    308     global $pagenow;
     308    global $pagenow,$current_screen;;
    309309    $user_id = get_current_user_id();
    310310    if ( (isset($pagenow) && $pagenow == 'plugins.php') && !get_user_meta( $user_id, 'amp_enhancer_dismiss_notice' ) ){
     
    315315                </div>';
    316316        }
     317
     318    if ( (isset($pagenow) && $pagenow == 'plugins.php') || isset($current_screen->id) && (strpos($current_screen->id, 'amp-enhacer-settings') > -1 || strpos($current_screen->id, 'ampenhancerpopup') > -1 || strpos($current_screen->id, 'amp-enhancer-custom-css') > -1  )){
     319      amp_enhancer_request_review();
     320    }
     321
     322
    317323}
    318324
     
    504510  $postId = $_POST['dismiss_id'];
    505511  $timeInHour = get_post_meta($postId, 'en_cookie_time', true);
    506   $expire_time = time() + intval($timeInHour)*3600;
     512  $duration_type = get_post_meta($postId, 'en_popup_duration_type', true);
     513  if($duration_type == 'en_popup_minute'){
     514    $expire_time = time() + intval($timeInHour[0])*60;
     515  }else{
     516    $expire_time = time() + intval($timeInHour[0])*3600;
     517  }
    507518    setcookie('ampenhancer_popup','true', esc_attr( $expire_time) , "/");
    508519    $current_url = $site_url = $site_host = $amp_site = '';
  • amp-enhancer/trunk/readme.txt

    r2524578 r2531006  
    1 === AMP Enhancer ===
     1=== AMP Enhancer - Compatibility Layer for Official AMP Plugin ===
    22Contributors: ampenhancer
    3 Tags: AMP,amp project, google amp,official amp
     3Tags: AMP,google amp,WooCommerce,Elementor,official amp
    44Donate link: https://www.paypal.me/Kaludi/25
    55Requires at least: 3.0
    6 Tested up to: 5.7.1
    7 Stable tag: 1.0.41
     6Tested up to: 5.7.2
     7Stable tag: 1.0.42
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
     11AMP Enhancer is a Compatibility Layer for Official AMP Plugin such as WooCommerce, Elementor, Contact form7, Divi, GDPR Plugins, TOC Plugins and many more.
     12
    1113== Description ==
    12 AMP Enhancer is a Compatibility Layer for Official AMP Plugin.
     14AMP Enhancer is a Compatibility Layer for Official AMP Plugin, So far we have the Compatibility with 34 Plugins & we are adding more plugins with every update.
    1315
    1416[Home](https://ampenhancer.com/) | [Documentation](https://ampenhancer.com/docs/) | [Help](https://ampenhancer.com/contact-us/)
    1517
    16 **Features** [More info](https://ampenhancer.com/docs/article-categories/features/)
    17 
    18 [**Popups**](https://ampenhancer.com/docs/article-categories/popup/)
     18**Features**
     19
     20[**Popups**](https://ampenhancer.com/docs/article/how-to-add-popup-feature-in-amp-pages/)
    1921
    2022 * Multiple Popups functionality in AMP Pages.
     
    2325 * Outputs AMP Compatible Code and Shortcodes of other plugins too.
    2426
    25 [**Custom CSS**](https://ampenhancer.com/docs/article-categories/custom-css/)
     27[**Custom CSS**](https://ampenhancer.com/docs/article/how-to-add-custom-css-in-amp-pages/)
    2628
    2729* Added CSS Editor to add Custom CSS to your AMP Post/Pages. 
     
    3032Third Party Plugins Supported Features are listed below-
    3133
    32 [**WooCommerce**](https://github.com/ahmedkaludi/amp-enhancer)
     34[**WooCommerce**](https://ampenhancer.com/docs/article/how-to-add-up-woocommerce-support/)
    3335
    3436  * Add to Cart Response.
     
    4042  * Shop and Archives Page Orderby Sorting.
    4143
    42 [**Elementor**](https://ampenhancer.com/docs/article-categories/elementor/)
     44[**Elementor**](https://ampenhancer.com/docs/article/how-to-add-on-elementor-pagebuilder-support/)
    4345
    4446  * Added All Modules Support.
    4547
    46 [**Contact Form 7**](https://ampenhancer.com/docs/article-categories/contact-form-7/)
     48[**Contact Form 7**](https://ampenhancer.com/docs/article/how-to-enable-contact-form-7-support/)
    4749
    4850  * Submit Response
     
    5052  * reCAPTCHA(v3) Module support.
    5153
    52 [**GDPR Cookie Consent**](https://ampenhancer.com/docs/article-categories/gdpr-cookie-consent/)
     54[**GDPR Cookie Consent**](https://ampenhancer.com/docs/article/how-to-enable-gdpr-cookie-consent-ccpa-ready-plugin-support/)
    5355
    5456  * Added Support of All the 3 Cookies
     
    5759  * cookielawinfo-checkbox-necessary/cookielawinfo-checkbox-non-necessary
    5860
    59 [**Divi**](https://ampenhancer.com/docs/article-categories/divi-theme/)
     61[**Divi**](https://ampenhancer.com/docs/article/how-to-enable-divi-theme-support/)
    6062
    6163  * Added Accordion Support.
    6264  * Added Toggle Support.
    6365
    64 [**Cookie Notice**](https://ampenhancer.com/docs/article-categories/cookie-notice/)
     66[**Cookie Notice**](https://ampenhancer.com/docs/article/how-to-enable-cookie-notice-for-gdpr-ccpa-plugin-support/)
    6567
    6668  * Customizable message & Link to Privacy Policy page .
     
    6870  * Full design Compatibility.
    6971
    70 [**GDPR Cookie Compliance (CCPA, PIPEDA ready)**](https://ampenhancer.com/docs/article-categories/gdpr-cookie-compliance-ccpa-pipeda-ready/)
     72[**GDPR Cookie Compliance (CCPA, PIPEDA ready)**](https://ampenhancer.com/docs/article/how-to-add-gdpr-cookie-compliance-ccpa-pipeda-ready-plugin-support/)
    7173
    7274  * Includes both ‘Accept’ and ‘Reject’ buttons Support.
     
    7577  * Full design Compatibility.
    7678
    77 [**WordPress Zero Spam**](https://ampenhancer.com/docs/article-categories/wordpress-zero-spam/)
     79[**WordPress Zero Spam**](https://ampenhancer.com/docs/article/how-to-add-up-wordpress-zero-spam-plugin-support/)
    7880
    7981  * Added Contact Form 7 Plugin Compatibility.
     
    8183  * Included Formidable Form Builder Plugin Support with WordPress Zero Spam plugin in AMP Pages.
    8284
    83 [**Table of Contents Plus**](https://ampenhancer.com/docs/article-categories/table-of-contents-plus/)
     85[**Table of Contents Plus**](https://ampenhancer.com/docs/article/how-to-enable-table-of-contents-plus-support/)
    8486
    8587  * Added Toggle functionality.
     
    8789  * Also Connected  with the option of Hide the table of contents initially.
    8890
    89 [**Easy Table of Contents**](https://ampenhancer.com/docs/article-categories/easy-table-of-contents/)
     91[**Easy Table of Contents**](https://ampenhancer.com/docs/article/how-to-enable-easy-table-of-contents-support/)
    9092
    9193  * Added Toggle functionality.
    9294  * Connected with the Initial View option of Table of Content Settings Panel.
    9395
    94 [**LuckyWP Table of Contents**](https://ampenhancer.com/docs/article-categories/luckywp-table-of-contents/)
     96[**LuckyWP Table of Contents**](https://ampenhancer.com/docs/article/how-to-enable-luckywp-table-of-contents-support/)
    9597
    9698  * Added Toggle functionality.
     
    98100  * Also Connected  with the option of bydefault items of contents will be hidden.
    99101
    100 [**Shortcodes Ultimate**](https://ampenhancer.com/docs/article-categories/shortcodes-ultimate/)
     102[**Shortcodes Ultimate**](https://ampenhancer.com/docs/article/how-to-enable-shortcodes-ultimate-support/)
    101103
    102104  * Added Spoiler Shortcode Support.
    103105  * Added Accordion Shortcode Functionality.
    104106
    105 [**WPForms**](https://ampenhancer.com/docs/article-categories/wp-forms/)
     107[**WPForms**](https://ampenhancer.com/docs/article/how-to-enable-wpforms-plugin-support/)
    106108
    107109  * Renders Form HTML in AMP.
    108110  * Form Submission and form validation.
    109111
    110 [**Ninja Forms**](https://ampenhancer.com/docs/article-categories/ninja-forms/)
     112[**Ninja Forms**](https://ampenhancer.com/docs/article/how-to-enable-ninja-forms-support/)
    111113
    112114  * Renders Form HTML in AMP.
    113115  * Form Submission and form validation.
    114116
    115 [**kk Star Ratings**](https://ampenhancer.com/docs/article-categories/kk-star-rating/)
     117[**kk Star Ratings**](https://ampenhancer.com/docs/article/how-to-enable-kk-star-ratings-support/)
    116118
    117119  * Added Rating feature in AMP
     
    119121  * Connected with Unique votes (based on IP Address) option of KK Star settings.
    120122
    121 [**Content Views – Post Grid & Filter for WordPress**](https://ampenhancer.com/docs/article-categories/content-views/)
     123[**Content Views – Post Grid & Filter for WordPress**](https://ampenhancer.com/docs/article/how-to-enable-content-views-support/)
    122124
    123125  * Added Collapsible List Layout Support.
    124126  * Added Support of Scrollable List Layout.
    125127
    126 [**Page Builder Gutenberg Blocks – CoBlocks**](https://ampenhancer.com/docs/article-categories/coblocks/)
     128[**Page Builder Gutenberg Blocks – CoBlocks**](https://ampenhancer.com/docs/article/how-to-enable-page-builder-gutenberg-blocks-coblocks-support/)
    127129
    128130  * Form Module Proper Submit Response.
    129131  * Form Validation.
    130132
    131 [**Astra Pro**](https://ampenhancer.com/docs/article-categories/astra-pro/)
     133[**Astra Pro**](https://ampenhancer.com/docs/article/how-to-enable-astra-pro-support/)
    132134
    133135  * Added Sticky Header Module Support and also connected with the options stick primary header & sticky header on devices
     
    136138  * Off-Canvas Mobile Menu Module Full Support.
    137139
    138 [**Join.chat**](https://ampenhancer.com/docs/article-categories/join-chat/)
     140[**Join.chat**](https://ampenhancer.com/docs/article/how-to-enable-join-chat-support/)
    139141
    140142  * Rendering whatsapp floating button in AMP.
    141143  * Dynamic variables support.
    142144
    143 [**WP Social Chat**](https://ampenhancer.com/docs/article-categories/wp-social-chat/)
     145[**WP Social Chat**](https://ampenhancer.com/docs/article/how-to-add-wp-social-chat-support/)
    144146
    145147  * Rendering whatsapp floating button in AMP.
    146148
    147 [**FooGallery**](https://ampenhancer.com/docs/article-categories/foogallery/)
     149[**FooGallery**](https://ampenhancer.com/docs/article/how-to-enable-foogallery-support/)
    148150
    149151  * Added Responsive Image Gallery Support.
     
    152154  * Added Image Viewer Gallery Support.
    153155
    154 [**Icegram**](https://ampenhancer.com/docs/article-categories/icegram/)
     156[**Icegram**](https://ampenhancer.com/docs/article/how-to-enable-icegram-support/)
    155157
    156158  * Added Popups Support.
    157159  * Displays campaigns on AMP Pages.
    158160
    159 [**Helpie FAQ**](https://ampenhancer.com/docs/article-categories/helpie-faq/)
     161[**Helpie FAQ**](https://ampenhancer.com/docs/article/how-to-enable-helpie-faq-support/)
    160162
    161163  * Fully responsive Accordion.
     
    163165  * Search Feature Support.
    164166
    165 [**ConvertKit**](https://ampenhancer.com/docs/article-categories/convertkit/)
     167[**ConvertKit**](https://ampenhancer.com/docs/article/how-to-enable-convertkit-support/)
    166168
    167169  * Added Shortcode Email Subscription Support.
    168170
    169 [**Smart Slider 3**](https://ampenhancer.com/docs/article-categories/smart-slider-3/)
     171[**Smart Slider 3**](https://ampenhancer.com/docs/article/how-to-add-smart-slider-3-plugin-support/)
    170172
    171173  * Added Shortcode Support.
    172174
    173 [**Fancy Comments WordPress**](https://ampenhancer.com/docs/article-categories/fancy-comments-wordpress/)
     175[**Fancy Comments WordPress**](https://ampenhancer.com/docs/article/how-to-add-fancy-comments-wordpress-plugin-support/)
    174176
    175177  * Full Plugin Support.
    176178
    177 [**Adapta RGPD**](https://ampenhancer.com/docs/article-categories/adapta-rgpd/)
     179[**Adapta RGPD**](https://ampenhancer.com/docs/article/how-to-enable-adapta-rgpd-support/)
    178180
    179181  * Cookie Banner Support.
    180182
    181 [**Gutenberg Blocks – Ultimate Addons for Gutenberg**](https://ampenhancer.com/docs/article-categories/gutenberg-blocks/)
     183[**Gutenberg Blocks – Ultimate Addons for Gutenberg**](https://ampenhancer.com/docs/article/how-to-enable-gutenberg-blocks-support/)
    182184
    183185  * Table of Contents Block Support.
    184186  * FAQ-Schema Block Support.
    185187
    186 [**Ninja Tables**](https://ampenhancer.com/docs/article-categories/ninja-tables/)
     188[**Ninja Tables**](https://ampenhancer.com/docs/article/how-to-use-ninja-tables-support/)
    187189
    188190  * Shortcode Support.
    189191  * Full design Compatibility.
    190192
    191 [**Redirection for Contact Form 7**](https://ampenhancer.com/docs/article-categories/redirection-for-contact-form7/)
     193[**Redirection for Contact Form 7**](https://ampenhancer.com/docs/article/how-to-use-redirection-for-contact-form7-support/)
    192194
    193195  * Redirect to any URL.
    194196
    195 [**WPFront Notification Bar**](https://ampenhancer.com/docs/article-categories/wpfront-notification-bar/)
     197[**WPFront Notification Bar**](https://ampenhancer.com/docs/article/how-to-enable-wpfront-notification-bar-support/)
    196198
    197199  * Added Notification Bar Support.
    198200  * Connected with Enabled and Position Options.
    199201
    200 [**Flatsome Theme UX Builder**](https://ampenhancer.com/docs/article-categories/ux-builder/)
     202[**Flatsome Theme UX Builder**](https://ampenhancer.com/docs/article/how-to-enable-flatsome-theme-ux-builder-support/)
    201203
    202204  * UX Slider Support.
     
    206208  * UX Grid Support.
    207209
    208 [**AddToAny Share Buttons**](https://ampenhancer.com/docs/article-categories/addtoany/)
     210[**AddToAny Share Buttons**](https://ampenhancer.com/docs/article/how-to-add-addtoany-share-buttons-support/)
    209211
    210212  * Added Print functionality.
    211213
    212 [**Beaver Builder Plugin**](https://ampenhancer.com/docs/article-categories/beaver-builder/)
     214[**Beaver Builder Plugin**](https://ampenhancer.com/docs/article/how-to-enable-beaver-builder-plugin-support/)
    213215
    214216  * Added Accordion Support.
     
    220222
    221223== Changelog ==
     224
     225= 1.0.42 (13 May 2021) =
     226* Added Minute option In Popup reload after specific time feature.
     227* Added the Biggest Plugin names in the Description and Tag.
    222228
    223229= 1.0.41 (1st May 2021) =
Note: See TracChangeset for help on using the changeset viewer.