1)); list($aieo_faq_open, $aieo_faq_close) = AIEO_DMM_UI::card(array( 'anchor' => 'faq-groups', 'description' => __('The groups that sort your questions; add one here and choose it when you add a question.', 'ai-eshop-optimizer'), 'icon' => 'folders', 'title' => __('Groups', 'ai-eshop-optimizer'), )); echo $aieo_faq_open; ?>
__('No groups yet — add one below.', 'ai-eshop-optimizer'))); ?> name); ?> (count); ?>)
array('id' => 'aieo-faq-add-group'))); ?>
2)); list($aieo_faq_open, $aieo_faq_close) = AIEO_DMM_UI::card(array( 'anchor' => 'faq-entries', 'icon' => 'list', 'title' => __('Entries', 'ai-eshop-optimizer'), 'description' => __('Create groups, add questions, drag to reorder, and drag a question into another group to reassign it. Everything saves instantly and the [faq] shortcode reflects it on the storefront. Use “Edit answer” for rich formatting.', 'ai-eshop-optimizer'), 'tools' => '', 'col' => 1, )); echo $aieo_faq_open; ?>
()
'faq-add-a-question', 'description' => __('Write a new question and its answer, choose its group, and add it to the FAQ.', 'ai-eshop-optimizer'), 'icon' => 'plus', 'title' => __('Add a question', 'ai-eshop-optimizer'), 'col' => 2, 'footer' => \Rooster\Admin\Ui::button(__('Add FAQ', 'ai-eshop-optimizer'), array('variant' => 'primary', 'attrs' => array('id' => 'aieo-faq-add'))), )); echo $aieo_faq_open; ?> __('— No group —', 'ai-eshop-optimizer')); foreach ($groups as $g) { $aieo_faq_groups[(string) (int) $g->term_id] = $g->name; } echo '
' . \Rooster\Admin\Ui::field_row(array( 'id' => 'aieo-faq-new-q', 'label' => __('Question', 'ai-eshop-optimizer'), 'control' => \Rooster\Admin\Ui::input('', '', array('id' => 'aieo-faq-new-q', 'placeholder' => __('e.g. How long does delivery take?', 'ai-eshop-optimizer'))), )) . \Rooster\Admin\Ui::field_row(array( 'id' => 'aieo-faq-new-a', 'label' => __('Answer', 'ai-eshop-optimizer'), 'control' => \Rooster\Admin\Ui::textarea('', '', array('id' => 'aieo-faq-new-a', 'rows' => 3)), 'help' => __('Plain text is fine. After saving, use “Edit answer” for rich formatting (links, lists, bold).', 'ai-eshop-optimizer'), )) . \Rooster\Admin\Ui::field_row(array( 'id' => 'aieo-faq-new-question-group', 'label' => __('Group', 'ai-eshop-optimizer'), 'control' => \Rooster\Admin\Ui::select('', $aieo_faq_groups, '0', array('id' => 'aieo-faq-new-question-group')), )) . '
'; echo $aieo_faq_close; rooster_admin_band_close(); ?>