Domain: antoinekatan.com
Server Adress: 10.127.20.23

privdayz.com

/home/xdxuekl/www/wp-content/themes/quart/framework/modules/widgets/button-widget/
Dosya Yükle :
Current File : /home/xdxuekl/www/wp-content/themes/quart/framework/modules/widgets/button-widget/button.php

<?php

if ( class_exists( 'QuartCoreClassWidget' ) ) {
    class QuartMikadoClassButtonWidget extends QuartCoreClassWidget {
        public function __construct() {
            parent::__construct(
                'mkdf_button_widget',
                esc_html__( 'Quart Button Widget', 'quart' ),
                array( 'description' => esc_html__( 'Add button element to widget areas', 'quart' ) )
            );

            $this->setParams();
        }

        protected function setParams() {
            $this->params = array(
                array(
                    'type'    => 'dropdown',
                    'name'    => 'type',
                    'title'   => esc_html__( 'Type', 'quart' ),
                    'options' => array(
                        'solid'   => esc_html__( 'Solid', 'quart' ),
                        'outline' => esc_html__( 'Outline', 'quart' ),
                        'simple'  => esc_html__( 'Simple', 'quart' )
                    )
                ),
                array(
                    'type'        => 'dropdown',
                    'name'        => 'size',
                    'title'       => esc_html__( 'Size', 'quart' ),
                    'options'     => array(
                        'small'  => esc_html__( 'Small', 'quart' ),
                        'medium' => esc_html__( 'Medium', 'quart' ),
                        'large'  => esc_html__( 'Large', 'quart' ),
                        'huge'   => esc_html__( 'Huge', 'quart' )
                    ),
                    'description' => esc_html__( 'This option is only available for solid and outline button type', 'quart' )
                ),
                array(
                    'type'    => 'textfield',
                    'name'    => 'text',
                    'title'   => esc_html__( 'Text', 'quart' ),
                    'default' => esc_html__( 'Button Text', 'quart' )
                ),
                array(
                    'type'  => 'textfield',
                    'name'  => 'link',
                    'title' => esc_html__( 'Link', 'quart' )
                ),
                array(
                    'type'    => 'dropdown',
                    'name'    => 'target',
                    'title'   => esc_html__( 'Link Target', 'quart' ),
                    'options' => quart_mikado_get_link_target_array()
                ),
                array(
                    'type'  => 'colorpicker',
                    'name'  => 'color',
                    'title' => esc_html__( 'Color', 'quart' )
                ),
                array(
                    'type'  => 'colorpicker',
                    'name'  => 'hover_color',
                    'title' => esc_html__( 'Hover Color', 'quart' )
                ),
                array(
                    'type'        => 'colorpicker',
                    'name'        => 'background_color',
                    'title'       => esc_html__( 'Background Color', 'quart' ),
                    'description' => esc_html__( 'This option is only available for solid button type', 'quart' )
                ),
                array(
                    'type'        => 'colorpicker',
                    'name'        => 'hover_background_color',
                    'title'       => esc_html__( 'Hover Background Color', 'quart' ),
                    'description' => esc_html__( 'This option is only available for solid button type', 'quart' )
                ),
                array(
                    'type'        => 'colorpicker',
                    'name'        => 'border_color',
                    'title'       => esc_html__( 'Border Color', 'quart' ),
                    'description' => esc_html__( 'This option is only available for solid and outline button type', 'quart' )
                ),
                array(
                    'type'        => 'colorpicker',
                    'name'        => 'hover_border_color',
                    'title'       => esc_html__( 'Hover Border Color', 'quart' ),
                    'description' => esc_html__( 'This option is only available for solid and outline button type', 'quart' )
                ),
                array(
                    'type'        => 'textfield',
                    'name'        => 'margin',
                    'title'       => esc_html__( 'Margin', 'quart' ),
                    'description' => esc_html__( 'Insert margin in format: top right bottom left (e.g. 10px 5px 10px 5px)', 'quart' )
                )
            );
        }

        public function widget( $args, $instance ) {
            $params = '';

            if ( ! is_array( $instance ) ) {
                $instance = array();
            }

            // Filter out all empty params
            $instance = array_filter( $instance, function ( $array_value ) {
                return trim( $array_value ) != '';
            } );

            // Default values
            if ( ! isset( $instance['text'] ) ) {
                $instance['text'] = 'Button Text';
            }

            // Generate shortcode params
            foreach ( $instance as $key => $value ) {
                $params .= " $key='$value' ";
            }

            echo '<div class="widget mkdf-button-widget">';
            echo do_shortcode( "[mkdf_button $params]" ); // XSS OK
            echo '</div>';
        }
    }
}

coded by Privdayz.com - Visit https://privdayz.com/ for more php shells.