' . esc_html__( 'Save', 'ai-eshop-optimizer' ) . ''; if ( is_array( $shape ) ) { $html .= ' ' . AIEO_Kit::button( __( 'Cancel', 'ai-eshop-optimizer' ), array( 'href' => $page_url ) ); } return $html; }; $aieo_gsu_chips = static function () use ( $shape, $edit_url, $reduced_on, $reduced_url ) { if ( ! is_array( $shape ) ) { return; } ?>
'ghost', 'size' => 'sm', 'attrs' => array( 'data-aieo-submit' => true ) ) ); ?>
'; $aieo_gsu_identity = static function () use ( $identity ) { if ( ! is_array( $identity ) ) { return; } $logo = (string) $identity['logo']; ?> 'getting-set-up-identity', 'icon' => 'palette', 'title' => __( 'How your identity looks', 'ai-eshop-optimizer' ), 'description' => __( 'These three were configured in three different screens before. Now they are one: the share card, the invoice header and the organisation block on every page read the same name, logo, address and phone.', 'ai-eshop-optimizer' ), 'attrs' => array( 'data-aieo-identity' => '' !== $logo ? 'logo' : 'name' ), ) ); echo $aieo_gsu_open; ?>


0 ) { $aieo_gsu_bits[] = sprintf( _n( '%d module switch', '%d module switches', (int) $preset['modules'], 'ai-eshop-optimizer' ), (int) $preset['modules'] ); } if ( (int) $preset['overlaps'] > 0 ) { $aieo_gsu_bits[] = sprintf( _n( '%d overlap decision', '%d overlap decisions', (int) $preset['overlaps'], 'ai-eshop-optimizer' ), (int) $preset['overlaps'] ); } } list( $aieo_gsu_open, $aieo_gsu_close ) = AIEO_DMM_UI::card( array( 'anchor' => 'getting-set-up-preset', 'icon' => 'layout-template', 'title' => __( 'Preset for the next shop', 'ai-eshop-optimizer' ), 'description' => __( 'The shape answer, the module switches and the overlap decisions, as one block of text. Not progress: the checklist on the next shop reads that shop, and does so the moment a preset is applied. Copy this into another site\'s Getting set up page, or paste one here.', 'ai-eshop-optimizer' ), 'class' => 'aieo-gsu-preset', 'footer' => \Rooster\Admin\Ui::button( __( 'Apply the pasted preset', 'ai-eshop-optimizer' ), array( 'type' => 'submit', 'attrs' => array( 'form' => 'aieo-gsu-preset-form' ) ) ), ) ); echo $aieo_gsu_open; if ( 'applied' === (string) $preset['flag'] ) { $aieo_gsu_applied = sprintf( __( 'Applied: %s. Every line below was re-read from this install.', 'ai-eshop-optimizer' ), implode( ', ', $aieo_gsu_bits ) ); echo \Rooster\Admin\Ui::notice( esc_html( $aieo_gsu_applied ), 'success', array( 'inline' => true ) ); } elseif ( 'invalid' === (string) $preset['flag'] ) { echo \Rooster\Admin\Ui::notice( esc_html( '' !== (string) $preset['error'] ? $preset['error'] : __( 'The preset could not be applied.', 'ai-eshop-optimizer' ) ), 'warning', array( 'inline' => true ) ); } ?> 'aieo-gsu-preset-out', 'rows' => 10, 'readonly' => true, 'code' => true, 'aria-label' => __( 'This shop\'s preset', 'ai-eshop-optimizer' ) ) ) ); ?>
'aieo-gsu-preset-in', 'rows' => 4, 'code' => true, 'placeholder' => '{"schema": 1, …}' ) ); ?>
0 ) { $aieo_gsu_flag_text = sprintf( _n( 'Saved. %d page was pinned to your header as a suggestion, drawn dotted until you use it. Unpin anything you do not want.', 'Saved. %d pages were pinned to your header as suggestions, drawn dotted until you use them. Unpin any you do not want.', $seeded, 'ai-eshop-optimizer' ), $seeded ); } else { $aieo_gsu_flag_text = __( 'Saved.', 'ai-eshop-optimizer' ); } echo \Rooster\Admin\Ui::notice( esc_html( $aieo_gsu_flag_text ), 'success' ); } elseif ( 'incomplete' === $flag ) { echo \Rooster\Admin\Ui::notice( esc_html__( 'The first two questions need an answer to save. The third can wait.', 'ai-eshop-optimizer' ), 'warning' ); } ?> 1 ) ); } list( $aieo_gsu_open, $aieo_gsu_close ) = AIEO_DMM_UI::card( array( 'anchor' => 'getting-set-up-your-site', 'icon' => 'globe', 'title' => __( 'Your site', 'ai-eshop-optimizer' ), ) ); echo $aieo_gsu_open; ?>

