Plugin Directory

Changeset 2284706


Ignore:
Timestamp:
04/16/2020 07:51:00 AM (6 years ago)
Author:
esoftarena
Message:

Version 1.2

Location:
amp-for-contact-form-7
Files:
2 added
20 edited

Legend:

Unmodified
Added
Removed
  • amp-for-contact-form-7/tags/1.2/amp-for-contact-form-7.php

    r2282177 r2284706  
    4747         * Define All Constants
    4848         */
    49         function define_constants()
     49        private function define_constants()
    5050        {
    5151            if (!defined('AMPCF7_NAME')) {
     
    6969         * Divided Admin And Public Section
    7070         */
    71         function load_dependencies()
     71        private function load_dependencies()
    7272        {
     73            load_plugin_textdomain('AMPCF7', false, basename(dirname(__FILE__)) . '/languages');
    7374            /**
    7475             * Admin Section
  • amp-for-contact-form-7/tags/1.2/includes/Admin/Assets/css/admin.css

    r2282177 r2284706  
    1 .ampcf7-css .admin_table {
    2     color: #000;
    3     font-size: 13px;
    4 }
    5 
    6 .ampcf7-css .admin_table td {
    7     padding: 10px;
    8 }
    9 
    10 .ampcf7-css .admin_table input[type="text"] {
    11     width: 100%;
    12     border-radius: 5px;
    13     line-height: 18px;
    14     padding: 10px;
    15 }
    16 
    17 .ampcf7-css .admin_table input[type="submit"] {
    18     border: 2px solid #0073aa;
    19     border-radius: 5px;
    20     box-sizing: border-box;
    21     background: #0085ba;
    22     color: #fff;
    23     cursor: pointer;
    24     font-weight: bold;
    25     line-height: 20px;
    26     padding: 10px;
    27 }
    28 
    29 .ampcf7-css .hint-class {
    30     font-size: 13px;
    31     color: red;
    32     font-weight: bold;
    33     line-height: 1.5;
    34     padding-left: 10px;
    35 }
  • amp-for-contact-form-7/tags/1.2/includes/Admin/Assets/js/admin.js

    r2282177 r2284706  
    11jQuery(document).ready(function () {
    2 
    3     jQuery("#captcha_checkbox").click(function () {
    4 
    5         if (jQuery(this).prop("checked") == true) {
    6 
    7             jQuery("#captcha_key").attr("required", true);
    8 
    9 
    10         } else if (jQuery(this).prop("checked") == false) {
    11 
    12             jQuery("#captcha_key").attr("required", false);
    13 
    14         }
    15 
    16     });
    17 
    18     // function onSubmit(captcha_key) {
    19     //     grecaptcha.ready(() => {
    20     //         grecaptcha.execute(captcha_key, {
    21     //             action: ampcf7Ajax.ampcf7homeurl
    22     //         }).then((token) => {
    23     //             return true;
    24     //         });
    25     //     });
    26     //     return false;
    27     // }
    28 
    29     // jQuery('#ampcf7_submit').submit(function () {
    30     //     captcha_key = jQuery("#captcha_key").val();
    31     //     console.log(captcha_key);
    32     //     if (captcha_key !== '') {
    33     //         // url = 'https://www.google.com/recaptcha/api.js?render=' + captcha_key;
    34     //         // jQuery.getScript(url, function (arg) {
    35     //         //     console.log(arg);
    36     //         // });
    37 
    38     //         if (!onSubmit(captcha_key)) {
    39     //             console.log("error");
    40     //             jQuery("#captcha_key_error").fadeIn();
    41     //             jQuery("#captcha_key_error").delay(5000).fadeOut(800);
    42     //             return false;
    43     //         }
    44     //         return true;
    45     //     }
    46     //     return true;
    47     // });
    48 
    492});
  • amp-for-contact-form-7/tags/1.2/includes/Admin/Menu.php

    r2282177 r2284706  
    2828    function register_menu_page()
    2929    {
    30 
    31         add_menu_page(__('Ampcf7'), __('Amp CF7'), $this->user_level, AMPCF7_HANDLE, [$this, 'show_menu'], 'dashicons-schedule', 80);
    32     }
    33 
    34     /**
    35      * Call Menu Function
    36      */
    37 
    38     function show_menu()
    39     {
    40 
    41         switch ($_GET['page']) {
    42 
    43             default:
    44                 new Templates\AmpCf7setting();
    45                 break;
    46         }
     30        return true;
    4731    }
    4832}
  • amp-for-contact-form-7/tags/1.2/includes/FrontEnd/Assets/css/FrontEnd.css

    r2282177 r2284706  
    11form.amp-form-submit-success [submit-success],
    2 form.amp-form-submit-success [submit-error] {
     2form.amp-form-submit-success [submit-error],
     3form.amp-form-initial [submit-success],
     4form.amp-form-initial [submit-error]  {
    35    display: none;
    46}
    57
    68.ampcf7-successes-massage {
     9    width: 100%;
     10    padding: 0px 15px;
     11    border: 1px solid green;
     12    border-radius: 5px;
    713    color: #363;
    814    font-weight: bold;
    915    line-height: 40px;
    10     font-size: 24px;
     16    font-size: 18px;
    1117    visibility: hidden;
    1218    opacity: 0;
    1319    height: 0;
    14     margin: 0;
     20    margin: 0; 
    1521}
    1622
     
    6571
    6672.ampcf7-error-massage {
     73    width: 100%;
     74    padding: 0px 15px;
     75    border: 1px solid red;
     76    border-radius: 5px;
    6777    color: red;
    6878    font-weight: bold;
    6979    line-height: 40px;
    70     font-size: 24px;
     80    font-size: 18px;
    7181    visibility: hidden;
    7282    opacity: 0;
     
    7686
    7787form.amp-form-submit-error .ampcf7-error-massage {
    78     animation-name: error;
    79     animation-duration: 5s;
     88    visibility: visible;
     89    opacity: 1;
     90    height: auto;
     91    margin: 15px 0;
    8092}
    81 
    82 @-webkit-keyframes error {
    83     0% {
    84         visibility: visible;
    85         opacity: 1;
    86         height: auto;
    87         margin: 15px 0;
    88     }
    89 
    90     90% {
    91         visibility: visible;
    92         opacity: 1;
    93         height: auto;
    94         margin: 15px 0;
    95     }
    96 
    97     100% {
    98         visibility: hidden;
    99         opacity: 0;
    100         height: 0;
    101     }
    102 }
    103 
    104 @keyframes error {
    105     0% {
    106         visibility: visible;
    107         opacity: 1;
    108         height: auto;
    109         margin: 15px 0;
    110     }
    111 
    112     90% {
    113         visibility: visible;
    114         opacity: 1;
    115         height: auto;
    116         margin: 15px 0;
    117     }
    118 
    119     100% {
    120         visibility: hidden;
    121         opacity: 0;
    122         height: 0;
    123     }
    124 }
  • amp-for-contact-form-7/tags/1.2/includes/FrontEnd/Cf7.php

    r2282177 r2284706  
    1515class Cf7
    1616{
     17    private $formcount = 0;   
     18
    1719    public function __construct()
    18     {
     20    {       
     21        $this->load_module();
    1922        $this->load_filter();
    20         $this->load_module();
    2123    }
    2224
     
    2931        add_filter('wpcf7_form_novalidate', [$this, 'ampcf7_novalidate'], 9, 0);
    3032        add_filter('wpcf7_form_id_attr', [$this, 'ampcf7_id_attr'], 9, 1);
    31         add_filter('wpcf7_form_elements', [$this, 'ampcf7_form_html'], 9, 1);
     33        add_filter('wpcf7_change_atts', [$this, 'ampcf7_formclear'], 9, 1);
     34        add_filter('wpcf7_form_elements', [$this, 'ampcf7_form_html'], 9, 1);   
    3235    }
    3336
     
    4548        require_once 'modules/text.php';
    4649        require_once 'modules/textarea.php';
     50        require_once 'modules/checkbox.php';
    4751        require_once 'modules/clearform.php';
    48 
    49         //print_r(maybe_unserialize(''));
    50     }
     52    }   
    5153
    5254
     
    6466     */
    6567
     68    function ampcf7_formclear($pretag)
     69    {
     70        $pretag .= 'on="submit-success:ampform_'.$this->formcount.'.clear"';
     71        return $pretag;
     72    }
     73
     74    /**
     75     * Add Form Clear
     76     */
     77
    6678    function ampcf7_id_attr($preid)
    6779    {
    68         $preid .= 'ampform';
     80        $preid .= 'ampform_'.$this->formcount;
    6981        return $preid;
    7082    }
     
    7587
    7688    function ampcf7_form_html($prehtml)
    77     {
    78         $ampcf7_active_captcha = get_option('ampcf7_active_captcha');
    79         $ampcf7_captchakey = get_option('ampcf7_captchakey');
     89    {       
     90        $this->formcount++;
    8091
    81         $ampcf7_sucmessage = get_option('ampcf7_sucmessage');
    82         $ampcf7_errormessage = get_option('ampcf7_errormessage');
    83 
    84         if (empty($ampcf7_sucmessage))
    85             $ampcf7_sucmessage = 'Success! Thanks for Your Request.';
    86 
    87         if (empty($ampcf7_errormessage))
    88             $ampcf7_errormessage = 'Error! Please Try Again.';
    89 
    90         if ((!empty($ampcf7_active_captcha) && $ampcf7_active_captcha == 'yes') && (!empty($ampcf7_captchakey))) {
    91             $prehtml .= '<amp-recaptcha-input layout="nodisplay" name="reCAPTCHA_form" data-sitekey="' . $ampcf7_captchakey . '" data-action="reCAPTCHA_form"></amp-recaptcha-input>';
    92         }
     92        $ampcf7_sucmessage = 'Success! Thanks for Your Request.';
     93        $ampcf7_errormessage = 'Error! Please Try Again.';
    9394
    9495        $prehtml .= '<div class="ampcf7-successes-massage">' . $ampcf7_sucmessage . '</div>';
  • amp-for-contact-form-7/tags/1.2/includes/FrontEnd/FrontEnd.php

    r2282177 r2284706  
    2828    function frontend_hooks()
    2929    {
    30         wp_enqueue_script('ampcf7-frontend-script', AMPCF7_URL . 'includes/FrontEnd/Assets/js/FrontEnd.js', array('jquery'), '1.0.0', true);
    3130        wp_enqueue_style('ampcf7-frontend-style', AMPCF7_URL . 'includes/FrontEnd/Assets/css/FrontEnd.css');
    3231    }
  • amp-for-contact-form-7/tags/1.2/includes/FrontEnd/modules/clearform.php

    r2282177 r2284706  
    33
    44if (file_exists($check_file)) {
    5     $CheckText = 'on="submit-success:ampform.clear"';
    6     $searchfor = '<form %s';
    7     $replacefor = '<form %s on="submit-success:ampform.clear"';
     5   
     6    $Check_previous_Text = 'on="submit-success:ampform.clear"';
    87    $file_content = file_get_contents($check_file);
    9     if (!strpos($file_content, $CheckText)) {
     8    if (strpos($file_content, $Check_previous_Text)) {
     9        $new_form = str_replace($Check_previous_Text, '', $file_content);
     10        file_put_contents($check_file, $new_form);
     11    }
     12   
     13    $CheckText = "\$atts = apply_filters( 'wpcf7_change_atts', \$atts );";
     14    $searchfor = "\$html .= sprintf( '<form %s";
     15    $replacefor = "\$atts = apply_filters( 'wpcf7_change_atts', \$atts );
     16
     17        \$html .= sprintf( '<form %s";
     18    $file_content = file_get_contents($check_file);
     19    if (!strpos($file_content, $CheckText)) {
    1020        $new_form = str_replace($searchfor, $replacefor, $file_content);
    1121        file_put_contents($check_file, $new_form);
  • amp-for-contact-form-7/tags/1.2/includes/activator.php

    r2282177 r2284706  
    4848    private function Create_Table()
    4949    {
    50 
    51         global $wpdb;
    52 
    53         if (!current_user_can('activate_plugins')) {
    54             return;
    55         }
    56 
    57         if (!defined('DB_CHARSET') || !($db_charset = DB_CHARSET)) {
    58             $db_charset = 'utf8mb4';
    59         }
    60 
    61         $db_charset = "CHARACTER SET " . $db_charset;
    62 
    63         if (defined('DB_COLLATE') && $db_collate = DB_COLLATE) {
    64             $db_collate = "COLLATE " . $db_collate;
    65         }
     50        return true;
    6651    }
    6752}
  • amp-for-contact-form-7/tags/1.2/readme.txt

    r2282177 r2284706  
    3333* quiz
    3434* file
     35* checkbox
     36
     37== For premium version we are offering extra 2 features : ==
     38
    3539* captcha
    3640* change the default message that is displayed after a form submission
    3741
    38 == For premium version we are offering extra 1 features : ==
    39 
    40 * checkbox
     42>
    4143
    4244== Installation ==
     
    5658
    5759== Changelog ==
    58 #
    5960
    60 == Upgrade Notice ==
    61 = 1.0 =
    62 This is the first Version of AMP for Contact Form 7 plugin
    63 = 1.1 =
    64 OOP Coding Structure With Namespace
    65 = 1.2 =
    66 Add google reCAPTCHA v3
    67 change the default message that is displayed after a form submission
     61= 1.2 (2020-04-16) =
     62
     63* Fix checkbox Require
     64
     65= 1.1 (2020-03-20) =
     66
     67* OOP Coding Structure With Namespace
     68
     69= 1.0 (2020-02-26) =
     70
     71* This is the first Version of AMP for Contact Form 7 plugin
  • amp-for-contact-form-7/trunk/amp-for-contact-form-7.php

    r2282833 r2284706  
    4747         * Define All Constants
    4848         */
    49         function define_constants()
     49        private function define_constants()
    5050        {
    5151            if (!defined('AMPCF7_NAME')) {
     
    6969         * Divided Admin And Public Section
    7070         */
    71         function load_dependencies()
     71        private function load_dependencies()
    7272        {
    7373            load_plugin_textdomain('AMPCF7', false, basename(dirname(__FILE__)) . '/languages');
  • amp-for-contact-form-7/trunk/includes/Admin/Assets/css/admin.css

    r2282840 r2284706  
    1 .ampcf7-css .admin_table {
    2     color: #000;
    3     font-size: 13px;
    4 }
    5 
    6 .ampcf7-css .admin_table td {
    7     padding: 10px;
    8 }
    9 
    10 .ampcf7-css .admin_table input[type="text"] {
    11     width: 100%;
    12     border-radius: 5px;
    13     line-height: 18px;
    14     padding: 10px;
    15 }
    16 
    17 .ampcf7-css .admin_table input[type="submit"] {
    18     border: 2px solid #0073aa;
    19     border-radius: 5px;
    20     box-sizing: border-box;
    21     background: #0085ba;
    22     color: #fff;
    23     cursor: pointer;
    24     font-weight: bold;
    25     line-height: 20px;
    26     padding: 10px;
    27 }
    28 
    29 .ampcf7-css .hint-class {
    30     font-size: 13px;
    31     color: red;
    32     font-weight: bold;
    33     line-height: 1.5;
    34     padding-left: 10px;
    35 }
  • amp-for-contact-form-7/trunk/includes/Admin/Assets/js/admin.js

    r2282840 r2284706  
    11jQuery(document).ready(function () {
    2 
    3     jQuery("#captcha_checkbox").click(function () {
    4 
    5         if (jQuery(this).prop("checked") == true) {
    6 
    7             jQuery("#captcha_key").attr("required", true);
    8 
    9 
    10         } else if (jQuery(this).prop("checked") == false) {
    11 
    12             jQuery("#captcha_key").attr("required", false);
    13 
    14         }
    15 
    16     });
    17 
    18     // function onSubmit(captcha_key) {
    19     //     grecaptcha.ready(() => {
    20     //         grecaptcha.execute(captcha_key, {
    21     //             action: ampcf7Ajax.ampcf7homeurl
    22     //         }).then((token) => {
    23     //             return true;
    24     //         });
    25     //     });
    26     //     return false;
    27     // }
    28 
    29     // jQuery('#ampcf7_submit').submit(function () {
    30     //     captcha_key = jQuery("#captcha_key").val();
    31     //     console.log(captcha_key);
    32     //     if (captcha_key !== '') {
    33     //         // url = 'https://www.google.com/recaptcha/api.js?render=' + captcha_key;
    34     //         // jQuery.getScript(url, function (arg) {
    35     //         //     console.log(arg);
    36     //         // });
    37 
    38     //         if (!onSubmit(captcha_key)) {
    39     //             console.log("error");
    40     //             jQuery("#captcha_key_error").fadeIn();
    41     //             jQuery("#captcha_key_error").delay(5000).fadeOut(800);
    42     //             return false;
    43     //         }
    44     //         return true;
    45     //     }
    46     //     return true;
    47     // });
    48 
    492});
  • amp-for-contact-form-7/trunk/includes/Admin/Menu.php

    r2282840 r2284706  
    2828    function register_menu_page()
    2929    {
    30 
    31         add_menu_page(__('Ampcf7'), __('Amp CF7'), $this->user_level, AMPCF7_HANDLE, [$this, 'show_menu'], 'dashicons-schedule', 80);
    32     }
    33 
    34     /**
    35      * Call Menu Function
    36      */
    37 
    38     function show_menu()
    39     {
    40 
    41         switch ($_GET['page']) {
    42 
    43             default:
    44                 new Templates\AmpCf7setting();
    45                 break;
    46         }
     30        return true;
    4731    }
    4832}
  • amp-for-contact-form-7/trunk/includes/FrontEnd/Assets/css/FrontEnd.css

    r2282840 r2284706  
    11form.amp-form-submit-success [submit-success],
    2 form.amp-form-submit-success [submit-error] {
     2form.amp-form-submit-success [submit-error],
     3form.amp-form-initial [submit-success],
     4form.amp-form-initial [submit-error]  {
    35    display: none;
    46}
    57
    68.ampcf7-successes-massage {
     9    width: 100%;
     10    padding: 0px 15px;
     11    border: 1px solid green;
     12    border-radius: 5px;
    713    color: #363;
    814    font-weight: bold;
    915    line-height: 40px;
    10     font-size: 24px;
     16    font-size: 18px;
    1117    visibility: hidden;
    1218    opacity: 0;
    1319    height: 0;
    14     margin: 0;
     20    margin: 0; 
    1521}
    1622
     
    6571
    6672.ampcf7-error-massage {
     73    width: 100%;
     74    padding: 0px 15px;
     75    border: 1px solid red;
     76    border-radius: 5px;
    6777    color: red;
    6878    font-weight: bold;
    6979    line-height: 40px;
    70     font-size: 24px;
     80    font-size: 18px;
    7181    visibility: hidden;
    7282    opacity: 0;
     
    7686
    7787form.amp-form-submit-error .ampcf7-error-massage {
    78     animation-name: error;
    79     animation-duration: 5s;
     88    visibility: visible;
     89    opacity: 1;
     90    height: auto;
     91    margin: 15px 0;
    8092}
    81 
    82 @-webkit-keyframes error {
    83     0% {
    84         visibility: visible;
    85         opacity: 1;
    86         height: auto;
    87         margin: 15px 0;
    88     }
    89 
    90     90% {
    91         visibility: visible;
    92         opacity: 1;
    93         height: auto;
    94         margin: 15px 0;
    95     }
    96 
    97     100% {
    98         visibility: hidden;
    99         opacity: 0;
    100         height: 0;
    101     }
    102 }
    103 
    104 @keyframes error {
    105     0% {
    106         visibility: visible;
    107         opacity: 1;
    108         height: auto;
    109         margin: 15px 0;
    110     }
    111 
    112     90% {
    113         visibility: visible;
    114         opacity: 1;
    115         height: auto;
    116         margin: 15px 0;
    117     }
    118 
    119     100% {
    120         visibility: hidden;
    121         opacity: 0;
    122         height: 0;
    123     }
    124 }
  • amp-for-contact-form-7/trunk/includes/FrontEnd/Cf7.php

    r2282840 r2284706  
    1515class Cf7
    1616{
     17    private $formcount = 0;   
     18
    1719    public function __construct()
    18     {
     20    {       
     21        $this->load_module();
    1922        $this->load_filter();
    20         $this->load_module();
    2123    }
    2224
     
    2931        add_filter('wpcf7_form_novalidate', [$this, 'ampcf7_novalidate'], 9, 0);
    3032        add_filter('wpcf7_form_id_attr', [$this, 'ampcf7_id_attr'], 9, 1);
    31         add_filter('wpcf7_form_elements', [$this, 'ampcf7_form_html'], 9, 1);
     33        add_filter('wpcf7_change_atts', [$this, 'ampcf7_formclear'], 9, 1);
     34        add_filter('wpcf7_form_elements', [$this, 'ampcf7_form_html'], 9, 1);   
    3235    }
    3336
     
    4548        require_once 'modules/text.php';
    4649        require_once 'modules/textarea.php';
     50        require_once 'modules/checkbox.php';
    4751        require_once 'modules/clearform.php';
    48 
    49         //print_r(maybe_unserialize(''));
    50     }
     52    }   
    5153
    5254
     
    6466     */
    6567
     68    function ampcf7_formclear($pretag)
     69    {
     70        $pretag .= 'on="submit-success:ampform_'.$this->formcount.'.clear"';
     71        return $pretag;
     72    }
     73
     74    /**
     75     * Add Form Clear
     76     */
     77
    6678    function ampcf7_id_attr($preid)
    6779    {
    68         $preid .= 'ampform';
     80        $preid .= 'ampform_'.$this->formcount;
    6981        return $preid;
    7082    }
     
    7587
    7688    function ampcf7_form_html($prehtml)
    77     {
    78         $ampcf7_active_captcha = get_option('ampcf7_active_captcha');
    79         $ampcf7_captchakey = get_option('ampcf7_captchakey');
     89    {       
     90        $this->formcount++;
    8091
    81         $ampcf7_sucmessage = get_option('ampcf7_sucmessage');
    82         $ampcf7_errormessage = get_option('ampcf7_errormessage');
    83 
    84         if (empty($ampcf7_sucmessage))
    85             $ampcf7_sucmessage = 'Success! Thanks for Your Request.';
    86 
    87         if (empty($ampcf7_errormessage))
    88             $ampcf7_errormessage = 'Error! Please Try Again.';
    89 
    90         if ((!empty($ampcf7_active_captcha) && $ampcf7_active_captcha == 'yes') && (!empty($ampcf7_captchakey))) {
    91             $prehtml .= '<amp-recaptcha-input layout="nodisplay" name="reCAPTCHA_form" data-sitekey="' . $ampcf7_captchakey . '" data-action="reCAPTCHA_form"></amp-recaptcha-input>';
    92         }
     92        $ampcf7_sucmessage = 'Success! Thanks for Your Request.';
     93        $ampcf7_errormessage = 'Error! Please Try Again.';
    9394
    9495        $prehtml .= '<div class="ampcf7-successes-massage">' . $ampcf7_sucmessage . '</div>';
  • amp-for-contact-form-7/trunk/includes/FrontEnd/FrontEnd.php

    r2282840 r2284706  
    2828    function frontend_hooks()
    2929    {
    30         wp_enqueue_script('ampcf7-frontend-script', AMPCF7_URL . 'includes/FrontEnd/Assets/js/FrontEnd.js', array('jquery'), '1.0.0', true);
    3130        wp_enqueue_style('ampcf7-frontend-style', AMPCF7_URL . 'includes/FrontEnd/Assets/css/FrontEnd.css');
    3231    }
  • amp-for-contact-form-7/trunk/includes/FrontEnd/modules/clearform.php

    r2282840 r2284706  
    33
    44if (file_exists($check_file)) {
    5     $CheckText = 'on="submit-success:ampform.clear"';
    6     $searchfor = '<form %s';
    7     $replacefor = '<form %s on="submit-success:ampform.clear"';
     5   
     6    $Check_previous_Text = 'on="submit-success:ampform.clear"';
    87    $file_content = file_get_contents($check_file);
    9     if (!strpos($file_content, $CheckText)) {
     8    if (strpos($file_content, $Check_previous_Text)) {
     9        $new_form = str_replace($Check_previous_Text, '', $file_content);
     10        file_put_contents($check_file, $new_form);
     11    }
     12   
     13    $CheckText = "\$atts = apply_filters( 'wpcf7_change_atts', \$atts );";
     14    $searchfor = "\$html .= sprintf( '<form %s";
     15    $replacefor = "\$atts = apply_filters( 'wpcf7_change_atts', \$atts );
     16
     17        \$html .= sprintf( '<form %s";
     18    $file_content = file_get_contents($check_file);
     19    if (!strpos($file_content, $CheckText)) {
    1020        $new_form = str_replace($searchfor, $replacefor, $file_content);
    1121        file_put_contents($check_file, $new_form);
  • amp-for-contact-form-7/trunk/includes/activator.php

    r2282840 r2284706  
    4848    private function Create_Table()
    4949    {
    50 
    51         global $wpdb;
    52 
    53         if (!current_user_can('activate_plugins')) {
    54             return;
    55         }
    56 
    57         if (!defined('DB_CHARSET') || !($db_charset = DB_CHARSET)) {
    58             $db_charset = 'utf8mb4';
    59         }
    60 
    61         $db_charset = "CHARACTER SET " . $db_charset;
    62 
    63         if (defined('DB_COLLATE') && $db_collate = DB_COLLATE) {
    64             $db_collate = "COLLATE " . $db_collate;
    65         }
     50        return true;
    6651    }
    6752}
  • amp-for-contact-form-7/trunk/readme.txt

    r2282865 r2284706  
    44Donate link: *
    55Requires at least: 4.0
    6 Tested up to: 5.4
     6Tested up to: 5.1
    77Requires PHP: 5.2.4
    88Stable tag: 4.3
     
    3333* quiz
    3434* file
     35* checkbox
     36
     37== For premium version we are offering extra 2 features : ==
     38
    3539* captcha
    3640* change the default message that is displayed after a form submission
    3741
    38 == For premium version we are offering extra 1 features : ==
    39 
    40 * checkbox
     42>
    4143
    4244== Installation ==
     
    5658
    5759== Changelog ==
    58 #
    5960
    60 == Upgrade Notice ==
    61 = 1.0 =
    62 This is the first Version of AMP for Contact Form 7 plugin
    63 = 1.1 =
    64 OOP Coding Structure With Namespace
    65 = 1.2 =
    66 Add google reCAPTCHA v3
    67 change the default message that is displayed after a form submission
     61= 1.2 (2020-04-16) =
     62
     63* Fix checkbox Require
     64
     65= 1.1 (2020-03-20) =
     66
     67* OOP Coding Structure With Namespace
     68
     69= 1.0 (2020-02-26) =
     70
     71* This is the first Version of AMP for Contact Form 7 plugin
Note: See TracChangeset for help on using the changeset viewer.