File manager - Edit - /home/aresglob/public_html/wp/wp-includes/images/smilies/classes.zip
Back
PK 7k[�R]�2 2 class-bsf-analytics-helper.phpnu �[��� <?php /** * BSF analytics Helper Class File. * * @package bsf-analytics */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! class_exists( 'BSF_Analytics_Helper' ) ) { /** * BSF analytics stat class. */ class BSF_Analytics_Helper { /** * Check is error in the received response. * * @param object $response Received API Response. * @return array $result Error result. */ public static function is_api_error( $response ) { $result = array( 'error' => false, 'error_message' => __( 'Oops! Something went wrong. Please refresh the page and try again.', 'astra-sites' ), 'error_code' => 0, ); if ( is_wp_error( $response ) ) { $result['error'] = true; $result['error_message'] = $response->get_error_message(); $result['error_code'] = $response->get_error_code(); } elseif ( ! empty( wp_remote_retrieve_response_code( $response ) ) && ! in_array( wp_remote_retrieve_response_code( $response ), array( 200, 201, 204 ), true ) ) { $result['error'] = true; $result['error_message'] = wp_remote_retrieve_response_message( $response ); $result['error_code'] = wp_remote_retrieve_response_code( $response ); } return $result; } /** * Get API headers * * @since 1.1.6 * @return array<string, string> */ public static function get_api_headers() { return array( 'Content-Type' => 'application/json', 'Accept' => 'application/json', ); } /** * Get API URL for sending analytics. * * @return string API URL. * @since 1.0.0 */ public static function get_api_url() { return defined( 'BSF_ANALYTICS_API_BASE_URL' ) ? BSF_ANALYTICS_API_BASE_URL : 'https://analytics.brainstormforce.com/'; } /** * Check if the current screen is allowed for the survey. * * This function checks if the current screen is one of the allowed screens for displaying the survey. * It uses the `get_current_screen` function to get the current screen information and compares it with the list of allowed screens. * * @since 1.1.6 * @return bool True if the current screen is allowed, false otherwise. */ public static function is_allowed_screen() { // This filter allows to dynamically modify the list of allowed screens for the survey. $allowed_screens = apply_filters( 'uds_survey_allowed_screens', array( 'plugins' ) ); $current_screen = get_current_screen(); // Check if $current_screen is a valid object before accessing its properties. if ( ! is_object( $current_screen ) ) { return false; // Return false if current screen is not valid. } $screen_id = $current_screen->id; if ( ! empty( $screen_id ) && in_array( $screen_id, $allowed_screens, true ) ) { return true; } return false; } } }PK �l[�n��{ { class-astra-sites-admin.phpnu �[��� <?php /** * Admin Notices * * @since 2.3.7 * @package Astra Sites */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Sites_Admin' ) ) : /** * Admin */ class Astra_Sites_Admin { /** * Instance of Astra_Sites_Admin * * @since 2.3.7 * @var (Object) Astra_Sites_Admin */ private static $instance = null; /** * Instance of Astra_Sites_Admin. * * @since 2.3.7 * * @return object Class object. */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * Constructor. * * @since 2.3.7 */ private function __construct() { add_action( 'astra_notice_before_markup', array( $this, 'notice_assets' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'admin_assets' ) ); add_action( 'astra_sites_after_site_grid', array( $this, 'custom_upgrade_cta' ) ); add_filter( 'astra_sites_quick_links', array( $this, 'change_quick_links' ) ); } /** * Change quick links. * * @since 2.6.18 * @param array<string, array<string, mixed>> $links All quick links. * @return array<string, array<string, mixed>> */ public function change_quick_links( array $links = array() ) { if ( ! isset( $links['links']['upgrade'] ) ) { return $links; } // Change default call to action link. $links['links']['upgrade']['url'] = Astra_Sites::get_instance()->get_cta_link( 'quick-links-corner' ); return $links; } /** * Admin Assets * * @return void */ public function admin_assets() { $current_screen = get_current_screen(); if ( null !== $current_screen && 'appearance_page_starter-templates' !== $current_screen->id ) { return; } $white_label = Astra_Sites_White_Label::get_instance(); if ( $white_label instanceof Astra_Sites_White_Label && $white_label->is_white_labeled() ) { return; } wp_enqueue_style( 'astra-sites-admin-page', ASTRA_SITES_URI . 'assets/css/admin.css', array(), ASTRA_SITES_VER ); wp_enqueue_script( 'astra-sites-admin-js', ASTRA_SITES_URI . 'assets/js/admin.js', array( 'astra-sites-admin-page', 'jquery' ), ASTRA_SITES_VER, true ); } /** * Add Custom CTA Infobar. * * @return void */ public function custom_upgrade_cta() { $current_screen = get_current_screen(); if ( null !== $current_screen && 'appearance_page_starter-templates' !== $current_screen->id ) { return; } $white_label = Astra_Sites_White_Label::get_instance(); if ( $white_label instanceof Astra_Sites_White_Label && $white_label->is_white_labeled() ) { return; } $custom_cta_content_data = apply_filters( 'astra_sites_custom_cta_vars', array( 'text' => __( 'Get unlimited access to all premium Starter Templates and more, at a single low cost!', 'astra-sites' ), 'button_text' => __( 'Get Essential Toolkit', 'astra-sites' ), 'cta_link' => Astra_Sites::get_instance()->get_cta_link(), ) ); $html = '<div class="astra-sites-custom-cta-wrap">'; $html .= '<span class="astra-sites-cta-title">' . esc_html( $custom_cta_content_data['text'] ) . '</span>'; $html .= '<span class="astra-sites-cta-btn">'; $html .= '<a class="astra-sites-cta-link" href="' . esc_url( $custom_cta_content_data['cta_link'] ) . '" target="_blank" >' . esc_html( $custom_cta_content_data['button_text'] ) . '</a>'; $html .= '</span>'; $html .= '</div>'; echo wp_kses_post( $html ); } /** * Enqueue Astra Notices CSS. * * @since 2.3.7 * * @return void */ public static function notice_assets() { $file = is_rtl() ? 'astra-notices-rtl.css' : 'astra-notices.css'; wp_enqueue_style( 'astra-sites-notices', ASTRA_SITES_URI . 'assets/css/' . $file, array(), ASTRA_SITES_VER ); } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Sites_Admin::get_instance(); endif; PK z5p[UM��6 6 zipwp-images-script.phpnu �[��� <?php /** * Zipwp Images Script * * @since 1.0.0 * @package Zipwp Images Script */ namespace ZipWP_Images\Classes; /** * Ai_Builder */ class Zipwp_Images_Script { /** * Instance * * @access private * @var object Class Instance. * @since 1.0.0 */ private static $instance = null; /** * Constructor. * * @since 1.0.0 */ public function __construct() { add_action( 'admin_enqueue_scripts', array( $this, 'editor_load_scripts' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'bb_editor_load_scripts' ) ); add_action( 'elementor/editor/before_enqueue_scripts', array( $this, 'editor_load_scripts' ) ); } /** * Initiator * * @since 1.0.0 * @return object initialized object of class. */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * Load script for block editor and elementor editor. * * @since 1.0.0 * @return void */ public function editor_load_scripts(): void { if ( ! is_admin() ) { return; } $this->load_script(); } /** * Load script for block BB edi
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings