芝麻web文件管理V1.00
编辑当前文件:/home/disqkgca/aqanet.org/wp-content/plugins/htmega-pro/includes/widgets/htmega_image_roted.php
start_controls_section( 'content_section', [ 'label' => __( 'Content', 'htmega-pro' ), ] ); $this->add_control( 'imageroted', [ 'label' => __( 'Image', 'htmega-pro' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'imagesize', 'default' => 'large', 'separator' => 'none', ] ); $this->end_controls_section(); // Style tab section $this->start_controls_section( 'style_section', [ 'label' => __( 'Style', 'htmega-pro' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'rotedimage_border', 'label' => __( 'Border', 'htmega-pro' ), 'selector' => '{{WRAPPER}} .htmega-image-roted img', ] ); $this->add_control( 'rotedimage_radius', [ 'label' => __( 'Border Radius', 'htmega-pro' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .htmega-image-roted' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .htmega-image-roted img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); } protected function render( $instance = [] ) { $settings = $this->get_settings_for_display(); $id = $this->get_id(); $this->add_render_attribute( 'image_roted', 'class', 'htmega-image-roted' ); ?>
get_render_attribute_string( 'image_roted' ); ?>>