Skip to content

Commit

Permalink
v3.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
shaonsina committed Mar 15, 2020
1 parent 251f6ec commit 52a6dfc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,20 @@ Note: This is an extension for Elementor. So make sure you have Elementor (https

No. You can't use without Elementor since it's an extension for Elementor.

= Can I use the plugin with any WordPress theme? =

Yes. The plugin will work with any WordPress theme as long as you are using the Elementor as a page builder.

= Can I use it free? =

Yes. It's totally free.
Yes. It's totally free. We also have a PRO version.


== Changelog ==

= 3.2.5 - 15-03-2020 =
- Added: Custom Class option to Dynamic Button
- Fixed: Multi-site Template issue


= 3.2.4 - 09-03-2020 =
Expand Down
10 changes: 9 additions & 1 deletion widgets/basic/sina-dynamic-button.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ protected function _register_controls() {
],
]
);
$this->add_control(
'css_class',
[
'label' => __( 'CSS CLASS', 'sina-ext' ),
'type' => Controls_Manager::TEXT,
'placeholder' => __( 'Enter CLASS', 'sina-ext' ),
]
);
$this->add_control(
'css_id',
[
Expand Down Expand Up @@ -366,7 +374,7 @@ protected function render() {
$data['btn_text'] = $btn_text;
?>
<div class="sina-dynamic-button">
<a class="sina-dynamic-btn <?php echo esc_attr($data['btn_effect'].' '.$data['bg_layer_effects']); ?>" href="<?php echo esc_url( $btn_link ); ?>"
<a class="sina-dynamic-btn <?php echo esc_attr($data['css_class'].' '.$data['btn_effect'].' '.$data['bg_layer_effects']); ?>" href="<?php echo esc_url( $btn_link ); ?>"
<?php if ( $data['css_id'] ): ?>
id="<?php echo esc_attr( $data['css_id'] ); ?>"
<?php endif; ?>
Expand Down

0 comments on commit 52a6dfc

Please sign in to comment.