Plugin Directory

Changeset 3187773


Ignore:
Timestamp:
11/13/2024 03:37:29 PM (16 months ago)
Author:
wpcoder75
Message:

added new featured and banner img added v 1.0.1

Location:
nex-button
Files:
10 added
4 edited

Legend:

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

    r3185804 r3187773  
    1313  position: relative;
    1414  text-transform: capitalize;
     15  outline: none;
    1516}
    1617
     
    6162  color: #15171a;
    6263}
     64
     65/* style 3 button  */
     66.cb-nex-button-wrapper {
     67  &.style-3 {
     68    .cb-nex-button {
     69      position: relative;
     70      border: 2px solid #15171a;
     71      &:hover {
     72        background: transparent;
     73        border-color: #15171a;
     74        color: #15171a;
     75        .cb-star {
     76          opacity: 1;
     77          z-index: 2;
     78          filter: drop-shadow(0 0 10px #fffdef);
     79        }
     80        .cb-star-1 {
     81          top: -80%;
     82          left: -30%;
     83        }
     84        .cb-star-2 {
     85          top: -25%;
     86          left: 10%;
     87        }
     88        .cb-star-3 {
     89          top: 55%;
     90          left: 25%;
     91        }
     92        .cb-star-4 {
     93          top: 30%;
     94          left: 80%;
     95        }
     96        .cb-star-5 {
     97          top: 25%;
     98          left: 115%;
     99        }
     100        .cb-star-6 {
     101          top: 5%;
     102          left: 60%;
     103        }
     104      }
     105    }
     106    .cb-star {
     107      position: absolute;
     108      z-index: -5;
     109      opacity: 0;
     110      pointer-events: none;
     111      transition: opacity 0.5s ease;
     112      filter: drop-shadow(0 0 0 #fffdef);
     113
     114      &.cb-star-1 {
     115        top: 20%;
     116        left: 20%;
     117        width: 25px;
     118        transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
     119      }
     120
     121      &.cb-star-2 {
     122        top: 45%;
     123        left: 45%;
     124        width: 15px;
     125        transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
     126      }
     127
     128      &.cb-star-3 {
     129        top: 40%;
     130        left: 40%;
     131        width: 5px;
     132        transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
     133      }
     134
     135      &.cb-star-4 {
     136        top: 20%;
     137        left: 40%;
     138        width: 8px;
     139        transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01);
     140      }
     141
     142      &.cb-star-5 {
     143        top: 25%;
     144        left: 45%;
     145        width: 15px;
     146        transition: all 0.6s cubic-bezier(0, 0.4, 0, 1.01);
     147      }
     148
     149      &.cb-star-6 {
     150        top: 5%;
     151        left: 50%;
     152        width: 5px;
     153        transition: all 0.8s ease;
     154      }
     155    }
     156    .cb-star-icon {
     157      fill: #15171a;
     158    }
     159  }
     160}
  • nex-button/trunk/nex-button.php

    r3186462 r3187773  
    33 * Plugin Name: NexButton
    44 * Description: Add stylish, customizable buttons to Elementor with various hover effects and animations.
    5  * Version: 1.0.0
     5 * Version: 1.0.1
    66 * Author: wpcoder75
    77 * Author URI: https://github.com/asikwp75
  • nex-button/trunk/readme.txt

    r3186014 r3187773  
    44Requires at least: 5.0
    55Tested up to: 6.6
    6 Stable Tag: 1.0.0
     6Stable Tag: 1.0.1
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    4444
    4545= 1.0.0 =
    46 * Initial release of the NexButton Elementor plugin with customizable styles, icons, and hover effects.
    4746
     47Initial release of NexButton Elementor Plugin.
     48Features include customizable button styles, icons, and hover effects.
     49= 1.0.1 =
     50
     51New Feature: Added Style 3 Button.
    4852== Upgrade Notice ==
    49 = 1.0.0 =
    50 Initial release. No upgrade needed yet.
     53
     54= 1.0.0 = Initial release. No upgrade necessary.
     55
     56= 1.0.1 =
     57Added new Style 3 button option, enhancing design flexibility.
    5158
    5259== Screenshots ==
  • nex-button/trunk/widgets/advanced-button/advanced-button.php

    r3185804 r3187773  
    5151                    'style-1' => __( 'Style 1', 'nex-button' ),
    5252                    'style-2' => __( 'Style 2', 'nex-button' ),
     53                    'style-3' => __( 'Style 3', 'nex-button' ),
    5354                ],
    5455                'default' => 'style-1',
     
    325326        $this->end_controls_tab();
    326327        $this->end_controls_tabs();
     328
     329        //star icon
     330        $this->add_control(
     331            'heading_icon',
     332            [
     333                'label' => __( 'Star', 'nex-button' ),
     334                'type' => \Elementor\Controls_Manager::HEADING,
     335                'separator' => 'before',
     336            ]
     337        );
     338
     339        $this->add_control(
     340            'star_color',
     341            [
     342                'label' => esc_html__( 'Color', 'nex-button' ),
     343                'type' => \Elementor\Controls_Manager::COLOR,
     344                'selectors' => [
     345                    '{{WRAPPER}} .cb-star-icon' => 'fill: {{VALUE}};',
     346                ],
     347            ]
     348        );
     349
    327350        $this->end_controls_section();
    328351   
     
    339362        $this->start_controls_tabs( 'button_icon_style_tabs' );
    340363
    341         // normal state
    342         $this->start_controls_tab(
    343             'button_icon_style_normal_tab',
    344             [
    345                 'label' => esc_html__( 'Normal', 'nex-button' ),
    346             ]
    347         );
     364                // normal state
     365                $this->start_controls_tab(
     366                    'button_icon_style_normal_tab',
     367                    [
     368                        'label' => esc_html__( 'Normal', 'nex-button' ),
     369                    ]
     370                );
    348371
    349372                // Icon size
     
    540563        }
    541564
     565        if (!empty($settings['button_style']) && 'style-3' === $settings['button_style']) {
     566            echo "<span class='button-text'>" . esc_html($text) . "</span>";
     567            echo "<div class='cb-star cb-star-1'>
     568                    <svg
     569                        xmlns='http://www.w3.org/2000/svg'
     570                        xml:space='preserve'
     571                        version='1.1'
     572                        style='shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd'
     573                        viewBox='0 0 784.11 815.53'
     574                        xmlns:xlink='http://www.w3.org/1999/xlink'
     575                    >
     576                        <defs></defs>
     577                        <g id='Layer_x0020_1'>
     578                            <metadata id='CorelCorpID_0Corel-Layer'></metadata>
     579                            <path
     580                                class='cb-star-icon'
     581                                d='M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z'
     582                            ></path>
     583                        </g>
     584                    </svg>
     585                </div>";
     586       
     587            echo "<div class='cb-star cb-star-2'>
     588                    <svg
     589                        xmlns='http://www.w3.org/2000/svg'
     590                        xml:space='preserve'
     591                        version='1.1'
     592                        style='shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd'
     593                        viewBox='0 0 784.11 815.53'
     594                        xmlns:xlink='http://www.w3.org/1999/xlink'
     595                    >
     596                        <defs></defs>
     597                        <g id='Layer_x0020_1'>
     598                            <metadata id='CorelCorpID_0Corel-Layer'></metadata>
     599                            <path
     600                                class='cb-star-icon'
     601                                d='M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z'
     602                            ></path>
     603                        </g>
     604                    </svg>
     605                </div>";
     606       
     607            echo "<div class='cb-star cb-star-3'>
     608                    <svg
     609                        xmlns='http://www.w3.org/2000/svg'
     610                        xml:space='preserve'
     611                        version='1.1'
     612                        style='shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd'
     613                        viewBox='0 0 784.11 815.53'
     614                        xmlns:xlink='http://www.w3.org/1999/xlink'
     615                    >
     616                        <defs></defs>
     617                        <g id='Layer_x0020_1'>
     618                            <metadata id='CorelCorpID_0Corel-Layer'></metadata>
     619                            <path
     620                                class='cb-star-icon'
     621                                d='M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z'
     622                            ></path>
     623                        </g>
     624                    </svg>
     625                </div>";
     626       
     627            echo "<div class='cb-star cb-star-4'>
     628                    <svg
     629                        xmlns='http://www.w3.org/2000/svg'
     630                        xml:space='preserve'
     631                        version='1.1'
     632                        style='shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd'
     633                        viewBox='0 0 784.11 815.53'
     634                        xmlns:xlink='http://www.w3.org/1999/xlink'
     635                    >
     636                        <defs></defs>
     637                        <g id='Layer_x0020_1'>
     638                            <metadata id='CorelCorpID_0Corel-Layer'></metadata>
     639                            <path
     640                                class='cb-star-icon'
     641                                d='M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z'
     642                            ></path>
     643                        </g>
     644                    </svg>
     645                </div>";
     646       
     647            echo "<div class='cb-star cb-star-5'>
     648                    <svg
     649                        xmlns='http://www.w3.org/2000/svg'
     650                        xml:space='preserve'
     651                        version='1.1'
     652                        style='shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd'
     653                        viewBox='0 0 784.11 815.53'
     654                        xmlns:xlink='http://www.w3.org/1999/xlink'
     655                    >
     656                        <defs></defs>
     657                        <g id='Layer_x0020_1'>
     658                            <metadata id='CorelCorpID_0Corel-Layer'></metadata>
     659                            <path
     660                                class='cb-star-icon'
     661                                d='M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z'
     662                            ></path>
     663                        </g>
     664                    </svg>
     665                </div>";
     666       
     667            echo "<div class='cb-star cb-star-6'>
     668                    <svg
     669                        xmlns='http://www.w3.org/2000/svg'
     670                        xml:space='preserve'
     671                        version='1.1'
     672                        style='shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd'
     673                        viewBox='0 0 784.11 815.53'
     674                        xmlns:xlink='http://www.w3.org/1999/xlink'
     675                    >
     676                        <defs></defs>
     677                        <g id='Layer_x0020_1'>
     678                            <metadata id='CorelCorpID_0Corel-Layer'></metadata>
     679                            <path
     680                                class='cb-star-icon'
     681                                d='M392.05 0c-20.9,210.08 -184.06,378.41 -392.05,407.78 207.96,29.37 371.12,197.68 392.05,407.74 20.93,-210.06 184.09,-378.37 392.05,-407.74 -207.98,-29.38 -371.16,-197.69 -392.06,-407.78z'
     682                            ></path>
     683                        </g>
     684                    </svg>
     685                </div>";
     686        }
     687
    542688        if (!empty($settings['button_icon_switcher']) && 'yes' === $settings['button_icon_switcher']) {
    543689            echo "<span class='button-icon'>";
     
    546692        }
    547693
     694       
     695
     696       
     697
    548698        echo '</a>';
    549699        echo '</div>';
Note: See TracChangeset for help on using the changeset viewer.