29 lines
828 B
PHP
29 lines
828 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Template part for displaying a list with data checked in checkbox list
|
||
|
*
|
||
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||
|
*
|
||
|
* @package Oficina_de_Suport_theme
|
||
|
*/
|
||
|
|
||
|
?>
|
||
|
|
||
|
<?php
|
||
|
//https://developer.wordpress.org/reference/functions/get_template_part/#comment-4130
|
||
|
// var_dump( $args ); //will display everythin imported from
|
||
|
// get_template_part( 'template-parts/section', 'list-checkbox', array('os_acf_field' => 'CHANGETHIS') );
|
||
|
$fielditerate = $args['os_acf_field'];
|
||
|
?>
|
||
|
|
||
|
<?php
|
||
|
$values= get_field($fielditerate);
|
||
|
if( $values ):
|
||
|
?>
|
||
|
<ul class="oficina-support-label color-<?php echo $fielditerate ?>">
|
||
|
<?php foreach( $values as $value ): ?>
|
||
|
<li><?php echo $value; ?></li>
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
<?php endif; ?>
|