<h2><?php echo esc_html(__('Enter Ad Details', 'AWPCP')); ?> </h2> <?php if (isset($transaction) && get_awpcp_option('show-create-listing-form-steps')) { echo awpcp_render_listing_form_steps('listing-details', $transaction); } ?> <?php foreach ($messages as $message) { echo awpcp_print_message($message); } awpcp_print_form_errors($errors); ?> <?php if ($ui['listing-actions']) { echo awpcp_listing_actions_component()->render($listing, array('hidden-params' => $hidden, 'current_url' => $this->url())); } ?> <!-- TODO: check where is used $formdisplayvalue --> <div> <form class="awpcp-details-form" id="adpostform" name="adpostform" action="<?php echo esc_attr($this->url()); ?> " method="post"> <?php
<h2><?php echo esc_html(_x('Login/Registration', 'place ad login step', 'AWPCP')); ?> </h2> <?php if (get_awpcp_option('show-create-listing-form-steps')) { echo awpcp_render_listing_form_steps('login'); } ?> <?php echo awpcp_login_form($message, $page_url);
<h2><?php echo $payments->render_payment_completed_page_title($transaction); ?> </h2> <?php if (isset($transaction) && get_awpcp_option('show-create-listing-form-steps')) { echo awpcp_render_listing_form_steps('payment', $transaction); } ?> <?php foreach ($messages as $message) { ?> <?php echo awpcp_print_message($message); } ?> <?php echo $payments->render_payment_completed_page($transaction, $url, $hidden);
<?php if (isset($transaction) && get_awpcp_option('show-create-listing-form-steps')) { echo awpcp_render_listing_form_steps('finish', $transaction); } ?> <?php if (!is_admin()) { ?> <?php if ($edit) { ?> <?php echo awpcp_print_message(__("Your changes have been saved.", 'AWPCP')); ?> <?php } else { ?> <?php echo awpcp_print_message(__("Your Ad has been submitted.", "AWPCP")); ?> <?php } } ?> <?php foreach ((array) $messages as $message) { ?> <?php
?> </h2> <?php } else { ?> <h2><?php echo esc_html(_x('Select Category', 'place ad order step', 'AWPCP')); ?> </h2> <?php } ?> <?php if (get_awpcp_option('show-create-listing-form-steps')) { echo awpcp_render_listing_form_steps('select-category'); } ?> <?php foreach ($messages as $message) { ?> <?php echo awpcp_print_message($message); } ?> <?php foreach ($transaction_errors as $error) { ?> <?php
<h2><?php _e('Upload Files', 'AWPCP'); ?> </h2> <?php if (isset($transaction) && get_awpcp_option('show-create-listing-form-steps')) { echo awpcp_render_listing_form_steps('upload-files', $transaction); } ?> <?php if (get_awpcp_option('imagesapprove') == 1) { $messages[] = __('Image approval is in effect so any new images you upload will not be visible to viewers until an admin approves them.', 'AWPCP'); } if ($images_uploaded > 0) { $messages[] = _x('Thumbnails of already uploaded images are shown below.', 'images upload step', 'AWPCP'); } foreach ($messages as $message) { echo awpcp_print_message($message); } foreach ($errors as $error) { echo awpcp_print_message($error, array('error')); } ?> <?php include AWPCP_DIR . '/templates/components/media-center.tpl.php'; ?> <form class="awpcp-upload-images-form" method="post" enctype="multipart/form-data">