Skip to content

Commit

Permalink
Merge pull request #11 from templaza/dev
Browse files Browse the repository at this point in the history
fix ui card inside style image, update with elementor latest version
  • Loading branch information
tuyencntt authored Feb 20, 2025
2 parents 6d11581 + c3c2afc commit 2c4f45a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion uipro.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin URI: https://github.com/templaza/uipro
Description: This plugin help you manage products.
Author: Templaza
Version: 1.1.2
Version: 1.1.3
Text Domain: uipro
Author URI: http://templaza.com
Forum: https://www.templaza.com/Forums.html
Expand Down
8 changes: 7 additions & 1 deletion widgets/uicard/tpl/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
if($title_position =='left'){
$card_cl = 'uk-flex uk-flex-top';
}

if ($title) {
if ($url && ($url_appear=='button_title' || $url_appear == 'all')) {
$title = '<'.$title_tag.' class="uk-card-title'.$title_style.'"><a href="'.$url.'"'.$attribs.'>'.$title.'</a></'.$title_tag.'>';
Expand All @@ -145,6 +144,13 @@
}

$output .= '<div class="uk-card-body '.$image_content. $general_styles['content_cls'] . '">';
if ($media && $layout_type == 'image' && $image_appear == 'inside') {
if ($url && ($url_appear=='button_media' || $url_appear == 'all')) {
$output .= '<div class="uk-card-media-top ui-media'.$media_margin.' '.$media_class_wrap.'"><a class="tz-img '.$link_class.'" href="'.$url.'"'.$attribs.'>'.$media.'</a></div>';
} else {
$output .= '<div class="uk-card-media-top ui-media'.$media_margin.' '.$media_class_wrap.'">'.$media.'</div>';
}
}
if ($title_position == 'before' || $title_position == 'left') {
if($meta_position == 'before'){
$output .= '<div class="uk-card-meta">'.$meta.'</div>';
Expand Down
10 changes: 10 additions & 0 deletions widgets/uipricing/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,16 @@ public function get_options() {
'type' => \Elementor\Group_Control_Border::get_type(),
'label' => __( 'Card Border', 'uipro' ),
'selector' => '{{WRAPPER}} .ui-pricing-body',
),
array(
'type' => Controls_Manager::DIMENSIONS,
'name' => 'card_radius',
'label' => esc_html__( 'Card Border radius', 'uipro' ),
'responsive' => true,
'size_units' => [ 'px', 'em', '%' ],
'selectors' => [
'{{WRAPPER}} .ui-pricing-body' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}; overflow:hidden;',
],
),
array(
'type' => Controls_Manager::SELECT,
Expand Down
2 changes: 1 addition & 1 deletion widgets/uisocial/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public function get_options() {
'prefix_class' => 'e-grid-align%s-',
'default' => 'center',
'selectors' => [
'{{WRAPPER}} .elementor-widget-container' => 'text-align: {{VALUE}}',
'{{WRAPPER}} .ui-social' => 'text-align: {{VALUE}}',
],
),
array(
Expand Down

0 comments on commit 2c4f45a

Please sign in to comment.