Plugin Directory

Changeset 3230636


Ignore:
Timestamp:
01/28/2025 02:54:56 PM (13 months ago)
Author:
wpcoder75
Message:

added new button style 4

Location:
nex-button
Files:
8 added
4 edited

Legend:

Unmodified
Added
Removed
  • nex-button/trunk/css/advanced-button.css

    r3187773 r3230636  
    158158    }
    159159  }
     160
     161  &.style-4 {
     162    .cb-nex-button {
     163      overflow: hidden;
     164      &::after {
     165        position: absolute;
     166        content: "";
     167        width: 100%;
     168        height: 0;
     169        top: 0;
     170        left: 0;
     171        border-radius: inherit;
     172        background-color: #f00;
     173        visibility: hidden;
     174        transition: all 0.3s ease;
     175      }
     176      &:hover {
     177        &::after {
     178          top: auto;
     179          bottom: 0;
     180          height: 100%;
     181          visibility: visible;
     182        }
     183      }
     184    }
     185    .button-text,
     186    .button-icon {
     187      z-index: 11;
     188      position: relative;
     189    }
     190  }
    160191}
  • nex-button/trunk/nex-button.php

    r3187773 r3230636  
    33 * Plugin Name: NexButton
    44 * Description: Add stylish, customizable buttons to Elementor with various hover effects and animations.
    5  * Version: 1.0.1
     5 * Version: 1.0.2
    66 * Author: wpcoder75
    77 * Author URI: https://github.com/asikwp75
     
    1818
    1919class NexButtonPlugin {
    20     const VERSION = '1.0.0';
     20    const VERSION = '1.0.2';
    2121    const MINIMUM_ELEMENTOR_VERSION = '3.13.2';
    2222    const MINIMUM_PHP_VERSION = '7.4';
  • nex-button/trunk/readme.txt

    r3187773 r3230636  
    1414NexButton Elementor Plugin adds a custom button widget to Elementor, offering a variety of button styles with text and icon customization options.
    1515
     16
    1617### Features:
    17 * Multiple button styles (Style 1 and Style 2)
     18* Multiple button styles (Style 1, Style 2, Style 3 & Style 4)
    1819* Show/Hide button text and icon
    1920* Customizable button colors, backgrounds, and typography
     
    4344== Changelog ==
    4445
    45 = 1.0.0 =
     46
     47= 1.0.2 [28th January 2025] =
     48
     49* Added: New button style "Style 4".
     50
     51= 1.0.1 =
    4652
    4753Initial release of NexButton Elementor Plugin.
  • nex-button/trunk/widgets/advanced-button/advanced-button.php

    r3187773 r3230636  
    5252                    'style-2' => __( 'Style 2', 'nex-button' ),
    5353                    'style-3' => __( 'Style 3', 'nex-button' ),
     54                    'style-4' => __( 'Style 4', 'nex-button' ),
    5455                ],
    5556                'default' => 'style-1',
     
    299300                    '{{WRAPPER}} .cb-nex-button:hover' => 'background-color: {{VALUE}};',
    300301                ],
     302                'condition' => [
     303                    'button_style!' => 'style-4',
     304                ],
     305             ]
     306        );
     307
     308        $this->add_control(
     309            'button_hover_background_color_style-4',
     310            [
     311                'label' => esc_html__( 'Background Color', 'nex-button' ),
     312                'type' => \Elementor\Controls_Manager::COLOR,
     313                'selectors' => [
     314                    '{{WRAPPER}} .cb-nex-button-wrapper.style-4 .cb-nex-button:after' => 'background-color: {{VALUE}};',
     315                ],
     316                'condition' => [
     317                    'button_style' => 'style-4',
     318                ],
    301319            ]
    302320        );
     
    559577        }
    560578
    561         if (!empty($settings['button_style']) && 'style-2' === $settings['button_style']) {
     579        if (!empty($settings['button_style']) && ('style-2' === $settings['button_style'] || 'style-4' === $settings['button_style'])) {
    562580            echo "<span class='button-text'>" . esc_html($text) . "</span>";
    563581        }
Note: See TracChangeset for help on using the changeset viewer.