$label ) : ?>
'sm', 'attrs' => array( 'data-aieo-submit' => true ) ) ); ?>
'page', 'stages' => $stages ) ); } $aieo_gsu_on = array_values( array_filter( (array) $running, static function ( $r ) { return ! empty( $r['on'] ); } ) ); $aieo_gsu_all = count( (array) $running ); if ( empty( $aieo_gsu_on ) ) { $aieo_gsu_run_desc = __( 'Nothing is producing storefront output or capturing data yet.', 'ai-eshop-optimizer' ); } else { $aieo_gsu_run_desc = sprintf( _n( '%1$d thing is already doing something on your storefront. Here it is, and here is its switch. %2$d behaviours were checked; the rest are off.', '%1$d things are already doing something on your storefront. Here they are, and here is the switch for each. %2$d behaviours were checked; the rest are off.', count( $aieo_gsu_on ), 'ai-eshop-optimizer' ), count( $aieo_gsu_on ), $aieo_gsu_all ); } if ( function_exists( 'rooster_admin_band_open' ) ) { rooster_admin_band_open( array( 'cols' => 1 ) ); } list( $aieo_gsu_open, $aieo_gsu_close ) = AIEO_DMM_UI::card( array( 'anchor' => 'getting-set-up-running', 'icon' => 'activity', 'title' => __( 'What is already running', 'ai-eshop-optimizer' ), 'description' => $aieo_gsu_run_desc, 'attrs' => array( 'data-aieo-running-on' => (string) count( $aieo_gsu_on ) ), ) ); echo $aieo_gsu_open; ?> 'getting-set-up-dark', 'icon' => 'moon', 'title' => __( 'Screens that were empty when you opened them', 'ai-eshop-optimizer' ), 'description' => __( 'A report that shows nothing is nearly always waiting for an input two steps upstream. The open steps in the checklist name which screen each one feeds; this list says which screens you actually went looking for.', 'ai-eshop-optimizer' ), 'attrs' => array( 'data-aieo-dark-count' => (string) count( $dark ) ), ) ); echo $aieo_gsu_open; ?> 1 ) ); } list( $aieo_gsu_open, $aieo_gsu_close ) = AIEO_DMM_UI::card( array( 'anchor' => 'getting-set-up-blank-shop', 'icon' => 'inbox', 'title' => __( 'Nothing to set up yet', 'ai-eshop-optimizer' ), 'description' => $aieo_gsu_blank_desc, ) ); echo $aieo_gsu_open; ?> '' !== (string) $facts['competitor'] ? 3 : 2 ) ); } list( $aieo_gsu_open, $aieo_gsu_close ) = AIEO_DMM_UI::card( array( 'anchor' => 'getting-set-up-shape', 'icon' => 'shapes', 'title' => __( 'What kind of shop will this be?', 'ai-eshop-optimizer' ), 'meta' => \Rooster\Admin\Ui::badge( '1', 'mono', array( 'sm' => true ) ), 'footer' => ( is_array( $shape ) && ! $editing ) ? '' : $aieo_gsu_form_footer(), ) ); echo $aieo_gsu_open; ?>

