📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:32:01
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_recent_news.php
<?php $post_term_options = pxl_get_grid_term_options('post'); pxl_add_custom_widget( array( 'name' => 'pxl_recent_news', 'title' => esc_html__('Case Recent News', 'berich' ), 'icon' => 'eicon-posts-ticker', 'categories' => array('pxltheme-core'), 'params' => array( 'sections' => array( array( 'name' => 'tab_source', 'label' => esc_html__('Source', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'controls' => array( array( 'name' => 'source', 'label' => esc_html__('Select Categories', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT2, 'multiple' => true, 'options' => $post_term_options, ), array( 'name' => 'orderby', 'label' => esc_html__('Order By', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'date', 'options' => [ 'date' => esc_html__('Date', 'berich' ), 'ID' => esc_html__('ID', 'berich' ), 'author' => esc_html__('Author', 'berich' ), 'title' => esc_html__('Title', 'berich' ), 'rand' => esc_html__('Random', 'berich' ), ], ), array( 'name' => 'order', 'label' => esc_html__('Sort Order', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'desc', 'options' => [ 'desc' => esc_html__('Descending', 'berich' ), 'asc' => esc_html__('Ascending', 'berich' ), ], ), array( 'name' => 'limit', 'label' => esc_html__('Total items', 'berich' ), 'type' => \Elementor\Controls_Manager::NUMBER, 'default' => '4', ), ), ), array( 'name' => 'tab_display', 'label' => esc_html__('Display Options', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'controls' => array( array( 'name' => 'box_title', 'label' => esc_html__('Box Title', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'label_block' => true, ), array( 'name' => 'show_date', 'label' => esc_html__('Show Date', 'berich' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => 'true', ), array( 'name' => 'show_category', 'label' => esc_html__('Show Categories', 'berich' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => 'true', ), array( 'name' => 'title_typography', 'label' => esc_html__('Title Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-recent-news .pxl-post--title, {{WRAPPER}} .pxl-recent-news .pxl-box--title', ), ), ), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel