Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/uploads/flags/tiers.tar
Назад
module.php 0000644 00000002527 14720517674 0006565 0 ustar 00 <?php namespace ElementorPro\Modules\Tiers; use Elementor\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Module extends \Elementor\Core\Base\Module { public function get_name() { return 'tiers'; } /** * @param array $texts * @return string */ public static function get_promotion_template( $texts, $is_marionette_template = false ) { ob_start(); if ( $is_marionette_template ) { ?> <script type="text/template" id="tmpl-elementor-promotion"> <?php } ?> <div class="elementor-nerd-box"> <img class="elementor-nerd-box-icon" src="<?php echo esc_url( ELEMENTOR_ASSETS_URL . 'images/go-pro.svg' ); ?>" loading="lazy" /> <div class="elementor-nerd-box-title"><?php Utils::print_unescaped_internal_string( $texts['title'] ); ?></div> <?php foreach ( $texts['messages'] as $message ) : ?> <div class="elementor-nerd-box-message"><?php Utils::print_unescaped_internal_string( $message ); ?></div> <?php endforeach; ?> <?php if ( ! empty( $texts['link'] ) ) : ?> <a class="elementor-button go-pro" href="<?php echo esc_url( ( $texts['link'] ) ); ?>" target="_blank"> <?php echo esc_html__( 'Upgrade Now', 'elementor-pro' ); ?> </a> <?php endif; ?> </div> <?php if ( $is_marionette_template ) { ?> </script> <?php } return ob_get_clean(); } } admin-menu-items/base-promotion-item.php 0000644 00000003162 14720517674 0014337 0 ustar 00 <?php // Copied from Core. Remove when it is safe. namespace ElementorPro\Modules\Tiers\AdminMenuItems; use Elementor\Modules\Promotions\AdminMenuItems\Interfaces\Promotion_Menu_Item; use Elementor\Settings; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } abstract class Base_Promotion_Item implements Promotion_Menu_Item { public function get_name() { return 'base_promotion'; } public function is_visible() { return true; } public function get_parent_slug() { return Settings::PAGE_ID; } public function get_capability() { return 'manage_options'; } public function get_cta_text() { return esc_html__( 'Upgrade Now', 'elementor-pro' ); } public function get_image_url() { return ELEMENTOR_ASSETS_URL . 'images/go-pro-wp-dashboard.svg'; } public function get_promotion_description() { return ''; } public function render() { $config = [ 'title' => $this->get_promotion_title(), 'description' => $this->get_promotion_description(), 'image' => $this->get_image_url(), 'upgrade_text' => $this->get_cta_text(), 'upgrade_url' => $this->get_cta_url(), ]; ?> <div class="wrap"> <div class="elementor-blank_state"> <img src="<?php echo esc_url( $config['image'] ); ?>" loading="lazy" /> <h3><?php echo esc_html( $config['title'] ); ?></h3> <?php if ( $config['description'] ) : ?> <p><?php echo esc_html( $config['description'] ); ?></p> <?php endif; ?> <a class="elementor-button go-pro" href="<?php echo esc_url( $config['upgrade_url'] ); ?>"> <?php echo esc_html( $config['upgrade_text'] ); ?> </a> </div> </div> <?php } } admin-menu-items/base-promotion-template.php 0000644 00000005440 14720517674 0015215 0 ustar 00 <?php // Copied from Core. Remove when it is safe. namespace ElementorPro\Modules\Tiers\AdminMenuItems; use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page; use ElementorPro\Core\Utils\Promotions\Validate_Promotion; use Elementor\Settings; use Elementor\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } abstract class Base_Promotion_Template implements Admin_Menu_Item_With_Page { abstract protected function get_promotion_title():string; abstract protected function get_cta_url():string; abstract protected function get_content_lines():array; abstract protected function get_video_url():string; public function is_visible() { return true; } public function get_parent_slug() { return Settings::PAGE_ID; } public function get_capability() { return 'manage_options'; } protected function get_cta_text() { return esc_html__( 'Upgrade Now', 'elementor-pro' ); } /** * Should the promotion have a side note. * @return string */ protected function get_side_note():string { return ''; } private function get_lines() { ob_start(); if ( ! empty( $this->get_content_lines() ) ) { ?> <ul> <?php foreach ( $this->get_content_lines() as $item ) { ?> <li><?php Utils::print_unescaped_internal_string( $item ); ?></li> <?php } ?> </ul> <?php } return ob_get_clean(); } public function render() { $promotion_data = $this->get_promotion_data(); ?> <div class="e-feature-promotion"> <div class="e-feature-promotion_data"> <h3><?php Utils::print_unescaped_internal_string( $promotion_data['promotion_title'] ); ?></h3> <?php Utils::print_unescaped_internal_string( $promotion_data['lines'] ); ?> <a class="elementor-button go-pro" href="<?php echo esc_url( $promotion_data['cta_url'] ); ?>" target="_blank"> <?php Utils::print_unescaped_internal_string( $promotion_data['cta_text'] ); ?> </a> <?php if ( ! empty( $promotion_data['side_note'] ) ) { ?> <div class="side-note"> <p><?php Utils::print_unescaped_internal_string( $promotion_data['side_note'] ); ?></p> </div> <?php } ?> </div> <iframe class="e-feature-promotion_iframe" src="<?php Utils::print_unescaped_internal_string( $promotion_data['video_url'] ); ?>&rel=0" title="Elementor" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> </div> <?php } /** * @return array */ private function get_promotion_data(): array { return [ 'promotion_title' => $this->get_promotion_title(), 'cta_url' => $this->get_cta_url(), 'cta_text' => $this->get_cta_text(), 'video_url' => $this->get_video_url(), 'lines' => $this->get_lines(), 'side_note' => $this->get_side_note(), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка