1 ) );
list( $aieo_hl_open, $aieo_hl_close ) = AIEO_DMM_UI::card( array(
'anchor' => 'header-actions-header-layout',
'icon' => 'rows-3',
'title' => __( 'Header layout', 'ai-eshop-optimizer' ),
'description' => __( 'The rows of the site\'s header and what each one holds: the logo, the search field, the header actions, the catalogue button, the menu, social icons and up to three texts, each in a row and a place, left, centre or right, with the announcement above them. The schematic shows the rows in the site\'s colours as you change them; Save makes them the site\'s header when the switch is on.', 'ai-eshop-optimizer' ),
'col' => 1,
'footer' => $aieo_hl_ready ? States::save_button( 'aieo-dmm-header-layout-form' ) : '',
) );
echo $aieo_hl_open;
if ( ! $aieo_hl_ready ) {
echo Ui::notice(
esc_html__( 'The header builder comes with Rooster Zero 1.3.32: update the theme, and the layout\'s rows, items and switch show here.', 'ai-eshop-optimizer' ),
'warning',
array( 'title' => __( 'This version of Rooster Zero has no header builder yet', 'ai-eshop-optimizer' ), 'inline' => true )
);
} else {
$aieo_hl_class = '\Rooster\Modules\Admin\HeaderLayoutField';
$aieo_hl_layout = $aieo_hl_class::sanitize( rooster_setting( 'design', 'header_layout' ) );
$aieo_hl_choices = $aieo_hl_class::choices();
$aieo_hl_cat = $aieo_hl_class::catalogue();
$aieo_hl_part = (string) rooster_setting( 'general', 'part_header', '' );
$aieo_hl_on = AIEO_DMM_Header_Actions::BUILDER_PART === $aieo_hl_part;
$aieo_hl_exists = AIEO_DMM_Header_Actions::builder_variant_exists();
$aieo_hl_parts = \Rooster\Modules\Admin\Settings::part_options( 'header' );
$aieo_hl_back = $aieo_hl_on ? AIEO_DMM_Header_Actions::previous_part() : $aieo_hl_part;
$aieo_hl_back_nm = (string) ( $aieo_hl_parts[ $aieo_hl_back ] ?? $aieo_hl_back );
$aieo_hl_back_nm = trim( (string) preg_replace( '/[:(].*$/s', '', $aieo_hl_back_nm ) );
$aieo_hl_short = array(
'search' => __( 'Search', 'ai-eshop-optimizer' ),
'language' => __( 'Language', 'ai-eshop-optimizer' ),
'scheme' => __( 'Theme', 'ai-eshop-optimizer' ),
'text-size' => __( 'Text size', 'ai-eshop-optimizer' ),
'fullscreen' => __( 'Width', 'ai-eshop-optimizer' ),
'academy' => __( 'Learning', 'ai-eshop-optimizer' ),
'account' => __( 'Account', 'ai-eshop-optimizer' ),
'wishlist' => __( 'Wishlist', 'ai-eshop-optimizer' ),
'cart' => __( 'Cart', 'ai-eshop-optimizer' ),
);
$aieo_hl_actions = array();
$aieo_hl_actions_ns = array();
if ( class_exists( '\Rooster\Core\HeaderActions' ) ) {
$aieo_hl_reg = \Rooster\Core\HeaderActions::registered();
foreach ( \Rooster\Core\HeaderActions::names() as $aieo_hl_a ) {
$aieo_hl_actions[] = (string) ( $aieo_hl_short[ $aieo_hl_a ] ?? ( $aieo_hl_reg[ $aieo_hl_a ]['label'] ?? $aieo_hl_a ) );
if ( 'search' !== $aieo_hl_a ) {
$aieo_hl_actions_ns[] = end( $aieo_hl_actions );
}
}
}
$aieo_hl_searching = false;
foreach ( $aieo_hl_layout['items'] as $aieo_hl_entry ) {
$aieo_hl_searching = $aieo_hl_searching || ( 'search' === $aieo_hl_entry['item'] && 'off' !== $aieo_hl_entry['row'] );
}
$aieo_hl_names = array();
foreach ( $aieo_hl_cat as $aieo_hl_item => $aieo_hl_def ) {
$aieo_hl_names[ $aieo_hl_item ] = (string) $aieo_hl_def['label'];
}
$aieo_hl_words = array(
'names' => $aieo_hl_names,
'actions' => implode( ' · ', $aieo_hl_actions ),
'actionsNs' => implode( ' · ', $aieo_hl_actions_ns ),
'site' => get_bloginfo( 'name' ),
'catalogue' => __( 'Catalogue', 'ai-eshop-optimizer' ),
'search' => __( 'Search products…', 'ai-eshop-optimizer' ),
'empty' => __( 'Empty: not printed', 'ai-eshop-optimizer' ),
'noLinks' => __( 'No address yet: not printed', 'ai-eshop-optimizer' ),
'social' => $aieo_hl_choices['social'],
'rowEmpty' => __( 'No item: this row is not printed', 'ai-eshop-optimizer' ),
);
$aieo_hl_detail = static function ( array $entry ) use ( $aieo_hl_words, $aieo_hl_searching ) {
$item = (string) $entry['item'];
switch ( $item ) {
case 'logo':
return (string) $aieo_hl_words['site'];
case 'search':
return '' !== (string) $entry['text'] ? (string) $entry['text'] : (string) $aieo_hl_words['search'];
case 'actions':
return (string) $aieo_hl_words[ $aieo_hl_searching ? 'actionsNs' : 'actions' ];
case 'catalogue':
return '' !== (string) $entry['text'] ? (string) $entry['text'] : (string) $aieo_hl_words['catalogue'];
case 'social':
$nets = array();
foreach ( (array) $entry['links'] as $net => $url ) {
if ( '' !== (string) $url && isset( $aieo_hl_words['social'][ $net ] ) ) {
$nets[] = $aieo_hl_words['social'][ $net ];
}
}
return array() !== $nets ? implode( ' · ', $nets ) : (string) $aieo_hl_words['noLinks'];
}
if ( 0 === strpos( $item, 'text-' ) ) {
return '' !== (string) $entry['text'] ? (string) $entry['text'] : (string) $aieo_hl_words['empty'];
}
return '';
};
ob_start();
$aieo_hl_use_help = $aieo_hl_on
? sprintf( __( 'On: the site\'s header is this layout (General → Header variant: Builder). Off returns to the variant before it: %s.', 'ai-eshop-optimizer' ), '' !== $aieo_hl_back_nm ? $aieo_hl_back_nm : __( 'Default', 'ai-eshop-optimizer' ) )
: sprintf( __( 'Off: the site\'s header is the variant %s. On: this layout becomes the site\'s header once you save, and Off brings that variant back.', 'ai-eshop-optimizer' ), '' !== $aieo_hl_back_nm ? $aieo_hl_back_nm : __( 'Default', 'ai-eshop-optimizer' ) );
$aieo_hl_reason = ( ! $aieo_hl_on && ! $aieo_hl_exists ) ? __( 'The theme on this site does not have the builder\'s header yet (Rooster Zero 1.3.32 and later): the layout saves now and the switch turns on once it does.', 'ai-eshop-optimizer' ) : '';
$aieo_hl_rows = Ui::field_row( array(
'id' => 'aieo-hl-use',
'label' => __( 'Use this layout for the site\'s header', 'ai-eshop-optimizer' ),
'control' => Ui::toggle( 'header_layout_use', $aieo_hl_on, array( 'id' => 'aieo-hl-use', 'label' => __( 'On', 'ai-eshop-optimizer' ), 'disabled' => '' !== $aieo_hl_reason ) ),
'help' => $aieo_hl_use_help,
'reason' => $aieo_hl_reason,
) );
$aieo_hl_rows .= Ui::field_row( array(
'id' => 'aieo-hl-announce',
'label' => __( 'Announcement', 'ai-eshop-optimizer' ),
'control' => Ui::input( 'general[announcement_message]', (string) rooster_setting( 'general', 'announcement_message', '' ), array( 'id' => 'aieo-hl-announce', 'attrs' => array( 'data-aieo-hl' => 'announce' ) ) ),
'help' => __( 'The bar above the rows, on every page of every header (General settings: the announcement bar). Empty: no bar.', 'ai-eshop-optimizer' ),
) );
$aieo_hl_rows .= Ui::field_row( array(
'id' => 'aieo-hl-announce-href',
'label' => __( 'Announcement link', 'ai-eshop-optimizer' ),
'control' => Ui::input( 'general[announcement_href]', (string) rooster_setting( 'general', 'announcement_href', '' ), array( 'id' => 'aieo-hl-announce-href', 'type' => 'url', 'placeholder' => 'https://' ) ),
'help' => __( 'Where the announcement leads when it is clicked. Empty: a plain text.', 'ai-eshop-optimizer' ),
) );
foreach ( array( 'top', 'main', 'bottom' ) as $aieo_hl_row ) {
$aieo_hl_set = $aieo_hl_layout['rows'][ $aieo_hl_row ];
$aieo_hl_id = 'aieo-hl-' . $aieo_hl_row;
$aieo_hl_rows .= Ui::field_row( array(
'id' => $aieo_hl_id,
'label' => (string) $aieo_hl_choices['rows'][ $aieo_hl_row ],
'parts' => array(
array(
'label' => __( 'Surface', 'ai-eshop-optimizer' ),
'id' => $aieo_hl_id . '-surface',
'control' => Ui::select( 'header_layout[rows][' . $aieo_hl_row . '][surface]', $aieo_hl_choices['surfaces'], (string) $aieo_hl_set['surface'], array( 'id' => $aieo_hl_id . '-surface', 'attrs' => array( 'data-aieo-hl-row' => $aieo_hl_row, 'data-aieo-hl' => 'surface' ) ) ),
),
array(
'label' => __( 'Height', 'ai-eshop-optimizer' ),
'id' => $aieo_hl_id . '-size',
'control' => Ui::select( 'header_layout[rows][' . $aieo_hl_row . '][size]', $aieo_hl_choices['sizes'], (string) $aieo_hl_set['size'], array( 'id' => $aieo_hl_id . '-size', 'attrs' => array( 'data-aieo-hl-row' => $aieo_hl_row, 'data-aieo-hl' => 'size' ) ) ),
),
array(
'label' => __( 'Line under it', 'ai-eshop-optimizer' ),
'id' => $aieo_hl_id . '-line',
'control' => Ui::toggle( 'header_layout[rows][' . $aieo_hl_row . '][line]', ! empty( $aieo_hl_set['line'] ), array( 'id' => $aieo_hl_id . '-line', 'attrs' => array( 'data-aieo-hl-row' => $aieo_hl_row, 'data-aieo-hl' => 'line' ) ) ),
),
),
'help' => 'bottom' === $aieo_hl_row ? __( 'Each row\'s background and text colour come from the colour scheme (the dark scheme and visitors\' styles follow); its height, and a hairline under it. A row with no item is not printed.', 'ai-eshop-optimizer' ) : '',
) );
}
echo '
' . $aieo_hl_rows . '
';
$aieo_hl_by_row = array();
foreach ( $aieo_hl_layout['items'] as $aieo_hl_entry ) {
$aieo_hl_by_row[ (string) $aieo_hl_entry['row'] ][ (string) $aieo_hl_entry['zone'] ][] = $aieo_hl_entry;
}
$aieo_hl_chip = static function ( array $entry ) use ( $aieo_hl_names, $aieo_hl_detail ) {
$item = (string) $entry['item'];
$detail = $aieo_hl_detail( $entry );
$class = 'aieo-hl-chip aieo-hl-chip--' . sanitize_html_class( $item ) . ( 'search' === $item ? ' is-' . sanitize_html_class( (string) $entry['width'] ) : '' );
return '' . esc_html( (string) ( $aieo_hl_names[ $item ] ?? $item ) ) . ' '
. ( '' !== $detail ? '' . esc_html( $detail ) . ' ' : '' ) . ' ';
};
$aieo_hl_message = (string) rooster_setting( 'general', 'announcement_message', '' );
$aieo_hl_figure = ''
. '' . esc_html__( 'Schematic of the header', 'ai-eshop-optimizer' ) . ' '
. ''
. '
' . esc_html__( 'Announcement', 'ai-eshop-optimizer' ) . ' ' . esc_html( $aieo_hl_message ) . '
';
foreach ( array( 'top', 'main', 'bottom' ) as $aieo_hl_row ) {
$aieo_hl_set = $aieo_hl_layout['rows'][ $aieo_hl_row ];
$aieo_hl_zones = $aieo_hl_by_row[ $aieo_hl_row ] ?? array();
$aieo_hl_fill = false;
foreach ( (array) ( $aieo_hl_zones['center'] ?? array() ) as $aieo_hl_entry ) {
$aieo_hl_fill = $aieo_hl_fill || ( 'search' === $aieo_hl_entry['item'] && 'fill' === $aieo_hl_entry['width'] );
}
$aieo_hl_band = 'aieo-hl-band aieo-hl-band--' . sanitize_html_class( (string) $aieo_hl_set['surface'] ) . ' is-' . sanitize_html_class( (string) $aieo_hl_set['size'] )
. ( ! empty( $aieo_hl_set['line'] ) ? ' has-line' : '' ) . ( array() === $aieo_hl_zones ? ' is-empty' : '' ) . ( $aieo_hl_fill ? ' is-fill' : '' );
$aieo_hl_figure .= '
' . esc_html( (string) $aieo_hl_choices['rows'][ $aieo_hl_row ] ) . ' ';
foreach ( array( 'start', 'center', 'end' ) as $aieo_hl_zone ) {
$aieo_hl_figure .= '
';
foreach ( (array) ( $aieo_hl_zones[ $aieo_hl_zone ] ?? array() ) as $aieo_hl_entry ) {
$aieo_hl_figure .= $aieo_hl_chip( $aieo_hl_entry );
}
$aieo_hl_figure .= '
';
}
$aieo_hl_figure .= '
' . esc_html( (string) $aieo_hl_words['rowEmpty'] ) . ' ';
}
$aieo_hl_figure .= '
';
echo $aieo_hl_figure;
echo Guidance::text( __( 'Every item once. Its row and its place in the row (left, centre, right); the order of the list is the order inside a place. Items with texts open them with Edit. Hidden items are not printed.', 'ai-eshop-optimizer' ), 'guidance', array( 'about' => __( 'The header\'s items', 'ai-eshop-optimizer' ) ) );
$aieo_hl_list = array();
$aieo_hl_dialogs = '';
foreach ( $aieo_hl_layout['items'] as $aieo_hl_entry ) {
$aieo_hl_item = (string) $aieo_hl_entry['item'];
$aieo_hl_label = (string) ( $aieo_hl_names[ $aieo_hl_item ] ?? $aieo_hl_item );
$aieo_hl_key = sanitize_html_class( $aieo_hl_item );
$aieo_hl_control = Ui::select( 'header_layout[row][' . $aieo_hl_item . ']', $aieo_hl_choices['rows'], (string) $aieo_hl_entry['row'], array( 'id' => 'aieo-hl-row-' . $aieo_hl_key, 'aria-label' => sprintf( __( '%s: row', 'ai-eshop-optimizer' ), $aieo_hl_label ), 'attrs' => array( 'data-aieo-hl' => 'row' ) ) )
. Ui::select( 'header_layout[zone][' . $aieo_hl_item . ']', $aieo_hl_choices['zones'], (string) $aieo_hl_entry['zone'], array( 'id' => 'aieo-hl-zone-' . $aieo_hl_key, 'aria-label' => sprintf( __( '%s: place in the row', 'ai-eshop-optimizer' ), $aieo_hl_label ), 'attrs' => array( 'data-aieo-hl' => 'zone' ) ) );
$aieo_hl_body = '';
if ( 'search' === $aieo_hl_item ) {
$aieo_hl_body = Ui::field_row( array(
'id' => 'aieo-hl-text-search',
'label' => __( 'Text in the field', 'ai-eshop-optimizer' ),
'control' => Ui::input( 'header_layout[text][search]', (string) $aieo_hl_entry['text'], array( 'id' => 'aieo-hl-text-search', 'medium' => true, 'maxlength' => 48, 'placeholder' => __( 'Search products…', 'ai-eshop-optimizer' ), 'attrs' => array( 'data-aieo-hl' => 'text', 'data-aieo-hl-item' => 'search' ) ) ),
'help' => __( 'The words shown in the empty field (its placeholder). Empty: the theme\'s.', 'ai-eshop-optimizer' ),
) ) . Ui::field_row( array(
'id' => 'aieo-hl-width-search',
'label' => __( 'Width', 'ai-eshop-optimizer' ),
'control' => Ui::select( 'header_layout[width][search]', $aieo_hl_choices['widths'], (string) $aieo_hl_entry['width'], array( 'id' => 'aieo-hl-width-search', 'attrs' => array( 'data-aieo-hl' => 'width', 'data-aieo-hl-item' => 'search' ) ) ),
) );
} elseif ( 'catalogue' === $aieo_hl_item ) {
$aieo_hl_body = Ui::field_row( array(
'id' => 'aieo-hl-text-catalogue',
'label' => __( 'Button text', 'ai-eshop-optimizer' ),
'control' => Ui::input( 'header_layout[text][catalogue]', (string) $aieo_hl_entry['text'], array( 'id' => 'aieo-hl-text-catalogue', 'medium' => true, 'maxlength' => 48, 'placeholder' => __( 'Catalogue', 'ai-eshop-optimizer' ), 'attrs' => array( 'data-aieo-hl' => 'text', 'data-aieo-hl-item' => 'catalogue' ) ) ),
'help' => __( 'The navigator\'s button shows only on the pages where the navigator is on. Empty: "Catalogue".', 'ai-eshop-optimizer' ),
) );
} elseif ( 'social' === $aieo_hl_item ) {
foreach ( $aieo_hl_choices['social'] as $aieo_hl_net => $aieo_hl_net_name ) {
$aieo_hl_body .= Ui::field_row( array(
'id' => 'aieo-hl-link-' . $aieo_hl_net,
'label' => (string) $aieo_hl_net_name,
'control' => Ui::input( 'header_layout[links][social][' . $aieo_hl_net . ']', (string) ( $aieo_hl_entry['links'][ $aieo_hl_net ] ?? '' ), array( 'id' => 'aieo-hl-link-' . $aieo_hl_net, 'type' => 'url', 'placeholder' => 'https://', 'attrs' => array( 'data-aieo-hl' => 'link', 'data-aieo-hl-item' => 'social', 'data-aieo-hl-net' => $aieo_hl_net ) ) ),
) );
}
} elseif ( 0 === strpos( $aieo_hl_item, 'text-' ) ) {
$aieo_hl_icons = array( '' => __( 'None', 'ai-eshop-optimizer' ) );
foreach ( class_exists( '\Rooster\Core\Setup' ) && method_exists( '\Rooster\Core\Setup', 'icon_slugs' ) ? \Rooster\Core\Setup::icon_slugs() : array() as $aieo_hl_slug ) {
$aieo_hl_icons[ $aieo_hl_slug ] = $aieo_hl_slug;
}
$aieo_hl_body = Ui::field_row( array(
'id' => 'aieo-hl-text-' . $aieo_hl_key,
'label' => __( 'Text', 'ai-eshop-optimizer' ),
'control' => Ui::input( 'header_layout[text][' . $aieo_hl_item . ']', (string) $aieo_hl_entry['text'], array( 'id' => 'aieo-hl-text-' . $aieo_hl_key, 'maxlength' => 64, 'attrs' => array( 'data-aieo-hl' => 'text', 'data-aieo-hl-item' => $aieo_hl_item ) ) ),
'help' => __( 'In the header links\' look: a phone line, the stores. Empty: not printed.', 'ai-eshop-optimizer' ),
) ) . Ui::field_row( array(
'id' => 'aieo-hl-href-' . $aieo_hl_key,
'label' => __( 'Link', 'ai-eshop-optimizer' ),
'control' => Ui::input( 'header_layout[href][' . $aieo_hl_item . ']', (string) $aieo_hl_entry['href'], array( 'id' => 'aieo-hl-href-' . $aieo_hl_key, 'inputmode' => 'url', 'placeholder' => 'tel:+30…', 'code' => true ) ),
'help' => __( 'A web address, a page of the site (/stores), tel: or mailto:. Empty: the text is not a link.', 'ai-eshop-optimizer' ),
) ) . Ui::field_row( array(
'id' => 'aieo-hl-icon-' . $aieo_hl_key,
'label' => __( 'Icon', 'ai-eshop-optimizer' ),
'control' => Ui::select( 'header_layout[icon][' . $aieo_hl_item . ']', $aieo_hl_icons, (string) $aieo_hl_entry['icon'], array( 'id' => 'aieo-hl-icon-' . $aieo_hl_key ) ),
'help' => __( 'Before the text, from the theme\'s icons (phone, map-pin, store…).', 'ai-eshop-optimizer' ),
) );
}
$aieo_hl_action = '';
if ( '' !== $aieo_hl_body ) {
$aieo_hl_dialog_id = 'aieo-hl-edit-' . $aieo_hl_key;
$aieo_hl_action = Ui::button(
__( 'Edit', 'ai-eshop-optimizer' ),
array(
'size' => 'sm',
'variant' => 'outline',
'icon' => 'pencil',
'attrs' => array( 'data-ra-dialog' => $aieo_hl_dialog_id, 'aria-label' => sprintf( __( 'Edit %s', 'ai-eshop-optimizer' ), $aieo_hl_label ) ),
)
);
$aieo_hl_dialogs .= Ui::dialog(
$aieo_hl_dialog_id,
$aieo_hl_label,
'' . esc_html( (string) $aieo_hl_cat[ $aieo_hl_item ]['help'] ) . '
' . $aieo_hl_body . '
',
array( 'footer' => Ui::button( __( 'Done', 'ai-eshop-optimizer' ), array( 'variant' => 'primary', 'attrs' => array( 'data-ra-dialog-close' => '' ) ) ) )
);
}
$aieo_hl_list[] = array(
'key' => $aieo_hl_item,
'label' => $aieo_hl_label,
'control' => $aieo_hl_control,
'action' => $aieo_hl_action,
);
}
echo Fields::ordered_list(
$aieo_hl_list,
array(
'id' => 'aieo-hl-items',
'label' => __( 'The header\'s items', 'ai-eshop-optimizer' ),
'name' => 'header_layout[order]',
'default' => array_keys( $aieo_hl_cat ),
)
);
echo $aieo_hl_dialogs;
echo AIEO_DMM_UI::card_form( 'aieo_dmm_header_layout_save', 'header_layout', 'aieo-dmm-header-layout-form', (string) ob_get_clean() );
}
echo $aieo_hl_close;
rooster_admin_band_close();
$aieo_ha_body = static function ( $key, $method, $form ) {
if ( ! class_exists( '\Rooster\Modules\Admin\HeaderActionsField' ) || ! AIEO_DMM_Header_Actions::theme_has_design( $key ) ) {
return Ui::notice( esc_html__( 'This version of Rooster Zero does not offer this list: update the theme.', 'ai-eshop-optimizer' ), 'warning', array( 'inline' => true ) );
}
$html = call_user_func( array( '\Rooster\Modules\Admin\HeaderActionsField', $method ), 'aieo-ha-theme-' . $key, $key, rooster_setting( 'design', $key ), array() );
if ( 'phone_control' === $method ) {
$html = '' . Ui::field_row( array(
'id' => 'aieo-ha-theme-phones',
'label' => __( 'Beside the menu button', 'ai-eshop-optimizer' ),
'group' => true,
'control' => (string) $html,
) ) . '
';
}
return AIEO_DMM_UI::card_form( 'aieo_dmm_header_theme_actions_save', 'header_theme_' . $key, $form, (string) $html );
};
$aieo_ha_save = static function ( $key, $form ) {
return class_exists( '\Rooster\Modules\Admin\HeaderActionsField' ) && AIEO_DMM_Header_Actions::theme_has_design( $key ) ? States::save_button( $form ) : '';
};
rooster_admin_band_open( array( 'cols' => 2 ) );
list( $aieo_ha_open, $aieo_ha_close ) = AIEO_DMM_UI::card( array(
'anchor' => 'header-actions-theme-computers',
'icon' => 'app-window',
'title' => __( 'Header actions on computers', 'ai-eshop-optimizer' ),
'description' => __( 'The icons of the header\'s actions on computers, in their order: a row\'s switch shows it, its grip moves it; "With its text" shows its word beside the icon, and the search and the account take a text of their own (a pill, a button for visitors). The one list of every Rooster Zero header, the layout\'s "Header actions" item included; the theme\'s Design settings show the same list.', 'ai-eshop-optimizer' ),
'col' => 1,
'footer' => $aieo_ha_save( 'header_actions', 'aieo-dmm-header-theme-computers-form' ),
) );
echo $aieo_ha_open . $aieo_ha_body( 'header_actions', 'control', 'aieo-dmm-header-theme-computers-form' ) . $aieo_ha_close;
list( $aieo_ha_open, $aieo_ha_close ) = AIEO_DMM_UI::card( array(
'anchor' => 'header-actions-theme-phones',
'icon' => 'sliders-horizontal',
'title' => __( 'Header actions on phones', 'ai-eshop-optimizer' ),
'description' => __( 'Beside the phone header\'s menu button: the computers\' list (its learning, account, wishlist and cart beside the button; the search, the appearance controls and the language in the menu), or a list of the phone\'s own, as icons.', 'ai-eshop-optimizer' ),
'col' => 2,
'footer' => $aieo_ha_save( 'header_actions_phone', 'aieo-dmm-header-theme-phones-form' ),
) );
echo $aieo_ha_open . $aieo_ha_body( 'header_actions_phone', 'phone_control', 'aieo-dmm-header-theme-phones-form' ) . $aieo_ha_close;
rooster_admin_band_close();
do_action( 'aieo_dmm_header_actions_cards' );