Plugin Directory

Changeset 2867710

Timestamp:
02/19/2023 04:04:41 PM (17 months ago)
Author:
iamjafran
Message:

Updated Appsero SDK directory

Location:
wp-dark-mode
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • wp-dark-mode/tags/4.0.6/includes/appsero/src/Client.php

    r2867708 r2867710  
    1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
     1<?php
    22/**
    33 * Appsero Client
     
    290290         * @return string
    291291         */
    292         public function __trans( $text ) { // phpcs:ignore
     292        public function __trans( $text ) {
    293293            return call_user_func( '__', $text, $this->textdomain );
    294294        }
  • wp-dark-mode/tags/4.0.6/includes/appsero/src/Insights.php

    r2867708 r2867710  
    1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
     1<?php
    22/**
    33 * Appsero Insights
  • wp-dark-mode/tags/4.0.6/includes/appsero/src/License.php

    r2867708 r2867710  
    1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
     1<?php
    22/**
    33 * Appsero License Checker
     
    170170                'license_key' => $license_key,
    171171                'url'         => esc_url( home_url() ),
    172                 'is_local'    => $this->client->is_local_server(),
     172                'is_local'    => $this->client->is_local_server()
    173173            ];
    174174
     
    178178                return [
    179179                    'success' => false,
    180                     'error'   => $response->get_error_message(),
     180                    'error'   => $response->get_error_message()
    181181                ];
    182182            }
     
    187187                return [
    188188                    'success' => false,
    189                     'error'   => $this->client->__trans( 'Unknown error occurred, Please try again.' ),
     189                    'error'   => $this->client->__trans( 'Unknown error occurred, Please try again.' )
    190190                ];
    191191            }
     
    194194                $response = [
    195195                    'success' => false,
    196                     'error'   => $response['errors']['license_key'][0],
     196                    'error'   => $response['errors']['license_key'][0]
    197197                ];
    198198            }
     
    228228                'icon_url'    => '',
    229229                'position'    => null,
    230                 'parent_slug' => '',
     230                'parent_slug' => ''
    231231            ];
    232232
     
    265265
    266266                if ( isset( $_POST['_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_nonce'] ) ), $this->client->name ) ) {
    267                     $this->license_form_submit( $_POST );
     267                    $this->license_form_submit( $_POST );
    268268                } else {
    269269                    $this->error = esc_html__( 'You are not allowed to do this action.', 'wp-dark-mode' );
    270                 }
     270                }
    271271            }
    272272
     
    289289                    <div class="appsero-license-details">
    290290                       
    291                         <?php if ( ( $license && isset( $license['status'] ) && 'activate' === sanitize_text_field( $license['status'] ) ) ) : ?>
     291                        <?php if ( ( $license && isset( $license['status'] ) && 'activate' === sanitize_text_field( $license['status'] ) ) ) : ?>
    292292                        <p>
    293                             <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( '<strong>%s</strong> license is activated.' ), esc_html( $license['title'] ) ) ); ?>
     293                        <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( '<strong>%s</strong> license is activated.' ), esc_html( $license['title'] ) ) ); ?>
    294294                        </p>
    295                         <?php else : ?>
     295                        <?php else: ?>
    296296                        <p>
    297297                            <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( 'Activate <strong>%s</strong> by your license key to get professional support and automatic update from your WordPress dashboard.' ), esc_html( $this->client->name ) ) ); ?>
     
    703703                'title'            => $response['title'],
    704704                'source_id'        => $response['source_identifier'],
    705                 'recurring'        => $response['recurring'],
     705                'recurring'        => $response['recurring']
    706706            ];
    707707
     
    734734            $data = [
    735735                'key'    => '',
    736                 'status' => 'deactivate',
     736                'status' => 'deactivate'
    737737            ];
    738738
  • wp-dark-mode/tags/4.0.6/includes/appsero/src/Updater.php

    r2867695 r2867710  
    1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
     1<?php
    22/**
    33 * Appsero Updater
     
    179179                'slug'        => $this->client->slug,
    180180                'basename'    => $this->client->basename,
    181                 'license_key' => ! empty( $license ) && isset( $license['key'] ) ? $license['key'] : '',
     181                'license_key' => ! empty( $license ) && isset( $license['key'] ) ? $license['key'] : ''
    182182            ];
    183183
  • wp-dark-mode/trunk/includes/appsero/src/Client.php

    r2867708 r2867710  
    1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
     1<?php
    22/**
    33 * Appsero Client
     
    290290         * @return string
    291291         */
    292         public function __trans( $text ) { // phpcs:ignore
     292        public function __trans( $text ) {
    293293            return call_user_func( '__', $text, $this->textdomain );
    294294        }
  • wp-dark-mode/trunk/includes/appsero/src/Insights.php

    r2867708 r2867710  
    1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
     1<?php
    22/**
    33 * Appsero Insights
  • wp-dark-mode/trunk/includes/appsero/src/License.php

    r2867708 r2867710  
    1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
     1<?php
    22/**
    33 * Appsero License Checker
     
    170170                'license_key' => $license_key,
    171171                'url'         => esc_url( home_url() ),
    172                 'is_local'    => $this->client->is_local_server(),
     172                'is_local'    => $this->client->is_local_server()
    173173            ];
    174174
     
    178178                return [
    179179                    'success' => false,
    180                     'error'   => $response->get_error_message(),
     180                    'error'   => $response->get_error_message()
    181181                ];
    182182            }
     
    187187                return [
    188188                    'success' => false,
    189                     'error'   => $this->client->__trans( 'Unknown error occurred, Please try again.' ),
     189                    'error'   => $this->client->__trans( 'Unknown error occurred, Please try again.' )
    190190                ];
    191191            }
     
    194194                $response = [
    195195                    'success' => false,
    196                     'error'   => $response['errors']['license_key'][0],
     196                    'error'   => $response['errors']['license_key'][0]
    197197                ];
    198198            }
     
    228228                'icon_url'    => '',
    229229                'position'    => null,
    230                 'parent_slug' => '',
     230                'parent_slug' => ''
    231231            ];
    232232
     
    265265
    266266                if ( isset( $_POST['_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_nonce'] ) ), $this->client->name ) ) {
    267                     $this->license_form_submit( $_POST );
     267                    $this->license_form_submit( $_POST );
    268268                } else {
    269269                    $this->error = esc_html__( 'You are not allowed to do this action.', 'wp-dark-mode' );
    270                 }
     270                }
    271271            }
    272272
     
    289289                    <div class="appsero-license-details">
    290290                       
    291                         <?php if ( ( $license && isset( $license['status'] ) && 'activate' === sanitize_text_field( $license['status'] ) ) ) : ?>
     291                        <?php if ( ( $license && isset( $license['status'] ) && 'activate' === sanitize_text_field( $license['status'] ) ) ) : ?>
    292292                        <p>
    293                             <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( '<strong>%s</strong> license is activated.' ), esc_html( $license['title'] ) ) ); ?>
     293                        <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( '<strong>%s</strong> license is activated.' ), esc_html( $license['title'] ) ) ); ?>
    294294                        </p>
    295                         <?php else : ?>
     295                        <?php else: ?>
    296296                        <p>
    297297                            <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( 'Activate <strong>%s</strong> by your license key to get professional support and automatic update from your WordPress dashboard.' ), esc_html( $this->client->name ) ) ); ?>
     
    703703                'title'            => $response['title'],
    704704                'source_id'        => $response['source_identifier'],
    705                 'recurring'        => $response['recurring'],
     705                'recurring'        => $response['recurring']
    706706            ];
    707707
     
    734734            $data = [
    735735                'key'    => '',
    736                 'status' => 'deactivate',
     736                'status' => 'deactivate'
    737737            ];
    738738
  • wp-dark-mode/trunk/includes/appsero/src/Updater.php

    r2867695 r2867710  
    1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
     1<?php
    22/**
    33 * Appsero Updater
     
    179179                'slug'        => $this->client->slug,
    180180                'basename'    => $this->client->basename,
    181                 'license_key' => ! empty( $license ) && isset( $license['key'] ) ? $license['key'] : '',
     181                'license_key' => ! empty( $license ) && isset( $license['key'] ) ? $license['key'] : ''
    182182            ];
    183183
Note: See TracChangeset for help on using the changeset viewer.