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/wp.3/wp-content/plugins/js_composer/include/classes/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.3/wp-content/plugins/js_composer/include/classes/shortcodes/vc-copyright.php
<?php
/**
 * Class that handles specific [vc_copyright] shortcode.
 *
 * @see js_composer/include/templates/shortcodes/vc_copyright.php
 *
 * @since 8.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

/**
 * Class WPBakeryShortCode_Vc_Copyright
 *
 * @since 8.0
 */
class WPBakeryShortCode_Vc_Copyright extends WPBakeryShortCode {
	/**
	 * Template variables.
	 *
	 * @var array
	 * @since 8.0
	 */
	protected $template_vars = [];

	/**
	 * Build templates vars where we are keeping element optionality
	 *
	 * @since 8.0
	 *
	 * @param array $atts
	 * @throws Exception
	 */
	public function buildTemplate( $atts ) {
		$output = [];
		$inline_css = [];

		$output['css-class'] = $this->get_element_wrapper_classes( 'wpb-copyright', $atts );

		if ( isset( $atts['style'] ) && 'custom' === $atts['style'] ) {
			if ( ! empty( $atts['custom_background'] ) ) {
				$inline_css[] = vc_get_css_color( 'background-color', $atts['custom_background'] );
			}
		}

		$output['inline-css'] = $inline_css;

		$this->template_vars = $output;
	}

	/**
	 * Get list of elements classes that we attach to class wrapper tag.
	 * Usually we attach there classes related to animation, default element class and etc
	 *
	 * @since 8.0
	 *
	 * @param string $element_class
	 * @param array $atts
	 *
	 * @return array
	 */
	public function get_element_wrapper_classes( $element_class, $atts ) {
		$main_wrapper_classes = [ $element_class ];
		if ( ! empty( $atts['el_class'] ) ) {
			$main_wrapper_classes[] = $atts['el_class'];
		}

		if ( ! empty( $atts['css_animation'] ) ) {
			$main_wrapper_classes[] = $this->getCSSAnimation( $atts['css_animation'] );
		}

		if ( ! empty( $atts['css'] ) ) {
			$main_wrapper_classes[] = vc_shortcode_custom_css_class( $atts['css'] );
		}

		if ( ! empty( $this->settings['element_default_class'] ) ) {
			$main_wrapper_classes[] = $this->settings['element_default_class'];
		}

		return $main_wrapper_classes;
	}

	/**
	 * Get certain template variable value.
	 *
	 * @since 8.0
	 *
	 * @param string $var_name
	 * @return mixed|string
	 */
	public function getTemplateVariable( $var_name ) {
		if ( is_array( $this->template_vars ) && isset( $this->template_vars[ $var_name ] ) ) {
			return $this->template_vars[ $var_name ];
		}

		return '';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit