<?php
// Register Video Player Widget
ct_add_custom_widget(
array(
'name' => 'ct_logo',
'title' => esc_html__('Case Logo', 'itfirm' ),
'icon' => 'eicon-image',
'categories' => array( Case_Theme_Core::CT_CATEGORY_NAME ),
'scripts' => [
'ct-inline-css-js',
],
'params' => array(
'sections' => array(
array(
'name' => 'content_section',
'label' => esc_html__('Content', 'itfirm' ),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'controls' => array(
array(
'name' => 'logo',
'label' => esc_html__('Logo', 'itfirm' ),
'type' => \Elementor\Controls_Manager::MEDIA,
),
array(
'name' => 'logo_max_height',
'label' => esc_html__('Logo Max Height', 'itfirm' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'description' => esc_html__('Enter number.', 'itfirm' ),
'range' => [
'px' => [
'min' => 0,
'max' => 3000,
],
],
'control_type' => 'responsive',
'selectors' => [
'{{WRAPPER}} .ct-logo img' => 'max-height: {{SIZE}}{{UNIT}};',
],
),
array(
'name' => 'box_height',
'label' => esc_html__('Logo Box Height', 'itfirm' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'control_type' => 'responsive',
'size_units' => [ 'px' ],
'description' => esc_html__('Enter number.', 'itfirm' ),
'range' => [
'px' => [
'min' => 0,
'max' => 300,
],
],
'selectors' => [
'{{WRAPPER}} .ct-logo.style3' => 'height: {{SIZE}}{{UNIT}} !important;',
],
'condition' => [
'style' => ['style3'],
],
),
array(
'name' => 'logo_align',
'label' => esc_html__('Alignment', 'itfirm' ),
'type' => \Elementor\Controls_Manager::CHOOSE,
'control_type' => 'responsive',
'options' => [
'left' => [
'title' => esc_html__('Left', 'itfirm' ),
'icon' => 'fa fa-align-left',
],
'center' => [
'title' => esc_html__('Center', 'itfirm' ),
'icon' => 'fa fa-align-center',
],
'right' => [
'title' => esc_html__('Right', 'itfirm' ),
'icon' => 'fa fa-align-right',
],
],
'selectors' => [
'{{WRAPPER}} .ct-logo' => 'text-align: {{VALUE}};',
],
),
array(
'name' => 'logo_link',
'label' => esc_html__('Link', 'itfirm' ),
'type' => \Elementor\Controls_Manager::URL,
),
array(
'name' => 'style',
'label' => esc_html__('Style', 'itfirm' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'style1' => 'Default',
'style2' => 'Oval',
'style3' => 'Skew',
],
'default' => 'style1',
),
array(
'name' => 'skew_gradient_from',
'label' => esc_html__('Skew Color Gradient From', 'itfirm' ),
'type' => \Elementor\Controls_Manager::COLOR,
'condition' => [
'style' => ['style3'],
],
),
array(
'name' => 'skew_gradient_to',
'label' => esc_html__('Skew Color Gradient To', 'itfirm' ),
'type' => \Elementor\Controls_Manager::COLOR,
'condition' => [
'style' => ['style3'],
],
),
array(
'name' => 'ct_animate',
'label' => esc_html__('Case Animate', 'itfirm' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => itfirm_animate(),
'default' => '',
),
),
),
),
),
),
get_template_directory() . '/elementor/core/widgets/'
);