$icon = '{icons}buttons/create'; } $Page->title->add_object($folder); $Page->title->subject = "Create {$entry_type_info->singular_title}"; $Page->location->add_folder_link($folder); $Page->location->append($Page->title->subject, '', $icon); $Page->start_display(); ?> <div class="top-box"> <div class="button-content"> <?php $menu = $App->make_menu(); $menu->renderer = $App->make_menu_renderer(); ?> <?php $url = $opt_stay_on_page->setter_url_as_text(!$opt_stay_on_page->value()); if ($opt_stay_on_page->value()) { $menu->append('Unpin', $url, '{icons}indicators/pinned', false, 'You are "pinned" here and will come back to this form after creating your ' . strtolower($entry_type_info->singular_title) . '. Click to unpin.'); } else { $menu->append('Pin', $url, '{icons}indicators/unpinned', false, 'Click to pin and to stay on this page; it makes creating multiple ' . strtolower($entry_type_info->plural_title) . ' easier.'); } $menu->display(); ?> </div> </div> <div class="main-box"> <div class="form-content"> <?php $last_id = read_var('last_id'); if ($last_id) { $entry_query = $folder->entry_query();