settings['return_format'] ) ? $this->settings['return_format'] : '';
$taxonomy_field_type = isset( $this->settings['field_type'] ) ? $this->settings['field_type'] : '';
$taxonomy = isset( $this->settings['taxonomy'] ) ? $this->settings['taxonomy'] : '';
if ( $return_format == 'object' ) {
// Single values
if ( $taxonomy_field_type == 'select' || $taxonomy_field_type == 'radio' ) {
echo $this->indent . htmlspecialchars("var_name." = " . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n";
echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n";
echo $this->indent . htmlspecialchars(" var_name." ) ); ?>\">var_name."->name ); ?>")."\n";
echo $this->indent . htmlspecialchars("")."\n";
}
// Multiple values
if ( $taxonomy_field_type == 'multi_select' || $taxonomy_field_type == 'checkbox' ) {
echo $this->indent . htmlspecialchars("var_name." = " . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>" )."\n";
echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n";
echo $this->indent . htmlspecialchars(" var_name." as \$term ) : ?>")."\n";
echo $this->indent . htmlspecialchars(" \">name ); ?>")."\n";
echo $this->indent . htmlspecialchars(" ")."\n";
echo $this->indent . htmlspecialchars("")."\n";
}
}
if ( $return_format == 'id' ) {
// Single values
if ( $taxonomy_field_type == 'select' || $taxonomy_field_type == 'radio' ) {
echo $this->indent . htmlspecialchars("var_name." = " . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n";
echo $this->indent . htmlspecialchars("var_name.", '".$taxonomy."' ); ?>")."\n";
echo $this->indent . htmlspecialchars("")."\n";
echo $this->indent . htmlspecialchars(" \">name ); ?>")."\n";
echo $this->indent . htmlspecialchars("")."\n";
}
// Multiple values
if ( $taxonomy_field_type == 'multi_select' || $taxonomy_field_type == 'checkbox' ) {
echo $this->indent . htmlspecialchars("var_name." = " . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>" )."\n";
echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n";
echo $this->indent . htmlspecialchars(" indent . htmlspecialchars(" 'taxonomy' => '".$taxonomy."',")."\n";
echo $this->indent . htmlspecialchars(" 'hide_empty' => 0,")."\n";
echo $this->indent . htmlspecialchars(" 'include' => \$".$this->var_name.",")."\n";
echo $this->indent . htmlspecialchars(" ); ?>" )."\n";
echo $this->indent . htmlspecialchars(" ")."\n";
echo $this->indent . htmlspecialchars(" ")."\n";
echo $this->indent . htmlspecialchars(" ")."\n";
echo $this->indent . htmlspecialchars(" \">name ); ?>")."\n";
echo $this->indent . htmlspecialchars(" ")."\n";
echo $this->indent . htmlspecialchars(" ")."\n";
echo $this->indent . htmlspecialchars("")."\n";
}
}