File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,9 +63,6 @@ protected function _register_controls()
6363 'default ' => [
6464 'url ' => \Elementor \Utils::get_placeholder_image_src (),
6565 ],
66- 'selectors ' => [
67- '{{WRAPPER}} .info ' => 'background-color:{{VALUE}}!important; ' ,
68- ],
6966 ]
7067 );
7168 $ this ->add_control (
@@ -87,6 +84,7 @@ protected function _register_controls()
8784 'min ' => 0 ,
8885 'max ' => 1 ,
8986 'step ' => 0.1 ,
87+ 'default ' =>0.8 ,
9088 'selectors ' => [
9189 '{{WRAPPER}} .info ' => 'filter:opacity({{VALUE}})!important; ' ,
9290 ],
@@ -134,7 +132,6 @@ protected function _register_controls()
134132 ]
135133 );
136134 $ this ->end_controls_section ();
137-
138135 $ this ->start_controls_section (
139136 'section_error ' ,
140137 [
@@ -1336,15 +1333,12 @@ protected function render()
13361333 // If not, use the custom default image
13371334 $ featured_image = $ settings ['default_image ' ]['url ' ];
13381335 }
1339- if (is_admin ()) {
1340- echo '<div class="card2" style="background-image: url( ' . $ featured_image . '); "> ' ;
1341- } else {
1342- if (wp_is_mobile ()) {
1336+
1337+ if (wp_is_mobile () || is_admin ()) {
13431338 echo '<div class="card2" style="background-image: url( ' . $ featured_image . ')" > ' ;
13441339 } else {
13451340 echo '<div class="card2" style="background-image: url( ' . $ featured_image . ')" onclick="window.location.href= \'' . $ post_link . '\'"> ' ;
13461341 }
1347- }
13481342 echo '
13491343 <div class="info">
13501344 <a class="title" href=" ' . $ post_link . '"> ' . $ post_title . ' <a/> ' ;
@@ -1453,7 +1447,6 @@ protected function render()
14531447 }
14541448 }
14551449 echo '<style>
1456-
14571450 .category-filter {
14581451 display: flex;
14591452 justify-content:right;
You can’t perform that action at this time.
0 commit comments