403Webshell
Server IP : 116.202.121.150  /  Your IP : 216.73.217.152
Web Server : Apache
System : Linux server5.febas.net 6.1.0-52-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64
User : k9887-1 ( 1171)
PHP Version : 8.2.33
Disable Function : show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen, system, shell_exec, passthru, popen, proc_open, exec
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/k9887-1/htdocs/_fisch/wp-content/themes/dt-the7/inc/shortcodes/includes/tabs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/k9887-1/htdocs/_fisch/wp-content/themes/dt-the7/inc/shortcodes/includes/tabs/tabs.php
<?php
/**
 * Tabs shortcode.
 *
 */

// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }

/**
 * Shortcode tabs class.
 *
 */
class DT_Shortcode_Tabs extends DT_Shortcode {

    static protected $instance;

    protected $plugin_name = 'dt_mce_plugin_shortcode_tabs';
    protected $atts = array();

    public static function get_instance() {
        if ( !self::$instance ) {
            self::$instance = new DT_Shortcode_Tabs();
        }
        return self::$instance;
    }

    protected function __construct() {
        add_shortcode( 'dt_tab', array($this, 'shortcode_tab') );
        add_shortcode( 'dt_tabs', array($this, 'shortcode_tabs') );
    }

    public function shortcode_tabs( $atts, $content = null ) {
       $attributes = shortcode_atts( array(
            'style'         => '1',
            'layout'        => 'top'
        ), $atts, 'dt_tabs' );
        
        // sanitize attributes
        $attributes['style'] = in_array($attributes['style'], array('1', '2', '3') ) ? $attributes['style'] : '1';
        switch( $attributes['style'] ) {
            case '2' : $attributes['style'] = 'tab-style-two'; break;
            case '3' : $attributes['style'] = 'tab-style-three'; break;
            default : $attributes['style'] = 'tab-style-one';
        }
        $attributes['layout'] = in_array($attributes['layout'], array('side', 'top')) ? $attributes['layout'] : 'top';

        $this->atts = $attributes;

        $tabs_class = array( 'shortcode-tabs', $attributes['style'] );
        if ( 'side' == $attributes['layout'] ) {
            $tabs_class[] = 'vertical-tab';
        } else {
            $tabs_class[] = 'tab-horizontal';
        }

        $output = sprintf( '<div class="%s">%s</div>', esc_attr(implode(' ', $tabs_class)), do_shortcode($content) );

        return $output; 
    }

    public function shortcode_tab( $atts, $content = null ) {
       $attributes = shortcode_atts( array(
            'title'         => '',
            'opened'        => '0'
        ), $atts, 'dt_tab' );
        
        $attributes['opened'] = apply_filters('dt_sanitize_flag', $attributes['opened']);
        $attributes['title'] = wp_kses($attributes['title'], array());
        
        $output = sprintf( '<div class="tab%1$s">%3$s</div><div class="tab-content%2$s"><div class="tab-inner-content">%4$s</div></div>',
            $attributes['opened'] ? ' active-tab' : '',
            $attributes['opened'] ? ' active-tab-content' : '',
            $attributes['title'],
            do_shortcode(wpautop($content))
        );

        return $output; 
    }

}

// create shortcode
DT_Shortcode_Tabs::get_instance();

Youez - 2016 - github.com/yon3zu
LinuXploit