Plugin Directory

Changeset 2707137


Ignore:
Timestamp:
04/08/2022 05:21:04 PM (4 years ago)
Author:
themeux
Message:

Layout Css added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pixi-image-gallery/trunk/includes/widgets/pixi-gallery-filter.php

    r2707132 r2707137  
    502502
    503503        $this->end_controls_section();
     504
     505        //  Hover Style content
     506
     507        $this->start_controls_section(
     508            'hover_content_style_section',
     509            [
     510                'label' => esc_html__( 'Hover Content Style', 'pixi-image-gallery' ),
     511                'tab' => \Elementor\Controls_Manager::TAB_STYLE,
     512            ]
     513        );
     514
     515        $this->add_control(
     516            'hover_content_align',
     517            [
     518                'label' => esc_html__( 'Alignment', 'pixi-image-gallery' ),
     519                'type' => \Elementor\Controls_Manager::CHOOSE,
     520                'options' => [
     521                    'left' => [
     522                        'title' => esc_html__( 'Left', 'pixi-image-gallery' ),
     523                        'icon' => 'eicon-text-align-left',
     524                    ],
     525                    'center' => [
     526                        'title' => esc_html__( 'Center', 'pixi-image-gallery' ),
     527                        'icon' => 'eicon-text-align-center',
     528                    ],
     529                    'right' => [
     530                        'title' => esc_html__( 'Right', 'pixi-image-gallery' ),
     531                        'icon' => 'eicon-text-align-right',
     532                    ],
     533                ],
     534                'default' => 'center',
     535                'toggle' => true,
     536                'selectors' => [
     537                    '{{WRAPPER}} .pixi-inner-content ' => 'text-align: {{VALUE}};',
     538                ],
     539            ]
     540        );
     541
     542
     543        $this->add_group_control(
     544            \Elementor\Group_Control_Typography::get_type(),
     545            [
     546                'name' => 'hover_title_typography',
     547                'selector' => '{{WRAPPER}} .pixi-inner-content h4',
     548                'label' => esc_html__( 'Title Typograghy', 'pixi-image-gallery' ),
     549            ]
     550        );
     551
     552
     553        $this->add_group_control(
     554            \Elementor\Group_Control_Typography::get_type(),
     555            [
     556                'name' => 'hover_desc_typography',
     557                'selector' => '{{WRAPPER}} .pixi-inner-content p',
     558                'label' => esc_html__( 'Description Typograghy', 'pixi-image-gallery' ),
     559            ]
     560        );
     561
     562        $this->add_control(
     563            'hover_content_title_color',
     564            [
     565                'label' => esc_html__( 'Title Color', 'pixi-image-gallery' ),
     566                'type' => \Elementor\Controls_Manager::COLOR,
     567                'selectors' => [
     568                    '{{WRAPPER}} .pixi-inner-content h4' => 'color: {{VALUE}}',
     569                ],
     570            ]
     571        );
     572
     573
     574        $this->add_control(
     575            'hover_content_desc_color',
     576            [
     577                'label' => esc_html__( 'Content Color', 'pixi-image-gallery' ),
     578                'type' => \Elementor\Controls_Manager::COLOR,
     579                'selectors' => [
     580                    '{{WRAPPER}} .pixi-inner-content p' => 'color: {{VALUE}}',
     581                ],
     582            ]
     583        );
     584
     585        $this->add_control(
     586            'hover_content_bg_color',
     587            [
     588                'label' => esc_html__( 'Background Color', 'pixi-image-gallery' ),
     589                'type' => \Elementor\Controls_Manager::COLOR,
     590                'selectors' => [
     591                    '{{WRAPPER}} .pixi-inner-content' => 'background: {{VALUE}}',
     592                ],
     593            ]
     594        );
     595
     596        $this->add_control(
     597            'hover_content_padding',
     598            [
     599                'label' => esc_html__( 'Padding', 'pixi-image-gallery' ),
     600                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     601                'size_units' => [ 'px', '%', 'em' ],
     602                'selectors' => [
     603                    '{{WRAPPER}} .pixi-inner-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     604                ],
     605            ]
     606        );
     607
     608
     609        $this->add_control(
     610            'hover_content_radius',
     611            [
     612                'label' => esc_html__( 'Border radius', 'pixi-image-gallery' ),
     613                'type' => \Elementor\Controls_Manager::DIMENSIONS,
     614                'size_units' => [ 'px', '%', 'em' ],
     615                'selectors' => [
     616                    '{{WRAPPER}} .pixi-inner-content' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     617                ],
     618            ]
     619        );
     620
     621
     622        $this->end_controls_section();
     623
     624        //  Filtering content style
    504625
    505626        $this->start_controls_section(
Note: See TracChangeset for help on using the changeset viewer.