Graybyt3 Was Here
Linux webservices-17 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Apache/2.4.65 (Unix) OpenSSL/1.1.1f
127.0.0.1
/
home
/
sihate-co
/
webapps
/
sihate-co
/
public
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
custom-attributes
[ HOME ]
Exec
Submit
File Name : module.php
<?php namespace ElementorPro\Modules\CustomAttributes; use Elementor\Controls_Stack; use Elementor\Controls_Manager; use Elementor\Element_Base; use Elementor\Utils; use ElementorPro\Base\Module_Base; use ElementorPro\License\API; use ElementorPro\Modules\Tiers\Module as Tiers; use ElementorPro\Plugin; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Module extends Module_Base { const LICENSE_FEATURE_NAME = 'custom-attributes'; public function __construct() { parent::__construct(); $this->add_actions(); } public function get_name() { return 'custom-attributes'; } private function get_black_list_attributes() { static $black_list = null; if ( null === $black_list ) { $black_list = [ 'id', 'class', 'data-id', 'data-settings', 'data-element_type', 'data-widget_type', 'data-model-cid' ]; /** * Elementor attributes black list. * * Filters the attributes that won't be rendered in the wrapper element. * * By default Elementor doesn't render some attributes to prevent things * from breaking down. This hook allows developers to alter this list of * attributes. * * @since 2.2.0 * * @param array $black_list A black list of attributes. */ $black_list = apply_filters( 'elementor_pro/element/attributes/black_list', $black_list ); } return $black_list; } /** * @param Element_Base $element */ public function replace_go_pro_custom_attributes_controls( Element_Base $element ) { Plugin::elementor()->controls_manager->remove_control_from_stack( $element->get_unique_name(), [ 'section_custom_attributes_pro', 'custom_attributes_pro' ] ); $this->register_custom_attributes_controls( $element ); } public function register_custom_attributes_controls( Element_Base $element ) { $element_name = $element->get_name(); $element->start_controls_section( '_section_attributes', [ 'label' => esc_html__( 'Attributes', 'elementor-pro' ), 'tab' => Controls_Manager::TAB_ADVANCED, ] ); $element->add_control( '_attributes', [ 'label' => esc_html__( 'Custom Attributes', 'elementor-pro' ), 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'ai' => [ 'active' => false, ], 'placeholder' => esc_html__( 'key|value', 'elementor-pro' ), 'description' => sprintf( /* translators: %s: The `|` separate char. */ esc_html__( 'Set custom attributes for the wrapper element. Each attribute in a separate line. Separate attribute key from the value using %s character.', 'elementor-pro' ), '<code>|</code>' ), 'classes' => 'elementor-control-direction-ltr', ] ); $element->end_controls_section(); } /** * @param $element Controls_Stack * @param $section_id string */ public function register_controls( Controls_Stack $element, $section_id ) { if ( ! $element instanceof Element_Base ) { return; } // Remove Custom CSS Banner (From free version) if ( 'section_custom_attributes_pro' !== $section_id ) { return; } if ( ! API::is_licence_has_feature( self::LICENSE_FEATURE_NAME, API::BC_VALIDATION_CALLBACK ) ) { $this->replace_controls_with_upgrade_promotion( $element ); return; } $this->replace_go_pro_custom_attributes_controls( $element ); } /** * @param $element Element_Base */ public function render_attributes( Element_Base $element ) { $settings = $element->get_settings_for_display(); if ( ! empty( $settings['_attributes'] ) ) { $attributes = Utils::parse_custom_attributes( $settings['_attributes'], "\n" ); $black_list = $this->get_black_list_attributes(); foreach ( $attributes as $attribute => $value ) { if ( ! in_array( $attribute, $black_list, true ) ) { $element->add_render_attribute( '_wrapper', $attribute, $value ); } } } } protected function add_actions() { add_action( 'elementor/element/after_section_end', [ $this, 'register_controls' ], 10, 2 ); if ( API::is_licence_has_feature( static::LICENSE_FEATURE_NAME, API::BC_VALIDATION_CALLBACK ) ) { add_action( 'elementor/element/after_add_attributes', [ $this, 'render_attributes' ] ); } } private function replace_controls_with_upgrade_promotion( Element_Base $element ) { Plugin::elementor()->controls_manager->remove_control_from_stack( $element->get_unique_name(), [ 'section_custom_attributes_pro', 'section_custom_attributes_pro' ] ); $element->start_controls_section( 'section_custom_attributes_promotion', [ 'label' => esc_html__( 'Attributes', 'elementor-pro' ), 'tab' => Controls_Manager::TAB_ADVANCED, ] ); $element->add_control( 'custom_attributes_promotion', [ 'type' => Controls_Manager::RAW_HTML, 'raw' => Tiers::get_promotion_template( [ 'title' => esc_html__( 'Meet Our Attributes', 'elementor-pro' ), 'messages' => [ esc_html__( 'Add custom HTML attributes to any element.', 'elementor-pro' ), ], 'link' => 'https://go.elementor.com/go-pro-advanced-attributes/', ] ), ] ); $element->end_controls_section(); } }
Back
Folder Name
Submit
File Name
File Content
Submit
System Information
Uname > Linux webservices-17 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 Software > Apache/2.4.65 (Unix) OpenSSL/1.1.1f PHP > 7.4.33 Protocol > HTTP/1.0 IP / Port > 127.0.0.1 / 80 Mail > ON Curl > ON Owner > sihate-co MySQL > OFF Disable Function > getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abort,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server
*ReClick For Close
File : BlackDragon /about/function.php
Name
Type
Size
Owner/Group
Permission
Last Modified
Actions
.
dir
-
1002/1003
0555
2024-12-09 10:40:55
..
dir
-
1002/1003
0555
2024-12-09 10:40:55
module.php
text/x-php
5 KB
1002/1003
0644
2025-03-17 06:40:31
© BlackDragon