Plugin Directory

Changeset 3320473


Ignore:
Timestamp:
07/01/2025 09:22:43 AM (9 months ago)
Author:
nazmul111
Message:

version 1.2.2 updated

Location:
section-blocks/trunk
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • section-blocks/trunk/readme.txt

    r3318999 r3320473  
    33Tags:              gutenberg, blocks, sections,Layout,Design
    44Tested up to:      6.8.1
    5 Stable tag:        1.2.1
     5Stable tag:        1.2.2
    66License:           GPL-2.0 0r later
    77License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    9595
    9696== Changelog ==
     97= 1.2.2 =
     98* Added analytics integration with Appsero for plugin usage insights
     99* Implemented user permission-based data collection and tracking
     100* Enhanced plugin performance monitoring capabilities
     101* Updated minimum PHP requirement from 7.0 to 7.4 for better compatibility
     102* Added comprehensive analytics tracking system with user consent
     103* Improved plugin architecture for better maintainability
     104* Enhanced security and performance benefits with PHP 7.4+ requirement
     105
    97106= 1.2.1 =
    98107* Added Services Section block with service cards and CTA buttons
  • section-blocks/trunk/section-blocks.php

    r3318999 r3320473  
    2020    exit;
    2121}
     22define('SECTION_BLOCKS_VERSION', '1.2.1');
     23define('SECTION_BLOCKS_PLUGIN_DIR', plugin_dir_path(__FILE__));
     24define('SECTION_BLOCKS_PLUGIN_URL', plugin_dir_url(__FILE__));
     25
     26/**
     27 * Initialize the plugin tracker
     28 *
     29 * @return void
     30 */
     31function appsero_init_tracker_section_blocks()
     32{
     33
     34    if (! class_exists('Appsero\Client')) {
     35        require_once __DIR__ . '/appsero/src/Client.php';
     36    }
     37
     38    $client = new Appsero\Client('45b26c49-c55e-4d6c-b4fb-9da005eb546b', 'Section Blocks', __FILE__);
     39
     40    // Active insights
     41    $client->insights()->init();
     42}
     43
     44appsero_init_tracker_section_blocks();
    2245/**
    2346 * Registers the block using a `blocks-manifest.php` file, which improves the performance of block type registration.
     
    318341    $recaptcha_secret_key = get_option('section_blocks_recaptcha_secret_key', '');
    319342?>
    320 <div class="wrap">
    321     <h1>Newsletter Settings</h1>
    322     <form method="post" action="">
    323         <table class="form-table">
    324             <tr>
    325                 <th scope="row">Mailchimp API Key</th>
    326                 <td>
    327                     <input type="text" name="mailchimp_api_key" value="<?php echo esc_attr($mailchimp_api_key); ?>"
    328                         class="regular-text" />
    329                     <p class="description">Enter your Mailchimp API key for newsletter integration.</p>
    330                 </td>
    331             </tr>
    332             <tr>
    333                 <th scope="row">reCAPTCHA Site Key</th>
    334                 <td>
    335                     <input type="text" name="recaptcha_site_key" value="<?php echo esc_attr($recaptcha_site_key); ?>"
    336                         class="regular-text" />
    337                     <p class="description">Enter your Google reCAPTCHA site key.</p>
    338                 </td>
    339             </tr>
    340             <tr>
    341                 <th scope="row">reCAPTCHA Secret Key</th>
    342                 <td>
    343                     <input type="text" name="recaptcha_secret_key"
    344                         value="<?php echo esc_attr($recaptcha_secret_key); ?>" class="regular-text" />
    345                     <p class="description">Enter your Google reCAPTCHA secret key.</p>
    346                 </td>
    347             </tr>
    348         </table>
    349         <?php submit_button(); ?>
    350     </form>
    351 
    352     <h2>Newsletter Subscribers</h2>
    353     <?php
     343    <div class="wrap">
     344        <h1>Newsletter Settings</h1>
     345        <form method="post" action="">
     346            <table class="form-table">
     347                <tr>
     348                    <th scope="row">Mailchimp API Key</th>
     349                    <td>
     350                        <input type="text" name="mailchimp_api_key" value="<?php echo esc_attr($mailchimp_api_key); ?>"
     351                            class="regular-text" />
     352                        <p class="description">Enter your Mailchimp API key for newsletter integration.</p>
     353                    </td>
     354                </tr>
     355                <tr>
     356                    <th scope="row">reCAPTCHA Site Key</th>
     357                    <td>
     358                        <input type="text" name="recaptcha_site_key" value="<?php echo esc_attr($recaptcha_site_key); ?>"
     359                            class="regular-text" />
     360                        <p class="description">Enter your Google reCAPTCHA site key.</p>
     361                    </td>
     362                </tr>
     363                <tr>
     364                    <th scope="row">reCAPTCHA Secret Key</th>
     365                    <td>
     366                        <input type="text" name="recaptcha_secret_key"
     367                            value="<?php echo esc_attr($recaptcha_secret_key); ?>" class="regular-text" />
     368                        <p class="description">Enter your Google reCAPTCHA secret key.</p>
     369                    </td>
     370                </tr>
     371            </table>
     372            <?php submit_button(); ?>
     373        </form>
     374
     375        <h2>Newsletter Subscribers</h2>
     376        <?php
    354377        global $wpdb;
    355378        $table_name = $wpdb->prefix . 'newsletter_subscribers';
     
    373396        }
    374397        ?>
    375 </div>
     398    </div>
    376399<?php
    377400}
Note: See TracChangeset for help on using the changeset viewer.