403Webshell
Server IP : 130.225.57.55  /  Your IP : 216.73.216.60
Web Server : Apache
System : Linux wp-vhost07 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /srv/www/reco2st.eu/https/wp-content/themes/erc04961/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /srv/www/reco2st.eu/https/wp-content/themes/erc04961/components/class-button.php
<?php

class Component_Button {

    protected static $params = [
        'type'          => null, //arrow, solid
        'btn_text'      => 'Read more',
        'btn_link'      => null,
        'extra_class'   => null,
        'target'        => null
    ];

    public static function get_render( $params = [] ) {
        $options = wp_parse_args( $params, self::$params );
        ob_start();

        $btn_type = $options['type'];
        $btn_text = $options['btn_text'];
        $btn_link = $options['btn_link'];
        $btn_extra_class = $options['extra_class'];
        $btn_target = $options['target'];
        ?>

        <a class="btn <?php
            if( $btn_extra_class ) :
                echo $btn_extra_class;
            endif; ?>"
            <?php
            if( $btn_link ) : ?>
             href="<?php echo $btn_link; ?>"
            <?php endif; ?>
            <?php
            if( $btn_target ) : ?>
                target="<?php echo $btn_target; ?>"
            <?php endif; ?>>
            <span class="btn__text">
                <?php MOZ_Utils::upper( $btn_text ); ?>
            </span>
            <span class="btn__icon">
                <?php if ($btn_type == 'arrow') :
                    MOZ_SVG::svg( 'arrow' );
                endif; ?>
            </span>
        </a>

        <?php
        return ob_get_clean();
    }

    public static function render( $params = [] ) {
        echo self::get_render( $params );
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit