props; $bodys = WaicUtils::getArrayValue($data, 'r', array(), 2);//$data['r']; $isOne = count($bodys) <= 1; if ($isOne) { $canRefresh = !empty($data['s']); } else { $sections = WaicUtils::getArrayValue($results, 'sections', array(), 2); $refresh = array(); foreach ($bodys as $n => $b) { if (!empty($b['s'])) { $refresh[$n] = $props['section_text'] . ' ' . $n; } } $canRefresh = !empty($refresh); //if ($canRefresh && 1 == $data['s']) { if ($canRefresh) { $refresh['all'] = __('All sections', 'ai-copilot-content-generator'); } } ?>
$refresh, 'attrs' => 'class="waic-refresh-data wbw-small-field"', )); ?>
$body) { ?>