__( 'Create an infinite styles buttons.', 'borderless' ), ) // Args ); } /** * Front-end display of widget. * * @see WP_Widget::widget() * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget( $args, $instance ) { extract( $args ); $color = apply_filters( 'widget_color', $instance['color'] ); $type = apply_filters( 'widget_type', $instance['type'] ); $shape = apply_filters( 'widget_shape', $instance['shape'] ); $size = apply_filters( 'widget_size', $instance['size'] ); $button_title = apply_filters( 'widget_button_title', $instance['button_title'] ); $url = apply_filters( 'widget_url', $instance['url'] ); $block = apply_filters( 'widget_block', $instance['block'] ); $no_follow = apply_filters( 'widget_no_follow', $instance['no_follow'] ); $blank = apply_filters( 'widget_blank', $instance['blank'] ); $button_title = $button_title ?: 'Borderless'; $url = $url ?: 'https://wpborderless.com'; $no_follow = ( $no_follow == '1' ) ? 'rel="nofollow"' : ''; $block = ( $block == '1' ) ? 'borderless-btn--block' : ''; $blank = ( $blank == '1' ) ? 'target="_blank"' : ''; // Retrieve data from the database. $options = get_option( 'borderless' ); $borderless_primary_color = isset( $options['primary_color'] ) ? $options['primary_color'] : '#0000FF'; //Primary Color $borderless_secondary_color = isset( $options['secondary_color'] ) ? $options['secondary_color'] : '#FF6819'; //Secondary Color $borderless_tertiary_color = isset( $options['tertiary_color'] ) ? $options['tertiary_color'] : '#3FCC14'; //Accent Color $borderless_text_color = isset( $options['text_color'] ) ? $options['text_color'] : '#333333'; //Text Color ?> class="borderless-btn borderless-widget-button " role="button">
/>
/>
/>