Order
Файловый менеджер
Файловый менеджер - Редактировать - /home/bestoj5/nestedpack.com/templates.tar
Назад
myaccount/conversations.php�������������������������������������������������������������������������0000644�����������������00000011045�14760034722�0012162 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?php /** * Conversation * * @package conversation * Checks if WooCommerce is enabled. */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } ?> <?php if ( $show_title ) : ?> <h2 id="support-conversations-title"><?php esc_html_e( 'My Support Conversations', 'woocommerce-help-scout' ); ?></h2> <?php endif; ?> <?php if ( 0 < count( (array) $conversations ) ) : ?> <table id="support-conversations-table" class="shop_table <?php echo sanitize_html_class( get_template() ); ?>"> <thead> <tr> <th class="ticket-number"><span class="nobr"><?php esc_html_e( 'Number', 'woocommerce-help-scout' ); ?></span></th> <th class="ticket-subject"><span class="nobr"><?php esc_html_e( 'Subject', 'woocommerce-help-scout' ); ?></span></th> <th class="ticket-date"><span class="nobr"><?php esc_html_e( 'Date', 'woocommerce-help-scout' ); ?></span></th> <th class="ticket-status"><span class="nobr"><?php esc_html_e( 'Status', 'woocommerce-help-scout' ); ?></span></th> <th class="ticket-actions"><span class="nobr">Actions</span></th> </tr> </thead> <tbody> <?php if ( ! empty( $conversations['_embedded']['conversations'] ) ) { foreach ( $conversations['_embedded']['conversations'] as $conversation ) : $conversation_id = intval( $conversation['id'] ); $subject = esc_attr( $conversation['subject'] ); $sub = explode( ' ', trim( $subject ) ); $order_id = 0; if ( 0 < count( $sub ) ) { $order_id = end( $sub ); } ?> <tr class="ticket"> <td>#<?php echo intval( $conversation['number'] ); ?></td> <td><?php echo esc_html( $subject ); ?></td> <td> <?php // Help Scout returns date in UTC. // See http://developer.helpscout.net/help-desk-api/conversations/list/. try { $modified_at = new DateTime( $conversation['userUpdatedAt'], new DateTimeZone( 'UTC' ) ); $modified_at->setTimezone( new DateTimeZone( wc_timezone_string() ) ); $modified_at = strtotime( $modified_at->format( 'Y-m-d H:i:s' ) ); echo esc_html( date_i18n( $date_format, $modified_at ) ); } catch ( Exception $e ) { echo 'Error writing to database: '; // Nothing to output when the date/time string isn't a. // valid date/time. } ?> </td> <td><?php echo esc_html( $integration->get_conversation_status( $conversation['status'] ) ); ?></td> <td style="text-align: right;"><a href="#" data-conversation-id="<?php echo esc_attr( $conversation_id ); ?>" class="button conversation-view conversation-view-<?php echo esc_attr( $order_id ); ?>" data-subject="<?php echo esc_attr( $subject ); ?>" ><?php esc_attr_e( 'View', 'woocommerce-help-scout' ); ?></a> <a href="#" data-conversation-id="<?php echo esc_attr( $conversation_id ); ?>" data-subject="<?php echo esc_attr( $subject ); ?>" class="button conversation-reply"><?php esc_attr_e( 'Reply', 'woocommerce-help-scout' ); ?></a></td> </tr> <?php endforeach; } else { ?> <tr><td colspan="5">No conversations.</td></tr> <?php } ?> </tbody> </table> <div id="support-conversations-navigation"> <?php if ( 1 !== $current_page ) : ?> <a class="button previous" href="<?php echo esc_url( $last_page ); ?>"><?php esc_html_e( 'Previous', 'woocommerce-help-scout' ); ?></a> <?php endif; ?> <?php if ( isset( $conversations['page']['number'] ) ) { if ( 1 < $conversations['page']['number'] ) : ?> <a class="button next" href="<?php echo esc_url( $next_page ); ?>"><?php esc_html_e( 'Next', 'woocommerce-help-scout' ); ?></a> <?php endif; } ?> </div> <?php else : ?> <p><?php esc_attr_e( 'You have no support conversations.', 'woocommerce-help-scout' ); ?></p> <?php endif; ?> <div id="support-conversation-wrap"></div> <div id="support-conversation-wrap-reply" style="display:none;"> <h3 id="support-conversation-thread-head-reply"></h3> <form id="support-conversation-reply" action="" method="post" enctype="multipart/form-data"> <p class="form-row form-row-wide"> <label for="conversation-message">Message <span class="required">*</span></label> <textarea id="conversation-message" class="conversation-field" name="conversation_message" cols="25" rows="15"></textarea> </p> <div id="plUploadArea"> </div> <br> <p class="form-row"> <input type="hidden" name="conversation_id" id="reply_conversation_id" value=""> <input type="hidden" name="user_id" id="reply_user_id" value=""> <input type="submit" id="reply_submit_btn" class="button alt" value="Send"> </p> </form> </div> <div id="support-wrap-conversation"></div> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������order/create-conversation.php�����������������������������������������������������������������������0000644�����������������00000004237�14760034722�0012356 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?php /** * Create Conversation * * @package template * Checks if WooCommerce is enabled */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } ?> <h2 id="start-conversation"><?php esc_html_e( 'Need Help?', 'woocommerce-help-scout' ); ?></h2> <p><?php esc_html_e( 'Do you have a query about your order, or need a hand with getting your products set up? If so, please fill in the form below.', 'woocommerce-help-scout' ); ?></p> <form method="post" id="order_conversation_form_1" class="wc-helpscout-order-conversation-form" enctype="multipart/form-data" data-inc="1"> <?php /** * Action for woocommerce_help_scout_customer_args. * * @since 1.3.4 */ do_action( 'woocommerce_help_scout_conversation_form_start' ); ?> <p class="form-row form-row-wide"> <label for="conversation-subject"><?php esc_html_e( 'Subject', 'woocommerce-help-scout' ); ?> <span class="required">*</span></label> <input type="text" class="input-text conversation-field" name="conversation_subject" id="conversation-subject" required="required" /> </p> <p class="form-row form-row-wide"> <label for="conversation-description"><?php esc_html_e( 'Description', 'woocommerce-help-scout' ); ?> <span class="required">*</span></label> <textarea name="conversation_description" class="conversation-field" id="conversation-description" rows="10" cols="50" required="required"></textarea> </p> <div class="input-field"> <label class="active">Files</label> <div class="input-images-order-1" style="padding-top: .5rem;"></div> </div> <br> <?php /** * Action for woocommerce_help_scout_customer_args. * * @since 1.3.4 */ do_action( 'woocommerce_help_scout_conversation_form' ); ?> <p class="form-row"> <input type="hidden" class="conversation-field" name="conversation_order_id" id="conversation-order-id" value="<?php echo intval( $order_id ); ?>" /> <input type="submit" class="button" name="conversation_send" value="<?php esc_html_e( 'Send', 'woocommerce-help-scout' ); ?>" /> </p> <?php /** * Action for woocommerce_help_scout_customer_args. * * @since 1.3.4 */ do_action( 'woocommerce_help_scout_conversation_form_end' ); ?> </form> �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������shortcodes/form.php���������������������������������������������������������������������������������0000644�����������������00000006326�14760034722�0010411 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?php /** * Shorcode for form * * @package form template * Checks if WooCommerce is enabled */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="woocommerce"> <form method="post" id="wc-help-scout-conversation-form-<?php echo esc_textarea( $counter ); ?>" class="wc-help-scout-conversation-form" data-inc="<?php echo esc_textarea( $counter ); ?>" enctype="multipart/form-data"> <?php /** * Action for woocommerce_help_scout_customer_args. * * @since 1.3.4 */ do_action( 'woocommerce_help_scout_shortcode_conversation_form_start' ); ?> <?php if ( ! empty( $orders_list ) ) : ?> <p class="form-row form-row-wide"> <label for="conversation-order"><?php esc_html_e( 'Order', 'woocommerce-help-scout' ); ?> <span class="required">*</span></label> <select name="conversation_order_id" id="conversation-order" class="conversation-field" required="required"> <?php foreach ( $orders_list as $key => $value ) : ?> <option value="<?php echo intval( $key ); ?>"><?php echo esc_html( $value ); ?></option> <?php endforeach; ?> </select> </p> <?php else : ?> <p class="form-row form-row-wide"> <label for="conversation-customer-name"><?php esc_html_e( 'Your Name', 'woocommerce-help-scout' ); ?> <span class="required">*</span></label> <input type="text" class="input-text conversation-field" name="conversation_customer_name" id="conversation-customer-name" required="required" /> </p> <p class="form-row form-row-wide"> <label for="conversation-email"><?php esc_html_e( 'Your Email', 'woocommerce-help-scout' ); ?> <span class="required">*</span></label> <input type="email" class="input-text conversation-field" name="conversation_email" id="conversation-email" required="required" /> </p> <input type="hidden" class="conversation-field" name="conversation_order_id" value="0" /> <?php endif; ?> <p class="form-row form-row-wide"> <label for="conversation-subject"><?php esc_html_e( 'Subject', 'woocommerce-help-scout' ); ?> <span class="required">*</span></label> <input type="text" class="input-text conversation-field" name="conversation_subject" id="conversation-subject" required="required" /> </p> <p class="form-row form-row-wide"> <label for="conversation-description"><?php esc_html_e( 'Description', 'woocommerce-help-scout' ); ?> <span class="required">*</span></label> <textarea name="conversation_description" class="conversation-field" id="conversation-description" rows="10" cols="50" required="required"></textarea> </p> <div class="input-field"> <label class="active">Files</label> <div class="input-images-<?php echo esc_textarea( $counter ); ?>" style="padding-top: .5rem;"></div> </div> <br> <?php /** * Action for woocommerce_help_scout_customer_args. * * @since 1.3.4 */ do_action( 'woocommerce_help_scout_shortcode_conversation_form' ); ?> <p class="form-row"> <input type="submit" class="button" name="conversation_send" value="<?php esc_html_e( 'Send', 'woocommerce-help-scout' ); ?>" /> </p> <?php /** * Action for woocommerce_help_scout_customer_args. * * @since 1.3.4 */ do_action( 'woocommerce_help_scout_shortcode_conversation_form_end' ); ?> </form> </div> ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Переключить редактор
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка