props; $general = WaicUtils::getArrayValue($props['settings'], 'general', array(), 2); $limitRoles = WaicUtils::getArrayValue($general, 'limit_roles', array(), 2); $roles = WaicUtils::getAllUserRolesList(); ?>
'[' . WAIC_CHATBOT . ' id="' . $props['task_id'] . '"]', 'attrs' => 'readonly class="wbw-small-field wbw-shortcode-field"', )); ?>
getModule()->getModel()->getDisplayPages(); ?>
array( 'shortcode' => __('Shortcode only', 'ai-copilot-content-generator'), 'all' => __('All pages', 'ai-copilot-content-generator'), 'specific' => __('Specific pages', 'ai-copilot-content-generator'), ), 'value' => $displayOn, 'attrs' => 'class="wbw-small-field"', )); ?>
$pages, 'value' => WaicUtils::getArrayValue($general, 'display_pages'), 'attrs' => 'class="wbw-small-field"', )); ?>
WaicUtils::getArrayValue($general, 'display_ids'), )); ?>
array( 'none' => __('Don’t hide anywhere', 'ai-copilot-content-generator'), 'specific' => __('Specific pages', 'ai-copilot-content-generator'), ), 'value' => $hideOn, 'attrs' => 'class="wbw-small-field"', )); ?>
$pages, 'value' => WaicUtils::getArrayValue($general, 'hide_pages'), 'attrs' => 'class="wbw-small-field"', )); ?>
WaicUtils::getArrayValue($general, 'hide_ids'), )); ?>
WaicUtils::getArrayValue($general, 'lifetime', 60, 1, false, true, true), 'attrs' => 'class="wbw-small-field"', )); ?>
WaicUtils::getArrayValue($general, 'max_input', 100, 1, false, true, true), 'attrs' => 'class="wbw-small-field"', )); ?>
WaicUtils::getArrayValue($general, 'max_messages', 10, 1), 'attrs' => 'class="wbw-small-field"', )); ?>
WaicUtils::getArrayValue($general, 'max_context', 10000, 1, false, true, true), 'attrs' => 'class="wbw-small-field"', )); ?>
WaicUtils::getArrayValue($general, 'monthly_limit', 1000000, 1, false, true, true), 'attrs' => 'class="wbw-small-field"', )); ?>
WaicUtils::getArrayValue($general, 'alltime_limit', 1000000, 1, false, true, true), 'attrs' => 'class="wbw-small-field"', )); ?>
WaicUtils::getArrayValue($general, 'e_limit_roles', 0, 1), )); ?>
$roles, 'value' => WaicUtils::getArrayValue($r, 'role'), 'attrs' => 'class="wbw-small-field"', )); WaicHtml::number('general[limit_roles][' . $n . '][max]', array( 'value' => WaicUtils::getArrayValue($r, 'max', '', 1, false, true, true), 'attrs' => 'class="wbw-small-field"', )); $n++; ?>
$roles, 'attrs' => 'class="wbw-small-field wbw-nosave"', )); WaicHtml::number('general[limit_roles][$n][max]', array( 'value' => 1000000, 'attrs' => 'class="wbw-small-field wbw-nosave"', )); ?>