Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.149.233.221
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/wordpress/wp-content/themes/Divi/includes/builder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/wordpress/wp-content/themes/Divi/includes/builder/class-et-builder-value.php
<?php
/**
 * Represent a simple value or a dynamic one.
 * Used for module attributes and content.
 *
 * @package Divi
 * @subpackage Builder
 * @since 3.17.2
 */

/**
 * Class ET_Builder_Value.
 */
class ET_Builder_Value {
	/**
	 * Flag whether the value is static or dynamic.
	 *
	 * @since 3.17.2
	 *
	 * @var bool
	 */
	protected $dynamic = false;

	/**
	 * Value content. Represents the dynamic content type when dynamic.
	 *
	 * @since 3.17.2
	 *
	 * @var string
	 */
	protected $content = '';

	/**
	 * Array of dynamic content settings.
	 *
	 * @since 3.17.2
	 *
	 * @var mixed[]
	 */
	protected $settings = array();

	/**
	 * ET_Builder_Value constructor.
	 *
	 * @since 3.17.2
	 *
	 * @param boolean $dynamic Whether content is dynamic.
	 * @param string  $content Value content.
	 * @param array   $settings Dynamic content settings.
	 */
	public function __construct( $dynamic, $content, $settings = array() ) {
		$this->dynamic  = $dynamic;
		$this->content  = $content;
		$this->settings = $settings;
	}

	/**
	 * Check if the value is dynamic or not.
	 *
	 * @since 3.17.2
	 *
	 * @return bool
	 */
	public function is_dynamic() {
		return $this->dynamic;
	}

	/**
	 * Retrieve the value content.
	 *
	 * @since 4.4.4
	 *
	 * @return string
	 */
	public function get_content() {
		return $this->content;
	}

	/**
	 * Get the resolved content.
	 *
	 * @since 3.17.2
	 *
	 * @param integer $post_id Post id.
	 *
	 * @return string
	 */
	public function resolve( $post_id ) {
		if ( ! $this->dynamic ) {
			return $this->content;
		}

		return et_builder_resolve_dynamic_content( $this->content, $this->settings, $post_id, 'display' );
	}

	/**
	 * Get the static content or a serialized representation of the dynamic one.
	 *
	 * @since 3.17.2
	 *
	 * @return string
	 */
	public function serialize() {
		if ( ! $this->dynamic ) {
			return $this->content;
		}

		return et_builder_serialize_dynamic_content( $this->dynamic, $this->content, $this->settings );
	}
}

Anon7 - 2022
AnonSec Team