[ 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
/
modules
/
atomic-widgets
/
elements
/
base
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 atomic-element-base.php
6,536 B
SET
[ EDIT ]
|
[ DEL ]
📄 atomic-widget-base.php
2,926 B
SET
[ EDIT ]
|
[ DEL ]
📄 element-builder.php
1,116 B
SET
[ EDIT ]
|
[ DEL ]
📄 has-atomic-base.php
10,137 B
SET
[ EDIT ]
|
[ DEL ]
📄 has-base-styles.php
1,084 B
SET
[ EDIT ]
|
[ DEL ]
📄 has-element-template.php
3,170 B
SET
[ EDIT ]
|
[ DEL ]
📄 has-template.php
1,858 B
SET
[ EDIT ]
|
[ DEL ]
📄 render-context.php
941 B
SET
[ EDIT ]
|
[ DEL ]
📄 widget-builder.php
976 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: has-template.php
<?php namespace Elementor\Modules\AtomicWidgets\Elements\Base; use Elementor\Modules\AtomicWidgets\Elements\TemplateRenderer\Template_Renderer; use Elementor\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * @mixin Has_Atomic_Base */ trait Has_Template { public function get_initial_config() { $config = parent::get_initial_config(); $config['twig_main_template'] = $this->get_main_template(); $config['twig_templates'] = $this->get_templates_contents(); return $config; } protected function render() { try { $renderer = Template_Renderer::instance(); foreach ( $this->get_templates() as $name => $path ) { if ( $renderer->is_registered( $name ) ) { continue; } $renderer->register( $name, $path ); } $context = [ 'id' => $this->get_id(), 'interaction_id' => $this->get_interaction_id(), 'type' => $this->get_name(), 'settings' => $this->get_atomic_settings(), 'base_styles' => $this->get_base_styles_dictionary(), ]; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo $renderer->render( $this->get_main_template(), $context ); } catch ( \Exception $e ) { if ( Utils::is_elementor_debug() ) { throw $e; } } } protected function get_templates_contents() { return array_map( fn ( $path ) => Utils::file_get_contents( $path ), $this->get_templates() ); } protected function get_main_template() { $templates = $this->get_templates(); if ( count( $templates ) > 1 ) { Utils::safe_throw( 'When having more than one template, you should override this method to return the main template.' ); return null; } foreach ( $templates as $key => $path ) { // Returns first key in the array. return $key; } return null; } abstract protected function get_templates(): array; }