$15 GRAYBYTE WORDPRESS FILE MANAGER $25

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/cepurhuye.rw/wp-content/plugins/bopea-function/block/

HOME
Current File : /home/bravrvjk/cepurhuye.rw/wp-content/plugins/bopea-function/block//featured-layout-13.php
<?php
namespace bopeaElementor\Widgets;
use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Group_Control_Image_Size;
use Elementor\Group_Control_Typography;
use Elementor\Schemes\Color;
use Elementor\Schemes\Typography;
use Elementor\Utils;
use Elementor\Control_Media;
use Elementor\Group_Control_Border;
use Elementor\Group_Control_Box_Shadow;
use Elementor\Group_Control_Text_Shadow;
use Elementor\Group_Control_Background;
use Elementor\Repeater;
use Elementor\Icons_Manager;
if ( ! defined( 'ABSPATH' ) ) exit;

class bopea_feature_layout13 extends Widget_Base {

  public $base;

    public function get_name() {
        return 'bopea-feature-layout13';
    }

    public function get_title() {
        return esc_html__( 'Mix Classic + Small List', 'bopea-function' );
    }

    public function get_icon() { 
        return 'eicon-elementor-circle jl-icons';
    }

    public function get_categories() {
       return [ 'bopea-elements' ];
    }

    protected function register_controls() {

    $this->start_controls_section(
            'section_tab',
            [
                'label' => esc_html__('Post Query And Settings', 'bopea-function'),
            ]
        );

        $this->add_control(
          'post_type',
          [
              'label' =>esc_html__('Post types', 'bopea-function'),
              'description' => esc_html__( 'Choose post type to display posts', 'bopea-function' ),
              'type'      => Controls_Manager::SELECT,
              'default'   => 'post',            
               'options'   => $this->post_get_type(),             
          ]
      ); 

      $this->add_control(
        'post_type_tax',
        [
            'label' =>esc_html__('Post taxonomy', 'bopea-function'),
            'description' => esc_html__( 'Choose post type (category or tag)', 'bopea-function' ),
            'type'      => Controls_Manager::SELECT,
            'default'   => 'none',          
             'options'   => $this->post_get_taxs(),
             'condition' => [
               'post_type!'    => ['post']
             ]  
                        
        ]
    ); 

    $this->add_control(
      'term_slugs', [
        'label'       => esc_html__( 'Term Slug', 'bopea-function' ),
        'description' => esc_html__( 'Example: slug1,slug2,slug3', 'bopea-function' ),
        'type'        => Controls_Manager::TEXT,
        'label_block'   => true,
        'condition' => [
          'post_type!'    => ['post']
        ]  
      ]
      );
        
        $this->add_control(
            'categories',
            [
                'label' =>esc_html__('Select Categories', 'bopea-function'),
                'type'      => Controls_Manager::SELECT2,
                 'options'   => $this->post_categories(),
                'label_block' => true,
                'multiple'  => true,
                'condition' => [
                  'post_type'    => ['post']
                ]  
            ]
        ); 
         

        $this->add_control(
      'tags', [
        'label'       => esc_html__( 'Tag Slug', 'bopea-function' ),
        'description' => esc_html__( 'Example: tagslug1,tagslug2,tagslug3', 'bopea-function' ),
        'type'        => Controls_Manager::TEXT,
        'label_block'   => true,
        'condition' => [
          'post_type'    => ['post']
        ]  
      ]
      );  

        $this->add_control(
            'author',
            [
                'label' =>esc_html__('Author Filter', 'bopea-function'),
                'type'      => Controls_Manager::SELECT,
                'default'   => 'none',
                 'options'   => $this->post_author(),
                 'condition' => [
                   'post_type'    => ['post']
                 ]  
            ]
        ); 
        
      //   $this->add_control(
      //     'author',
      //     [
      //         'label' =>esc_html__('Select Author', 'bopea-function'),
      //         'type'      => Controls_Manager::SELECT2,
      //          'options'   => $this->post_author(),
      //         'label_block' => true,
      //         'multiple'  => true,
      //     ]
      // ); 
               

        $this->add_control(
      'posts_per_page',
      array(
        'label'       => esc_html__( 'Posts per Page', 'bopea-function' ),
        'type'        => Controls_Manager::NUMBER,
        'default'     => '9'
      )
    );

        $this->add_control(
      'offset',
      array(
        'label'       => esc_html__( 'Post Offset', 'bopea-function' ),
        'type'        => Controls_Manager::NUMBER,
        'default'     => '',
      )
    );
    

    $this->add_control(
      'format',
      array(
        'label'       => esc_html__( 'Post Format', 'bopea-function' ),
        'type'        => Controls_Manager::SELECT,
        'options'   => [
                        '0'               => esc_html__( 'All', 'bopea-function' ),
                        'gallery'        => esc_html__( 'Gallery', 'bopea-function' ),
                        'video'        => esc_html__( 'Video', 'bopea-function' ),
                        'audio'        => esc_html__( 'Audio', 'bopea-function' ),
                        'quote'        => esc_html__( 'Quote', 'bopea-function' ),
                    ],
        'default'     => '0',
        'condition' => [
          'post_type'    => ['post']
        ]  
      )
    );     

    $this->add_control(
      'post_not_in', [
        'label'       => esc_html__( 'Exclude Post IDs', 'bopea-function' ),
          'description' => esc_html__( 'Example: 1,2,3', 'bopea-function' ),
          'default'     => '',
        'type'        => Controls_Manager::TEXT,
        'label_block'   => true
      ]
      );   

      $this->add_control(
      'post_in', [
        'label'       => esc_html__( 'Post IDs Filter', 'bopea-function' ),
          'description' => esc_html__( 'Example: 1,2,3', 'bopea-function' ),
          'default'     => '',
        'type'        => Controls_Manager::TEXT,
        'label_block'   => true
      ]
      );    

      $this->add_control(
        'ignore_sticky_posts',
        [
            'label' => esc_html__( 'Enable sticky posts', 'bopea-function' ),
            'type' => Controls_Manager::SWITCHER,
            'return_value' => 'yes',
            'default' => 'no',
        ]
      );

      $this->add_control(
            'order',
            [
                'label'     =>esc_html__( 'Sort Order', 'bopea-function' ),
                'type'      => Controls_Manager::SELECT,
                'default'   => 'date_post',
                'options'   => [
                  'date_post'      =>esc_html__( 'Latest post', 'bopea-function' ),                        
                  'rand'      =>esc_html__( 'Random', 'bopea-function' ),
                  'update'      =>esc_html__( 'Latest updated', 'bopea-function' ),
                  'comment_count'      =>esc_html__( 'Popular comment', 'bopea-function' ),
                  'author'      =>esc_html__( 'Author', 'bopea-function' ),
                  'popular_most'      =>esc_html__( 'Popular views', 'bopea-function' ),
                  'popular_by_month'      =>esc_html__( 'Popular views by month', 'bopea-function' ),
                  'popular_by_week'      =>esc_html__( 'Popular views by week', 'bopea-function' ),
                  'alphabetical_order_decs'      =>esc_html__( 'Title DECS', 'bopea-function' ),
                  'alphabetical_order_asc'      =>esc_html__( 'Title ACS', 'bopea-function' ),
              ],
            ]
        );

    $this->end_controls_section();
    $this->start_controls_section(
      'section_tab_style', [
        'label'  => esc_html__( 'Post Custom Style', 'bopea-function' ),
        'tab'     => Controls_Manager::TAB_STYLE,
      ]
        );     
 
        $this->add_control(
          'jl_cus_layout',
          [
              'label'     =>esc_html__( 'Layout design', 'bopea-function' ),
              'type'      => Controls_Manager::SELECT,
              'default'   => '',
              'options'   => [
                      ''      =>esc_html__( 'Main post center', 'bopea-function' ),
                      'jl_mp_ll'      =>esc_html__( 'Main post left', 'bopea-function' ),
                      'jl_mp_rl'      =>esc_html__( 'Main post right', 'bopea-function' ),
                      'jl_mp_rll'      =>esc_html__( 'Main post right with left list', 'bopea-function' ),
                  ],
          ]
        );

        $this->add_control(
          'jl_cus_img',
          [
              'label'     =>esc_html__( 'Image size', 'bopea-function' ),
              'type'      => Controls_Manager::SELECT,
              'default'   => '',
              'options'   => [
                      ''      =>esc_html__( 'Default image size', 'bopea-function' ),      
                      'bopea_large'      =>esc_html__( '1600 x 0', 'bopea-function' ),
                      'bopea_medium'      =>esc_html__( '1100 x 0', 'bopea-function' ),
                      'bopea_small'      =>esc_html__( '150 x 150', 'bopea-function' ),
                      'bopea_layouts'      =>esc_html__( '680 x 0', 'bopea-function' ),   
                      'medium'      =>esc_html__( 'Medium', 'bopea-function' ),                   
                  ],
          ]
      );   
      
      $this->add_control(
        'main_tag',
        [
            'label' => __( 'Main title Tag', 'bopea-function' ),
            'type' => Controls_Manager::SELECT,
            'options' => [
                'h1' => 'H1',
                'h2' => 'H2',
                'h3' => 'H3',
                'h4' => 'H4',
                'h5' => 'H5',
                'h6' => 'H6',                
                'div' => 'div',                
            ],
            'default' => 'h2',
        ]
      );
  
      $this->add_control(
        'sm_tag',
        [
            'label' => __( 'Small grid&List title Tag', 'bopea-function' ),
            'type' => Controls_Manager::SELECT,
            'options' => [
                'h1' => 'H1',
                'h2' => 'H2',
                'h3' => 'H3',
                'h4' => 'H4',
                'h5' => 'H5',
                'h6' => 'H6',                
                'div' => 'div',                
            ],
            'default' => 'h3',
        ]
      );

      $this->add_responsive_control(
        'mf_font_size',
        [
            'label' => __( 'Main title font size', 'bopea-function' ),
            'type' => Controls_Manager::SLIDER,            
            'default' => [
            'size' => 30,
            ],
            'tablet_default' => [
              'size' => 25,
            ],
            'mobile_default' => [
              'size' => 23,
            ],
            'range' => [
                'px' => [
                    'min' => 1,
                    'max' => 500,
                    'step' => 1,
                ]
            ],
            'selectors' => [            
            '{{WRAPPER}} .jl_fr13_inner' => '--jl-font-main: {{SIZE}}{{UNIT}};',            
            ],
        ]
      ); 

      $this->add_group_control(
        Group_Control_Typography::get_type(),
        [
            'name' => 'main_typo', 
            'label' =>esc_html__( 'Main title typography', 'bopea-function' ),               
            'selector' => '{{WRAPPER}} .jl_fr13_inner .jl_p_fr13:nth-child(1) .jl_fe_text .jl_fe_title',            
        ]
    );

        $this->add_responsive_control(
        'md_font_size',
        [
            'label' => __( 'Medium title font size', 'bopea-function' ),
            'type' => Controls_Manager::SLIDER,            
            'default' => [
            'size' => 20,
            ],
            'tablet_default' => [
              'size' => 20,
            ],
            'mobile_default' => [
              'size' => 16,
            ],
            'range' => [
                'px' => [
                    'min' => 1,
                    'max' => 500,
                    'step' => 1,
                ]
            ],
            'selectors' => [            
            '{{WRAPPER}} .jl_fr13_inner' => '--jl-font-grid: {{SIZE}}{{UNIT}};',            
            ],
        ]
      ); 

      $this->add_responsive_control(
        'sf_font_size',
        [
            'label' => __( 'Small list title font size', 'bopea-function' ),
            'type' => Controls_Manager::SLIDER,            
            'default' => [
            'size' => 17,
            ],
            'tablet_default' => [
              'size' => 17,
            ],
            'mobile_default' => [
              'size' => 17,
            ],
            'range' => [
                'px' => [
                    'min' => 1,
                    'max' => 500,
                    'step' => 1,
                ]
            ],
            'selectors' => [            
            '{{WRAPPER}} .jl_fr13_inner' => '--jl-font-small: {{SIZE}}{{UNIT}};',            
            ],
        ]
      );             

        $this->add_responsive_control(
        'grid_spacing',
        [
            'label' => __( 'Grid Spacing', 'bopea-function' ),
            'type' => Controls_Manager::SLIDER,            
            'default' => [
            'size' => 30,
            ],
            'tablet_default' => [
              'size' => 20,
            ],
            'mobile_default' => [
              'size' => 20,
            ],
            'range' => [
                'px' => [
                    'min' => 0,
                    'max' => 400,
                    'step' => 1,
                ]
            ],
            'selectors' => [
            '{{WRAPPER}} .jl_fr13_inner' => '--jl-grid-gap: {{SIZE}}{{UNIT}};',
            ]
        ]
      );

      $this->add_responsive_control(
        'sl_radius',
        [
            'label' => __( 'Post border radius', 'bopea-function' ),
            'type' => Controls_Manager::SLIDER,            
            'range' => [
                'px' => [
                    'min' => 0,
                    'max' => 300,
                    'step' => 1,
                ]
            ],
            'selectors' => [
            '{{WRAPPER}} .jl_fr13_inner' => '--jl-border-rounded: {{SIZE}}{{UNIT}};',
            ],
        ]
      ); 
                 
      $this->add_responsive_control(
        'smli_gap',
        [
            'label' => __( 'Small list row gap', 'bopea-function' ),
            'type' => Controls_Manager::SLIDER,                        
            'range' => [
                'px' => [
                    'min' => 0,
                    'max' => 400,
                    'step' => 1,
                ]
            ],
            'selectors' => [
            '{{WRAPPER}} .jl_fr13_inner' => '--jl-sm-row-gap: {{SIZE}}{{UNIT}};',
            ]
        ]
      );      
      

      $this->add_responsive_control(
        'sm_rounded',
        [
            'label' => __( 'Small post border radius', 'bopea-function' ),
            'type' => Controls_Manager::SLIDER,            
            'range' => [
                'px' => [
                    'min' => 1,
                    'max' => 400,
                    'step' => 1,
                ]
            ],
            'selectors' => [            
            '{{WRAPPER}} .jl_fr13_inner' => '--st-rounded-sm: {{SIZE}}{{UNIT}} !important;',            
            ],
        ]
      );

      $this->add_responsive_control(
        'g_sm_img_w',
        [
            'label' => __( 'Small img width', 'bopea-function' ),
            'type' => Controls_Manager::SLIDER,            
            'range' => [
                'px' => [
                    'min' => 0,
                    'max' => 500,
                    'step' => 1,
                ]
            ],
            'selectors' => [
            '{{WRAPPER}} .jl_mmlist_layout .jl_img_holder' => 'flex: 0 0 {{SIZE}}{{UNIT}};',
            ],
        ]
    );
  
    $this->add_responsive_control(
      'g_sm_img_h',
      [
          'label' => __( 'Small img height', 'bopea-function' ),
          'type' => Controls_Manager::SLIDER,            
          'range' => [
              'px' => [
                  'min' => 0,
                  'max' => 500,
                  'step' => 1,
              ]
          ],
          'selectors' => [
          '{{WRAPPER}} .jl_mmlist_layout .jl_imgw' => 'height: {{SIZE}}{{UNIT}};',
          ],
      ]
  );      

    $this->add_control(
      'jl_en_share',
      [
          'label' => esc_html__( 'Enable share', 'bopea-function' ),
          'type' => Controls_Manager::SWITCHER,
          'selectors' => array(
            '{{WRAPPER}} .jl_fot_share_i.jl_share_l_bg.jls_tooltip' => 'display: inline-flex !important;',
            '{{WRAPPER}} .jl_mmlist_layout .jl_fot_share_i.jl_share_l_bg.jls_tooltip' => 'display: none !important;',
        )
      ]
  ); 

  $this->add_control(
    'jl_en_sh_l',
    [
        'label' => esc_html__( 'Enable share inline', 'bopea-function' ),
        'type' => Controls_Manager::SWITCHER,
        'return_value' => 'yes',
        'selectors' => [
          '{{WRAPPER}} .block-section' => '--jl-sh-lp: 15px;',
        ],
        'condition' => [
          'jl_en_share!'    => ['']
        ]
    ]
  );
  
      $this->add_control(
                'jl_hide_cat',
                [
                    'label' => esc_html__( 'Hide category', 'bopea-function' ),
                    'type' => Controls_Manager::SWITCHER,
                    'return_value' => 'yes',
                    'default' => 'no',
                ]
            ); 

            $this->add_control(
                'jl_hide_author',
                [
                    'label' => esc_html__( 'Hide author', 'bopea-function' ),
                    'type' => Controls_Manager::SWITCHER,
                    'return_value' => 'yes',
                    'default' => 'no',
                ]
            ); 

            $this->add_control(
                'jl_hide_date',
                [
                    'label' => esc_html__( 'Hide date', 'bopea-function' ),
                    'type' => Controls_Manager::SWITCHER,
                    'return_value' => 'yes',
                    'default' => 'no',
                ]
            );   

            $this->add_control(
                'jl_hide_meta',
                [
                    'label' => esc_html__( 'Hide author & date', 'bopea-function' ),
                    'type' => Controls_Manager::SWITCHER,
                    'return_value' => 'yes',
                    'default' => 'no',
                ]
            );            

            $this->add_control(
                'jl_hide_review',
                [
                    'label' => esc_html__( 'Hide review', 'bopea-function' ),
                    'type' => Controls_Manager::SWITCHER,
                    'return_value' => 'yes',
                    'default' => 'no',
                ]
            );              
            $this->add_control(
                'jl_hide_desc',
                [
                    'label' => esc_html__( 'Hide description', 'bopea-function' ),
                    'type' => Controls_Manager::SWITCHER,
                    'return_value' => 'yes',
                    'default' => 'no',
                ]
            );                   

            $this->add_control(
                'jl_right_img',
                [
                    'label' => esc_html__( 'Enable list right image', 'bopea-function' ),
                    'type' => Controls_Manager::SWITCHER,
                    'selectors' => [
                    '{{WRAPPER}} .jl_li_in' => 'flex-direction: row-reverse !important'        
            ]
                ]
            );   

          $this->add_control(
                'jl_hide_line',
                [
                    'label' => esc_html__( 'Hide row line', 'bopea-function' ),
                    'type' => Controls_Manager::SWITCHER,
                    'return_value' => 'yes',
                    'default' => 'no',
                ]
            ); 
            $this->add_control(
                'jl_hide_col_line',
                [
                    'label' => esc_html__( 'Hide columns line', 'bopea-function' ),
                    'type' => Controls_Manager::SWITCHER,
                    'return_value' => 'yes',
                    'default' => 'yes',
                ]
        );

        $this->add_control(
          'title_color',
          [
            'label' => __( 'Title color', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '{{WRAPPER}} .block-section' => '--jl-txt-color: {{VALUE}}'        
            ]            
          ]
        );

          $this->add_control(
          'title_color_dark',
          [
            'label' => __( 'Title color dark mode', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '.options_dark_skin {{WRAPPER}} .block-section' => '--jl-txt-color: {{VALUE}}'        
            ]            
          ]
        );      
        
        $this->add_control(
          'excp_color',
          [
            'label' => __( 'Excerpt color', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '{{WRAPPER}} .block-section' => '--jl-except-color: {{VALUE}}'        
            ],
            'condition' => [
              'jl_en_frame'    => ['']
            ]
          ]
        );

        $this->add_control(
          'excp_color_dark',
          [
            'label' => __( 'Excerpt color dark mode', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '.options_dark_skin {{WRAPPER}} .block-section' => '--jl-except-color: {{VALUE}}'        
            ],
            'condition' => [
              'jl_en_frame'    => ['']
            ]
          ]
        );

        $this->add_control(
          'meta_color',
          [
            'label' => __( 'Meta color', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '{{WRAPPER}} .block-section' => '--jl-meta-color: {{VALUE}}'        
            ]            
          ]
        );

          $this->add_control(
          'meta_color_dark',
          [
            'label' => __( 'Meta color dark mode', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '.options_dark_skin {{WRAPPER}} .block-section' => '--jl-meta-color: {{VALUE}}'        
            ]            
          ]
        ); 

          $this->add_control(
          'liline_color',
          [
            'label' => __( 'Line color', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '{{WRAPPER}} .jl_fr13_inner' => '--jl-post-line-color: {{VALUE}} !important'
            ]
          ]
        );

          $this->add_control(
          'liline_color_dark',
          [
            'label' => __( 'Line color dark mode', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,            
            'selectors' => [
                '.options_dark_skin {{WRAPPER}} .jl_fr13_inner' => '--jl-post-line-color: {{VALUE}} !important'
            ]
          ]
        );

        $this->add_control(
          'jl_en_frame',
          [
              'label' => esc_html__( 'Enable frame box', 'bopea-function' ),
              'type' => Controls_Manager::SWITCHER,                     
          ]
      );

      $this->start_controls_tabs( 'jl_tab_frame' );
      $this->start_controls_tab( 'jl_tab_fr_main', [ 'label' => esc_html__( 'Main post', 'bopea-function' ) ] );

      $this->add_responsive_control(
        'jl_frame_padding',
        [
            'label' =>esc_html__( 'Frame padding', 'victro-function' ),
            'type' => Controls_Manager::DIMENSIONS,
            'size_units' => [ 'px', '%'],
            'default' => [
                'top' => '',
                'right' => '',
                'bottom' => '' ,
                'left' => '',
            ],
            'selectors' => [
                '{{WRAPPER}} .block-section .jl_m_fr13' =>  '--jl-fr-padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]
        ]
    );

        $this->add_control(
          'box_bg',
          [
            'label' => __( 'Frame background', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '{{WRAPPER}} .block-section .jl_m_fr13' => '--jl-pbg: {{VALUE}} !important'        
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]
          ]
        );

          $this->add_control(
          'box_bg_dark',
          [
            'label' => __( 'Frame background dark mode', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '.options_dark_skin {{WRAPPER}} .block-section .jl_m_fr13' => '--jl-pbg: {{VALUE}} !important'        
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]
          ]
        ); 

        $this->add_control(
          'box_line',
          [
            'label' => __( 'Frame line color', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '{{WRAPPER}} .block-section .jl_m_fr13' => '--jl-fline: {{VALUE}} !important'        
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]
          ]
        );

          $this->add_control(
          'box_line_dark',
          [
            'label' => __( 'Frame line color dark mode', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '.options_dark_skin {{WRAPPER}} .block-section .jl_m_fr13' => '--jl-fline: {{VALUE}} !important'        
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]
          ]
        ); 

        $this->add_control(
          'fr_title_color',
          [
            'label' => __( 'Frame title color', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '{{WRAPPER}} .block-section .jl_p_fr13.jl_m_fr13' => '--jl-txt-color: {{VALUE}}; --jl-main-color: {{VALUE}}'
            ],
              'condition' => [
                'jl_en_frame!'    => ['']
            ]
          ]
        );

          $this->add_control(
          'fr_title_color_dark',
          [
            'label' => __( 'Frame title color dark mode', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '.options_dark_skin {{WRAPPER}} .block-section .jl_p_fr13.jl_m_fr13' => '--jl-txt-color: {{VALUE}}; --jl-main-color: {{VALUE}}'
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]            
          ]
        ); 

        $this->add_control(
          'fr_excp_color',
          [
            'label' => __( 'Frame excerpt color', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '{{WRAPPER}} .block-section .jl_p_fr13.jl_m_fr13' => '--jl-except-color: {{VALUE}}'        
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]
          ]
        );

        $this->add_control(
          'fr_excp_color_dark',
          [
            'label' => __( 'Frame excerpt color dark mode', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '.options_dark_skin {{WRAPPER}} .block-section .jl_p_fr13.jl_m_fr13' => '--jl-except-color: {{VALUE}}'        
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]
          ]
        );

        $this->add_control(
          'fr_meta_color',
          [
            'label' => __( 'Frame meta color', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '{{WRAPPER}} .block-section .jl_p_fr13.jl_m_fr13' => '--jl-meta-color: {{VALUE}}'        
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]
          ]
        );

          $this->add_control(
          'fr_meta_color_dark',
          [
            'label' => __( 'Frame meta color dark mode', 'bopea-function' ),
            'type' => Controls_Manager::COLOR,
            'selectors' => [
                '.options_dark_skin {{WRAPPER}} .block-section .jl_p_fr13.jl_m_fr13' => '--jl-meta-color: {{VALUE}}'        
            ],
            'condition' => [
              'jl_en_frame!'    => ['']
            ]
          ]
        ); 

        $this->add_control(
          'jl_en_frame_sha',
          [
              'label' => esc_html__( 'Enable frame shadow', 'bopea-function' ),
              'type' => Controls_Manager::SWITCHER,                                
              'selectors' => [
                '{{WRAPPER}} .jl_en_fr.jl_m_fr13 .jl_frsha' => 'box-shadow: 0 4px 20px #00000012;',
                '.options_dark_skin {{WRAPPER}} .jl_en_fr.jl_m_fr13 .jl_frsha' => 'box-shadow: 0 4px 20px #e4e4e414;',
            ],
              'condition' => [
                'jl_en_frame!'    => ['']
            ]
          ]
      );

        $this->add_group_control(
          Group_Control_Box_Shadow::get_type(),
          [
              'name'     => 'jl_box_shadow',
              'label'    => __( 'Box shadow', 'bopea-function' ),
              'selector' => '{{WRAPPER}} .jl_en_fr.jl_m_fr13 .jl_frsha',
              'condition' => [
                'jl_en_frame_sha!'    => ['']
              ]
          ]
      );

      $this->add_group_control(
        Group_Control_Box_Shadow::get_type(),
        [
            'name'     => 'jl_box_shadow_dark',
            'label'    => __( 'Box shadow dark mode', 'bopea-function' ),
            'selector' => '.options_dark_skin {{WRAPPER}} .jl_en_fr.jl_m_fr13 .jl_frsha',
            'condition' => [
              'jl_en_frame_sha!'    => ['']
            ]
        ]
    );

    $this->end_controls_tab();

    // End main tab

    $this->start_controls_tab( 'jl_tab_fr_sm', [ 'label' => esc_html__( 'Small Grid', 'bopea-function' ) ] );  

    $this->add_responsive_control(
      'sm_jl_frame_padding',
      [
          'label' =>esc_html__( 'Frame padding', 'victro-function' ),
          'type' => Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px', '%'],
          'default' => [
              'top' => '',
              'right' => '',
              'bottom' => '' ,
              'left' => '',
          ],
          'selectors' => [
              '{{WRAPPER}} .block-section .jl_cgrid_layout' =>  '--jl-fr-padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
          ],
          'condition' => [
            'jl_en_frame!'    => ['']
          ]
      ]
  );

      $this->add_control(
        'sm_box_bg',
        [
          'label' => __( 'Frame background', 'bopea-function' ),
          'type' => Controls_Manager::COLOR,
          'selectors' => [
              '{{WRAPPER}} .block-section .jl_cgrid_layout' => '--jl-pbg: {{VALUE}} !important'        
          ],
          'condition' => [
            'jl_en_frame!'    => ['']
          ]
        ]
      );

        $this->add_control(
        'sm_box_bg_dark',
        [
          'label' => __( 'Frame background dark mode', 'bopea-function' ),
          'type' => Controls_Manager::COLOR,
          'selectors' => [
              '.options_dark_skin {{WRAPPER}} .block-section .jl_cgrid_layout' => '--jl-pbg: {{VALUE}} !important'        
          ],
          'condition' => [
            'jl_en_frame!'    => ['']
          ]
        ]
      ); 

      $this->add_control(
        'sm_box_line',
        [
          'label' => __( 'Frame line color', 'bopea-function' ),
          'type' => Controls_Manager::COLOR,
          'selectors' => [
              '{{WRAPPER}} .block-section .jl_cgrid_layout' => '--jl-fline: {{VALUE}} !important'        
          ],
          'condition' => [
            'jl_en_frame!'    => ['']
          ]
        ]
      );

        $this->add_control(
        'sm_box_line_dark',
        [
          'label' => __( 'Frame line color dark mode', 'bopea-function' ),
          'type' => Controls_Manager::COLOR,
          'selectors' => [
              '.options_dark_skin {{WRAPPER}} .block-section .jl_cgrid_layout' => '--jl-fline: {{VALUE}} !important'        
          ],
          'condition' => [
            'jl_en_frame!'    => ['']
          ]
        ]
      ); 

      $this->add_control(
        'sm_fr_title_color',
        [
          'label' => __( 'Frame title color', 'bopea-function' ),
          'type' => Controls_Manager::COLOR,
          'selectors' => [
              '{{WRAPPER}} .block-section .jl_p_fr13.jl_cgrid_layout' => '--jl-txt-color: {{VALUE}}; --jl-main-color: {{VALUE}}'
          ],
            'condition' => [
              'jl_en_frame!'    => ['']
          ]
        ]
      );

        $this->add_control(
        'sm_fr_title_color_dark',
        [
          'label' => __( 'Frame title color dark mode', 'bopea-function' ),
          'type' => Controls_Manager::COLOR,
          'selectors' => [
              '.options_dark_skin {{WRAPPER}} .block-section .jl_p_fr13.jl_cgrid_layout' => '--jl-txt-color: {{VALUE}}; --jl-main-color: {{VALUE}}'
          ],
          'condition' => [
            'jl_en_frame!'    => ['']
          ]            
        ]
      );      

      $this->add_control(
        'sm_fr_meta_color',
        [
          'label' => __( 'Frame meta color', 'bopea-function' ),
          'type' => Controls_Manager::COLOR,
          'selectors' => [
              '{{WRAPPER}} .block-section .jl_p_fr13.jl_cgrid_layout' => '--jl-meta-color: {{VALUE}}'        
          ],
          'condition' => [
            'jl_en_frame!'    => ['']
          ]
        ]
      );

        $this->add_control(
        'sm_fr_meta_color_dark',
        [
          'label' => __( 'Frame meta color dark mode', 'bopea-function' ),
          'type' => Controls_Manager::COLOR,
          'selectors' => [
              '.options_dark_skin {{WRAPPER}} .block-section .jl_p_fr13.jl_cgrid_layout' => '--jl-meta-color: {{VALUE}}'        
          ],
          'condition' => [
            'jl_en_frame!'    => ['']
          ]
        ]
      ); 

      $this->add_control(
        'sm_jl_en_frame_sha',
        [
            'label' => esc_html__( 'Enable frame shadow', 'bopea-function' ),
            'type' => Controls_Manager::SWITCHER,                                
            'selectors' => [
              '{{WRAPPER}} .jl_en_fr.jl_cgrid_layout .jl_frsha' => 'box-shadow: 0 4px 20px #00000012;',
              '.options_dark_skin {{WRAPPER}} .jl_en_fr.jl_cgrid_layout .jl_frsha' => 'box-shadow: 0 4px 20px #e4e4e414;',
          ],
            'condition' => [
              'jl_en_frame!'    => ['']
          ]
        ]
    );

      $this->add_group_control(
        Group_Control_Box_Shadow::get_type(),
        [
            'name'     => 'sm_jl_box_shadow',
            'label'    => __( 'Box shadow', 'bopea-function' ),
            'selector' => '{{WRAPPER}} .jl_en_fr.jl_cgrid_layout .jl_frsha',
            'condition' => [
              'sm_jl_en_frame_sha!'    => ['']
            ]
        ]
    );

    $this->add_group_control(
      Group_Control_Box_Shadow::get_type(),
      [
          'name'     => 'sm_jl_box_shadow_dark',
          'label'    => __( 'Box shadow dark mode', 'bopea-function' ),
          'selector' => '.options_dark_skin {{WRAPPER}} .jl_en_fr.jl_cgrid_layout .jl_frsha',
          'condition' => [
            'sm_jl_en_frame_sha!'    => ['']
          ]
      ]
  );
    
    
    $this->end_controls_tab();

    $this->end_controls_tabs();

        $this->end_controls_section();
    }

protected function render( ) { 
  $settings = $this->get_settings();

      if ( function_exists( 'bopea_feature_layout_13' ) ) {
      $settings['blockid'] = 'blockid_' . $this->get_id();      
      if(!empty($settings['categories'])){
      $settings['categories'] = implode(',', $settings['categories']);      
      }
      echo \bopea_feature_layout_13( $settings );
      }
    }

    public function post_categories() {

      $terms = get_terms( array(
            'taxonomy'    => 'category',
            'hide_empty'  => false,
            'posts_per_page' => -1, 
            'suppress_filters' => false,
      ) );

      $cat_list = [];
      foreach($terms as $post) {
      $cat_list[$post->term_id]  = [$post->name];
      }
      return $cat_list;
   }

   public function post_author() {

    $blogusers = get_users( array(
    'role__not_in' => array( 'subscriber' ),
    'fields'       => array( 'ID', 'display_name' )
    ) );

      $user_list = [];
      $user_list['none']= esc_html__( 'None', 'bopea-function' );
      foreach($blogusers as $user) {
      $user_list[$user->ID]  = [$user->display_name];
      }
      return $user_list;
   }
   public function post_get_type() {

    $post_types = get_post_types( '', 'names' ); 

      $type_list = [];
      $type_list['none']= esc_html__( 'None', 'bopea-function' );
      if ( ! empty( $post_types ) ){
        foreach($post_types as $p_type) {
        $type_list[$p_type]  = [$p_type];
        }
      }
      return $type_list;
   }

   public function post_get_taxs() {

    $taxonomies = get_taxonomies();

      $type_taxs = [];
      $type_taxs['none']= esc_html__( 'None', 'bopea-function' );
      if ( ! empty( $taxonomies ) ){
        foreach($taxonomies as $p_taxs) {
        $type_taxs[$p_taxs]  = [$p_taxs];
        }
    }
      return $type_taxs;
   }
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0755
ads-img.php
6.463 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
cart.php
17.675 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
category-list.php
28.115 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
contact-form.php
25.032 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
current-date.php
7.465 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
custom-banner.php
20.019 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
custom-sg-cat.php
1.421 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
custom-sg-meta.php
1.507 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
dark-mode-switcher.php
3.141 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
element-button.php
27.455 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
elementor.php
50.17 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
feature-box.php
11.205 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
feature-carousel.php
39.477 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
feature-center-slider.php
32.664 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
feature-hover.php
17.747 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
feature-product.php
13.024 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
feature-slider-tab.php
34.146 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
feature-slider.php
43.884 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
feature-video.php
22.095 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-1.php
28.733 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-10.php
25.319 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-11.php
25.213 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-12.php
28.478 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-13.php
37.482 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-18.php
32.596 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-19.php
31.406 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-2.php
28.093 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-20.php
27.293 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-3.php
27.961 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-4.php
28.507 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-5.php
32.721 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-6.php
35.081 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-7.php
39.264 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-8.php
32.762 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
featured-layout-9.php
30.399 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
gallery.php
7.856 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
grid-circle.php
35.744 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
grid-overlay.php
38.916 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
grid-post.php
50.369 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
large-post.php
46.632 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
layouts.php
1.821 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
list-number.php
43.876 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
list-post.php
42.161 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
logo.php
7.302 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
main-menu-setting.php
0.878 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
main-menu.php
23.354 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
marquee-text.php
19.204 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
mobile-menu.php
9.148 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
newsticker.php
22.594 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
search-button.php
9.592 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
section-title.php
42.684 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
simple-menu.php
24.479 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
simple-text.php
6.621 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
small-2main-below-list.php
49.41 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
small-list-post.php
48.257 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
small-main-below-2list.php
51.024 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
small-main-below-list.php
49.909 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
small-main-right-list.php
50.874 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
small-overlay-main-below-list.php
47.359 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
social.php
113.031 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
tpl-product.php
5.371 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
xsmall-list-post.php
43.337 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF