📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:27:42
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_drop_caps.php
<?php // Register Text Editor use \Elementor\Controls_Manager; use \Elementor\Group_Control_Typography; pxl_add_custom_widget( array( 'name' => 'pxl_drop_caps', 'title' => esc_html__('Case Drop Caps', 'berich'), 'icon' => 'eicon-site-title', '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, ), 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-drop-caps' => '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-drop-caps .pxl-item--inner' => 'max-width: {{SIZE}}{{UNIT}};', ], ), ), ), array( 'name' => 'section_style_text', 'label' => esc_html__( 'Content', '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-drop-caps' => 'color: {{VALUE}};', ], ), array( 'name' => 'text_typography', 'type' => \Elementor\Group_Control_Typography::get_type(), 'label' => esc_html__( 'Typography', 'berich' ), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-drop-caps', ), ), ), array( 'name' => 'section_style_dropcaps', 'label' => esc_html__( 'Drop Caps', 'berich' ), 'tab' => Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'style', 'label' => esc_html__('Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'style-default' => 'Default', 'style-box' => 'Box', ], 'default' => 'style-default', ), array( 'name' => 'dr_color', 'label' => esc_html__( 'Text Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-drop-caps .pxl-first-letter' => 'color: {{VALUE}};', ], ), array( 'name' => 'dr_typography', 'type' => \Elementor\Group_Control_Typography::get_type(), 'label' => esc_html__( 'Typography', 'berich' ), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-drop-caps .pxl-first-letter', ), array( 'name' => 'box_color', 'label' => esc_html__( 'Box Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-drop-caps.style-box .pxl-first-letter' => 'background-color: {{VALUE}};', ], 'condition' => [ 'style' => 'style-box', ], ), array( 'name' => 'box_border_radius', 'label' => esc_html__('Box Border Radius', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-drop-caps.style-box .pxl-first-letter' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'style' => 'style-box', ], ), array( 'name' => 'box_border_type', 'label' => esc_html__( 'Box Border Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ '' => esc_html__( 'None', 'berich' ), 'solid' => esc_html__( 'Solid', 'berich' ), 'double' => esc_html__( 'Double', 'berich' ), 'dotted' => esc_html__( 'Dotted', 'berich' ), 'dashed' => esc_html__( 'Dashed', 'berich' ), 'groove' => esc_html__( 'Groove', 'berich' ), ], 'selectors' => [ '{{WRAPPER}} .pxl-drop-caps.style-box .pxl-first-letter' => 'border-style: {{VALUE}};', ], 'condition' => [ 'style' => 'style-box', ], ), array( 'name' => 'box_border_width', 'label' => esc_html__( 'Box Border Width', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .pxl-drop-caps.style-box .pxl-first-letter' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'box_border_type!' => '', ], 'responsive' => true, ), array( 'name' => 'box_border_color', 'label' => esc_html__( 'Box Border Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-drop-caps.style-box .pxl-first-letter' => 'border-color: {{VALUE}};', ], 'condition' => [ 'box_border_type!' => '', ], ), array( 'name' => 'box_width', 'label' => esc_html__('Box Width', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-drop-caps .pxl-first-letter' => 'width: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'style' => ['style-box'], ], ), array( 'name' => 'box_height', 'label' => esc_html__('Box Height', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-drop-caps .pxl-first-letter' => 'height: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'style' => ['style-box'], ], ), array( 'name' => 'box_spacer', 'label' => esc_html__('Box Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-drop-caps .pxl-first-letter' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'control_type' => 'responsive', 'condition' => [ 'style' => ['style-box'], ], ), ), ), berich_widget_animation_settings(), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel