Submit
Path:
~
/
home
/
getwphos
/
public_html
/
wastefull
/
wp-content
/
plugins
/
elementor-theme-core
/
inc
/
elementor
/
File Content:
container.php
<?php namespace Elementor\Includes\Elements; use Elementor\Shapes; use Elementor\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class ETC_Element_Container extends Container { /** * @var \Elementor\Core\Kits\Documents\Kit */ private $active_kit; /** * Container constructor. * * @param array $data * @param array|null $args * * @return void */ public function __construct( array $data = [], array $args = null ) { parent::__construct( $data, $args ); } /** * Render the element JS template. * * @return void */ protected function content_template() { $beforeContainer = apply_filters( 'etc-custom-container/before-elementor-editor-container-inner', '', [] ); ?> <# print('<?php echo $beforeContainer ?>'); if ( 'boxed' === settings.content_width ) { #> <div class="e-con-inner"> <# } if ( settings.background_video_link ) { let videoAttributes = 'autoplay muted playsinline'; if ( ! settings.background_play_once ) { videoAttributes += ' loop'; } view.addRenderAttribute( 'background-video-container', 'class', 'elementor-background-video-container' ); if ( ! settings.background_play_on_mobile ) { view.addRenderAttribute( 'background-video-container', 'class', 'elementor-hidden-phone' ); } #> <div {{{ view.getRenderAttributeString( 'background-video-container' ) }}}> <div class="elementor-background-video-embed"></div> <video class="elementor-background-video-hosted elementor-html5-video" {{ videoAttributes }}></video> </div> <# } #> <div class="elementor-shape elementor-shape-top"></div> <div class="elementor-shape elementor-shape-bottom"></div> <?php echo apply_filters( 'etc-custom-container/before-elementor-editor-container', '', [] ); ?> <# if ( 'boxed' === settings.content_width ) { #> </div> <# } #> <?php //echo apply_filters( 'etc-custom-container/after-elementor-editor-container', '', [] ); } /** * Render the Container's shape divider. * TODO: Copied from `section.php`. * * Used to generate the shape dividers HTML. * * @param string $side - Shape divider side, used to set the shape key. * * @return void */ protected function render_shape_divider( $side ) { $settings = $this->get_active_settings(); $base_setting_key = "shape_divider_$side"; $negative = ! empty( $settings[ $base_setting_key . '_negative' ] ); $shape_path = Shapes::get_shape_path( $settings[ $base_setting_key ], $negative ); if ( ! is_file( $shape_path ) || ! is_readable( $shape_path ) ) { return; } ?> <div class="elementor-shape elementor-shape-<?php echo esc_attr( $side ); ?>" data-negative="<?php Utils::print_unescaped_internal_string( $negative ? 'true' : 'false' ); ?>"> <?php // PHPCS - The file content is being read from a strict file path structure. echo Utils::file_get_contents( $shape_path ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </div> <?php } /** * Print safe HTML tag for the element based on the element settings. * * @return void */ protected function print_html_tag() { $html_tag = $this->get_settings( 'html_tag' ); if ( empty( $html_tag ) ) { $html_tag = 'div'; } Utils::print_validated_html_tag( $html_tag ); } /** * Before rendering the container content. (Print the opening tag, etc.) * * @return void */ public function before_render() { $settings = $this->get_settings_for_display(); $link = $settings['link']; if ( ! empty( $link['url'] ) ) { $this->add_link_attributes( '_wrapper', $link ); } ?><<?php $this->print_html_tag(); ?> <?php $this->print_render_attribute_string( '_wrapper' ); ?>> <?php // add custom HTML before container echo apply_filters( 'etc-custom-container/before-elementor-container-inner', '', $settings ); // e-con-inner if ( $this->is_boxed_container( $settings ) ) { ?> <div class="e-con-inner"> <?php } $this->render_video_background(); if ( ! empty( $settings['shape_divider_top'] ) ) { $this->render_shape_divider( 'top' ); } if ( ! empty( $settings['shape_divider_bottom'] ) ) { $this->render_shape_divider( 'bottom' ); } // add custom HTML echo apply_filters( 'etc-custom-container/before-elementor-container', '', $settings ); } /** * After rendering the Container content. (Print the closing tag, etc.) * * @return void */ public function after_render() { $settings = $this->get_settings_for_display(); // add custom HTML echo apply_filters( 'etc-custom-container/after-elementor-container', '', $settings ); // if ( $this->is_boxed_container( $settings ) ) { ?> </div> <?php } // echo apply_filters( 'etc-custom-container/after-elementor-container-inner', '', $settings ); ?> </<?php $this->print_html_tag(); ?>> <?php } /** * Register the Container's controls. * * @return void */ protected function register_controls() { parent::register_controls(); do_action('etc-custom-container-register-controls', $this); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
column.php
13581 bytes
0644
container.php
5265 bytes
0644
section.php
18150 bytes
0644
N4ST4R_ID | Naxtarrr