2022-12-29 00:18:04 +01:00
|
|
|
<?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
|
2022-12-29 16:58:39 +01:00
|
|
|
// https://developer.wordpress.org/reference/functions/get_template_part/#comment-4130
|
|
|
|
// to display this template use
|
|
|
|
// get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'CHANGETHIS') );
|
|
|
|
$fielditerate = $args['iterate_field'];
|
2022-12-29 00:18:04 +01:00
|
|
|
?>
|
|
|
|
|
2022-12-29 00:59:40 +01:00
|
|
|
<?php
|
2023-01-06 13:20:49 +01:00
|
|
|
$fields= get_field($fielditerate);
|
|
|
|
if( $fields ):
|
2022-12-29 00:59:40 +01:00
|
|
|
?>
|
2022-12-30 22:50:04 +01:00
|
|
|
<ul class="oficina-suport-label item-<?php echo $fielditerate ?>">
|
2023-01-06 13:20:49 +01:00
|
|
|
<?php foreach( $fields as $field ): ?>
|
|
|
|
<li>
|
|
|
|
<?php echo $field['label']; ?>
|
|
|
|
</li>
|
2022-12-29 00:59:40 +01:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
2022-12-29 00:18:04 +01:00
|
|
|
<?php endif; ?>
|