📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 11:52:43
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_text_editor.php
<?php // Register Text Editor use \Elementor\Controls_Manager; use \Elementor\Group_Control_Typography; pxl_add_custom_widget( array( 'name' => 'pxl_text_editor', 'title' => esc_html__('Case Text Editor', 'berich'), 'icon' => 'eicon-text', 'categories' => array('pxltheme-core'), 'params' => array( 'sections' => array( array( 'name' => 'section_content', 'label' => esc_html__('Text Editor', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'controls' => array( array( 'name' => 'text_ed', 'label' => '', 'type' => Controls_Manager::WYSIWYG, 'default' => esc_html__( 'Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'berich' ), 'description' => 'Create Highlight text width shortcode: [pxl_highlight text="Text Demo"]', ), array( 'name' => 'align', 'label' => esc_html__( 'Alignment', 'berich' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'control_type' => 'responsive', 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'berich' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'berich' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'berich' ), 'icon' => 'eicon-text-align-right', ], 'justify' => [ 'title' => esc_html__( 'Justified', 'berich' ), 'icon' => 'eicon-text-align-justify', ], ], 'selectors' => [ '{{WRAPPER}} .pxl-text-editor' => 'text-align: {{VALUE}};', ], ), array( 'name' => 't_width', 'label' => esc_html__('Max Width', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 3000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-text-editor .pxl-item--inner' => 'max-width: {{SIZE}}{{UNIT}};', ], ), ), ), array( 'name' => 'section_style_text', 'label' => esc_html__( 'Text', 'berich' ), 'tab' => Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'text_color', 'label' => esc_html__( 'Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-text-editor' => 'color: {{VALUE}};', ], ), array( 'name' => 'color_gradient', 'label' => esc_html__('Color Gradient', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => false, ), array( 'name' => 'color_gradient_from', 'label' => esc_html__( 'Gradient - Color From', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-text-editor' => '--gradient-color-from: {{VALUE}};', ], ), array( 'name' => 'color_gradient_to', 'label' => esc_html__( 'Gradient - Color To', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-text-editor' => '--gradient-color-to: {{VALUE}};', ], ), array( 'name' => 'text_typography', 'type' => \Elementor\Group_Control_Typography::get_type(), 'label' => esc_html__( 'Typography', 'berich' ), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-text-editor', ), ), ), array( 'name' => 'section_style_link', 'label' => esc_html__( 'Link', 'berich' ), 'tab' => Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'link_color', 'label' => esc_html__( 'Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-text-editor a' => 'color: {{VALUE}};', ], ), array( 'name' => 'link_color_hover', 'label' => esc_html__( 'Color Hover', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-text-editor a:hover' => 'color: {{VALUE}};', ], ), array( 'name' => 'link_typography', 'type' => \Elementor\Group_Control_Typography::get_type(), 'label' => esc_html__( 'Typography', 'berich' ), 'selector' => '{{WRAPPER}} .pxl-text-editor a', 'control_type' => 'group', ), ), ), array( 'name' => 'section_style_title_highlight', 'label' => esc_html__('Highlight', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'highlight_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-text-editor .pxl-text--highlight' => 'color: {{VALUE}};', ], ), array( 'name' => 'highlight_box_color', 'label' => esc_html__('Box Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-text-editor .pxl-text--highlight' => 'background-color: {{VALUE}};', ], ), array( 'name' => 'highlight_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-text-editor .pxl-text--highlight', ), ), ), berich_widget_animation_settings(), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel