芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/elementor/modules/promotions/widgets/pro-widget-promotion.php
widget_data['widget_name']; } public function get_title() { return $this->widget_data['widget_title']; } public function on_import( $element ) { $element['settings']['__should_import'] = true; return $element; } protected function register_controls() {} protected function render() { if ( $this->is_editor_render() ) { $this->render_promotion(); } else { $this->render_empty_content(); } } private function is_editor_render(): bool { return \Elementor\Plugin::$instance->editor->is_edit_mode(); } private function render_promotion() { $promotion = Filtered_Promotions_Manager::get_filtered_promotion_data( [ 'image_url' => esc_url( $this->get_promotion_image_url() ), 'text' => sprintf( esc_html__( 'This result includes the Elementor Pro %s widget. Upgrade now to unlock it and grow your web creation toolkit.', 'elementor' ), esc_html( $this->widget_data['widget_title'] ) ), 'upgrade_url' => esc_url( 'https://go.elementor.com/go-pro-element-pro/' ), ], 'elementor/pro-widget/promotion', 'upgrade_url' ); ?>
widget_data = [ 'widget_name' => $args['widget_name'], 'widget_title' => $args['widget_title'], ]; parent::__construct( $data, $args ); } public function render_plain_content( $instance = [] ) {} }