HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: /home/greer489/public_html/wp-content/themes/betheme/muffin-options/fields/logic/field_logic.php
<?php
class MFN_Options_logic extends Mfn_Options_field {

	/**
	 * Render
	 */

	public function render( $meta = false, $vb = false, $js = false ) {

		if( !empty($this->value) ){
			foreach ($this->value as $i=>$val) {
				//print_r($val);
				if( is_array($val) && !empty($val) ){
					foreach ($val as $v=>$value) {
						echo '<input type="text" '.str_replace('conditions]', 'conditions]['.$i.']['.$v.'][key]', $this->get_name( $meta )).' value="'.$value['key'].'">';
						echo '<input type="text" '.str_replace('conditions]', 'conditions]['.$i.']['.$v.'][var]', $this->get_name( $meta )).' value="'.$value['var'].'">';
						echo '<input type="text" '.str_replace('conditions]', 'conditions]['.$i.']['.$v.'][value]', $this->get_name( $meta )).' value="'.$value['value'].'">';
					}
				}
			}
		}

	}
}