/home/techb158/balacoffee.com/wp-content/themes/Divi-1/includes/builder
Edit: /home/techb158/balacoffee.com/wp-content/themes/Divi-1/includes/builder/class-et-builder-value.php (2628B)
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 );
}
/**
* Get settings value.
*
* @since 4.23.2
*
* @param string $setting_name Setting name.
*
* @return mixed
*/
public function get_settings( $setting_name ) {
if ( ! isset( $this->settings[ $setting_name ] ) ) {
return null;
}
return $this->settings[ $setting_name ];
}
/**
* Set settings value.
*
* @since 4.23.2
*
* @param string $setting_name Setting name.
* @param mixed $setting_value Setting value.
*
* @return void
*/
public function set_settings( $setting_name, $setting_value ) {
if ( is_null( $setting_value ) ) {
return;
}
$this->settings[ $setting_name ] = $setting_value;
}
}