403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www/wp-content/plugins/divi-booster/core/module_options/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www/wp-content/plugins/divi-booster/core/module_options/dynamic_content.php
<?php // Handles dynamic content within added module fields

// === Mark fields as dynamic content enabled ===

add_filter('db_pb_slide_field_button_text_2', 'db_set_field_dynamic_content_text');
add_filter('db_pb_slide_field_button_link_2', 'db_set_field_dynamic_content_url');

function db_set_field_dynamic_content_text($field) {
	$field['dynamic_content'] = 'text';
	return $field;
}

function db_set_field_dynamic_content_url($field) {
	$field['dynamic_content'] = 'url';
	return $field;
}


// === Resolve dynamic content in added module fields ===

add_filter('db_pb_slide_args_button_text_2', 'db_resolve_dynamic_content');
add_filter('db_pb_slide_args_button_link_2', 'db_resolve_dynamic_content');

function db_resolve_dynamic_content($content) {
	
	// Parse the dynamic content into an ET_Builder_Value object
	if (!function_exists('et_builder_parse_dynamic_content')) {
		return $content;
	}
	$et_builder_value = et_builder_parse_dynamic_content($content);
	
	$post_id = dbdb_get_current_post_id();
	if (!$post_id) {
		return $content; 
	}
	
	// Resolve the content
	if (!method_exists($et_builder_value, 'resolve')) {
		return $content;
	}
	$content = $et_builder_value->resolve($post_id);
	
	// Return the content
	return $content;
}

Youez - 2016 - github.com/yon3zu
LinuXploit