403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/test20.chuangfenglink.xyz/wp-content/themes/woodmart/inc/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/test20.chuangfenglink.xyz/wp-content/themes/woodmart/inc/shortcodes/counter.php
<?php
/**
 * Shortcode for Animated Counter element.
 *
 * @package woodmart
 */

if ( ! defined( 'WOODMART_THEME_DIR' ) ) {
	exit( 'No direct script access allowed' );
}

if ( ! function_exists( 'woodmart_shortcode_animated_counter' ) ) {
	/**
	 * Animated Counter shortcode.
	 *
	 * @param array $atts Shortcode attributes.
	 *
	 * @return string
	 */
	function woodmart_shortcode_animated_counter( $atts ) {
		$output   = '';
		$el_class = apply_filters( 'vc_shortcodes_css_class', '', '', $atts );

		$atts = shortcode_atts(
			array(
				'label'           => '',
				'value'           => 100,
				'start_value'     => 0,
				'time'            => 1000,
				'color_scheme'    => '',
				'color'           => '',
				'size'            => 'default',
				'font_weight'     => 600,
				'align'           => 'center',
				'css'             => '',
				'css_animation'   => 'none',
				'el_class'        => '',
				'woodmart_css_id' => '',
			),
			$atts
		);

		if ( ! $atts['woodmart_css_id'] ) {
			$atts['woodmart_css_id'] = uniqid();
		}
		$counter_id = 'wd-' . $atts['woodmart_css_id'];

		$el_class .= ! empty( $atts['el_class'] ) ? ' ' . $atts['el_class'] : '';
		$el_class .= ' counter-' . $atts['size'];
		$el_class .= ' text-' . $atts['align'];
		$el_class .= ' color-scheme-' . $atts['color_scheme'];
		$el_class .= woodmart_get_css_animation( $atts['css_animation'] );

		if ( function_exists( 'vc_shortcode_custom_css_class' ) ) {
			$el_class .= ' ' . vc_shortcode_custom_css_class( $atts['css'] );
		}

		ob_start();

		woodmart_enqueue_js_library( 'waypoints' );
		woodmart_enqueue_js_script( 'counter-element' );
		woodmart_enqueue_inline_style( 'counter' );

		?>
			<div class="woodmart-counter wd-wpb <?php echo esc_attr( $el_class ); ?>" id="<?php echo esc_attr( $counter_id ); ?>">
				<div class="counter-value wd-font-weight-<?php echo esc_attr( $atts['font_weight'] ); ?>" data-state="new" data-final="<?php echo esc_attr( $atts['value'] ); ?>">
					<?php echo ! empty( $atts['start_value'] ) ? esc_html( $atts['start_value'] ) : 0; ?>
				</div>
				<?php if ( '' !== $atts['label'] ) : ?>
					<div class="counter-label"><?php echo esc_html( $atts['label'] ); ?></div>
				<?php endif ?>
				<?php
				if ( 'custom' === $atts['color_scheme'] && $atts['color'] && ! woodmart_is_css_encode( $atts['color'] ) ) {
					$atts['css']  = '.woodmart-counter#' . esc_attr( $counter_id ) . '{';
					$atts['css'] .= 'color: ' . esc_attr( $atts['color'] ) . ';';
					$atts['css'] .= '}';
					wp_add_inline_style( 'woodmart-inline-css', $atts['css'] );
				}
				?>
			</div>

		<?php
		$output .= ob_get_clean();

		return $output;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit