芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/elementor/modules/atomic-widgets/widgets/atomic-image.php
get_atomic_settings(); if ( ! isset( $settings['image'] ) ) { return; } $attrs = array_filter( array_merge( $settings['image'], [ 'class' => $settings['classes'] ?? '' ] ) ); $attrs['src'] = esc_url( $attrs['src'] ); Utils::print_wp_kses_extended( sprintf( '
', Utils::render_html_attributes( $attrs ) ), [ 'image' ] ); } protected function define_atomic_controls(): array { $content_section = Section::make() ->set_label( esc_html__( 'Content', 'elementor' ) ) ->set_items( [ Image_Control::bind_to( 'image' ), ] ); return [ $content_section, ]; } protected static function define_props_schema(): array { return [ 'classes' => Classes_Prop_Type::make() ->default( [] ), 'image' => Image_Prop_Type::make() ->default_url( Utils::get_placeholder_image_src() ) ->default_size( 'full' ), ]; } }