$first_win['url'] ) ); ?>

'getting-set-up-make-it-yours', 'icon' => 'pencil-line', 'title' => (string) $aieo_gsu_a['label'], 'description' => __( 'The only stage fully answerable with zero products, and data the plugin genuinely needs: these four values feed the organisation schema, the invoice header, the transactional email header and the share cards, which today are configured in four different screens.', 'ai-eshop-optimizer' ), 'meta' => \Rooster\Admin\Ui::badge( '2', 'mono', array( 'sm' => true ) ) . ' ' . \Rooster\Admin\Ui::badge( $aieo_gsu_a_count, 'info', array( 'sm' => true ) ), ) ); echo $aieo_gsu_open; $aieo_gsu_stage( $aieo_gsu_a, false ); echo $aieo_gsu_close; endif; ?> 'getting-set-up-overlap', 'icon' => 'copy', 'title' => __( 'Your SEO plugin', 'ai-eshop-optimizer' ), 'description' => sprintf( __( '%s and Rooster One both do SEO.', 'ai-eshop-optimizer' ), $facts['competitor'] ), 'meta' => \Rooster\Admin\Ui::badge( '3', 'mono', array( 'sm' => true ) ), 'class' => '' !== $aieo_gsu_ov ? 'is-decided' : '', 'attrs' => array( 'data-aieo-overlap-decision' => (string) $aieo_gsu_ov ), ) ); echo $aieo_gsu_open; ?>

$overlaps_url ) ); ?>

1 ) ); } list( $aieo_gsu_open, $aieo_gsu_close ) = AIEO_DMM_UI::card( array( 'anchor' => 'getting-set-up-waiting', 'icon' => 'clock', 'title' => __( 'When your first products land', 'ai-eshop-optimizer' ), 'footnote' => __( 'Nothing here is locked. It is waiting.', 'ai-eshop-optimizer' ), ) ); echo $aieo_gsu_open; ?>
$edit_url ) ); ?> 1 ) ); } list( $aieo_gsu_open, $aieo_gsu_close ) = AIEO_DMM_UI::card( array( 'anchor' => 'getting-set-up-confirm', 'icon' => 'circle-question-mark', 'title' => __( 'Is this your shop?', 'ai-eshop-optimizer' ), 'description' => $aieo_gsu_confirm_desc, 'footer' => $aieo_gsu_confirm_footer, ) ); echo $aieo_gsu_open; echo $aieo_gsu_close; ?> 1 ) ); } ?> 'getting-set-up-shape', 'icon' => 'shapes', 'title' => __( 'What kind of shop is this?', 'ai-eshop-optimizer' ), 'description' => $aieo_gsu_shape_desc, 'footer' => $aieo_gsu_form_footer(), ) ); echo $aieo_gsu_open; $aieo_gsu_form(); echo $aieo_gsu_close; ?> 'getting-set-up-first-win', 'icon' => 'rocket', 'title' => __( 'Start here', 'ai-eshop-optimizer' ), 'description' => (string) $first_win['why'], 'footer' => '' . esc_html( $aieo_gsu_fw_open ) . '', ) ); echo $aieo_gsu_open; echo $aieo_gsu_close; ?> 'getting-set-up-checklist', 'icon' => 'list-checks', 'title' => __( 'Set-up checklist', 'ai-eshop-optimizer' ), 'description' => __( 'Every line is read from the install on every visit; nothing here remembers a click. A tick means it is true now. A step you hide or mark as not applying can be brought back with the count beside it.', 'ai-eshop-optimizer' ), ) ); echo $aieo_gsu_open; foreach ( $stages as $aieo_gsu_s ) { $aieo_gsu_stage( $aieo_gsu_s ); } echo $aieo_gsu_close; ?>