Current File : /home/bravrvjk/cepurhuye.rw/wp-content/plugins/bopea-function/block//elementor.php
<?php
namespace bopeaElementor;
use Elementor\Widget_Base;
defined('ABSPATH') || die();
define("BOPEA_API", 'https://jellywp.com/wp/wp-json/purchase/v1/purchase-check');
define("BOPEA_ID", 25223481);
define("BOPEA_THEMENAME", 'Welcome to Bopea');
class bopea_Shortcode{
private static $_instance = null;
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
public function __construct(){
add_action('elementor/elements/categories_registered', array($this, 'bopea_header_ele_init'));
add_action('elementor/elements/categories_registered', array($this, 'bopea_elementor_init'), 10, 1);
add_action( 'elementor/widgets/register', array( $this, 'bopea_shortcode_elements' ), 1 );
add_action( 'elementor/element/section/section_background/after_section_end', [ $this, 'bopea_section_bg_dark' ], 10, 2 );
add_action( 'elementor/element/container/section_background/after_section_end', [ $this, 'bopea_container_bg_dark' ], 10, 2 );
add_action( 'elementor/element/column/section_style/after_section_end', [ $this, 'bopea_column_bg_dark' ], 10, 2 );
add_action( 'elementor/element/common/_section_background/after_section_end', [ $this, 'bopea_widget_bg_dark' ], 10, 2 );
add_action( 'elementor/element/section/section_border/after_section_end', [ $this, 'bopea_section_border_dark' ], 10, 2 );
add_action( 'elementor/element/container/section_border/after_section_end', [ $this, 'bopea_container_border_dark' ], 10, 2 );
add_action( 'elementor/element/column/section_border/after_section_end', [ $this, 'bopea_column_border_dark' ], 10, 2 );
add_action( 'elementor/element/common/_section_border/after_section_end', [ $this, 'bopea_widget_border_dark' ], 10, 2 );
add_action( 'elementor/element/column/section_advanced/after_section_end', [ $this, 'bopea_columns_opt' ], 10, 2 );
add_action( 'elementor/element/container/section_layout/after_section_end', array( $this, 'bopea_columns_con_opt' ), 10, 2 );
add_action( 'elementor/element/divider/section_divider_style/after_section_end', array( $this, 'bopea_dark_input' ), 10, 2 );
add_action( 'elementor/element/heading/section_title_style/after_section_end', array( $this, 'bopea_heading_dark' ), 10, 2 );
add_action( 'elementor/element/image-box/section_style_content/after_section_end', array( $this, 'bopea_image_box_dark' ), 10, 2 );
add_action( 'elementor/element/counter/section_title/after_section_end', array( $this, 'bopea_counter_dark' ), 10, 2 );
add_action( 'elementor/element/icon-box/section_style_content/after_section_end', array( $this, 'bopea_icon_box_dark' ), 10, 2 );
add_action( 'elementor/element/text-editor/section_style/after_section_end', array( $this, 'bopea_editor_dark' ), 10, 2 );
add_action( 'elementor/element/social-icons/section_social_hover/after_section_end', array( $this, 'bopea_social_icons_dark' ), 10, 2 );
add_action( 'elementor/element/icon/section_style_icon/after_section_end', array( $this, 'bopea_icons_dark' ), 10, 2 );
add_action( 'elementor/element/icon-list/section_text_style/after_section_end', array( $this, 'bopea_icons_list_dark' ), 10, 2 );
add_action( 'elementor/element/button/section_style/after_section_end', array( $this, 'bopea_button_dark' ), 10, 2 );
}
public function bopea_header_ele_init($elements_manager){
$categories = [];
$categories['bopea-elements-head'] = [
'title' => esc_html__( 'Bopea header elements', 'bopea-function' ),
'icon' => 'fa fa-server',
];
$old_categories = $elements_manager->get_categories();
$categories = array_merge($categories, $old_categories);
$set_categories = function ( $categories ) {
$this->categories = $categories;
};
$set_categories->call( $elements_manager, $categories );
}
public function bopea_elementor_init($elements_manager){
$categories = [];
$categories['bopea-elements'] = [
'title' => esc_html__( 'Bopea blog layouts', 'bopea-function' ),
'icon' => 'fa fa-server',
];
$old_categories = $elements_manager->get_categories();
$categories = array_merge($categories, $old_categories);
$set_categories = function ( $categories ) {
$this->categories = $categories;
};
$set_categories->call( $elements_manager, $categories );
}
public function bopea_shortcode_elements(){
// $bopea_is_registered = false;
// $bopea_is_registered = bopea_is_registered();
// if(empty($bopea_is_registered)){
// return;
// }
require_once 'element-button.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_button());
require_once 'section-title.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_title());
require_once 'feature-box.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_box());
require_once 'featured-layout-1.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout1());
require_once 'featured-layout-2.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout2());
require_once 'featured-layout-19.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout19());
require_once 'featured-layout-20.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout20());
require_once 'featured-layout-3.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout3());
require_once 'featured-layout-4.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout4());
require_once 'featured-layout-5.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout5());
require_once 'featured-layout-6.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout6());
require_once 'featured-layout-7.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout7());
require_once 'featured-layout-8.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout8());
require_once 'featured-layout-9.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout9());
require_once 'featured-layout-10.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout10());
require_once 'featured-layout-11.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout11());
require_once 'featured-layout-12.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout12());
require_once 'featured-layout-13.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout13());
require_once 'featured-layout-18.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout18());
require_once 'small-main-right-list.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout15());
require_once 'small-main-below-list.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout16());
require_once 'small-main-below-2list.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout_ligrid());
require_once 'small-2main-below-list.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_layout17());
require_once 'small-overlay-main-below-list.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_main_ov_sm_li());
require_once 'feature-slider.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_slider());
require_once 'feature-slider-tab.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_slider_tab());
require_once 'feature-hover.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_hover());
require_once 'feature-carousel.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_carousel());
require_once 'feature-center-slider.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_center_slider());
require_once 'large-post.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_large_post());
require_once 'grid-post.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_grid_post());
require_once 'grid-circle.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_grid_circle());
require_once 'grid-overlay.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_grid_overlay());
require_once 'list-post.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_list_post());
require_once 'list-number.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_list_number());
require_once 'small-list-post.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_small_list());
require_once 'xsmall-list-post.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_xsmall_list());
if ( class_exists( 'WPCF7' ) ) {
require_once 'contact-form.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_contact_form());
}
require_once 'gallery.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_gallery());
require_once 'category-list.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_category_list());
require_once 'social.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_social_list());
require_once 'feature-video.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_feature_video());
require_once 'marquee-text.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_marquee_text());
require_once 'newsticker.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_newsticker_text());
require_once 'ads-img.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_ads_img());
require_once 'custom-banner.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_custom_banner());
require_once 'simple-text.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_text());
if ( class_exists( 'woocommerce' ) ) {
require_once 'feature-product.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_product_list());
require_once 'cart.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_cart());
}
require_once 'layouts.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_layouts());
require_once 'logo.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_logo());
require_once 'mobile-menu.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_mobile_menu());
require_once 'main-menu.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_main_menu());
require_once 'simple-menu.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_simple_menu());
require_once 'search-button.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_search_button());
require_once 'dark-mode-switcher.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_dark_mode());
require_once 'current-date.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_section_current_date());
if(get_site_url() == 'https://truckdrivernews.com'){
require_once 'custom-sg-cat.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_single_cat());
require_once 'custom-sg-meta.php';
\Elementor\Plugin::instance()->widgets_manager->register( new Widgets\bopea_single_meta());
}
}
public function bopea_section_bg_dark( $element, $args ) {
$element->start_controls_section(
'bopea_bg_dark_section',
[
'label' => esc_html__( 'Blur & dark mode background', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
$element->add_group_control(
\Elementor\Group_Control_Background::get_type(), array(
'label' => esc_html__( 'Dark Mode Background', 'bopea-function' ),
'name' => 'bopea_bg_dark',
'types' => array( 'classic', 'gradient' ),
'selector' => '.options_dark_skin {{WRAPPER}}.elementor-section',
)
);
$element->add_responsive_control(
'bopea_bg_blur',
[
'label' => __( 'Blur background options', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'range' => [
'px' => [
'min' => 1,
'max' => 300,
'step' => 1,
]
],
'selectors' => [
"{{WRAPPER}}.elementor-section" => '-webkit-backdrop-filter: blur({{SIZE}}px); backdrop-filter: blur({{SIZE}}px);',
],
]
);
$element->end_controls_section();
}
public function bopea_container_bg_dark( $element, $args ) {
$element->start_controls_section(
'bopea_bg_dark_container',
[
'label' => esc_html__( 'Blur & dark mode background', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
$element->add_group_control(
\Elementor\Group_Control_Background::get_type(), array(
'label' => esc_html__( 'Dark Mode Background', 'bopea-function' ),
'name' => 'bopea_bg_dark_con',
'types' => array( 'classic', 'gradient' ),
'selector' => '.options_dark_skin {{WRAPPER}}',
)
);
$element->add_responsive_control(
'bopea_bg_con_blur',
[
'label' => __( 'Blur background options', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'range' => [
'px' => [
'min' => 1,
'max' => 300,
'step' => 1,
]
],
'selectors' => [
"{{WRAPPER}}" => '-webkit-backdrop-filter: blur({{SIZE}}px); backdrop-filter: blur({{SIZE}}px);',
],
]
);
$element->end_controls_section();
}
public function bopea_column_bg_dark( $element, $args ) {
$element->start_controls_section(
'bopea_bg_dark_cols',
[
'label' => esc_html__( 'Blur & dark mode background', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
$element->add_group_control(
\Elementor\Group_Control_Background::get_type(), array(
'label' => esc_html__( 'Dark Mode Background', 'bopea-function' ),
'name' => 'bopea_bg_dark_col',
'types' => array( 'classic', 'gradient' ),
'selector' => '.options_dark_skin {{WRAPPER}}',
)
);
$element->add_responsive_control(
'bopea_bg_col_blur',
[
'label' => __( 'Blur background options', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'range' => [
'px' => [
'min' => 1,
'max' => 300,
'step' => 1,
]
],
'selectors' => [
"{{WRAPPER}}" => '-webkit-backdrop-filter: blur({{SIZE}}px); backdrop-filter: blur({{SIZE}}px);',
],
]
);
$element->end_controls_section();
}
public function bopea_widget_bg_dark( $element, $args ) {
$element->start_controls_section(
'bopea_bg_dark_widgets',
[
'label' => esc_html__( 'Blur & Dark Mode Background', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_ADVANCED,
]
);
$element->add_group_control(
\Elementor\Group_Control_Background::get_type(), array(
'label' => esc_html__( 'Dark Mode Background', 'bopea-function' ),
'name' => 'bopea_bg_dark_widget',
'types' => array( 'classic', 'gradient' ),
'selector' => '.options_dark_skin {{WRAPPER}} > .elementor-widget-container',
)
);
$element->add_responsive_control(
'bopea_bg_wig_blur',
[
'label' => __( 'Blur background options', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'range' => [
'px' => [
'min' => 1,
'max' => 300,
'step' => 1,
]
],
'selectors' => [
"{{WRAPPER}} > .elementor-widget-container" => '-webkit-backdrop-filter: blur({{SIZE}}px); backdrop-filter: blur({{SIZE}}px);',
],
]
);
$element->end_controls_section();
}
public function bopea_section_border_dark( $element, $args ) {
$element->start_controls_section(
'jl_border_section',
[
'label' => esc_html__( 'Dark Mode Border Options', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
$element->add_control(
'jl_border_dk_color',
[
'label' => esc_html__( 'Dark Mode Border Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}.elementor-section' => 'border-color: {{VALUE}}',
)
]
);
$element->add_control(
'jl_border_dk_hover',
[
'label' => esc_html__( 'Dark Mode Border Hover Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}.elementor-section:hover' => 'border-color: {{VALUE}}',
)
]
);
$element->end_controls_section();
}
public function bopea_container_border_dark( $element, $args ) {
$element->start_controls_section(
'jl_border_section',
[
'label' => esc_html__( 'Dark Mode Border Options', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
$element->add_control(
'jl_border_dk_color',
[
'label' => esc_html__( 'Dark Mode Border Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}' => 'border-color: {{VALUE}}',
)
]
);
$element->add_control(
'jl_border_dk_hover',
[
'label' => esc_html__( 'Dark Mode Border Hover Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}:hover' => 'border-color: {{VALUE}}',
)
]
);
$element->end_controls_section();
}
public function bopea_column_border_dark( $element, $args ) {
$element->start_controls_section(
'jl_border_section',
[
'label' => esc_html__( 'Dark Mode Border Options', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
$element->add_control(
'jl_border_dk_color',
[
'label' => esc_html__( 'Dark Mode Border Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-widget-wrap' => 'border-color: {{VALUE}}',
)
]
);
$element->add_control(
'jl_border_dk_hover',
[
'label' => esc_html__( 'Dark Mode Border Hover Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}:hover .elementor-widget-wrap' => 'border-color: {{VALUE}}',
)
]
);
$element->end_controls_section();
}
public function bopea_widget_border_dark( $element, $args ) {
$element->start_controls_section(
'jl_border_section',
[
'label' => esc_html__( 'Dark Mode Border', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_ADVANCED,
]
);
$element->add_control(
'jl_border_dk_color',
[
'label' => esc_html__( 'Dark Mode Border Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} > .elementor-widget-container' => 'border-color: {{VALUE}}',
)
]
);
$element->add_control(
'jl_border_dk_hover',
[
'label' => esc_html__( 'Dark Mode Border Hover Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}:hover > .elementor-widget-container' => 'border-color: {{VALUE}}',
)
]
);
$element->end_controls_section();
}
public function bopea_columns_opt( $element, $args ) {
$element->start_controls_section(
'bopea_jl_order_section',
[
'label' => esc_html__( 'Columns settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_ADVANCED,
]
);
$element->add_responsive_control(
'bopea_jl_order',
[
'label' => __( 'Order', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::NUMBER,
'selectors' => [
'{{WRAPPER}}' => 'order: {{VALUE}};',
]
]
);
$element->add_control(
'jl_col_sticky',
[
'label' => esc_html__( 'Enable sticky columns', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::SWITCHER,
'selectors' => [
"{{WRAPPER}}" => 'position: relative; align-items: flex-start;',
".admin-bar {{WRAPPER}} .elementor-widget-wrap" => 'top: var(--jl-stick-sb, 52px);',
"{{WRAPPER}} .elementor-widget-wrap" => 'position: -webkit-sticky; position: sticky; top: var(--jl-stick-sb, 20px); -webkit-transition: top .2s ease; transition: top .2s ease;',
]
]
);
$element->add_responsive_control(
'bopea_jl_menu_space',
[
'label' => __( 'Sticky menu space', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::NUMBER,
'default' => '70',
'selectors' => [
".menu-detached.admin-bar {{WRAPPER}}" => '--jl-stick-sb: calc({{VALUE}}px + 52px)',
".menu-detached {{WRAPPER}}" => '--jl-stick-sb: calc({{VALUE}}px + 20px)',
".menu-detached.menu-invisible {{WRAPPER}}" => '--jl-stick-sb: 20px;',
".menu-detached.menu-invisible.admin-bar {{WRAPPER}}" => '--jl-stick-sb: 52px;',
],
'condition' => [
'jl_col_sticky!' => ''
]
]
);
$element->end_controls_section();
}
public function bopea_columns_con_opt( $element, $args ) {
$element->start_controls_section(
'bopea_jl_order_cons',
[
'label' => esc_html__( 'Columns settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_ADVANCED,
]
);
$element->add_responsive_control(
'bopea_jl_order_con',
[
'label' => __( 'Order', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::NUMBER,
'selectors' => [
'{{WRAPPER}}' => 'order: {{VALUE}};',
]
]
);
$element->add_control(
'jl_col_sticky_con',
[
'label' => esc_html__( 'Enable sticky columns', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::SWITCHER,
'selectors' => [
".admin-bar {{WRAPPER}}" => 'top: var(--jl-stick-sb, 52px);',
"{{WRAPPER}}" => 'position: -webkit-sticky; position: sticky; top: var(--jl-stick-sb, 20px); -webkit-transition: top .2s ease; transition: top .2s ease; align-self: flex-start;',
]
]
);
$element->add_responsive_control(
'bopea_jl_menu_space_con',
[
'label' => __( 'Sticky menu space', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::NUMBER,
'default' => '70',
'selectors' => [
".menu-detached.admin-bar {{WRAPPER}}" => '--jl-stick-sb: calc({{VALUE}}px + 52px)',
".menu-detached {{WRAPPER}}" => '--jl-stick-sb: calc({{VALUE}}px + 20px)',
".menu-detached.menu-invisible {{WRAPPER}}" => '--jl-stick-sb: 20px;',
".menu-detached.menu-invisible.admin-bar {{WRAPPER}}" => '--jl-stick-sb: 52px;',
],
'condition' => [
'jl_col_sticky_con!' => ''
]
]
);
$element->end_controls_section();
}
public static function bopea_dark_input( $element, $args ) {
$element->start_controls_section(
'jl_svg_dark', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$element->add_control(
'jl_svg_color_dark', array(
'label' => esc_html__( 'Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array( '.options_dark_skin {{WRAPPER}}' => '--divider-color: {{VALUE}}', ),
'default' => ''
)
);
$element->end_controls_section();
}
public static function bopea_heading_dark( $element, $args ) {
$element->start_controls_section(
'jl_title_head_dark_mode', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$element->add_control(
'jl_dark_title_color', array(
'label' => esc_html__( 'Dark Mode Text Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-heading-title' => 'color: {{VALUE}};',
),
'default' => '#ffffff'
)
);
$element->end_controls_section();
}
public static function bopea_image_box_dark( $element, $args ) {
$element->start_controls_section(
'jl_img_box_head_dark_mode', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$element->add_control(
'jl_dark_title_color', array(
'label' => esc_html__( 'Title Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-image-box-title' => 'color: {{VALUE}};',
),
'default' => '#ffffff'
)
);
$element->add_control(
'jl_dark_desc_color', array(
'label' => esc_html__( 'Description Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-image-box-description' => 'color: {{VALUE}};',
),
'default' => '#eeeeee'
)
);
$element->end_controls_section();
}
public static function bopea_counter_dark( $element, $args ) {
$element->start_controls_section(
'jl_counter_head_dark_mode', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$element->add_control(
'jl_dark_number_color',
array(
'label' => esc_html__( 'Number Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'default' => '#fff',
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-counter-number-wrapper' => 'color: {{VALUE}};',
)
)
);
$element->add_control(
'jl_dark_title_color',
array(
'label' => esc_html__( 'Text Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'default' => '#fff',
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-counter-title' => 'color: {{VALUE}};',
)
)
);
$element->end_controls_section();
}
public static function bopea_icon_box_dark( $element, $args ) {
$element->start_controls_section(
'jl_icon_box_head_dark_mode', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$element->add_control(
'jl_dark_icon_color', array(
'label' => esc_html__( 'Icon Primary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}.elementor-view-stacked .elementor-icon' => 'background-color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}}.elementor-view-framed .elementor-icon, .options_dark_skin {{WRAPPER}}.elementor-view-default .elementor-icon' => 'fill: {{VALUE}}; color: {{VALUE}}; border-color: {{VALUE}};',
),
'default' => ''
)
);
$element->add_control(
'jl_dark_icons_color', array(
'label' => esc_html__( 'Icon Secondary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}.elementor-view-framed .elementor-icon' => 'background-color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}}.elementor-view-stacked .elementor-icon' => 'fill: {{VALUE}}; color: {{VALUE}};'
),
'default' => ''
)
);
$element->add_control(
'jl_dark_hicon_color', array(
'label' => esc_html__( 'Hover Icon Primary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}.elementor-view-stacked .elementor-icon:hover' => 'background-color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}}.elementor-view-framed .elementor-icon:hover, .options_dark_skin {{WRAPPER}}.elementor-view-default .elementor-icon:hover' => 'fill: {{VALUE}}; color: {{VALUE}}; border-color: {{VALUE}};',
),
'default' => ''
)
);
$element->add_control(
'jl_dark_hicons_color', array(
'label' => esc_html__( 'Hover Icon Secondary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}.elementor-view-framed .elementor-icon:hover' => 'background-color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}}.elementor-view-stacked .elementor-icon:hover' => 'fill: {{VALUE}}; color: {{VALUE}};',
),
'default' => ''
)
);
$element->add_control(
'jl_dark_title_color', array(
'label' => esc_html__( 'Title Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-icon-box-title' => 'color: {{VALUE}};'
),
'default' => '#ffffff'
)
);
$element->add_control(
'jl_dark_desc_color', array(
'label' => esc_html__( 'Description Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-icon-box-description' => 'color: {{VALUE}};',
),
'default' => '#eeeeee'
)
);
$element->end_controls_section();
}
public static function bopea_editor_dark( $element, $args ) {
$element->start_controls_section(
'jl_editor_head_dark_mode', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$element->add_control(
'jl_dark_editor_color', array(
'label' => esc_html__( 'Text Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} *' => 'color: {{VALUE}};',
),
'default' => '#ffffff'
)
);
$element->end_controls_section();
}
public static function bopea_social_icons_dark( $element, $args ) {
$element->start_controls_section(
'jl_social_i_head_dark_mode', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$element->add_control(
'jl_dark_icon_primary_color',
array(
'label' => esc_html__( 'Primary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-social-icon' => 'background-color: {{VALUE}};',
),
)
);
$element->add_control(
'jl_dark_icon_secondary_color',
array(
'label' => esc_html__( 'Secondary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-social-icon i' => 'color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}} .elementor-social-icon svg' => 'fill: {{VALUE}};',
),
)
);
$element->add_control(
'jl_dark_hicon_primary_color',
array(
'label' => esc_html__( 'Hover Primary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-social-icon:hover' => 'background-color: {{VALUE}};',
),
)
);
$element->add_control(
'jl_dark_hicon_secondary_color',
array(
'label' => esc_html__( 'Hover Secondary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-social-icon:hover i' => 'color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}} .elementor-social-icon:hover svg' => 'fill: {{VALUE}};',
),
)
);
$element->end_controls_section();
}
public static function bopea_icons_dark( $element, $args ) {
$element->start_controls_section(
'jl_icon_head_dark_mode', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$element->add_control(
'jl_dark_icon_color', array(
'label' => esc_html__( 'Primary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}.elementor-view-stacked .elementor-icon' => 'background-color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}}.elementor-view-framed .elementor-icon, .options_dark_skin {{WRAPPER}}.elementor-view-default .elementor-icon' => 'color: {{VALUE}}; border-color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}}.elementor-view-framed .elementor-icon, .options_dark_skin {{WRAPPER}}.elementor-view-default .elementor-icon svg' => 'fill: {{VALUE}};',
),
'default' => '#ffffff'
)
);
$element->add_control(
'jl_dark_icons_color', array(
'label' => esc_html__( 'Secondary Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}}.elementor-view-framed .elementor-icon' => 'background-color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}}.elementor-view-stacked .elementor-icon' => 'color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}}.elementor-view-stacked .elementor-icon svg' => 'fill: {{VALUE}};',
),
'default' => '',
'condition' => array( 'view!' => 'default', ),
)
);
$element->end_controls_section();
}
public static function bopea_icons_list_dark( $element, $args ) {
$element->start_controls_section(
'jl_icons_list_dark_mode', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$element->add_control(
'jl_dark_icon_color', array(
'label' => esc_html__( 'Icon Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-icon-list-icon i' => 'color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}} .elementor-icon-list-icon svg' => 'fill: {{VALUE}};',
),
'default' => '#ffffff'
)
);
$element->add_control(
'jl_dark_hicon_color', array(
'label' => esc_html__( 'Hover Icon Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-icon-list-item:hover .elementor-icon-list-icon i' => 'color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}} .elementor-icon-list-item:hover .elementor-icon-list-icon svg' => 'fill: {{VALUE}};',
),
'default' => ''
)
);
$element->add_control(
'jl_dark_text_color', array(
'label' => esc_html__( 'Text Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-icon-list-text' => 'color: {{VALUE}};',
),
'default' => '#ffffff'
)
);
$element->add_control(
'jl_dark_htext_color', array(
'label' => esc_html__( 'Hover Text Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-icon-list-item:hover .elementor-icon-list-text' => 'color: {{VALUE}};',
),
'default' => ''
)
);
$element->add_control(
'jl_dark_divider_color', array(
'label' => esc_html__( 'Divider Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'condition' => array( 'divider' => 'yes' ),
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-icon-list-item:not(:last-child):after' => 'border-color: {{VALUE}}',
),
'default' => '#cccccc'
)
);
$element->end_controls_section();
}
public static function bopea_button_dark( $section, $args ) {
$section->start_controls_section(
'jl_button_dark_mode', array(
'label' => esc_html__( 'Dark Mode Settings', 'bopea-function' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
)
);
$section->add_control(
'jl_dark_button_text_color', array(
'label' => esc_html__( 'Text Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-button' => 'fill: {{VALUE}}; color: {{VALUE}};',
),
'default' => ''
)
);
$section->add_control(
'jl_dark_button_bg_color', array(
'label' => esc_html__( 'Background Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-button' => 'background: {{VALUE}};',
),
'default' => ''
)
);
$section->add_control(
'jl_dark_button_line_color', array(
'label' => esc_html__( 'Border Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-button' => 'border-color: {{VALUE}}',
),
'default' => ''
)
);
$section->add_control(
'jl_dark_button_text_colorh', array(
'label' => esc_html__( 'Hover Text Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'.options_dark_skin {{WRAPPER}} .elementor-button:hover, .options_dark_skin {{WRAPPER}} .elementor-button:focus' => 'color: {{VALUE}};',
'.options_dark_skin {{WRAPPER}} .elementor-button:hover svg, .options_dark_skin {{WRAPPER}} .elementor-button:focus svg' => 'fill: {{VALUE}};',
],
'default' => ''
)
);
$section->add_control(
'jl_dark_button_bg_colorh', array(
'label' => esc_html__( 'Hover Background Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-button:hover, .options_dark_skin {{WRAPPER}} .elementor-button:focus' => 'background: {{VALUE}};',
),
'default' => ''
)
);
$section->add_control(
'jl_dark_button_line_colorh', array(
'label' => esc_html__( 'Hover Border Color', 'bopea-function' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => array(
'.options_dark_skin {{WRAPPER}} .elementor-button:hover, .options_dark_skin {{WRAPPER}} .elementor-button:focus' => 'border-color: {{VALUE}}',
),
'default' => ''
)
);
$section->end_controls_section();
}
}
bopea_Shortcode::instance();