Skip to content

Commit

Permalink
Update Latest-Posts-Hover.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Daddie2 committed Mar 26, 2024
1 parent 7b7aa86 commit 4fbad5c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions widgets/Latest-Posts-Hover.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,21 @@ protected function _register_controls()
'label' => esc_html__('Background color', 'Latest-Posts-Hover'),
'type' => \Elementor\Controls_Manager::COLOR,
'default' => '#f8f8f8',
'selectors' => [
'{{WRAPPER}} .info' => 'background-color:{{VALUE}}!important;',
],
]
);
$this->add_control(
'card_opacity',
[
'label' => esc_html__('Card opacity', 'Latest-Posts-Hover'),
'type' => \Elementor\Controls_Manager::NUMBER,
'default' => 0.8,
'min' => 0,
'max' => 1,
'step' => 0.1,
'selectors' => [
'{{WRAPPER}} .info' => 'filter:{{VALUE}}!important;',
'{{WRAPPER}} .info' => 'filter:opacity({{VALUE}})!important;',
],
]
);
Expand Down Expand Up @@ -1095,7 +1097,6 @@ protected function render()

}
$posts = get_posts($args);
$cardColor = $settings['card_color'];
$wordPc = $settings['content_word_pc'];
$wordMobile = $settings['content_word_mobile'];
$place=$settings['Search_place'];
Expand Down Expand Up @@ -1390,7 +1391,7 @@ protected function render()
overflow: hidden;
width: ' . $width . '%;
margin-bottom: 20px;
background-position: center center;
background-position: center;
background-size: cover;
cursor: pointer;
Expand Down

0 comments on commit 4fbad5c

Please sign in to comment.