Plugin Directory

Changeset 2838971


Ignore:
Timestamp:
12/24/2022 04:41:17 PM (3 years ago)
Author:
speedify
Message:

Releasing version 3.2.14

Location:
auto-install-free-ssl
Files:
272 added
4 edited

Legend:

Unmodified
Added
Removed
  • auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/AdminNotice.php

    r2835481 r2838971  
    349349    {
    350350       
    351         if ( time() < strtotime( "January 8, 2023" ) ) {
     351        if ( time() < strtotime( "January 11, 2023" ) ) {
    352352            //Get the value of aifs_display_free_premium_offer
    353353            $display_announcement = get_option( 'aifs_display_discount_offer_existing_users' );
     
    356356                $already_done = wp_nonce_url( get_site_url() . $_SERVER['REQUEST_URI'], 'aifs_discount_offer_already_read', 'aifsdiscountofferdone' );
    357357                $remind_later = wp_nonce_url( get_site_url() . $_SERVER['REQUEST_URI'], 'aifs_discount_offer_read_later', 'aifsdiscountofferlater' );
    358                 $link = aifssl_fs()->get_upgrade_url();
     358                //$link                           = aifssl_fs()->get_upgrade_url();
     359                $link = $this->factory->upgrade_url_for_existing_users();
    359360                $link_text = __( "Grab the offer now!", 'auto-install-free-ssl' );
    360                 $link_confirmation_text = sprintf( __( "The current free premium license is for unlimited sites. So, if you choose any other license, the large green button will say DOWNGRADE. Please do not worry; this is normal. Just click on it.", 'auto-install-free-ssl' ) );
     361                //$link_confirmation_text        = sprintf( __( "The current free premium license is for unlimited sites. So, if you choose any other license, the large green button will say DOWNGRADE. Please do not worry; this is normal. Just click on it.", 'auto-install-free-ssl' ) );
    361362                $already_done_text = __( "I have already purchased", 'auto-install-free-ssl' );
    362363                $dont_want_text = __( "I don't want it", 'auto-install-free-ssl' );
     
    395396                $html .= sprintf(
    396397                    __( "%sClick here%s to purchase a premium license using this %s discount code: %s", 'auto-install-free-ssl' ),
    397                     ( aifs_is_free_version() ? '<a href="' . $link . '">' : '<a href="' . $link . '" onclick="return confirm(\'' . $link_confirmation_text . '\')">' ),
     398                    '<a href="' . $link . '"' . (( aifs_is_free_version() ? '' : ' target="_blank"' )) . '>',
    398399                    '</a>',
    399400                    '30%',
     
    403404                $html .= '<img class="aifs-notice-img-right" src="' . AIFS_URL . 'assets/img/icon.jpg" />
    404405                            </div>';
    405                
    406                 if ( aifs_is_free_version() ) {
    407                     $html .= '<a class="aifs-review-now aifs-review-button" href="' . $link . '">' . $link_text . '</a>';
    408                 } else {
    409                     $html .= '<a class="aifs-review-now aifs-review-button" href="' . $link . '" rel="nofollow" onclick="return confirm(\'' . $link_confirmation_text . '\')">' . $link_text . '</a>';
    410                 }
    411                
     406                $html .= '<a class="aifs-review-now aifs-review-button" href="' . $link . '"' . (( aifs_is_free_version() ? '' : ' target="_blank"' )) . '>' . $link_text . '</a>';
    412407                $html .= '<a class="aifs-review-button" href="' . $already_done . '" rel="nofollow" onclick="return confirm(\'' . $already_done_confirmation_text . '\')">' . $already_done_text . '</a>
    413408                            <a class="aifs-review-button" href="' . $already_done . '" rel="nofollow" onclick="return confirm(\'' . $dont_want_confirmation_text . '\')">' . $dont_want_text . '</a>
  • auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/Factory.php

    r2835481 r2838971  
    947947   
    948948    }
     949   
     950    /**
     951     * Upgrade URL for aifs_is_existing_user() or user using free premium six months license
     952     * @return string
     953     * @since 3.2.14
     954     */
     955    public function upgrade_url_for_existing_users()
     956    {
     957       
     958        if ( aifs_is_free_version() ) {
     959            $link = aifssl_fs()->get_upgrade_url();
     960        } else {
     961            $link = "https://checkout.freemius.com/mode/dialog/plugin/10204/plan/17218/?coupon=ThankYou";
     962            $admin_email = get_option( 'admin_email' );
     963            $admin_first_name = aifs_admin_first_name();
     964            $admin_last_name = aifs_admin_last_name();
     965            if ( strpos( $admin_email, "secureserver.net" ) === false && strpos( $admin_email, "example.com" ) === false && strpos( $admin_email, "example.org" ) === false ) {
     966                $link .= "&user_email=" . $admin_email;
     967            }
     968            if ( strlen( $admin_first_name ) > 0 ) {
     969                $link .= "&user_firstname=" . ucfirst( $admin_first_name );
     970            }
     971            if ( strlen( $admin_last_name ) > 0 ) {
     972                $link .= "&user_lastname=" . ucfirst( $admin_last_name );
     973            }
     974            $link .= "&hide_license_key=true&title=Auto-Install%20Free%20SSL&subtitle=Continue%20using%20our%20premium%20features%20after%20Dec%2031,%202022";
     975        }
     976       
     977        return $link;
     978    }
    949979
    950980}
  • auto-install-free-ssl/trunk/auto-install-free-ssl.php

    r2835481 r2838971  
    77 * Plugin URI:  https://freessl.tech
    88 * Description: Generate & install Free SSL Certificate, activate force HTTPS redirect with one click, fix insecure links & mixed content warning and get the PADLOCK in the browser’s address bar.
    9  * Version:     3.2.13
     9 * Version:     3.2.14
    1010 * Requires at least: 4.1
    1111 * Requires PHP:      5.6
     
    731731
    732732/**
     733 * Return last name of the WordPress Admin
     734 * @return string
     735 * @since 3.2.14
     736 */
     737function aifs_admin_last_name()
     738{
     739    $admin_email = get_option( 'admin_email' );
     740    $admin = get_user_by( 'email', $admin_email );
     741   
     742    if ( $admin !== false ) {
     743        return $admin->last_name;
     744    } else {
     745        return "";
     746    }
     747
     748}
     749
     750/**
    733751 * Check if the plugin is free version
    734752 * @return bool
  • auto-install-free-ssl/trunk/readme.txt

    r2835481 r2838971  
    77Requires at least: 4.1
    88Tested up to: 6.1
    9 Stable tag: 3.2.13
     9Stable tag: 3.2.14
    1010Requires PHP: 5.6
    1111Development location: https://freessl.tech
     
    2727
    2828
    29 `    262,000+ DOWNLOADS!!`
     29`    267,500+ DOWNLOADS!!`
    3030
    3131
     
    335335== Changelog ==
    336336
     337= 3.2.14 =
     338* Added a new function to fetch the admin user's last name.
     339* Added a new function to return the upgrade link for aifs_is_existing_user().
     340* Changed upgrade link for aifs_is_existing_user(). Previous link didn't work in some installations.
     341
    337342= 3.2.13 =
    338343* Improved the function for better detecting cPanel host.
Note: See TracChangeset for help on using the changeset viewer.