File manager - Edit - /home/theblueo/tv/fb4e3b/myaccount.tar
Back
orders.php 0000666 00000012223 15214157657 0006574 0 ustar 00 <?php /** * Orders * * Shows orders on the account page. * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/orders.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } do_action( 'woocommerce_before_account_orders', $has_orders ); ?> <?php if ( $has_orders ) : ?> <table class="woocommerce-MyAccount-orders shop_table shop_table_responsive my_account_orders account-orders-table"> <thead> <tr> <?php foreach ( wc_get_account_orders_columns() as $column_id => $column_name ) : ?> <th class="<?php echo esc_attr( $column_id ); ?>"><span class="nobr"><?php echo esc_html( $column_name ); ?></span></th> <?php endforeach; ?> </tr> </thead> <tbody> <?php foreach ( $customer_orders->orders as $customer_order ) : $order = wc_get_order( $customer_order ); $item_count = $order->get_item_count(); ?> <tr class="order"> <?php foreach ( wc_get_account_orders_columns() as $column_id => $column_name ) : ?> <td class="<?php echo esc_attr( $column_id ); ?>" data-title="<?php echo esc_attr( $column_name ); ?>"> <?php if ( has_action( 'woocommerce_my_account_my_orders_column_' . $column_id ) ) : ?> <?php do_action( 'woocommerce_my_account_my_orders_column_' . $column_id, $order ); ?> <?php elseif ( 'order-number' === $column_id ) : ?> <a href="<?php echo esc_url( $order->get_view_order_url() ); ?>"> <?php echo _x( '#', 'hash before order number', 'woocommerce' ) . $order->get_order_number(); ?> </a> <?php elseif ( 'order-date' === $column_id ) : ?> <time datetime="<?php echo date( 'Y-m-d', strtotime( $order->order_date ) ); ?>" title="<?php echo esc_attr( strtotime( $order->order_date ) ); ?>"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></time> <?php elseif ( 'order-status' === $column_id ) : ?> <?php echo wc_get_order_status_name( $order->get_status() ); ?> <?php elseif ( 'order-total' === $column_id ) : ?> <?php echo sprintf( _n( '%s for %s item', '%s for %s items', $item_count, 'woocommerce' ), $order->get_formatted_order_total(), $item_count ); ?> <?php elseif ( 'order-actions' === $column_id ) : ?> <?php $actions = array( 'pay' => array( 'url' => $order->get_checkout_payment_url(), 'name' => __( 'Pay', 'woocommerce' ) ), 'view' => array( 'url' => $order->get_view_order_url(), 'name' => __( 'View', 'woocommerce' ) ), 'cancel' => array( 'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ), 'name' => __( 'Cancel', 'woocommerce' ) ) ); if ( ! $order->needs_payment() ) { unset( $actions['pay'] ); } if ( ! in_array( $order->get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) ) ) { unset( $actions['cancel'] ); } if ( $actions = apply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order ) ) { foreach ( $actions as $key => $action ) { echo '<a href="' . esc_url( $action['url'] ) . '" class="button ' . sanitize_html_class( $key ) . '">' . esc_html( $action['name'] ) . '</a>'; } } ?> <?php endif; ?> </td> <?php endforeach; ?> </tr> <?php endforeach; ?> </tbody> </table> <?php do_action( 'woocommerce_before_account_orders_pagination' ); ?> <?php if ( 1 < $customer_orders->max_num_pages ) : ?> <div class="woocommerce-Pagination"> <?php if ( 1 !== $current_page ) : ?> <a class="woocommerce-Button woocommerce-Button--previous button" href="<?php echo esc_url( wc_get_endpoint_url( 'orders', $current_page - 1 ) ); ?>"><?php _e( 'Previous', 'woocommerce' ); ?></a> <?php endif; ?> <?php if ( $current_page !== intval( $customer_orders->max_num_pages ) ) : ?> <a class="woocommerce-Button woocommerce-Button--next button" href="<?php echo esc_url( wc_get_endpoint_url( 'orders', $current_page + 1 ) ); ?>"><?php _e( 'Next', 'woocommerce' ); ?></a> <?php endif; ?> </div> <?php endif; ?> <?php else : ?> <div class="woocommerce-Message woocommerce-Message--info woocommerce-info"> <a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>"> <?php _e( 'Go Shop', 'woocommerce' ) ?> </a> <?php _e( 'No order has been made yet.', 'woocommerce' ); ?> </div> <?php endif; ?> <?php do_action( 'woocommerce_after_account_orders', $has_orders ); ?> form-edit-account.php 0000666 00000007143 15214157657 0010623 0 ustar 00 <?php /** * Edit account form * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-edit-account.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } do_action( 'woocommerce_before_edit_account_form' ); ?> <form class="woocommerce-EditAccountForm edit-account" action="" method="post"> <?php do_action( 'woocommerce_edit_account_form_start' ); ?> <p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first"> <label for="account_first_name"><?php _e( 'First name', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="account_first_name" id="account_first_name" value="<?php echo esc_attr( $user->first_name ); ?>" /> </p> <p class="woocommerce-FormRow woocommerce-FormRow--last form-row form-row-last"> <label for="account_last_name"><?php _e( 'Last name', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="account_last_name" id="account_last_name" value="<?php echo esc_attr( $user->last_name ); ?>" /> </p> <div class="clear"></div> <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide"> <label for="account_email"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="email" class="woocommerce-Input woocommerce-Input--email input-text" name="account_email" id="account_email" value="<?php echo esc_attr( $user->user_email ); ?>" /> </p> <fieldset> <legend><?php _e( 'Password Change', 'woocommerce' ); ?></legend> <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide"> <label for="password_current"><?php _e( 'Current Password (leave blank to leave unchanged)', 'woocommerce' ); ?></label> <input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_current" id="password_current" /> </p> <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide"> <label for="password_1"><?php _e( 'New Password (leave blank to leave unchanged)', 'woocommerce' ); ?></label> <input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_1" id="password_1" /> </p> <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide"> <label for="password_2"><?php _e( 'Confirm New Password', 'woocommerce' ); ?></label> <input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_2" id="password_2" /> </p> </fieldset> <div class="clear"></div> <?php do_action( 'woocommerce_edit_account_form' ); ?> <p> <?php wp_nonce_field( 'save_account_details' ); ?> <input type="submit" class="woocommerce-Button button" name="save_account_details" value="<?php esc_attr_e( 'Save changes', 'woocommerce' ); ?>" /> <input type="hidden" name="action" value="save_account_details" /> </p> <?php do_action( 'woocommerce_edit_account_form_end' ); ?> </form> <?php do_action( 'woocommerce_after_edit_account_form' ); ?> form-login.php 0000666 00000012037 15214157657 0007352 0 ustar 00 <?php /** * Login Form * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-login.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <?php wc_print_notices(); ?> <?php do_action( 'woocommerce_before_customer_login_form' ); ?> <?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?> <div class="u-columns col2-set" id="customer_login"> <div class="u-column1 col-1"> <?php endif; ?> <h2><?php _e( 'Login', 'woocommerce' ); ?></h2> <form method="post" class="login"> <?php do_action( 'woocommerce_login_form_start' ); ?> <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide"> <label for="username"><?php _e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" /> </p> <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide"> <label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label> <input class="woocommerce-Input woocommerce-Input--text input-text" type="password" name="password" id="password" /> </p> <?php do_action( 'woocommerce_login_form' ); ?> <p class="form-row"> <?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?> <input type="submit" class="woocommerce-Button button" name="login" value="<?php esc_attr_e( 'Login', 'woocommerce' ); ?>" /> <label for="rememberme" class="inline"> <input class="woocommerce-Input woocommerce-Input--checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'woocommerce' ); ?> </label> </p> <p class="woocommerce-LostPassword lost_password"> <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woocommerce' ); ?></a> </p> <?php do_action( 'woocommerce_login_form_end' ); ?> </form> <?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?> </div> <div class="u-column2 col-2"> <h2><?php _e( 'Register', 'woocommerce' ); ?></h2> <form method="post" class="register"> <?php do_action( 'woocommerce_register_form_start' ); ?> <?php if ( 'no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?> <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide"> <label for="reg_username"><?php _e( 'Username', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="reg_username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" /> </p> <?php endif; ?> <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide"> <label for="reg_email"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="email" class="woocommerce-Input woocommerce-Input--text input-text" name="email" id="reg_email" value="<?php if ( ! empty( $_POST['email'] ) ) echo esc_attr( $_POST['email'] ); ?>" /> </p> <?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?> <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide"> <label for="reg_password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password" id="reg_password" /> </p> <?php endif; ?> <!-- Spam Trap --> <div style="<?php echo ( ( is_rtl() ) ? 'right' : 'left' ); ?>: -999em; position: absolute;"><label for="trap"><?php _e( 'Anti-spam', 'woocommerce' ); ?></label><input type="text" name="email_2" id="trap" tabindex="-1" autocomplete="off" /></div> <?php do_action( 'woocommerce_register_form' ); ?> <?php do_action( 'register_form' ); ?> <p class="woocomerce-FormRow form-row"> <?php wp_nonce_field( 'woocommerce-register', 'woocommerce-register-nonce' ); ?> <input type="submit" class="woocommerce-Button button" name="register" value="<?php esc_attr_e( 'Register', 'woocommerce' ); ?>" /> </p> <?php do_action( 'woocommerce_register_form_end' ); ?> </form> </div> </div> <?php endif; ?> <?php do_action( 'woocommerce_after_customer_login_form' ); ?> downloads.php 0000666 00000007741 15214157657 0007301 0 ustar 00 <?php /** * Downloads * * Shows downloads on the account page. * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/downloads.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } $downloads = WC()->customer->get_downloadable_products(); $has_downloads = (bool) $downloads; do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?> <?php if ( $has_downloads ) : ?> <?php do_action( 'woocommerce_before_available_downloads' ); ?> <table class="woocommerce-MyAccount-downloads shop_table shop_table_responsive"> <thead> <tr> <?php foreach ( wc_get_account_downloads_columns() as $column_id => $column_name ) : ?> <th class="<?php echo esc_attr( $column_id ); ?>"><span class="nobr"><?php echo esc_html( $column_name ); ?></span></th> <?php endforeach; ?> </tr> </thead> <?php foreach ( $downloads as $download ) : ?> <tr> <?php foreach ( wc_get_account_downloads_columns() as $column_id => $column_name ) : ?> <td class="<?php echo esc_attr( $column_id ); ?>" data-title="<?php echo esc_attr( $column_name ); ?>"> <?php if ( has_action( 'woocommerce_account_downloads_column_' . $column_id ) ) : ?> <?php do_action( 'woocommerce_account_downloads_column_' . $column_id, $download ); ?> <?php elseif ( 'download-file' === $column_id ) : ?> <a href="<?php echo esc_url( get_permalink( $download['product_id'] ) ); ?>"> <?php echo esc_html( $download['download_name'] ); ?> </a> <?php elseif ( 'download-remaining' === $column_id ) : ?> <?php if ( is_numeric( $download['downloads_remaining'] ) ) { echo esc_html( $download['downloads_remaining'] ); } else { _e( '∞', 'woocommerce' ); } ?> <?php elseif ( 'download-expires' === $column_id ) : ?> <?php if ( ! empty( $download['access_expires'] ) ) : ?> <time datetime="<?php echo date( 'Y-m-d', strtotime( $download['access_expires'] ) ); ?>" title="<?php echo esc_attr( strtotime( $download['access_expires'] ) ); ?>"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $download['access_expires'] ) ); ?></time> <?php else : ?> <?php _e( 'Never', 'woocommerce' ); ?> <?php endif; ?> <?php elseif ( 'download-actions' === $column_id ) : ?> <?php $actions = array( 'download' => array( 'url' => $download['download_url'], 'name' => __( 'Download', 'woocommerce' ) ) ); if ( $actions = apply_filters( 'woocommerce_account_download_actions', $actions, $download ) ) { foreach ( $actions as $key => $action ) { echo '<a href="' . esc_url( $action['url'] ) . '" class="button woocommerce-Button ' . sanitize_html_class( $key ) . '">' . esc_html( $action['name'] ) . '</a>'; } } ?> <?php endif; ?> </td> <?php endforeach; ?> </tr> <?php endforeach; ?> </table> <?php do_action( 'woocommerce_after_available_downloads' ); ?> <?php else : ?> <div class="woocommerce-Message woocommerce-Message--info woocommerce-info"> <a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>"> <?php esc_html_e( 'Go Shop', 'woocommerce' ) ?> </a> <?php esc_html_e( 'No downloads available yet.', 'woocommerce' ); ?> </div> <?php endif; ?> <?php do_action( 'woocommerce_after_account_downloads', $has_downloads ); ?> navigation.php 0000666 00000002243 15214157657 0007436 0 ustar 00 <?php /** * My Account navigation * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/navigation.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } do_action( 'woocommerce_before_account_navigation' ); ?> <nav class="woocommerce-MyAccount-navigation"> <ul> <?php foreach ( wc_get_account_menu_items() as $endpoint => $label ) : ?> <li class="<?php echo wc_get_account_menu_item_classes( $endpoint ); ?>"> <a href="<?php echo esc_url( wc_get_account_endpoint_url( $endpoint ) ); ?>"><?php echo esc_html( $label ); ?></a> </li> <?php endforeach; ?> </ul> </nav> <?php do_action( 'woocommerce_after_account_navigation' ); ?> my-account.php 0000666 00000001716 15214157657 0007362 0 ustar 00 <?php /** * My Account page * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/my-account.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } wc_print_notices(); /** * My Account navigation. * @since 2.6.0 */ do_action( 'woocommerce_account_navigation' ); ?> <div class="woocommerce-MyAccount-content"> <?php /** * My Account content. * @since 2.6.0 */ do_action( 'woocommerce_account_content' ); ?> </div> form-add-payment-method.php 0000666 00000005227 15214157657 0011726 0 ustar 00 <?php /** * Add payment method form form * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-add-payment-method.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( $available_gateways = WC()->payment_gateways->get_available_payment_gateways() ) : ?> <form id="add_payment_method" method="post"> <div id="payment" class="woocommerce-Payment"> <ul class="woocommerce-PaymentMethods payment_methods methods"> <?php // Chosen Method. if ( count( $available_gateways ) ) { current( $available_gateways )->set_current(); } foreach ( $available_gateways as $gateway ) { ?> <li class="woocommerce-PaymentMethod woocommerce-PaymentMethod--<?php echo $gateway->id; ?> payment_method_<?php echo $gateway->id; ?>"> <input id="payment_method_<?php echo $gateway->id; ?>" type="radio" class="input-radio" name="payment_method" value="<?php echo esc_attr( $gateway->id ); ?>" <?php checked( $gateway->chosen, true ); ?> /> <label for="payment_method_<?php echo $gateway->id; ?>"><?php echo $gateway->get_title(); ?> <?php echo $gateway->get_icon(); ?></label> <?php if ( $gateway->has_fields() || $gateway->get_description() ) { echo '<div class="woocommerce-PaymentBox woocommerce-PaymentBox--' . $gateway->id . ' payment_box payment_method_' . $gateway->id . '" style="display: none;">'; $gateway->payment_fields(); echo '</div>'; } ?> </li> <?php } ?> </ul> <div class="form-row"> <?php wp_nonce_field( 'woocommerce-add-payment-method' ); ?> <input type="submit" class="woocommerce-Button woocommerce-Button--alt button alt" id="place_order" value="<?php esc_attr_e( 'Add Payment Method', 'woocommerce' ); ?>" /> <input type="hidden" name="woocommerce_add_payment_method" id="woocommerce_add_payment_method" value="1" /> </div> </div> </form> <?php else : ?> <p><?php esc_html_e( 'Sorry, it seems that there are no payment methods which support adding a new payment method. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ); ?></p> <?php endif; ?> my-orders.php 0000666 00000010062 15214157657 0007216 0 ustar 00 <?php /** * My Orders * * @deprecated 2.6.0 this template file is no longer used. My Account shortcode uses orders.php. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $my_orders_columns = apply_filters( 'woocommerce_my_account_my_orders_columns', array( 'order-number' => __( 'Order', 'woocommerce' ), 'order-date' => __( 'Date', 'woocommerce' ), 'order-status' => __( 'Status', 'woocommerce' ), 'order-total' => __( 'Total', 'woocommerce' ), 'order-actions' => ' ', ) ); $customer_orders = get_posts( apply_filters( 'woocommerce_my_account_my_orders_query', array( 'numberposts' => $order_count, 'meta_key' => '_customer_user', 'meta_value' => get_current_user_id(), 'post_type' => wc_get_order_types( 'view-orders' ), 'post_status' => array_keys( wc_get_order_statuses() ) ) ) ); if ( $customer_orders ) : ?> <h2><?php echo apply_filters( 'woocommerce_my_account_my_orders_title', __( 'Recent Orders', 'woocommerce' ) ); ?></h2> <table class="shop_table shop_table_responsive my_account_orders"> <thead> <tr> <?php foreach ( $my_orders_columns as $column_id => $column_name ) : ?> <th class="<?php echo esc_attr( $column_id ); ?>"><span class="nobr"><?php echo esc_html( $column_name ); ?></span></th> <?php endforeach; ?> </tr> </thead> <tbody> <?php foreach ( $customer_orders as $customer_order ) : $order = wc_get_order( $customer_order ); $item_count = $order->get_item_count(); ?> <tr class="order"> <?php foreach ( $my_orders_columns as $column_id => $column_name ) : ?> <td class="<?php echo esc_attr( $column_id ); ?>" data-title="<?php echo esc_attr( $column_name ); ?>"> <?php if ( has_action( 'woocommerce_my_account_my_orders_column_' . $column_id ) ) : ?> <?php do_action( 'woocommerce_my_account_my_orders_column_' . $column_id, $order ); ?> <?php elseif ( 'order-number' === $column_id ) : ?> <a href="<?php echo esc_url( $order->get_view_order_url() ); ?>"> <?php echo _x( '#', 'hash before order number', 'woocommerce' ) . $order->get_order_number(); ?> </a> <?php elseif ( 'order-date' === $column_id ) : ?> <time datetime="<?php echo date( 'Y-m-d', strtotime( $order->order_date ) ); ?>" title="<?php echo esc_attr( strtotime( $order->order_date ) ); ?>"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></time> <?php elseif ( 'order-status' === $column_id ) : ?> <?php echo wc_get_order_status_name( $order->get_status() ); ?> <?php elseif ( 'order-total' === $column_id ) : ?> <?php echo sprintf( _n( '%s for %s item', '%s for %s items', $item_count, 'woocommerce' ), $order->get_formatted_order_total(), $item_count ); ?> <?php elseif ( 'order-actions' === $column_id ) : ?> <?php $actions = array( 'pay' => array( 'url' => $order->get_checkout_payment_url(), 'name' => __( 'Pay', 'woocommerce' ) ), 'view' => array( 'url' => $order->get_view_order_url(), 'name' => __( 'View', 'woocommerce' ) ), 'cancel' => array( 'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ), 'name' => __( 'Cancel', 'woocommerce' ) ) ); if ( ! $order->needs_payment() ) { unset( $actions['pay'] ); } if ( ! in_array( $order->get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) ) ) { unset( $actions['cancel'] ); } if ( $actions = apply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order ) ) { foreach ( $actions as $key => $action ) { echo '<a href="' . esc_url( $action['url'] ) . '" class="button ' . sanitize_html_class( $key ) . '">' . esc_html( $action['name'] ) . '</a>'; } } ?> <?php endif; ?> </td> <?php endforeach; ?> </tr> <?php endforeach; ?> </tbody> </table> <?php endif; ?> payment-methods.php 0000666 00000006772 15214157657 0010430 0 ustar 00 <?php /** * Payment methods * * Shows customer payment methods on the account page. * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/payment-methods.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } $saved_methods = wc_get_customer_saved_methods_list( get_current_user_id() ); $has_methods = (bool) $saved_methods; $types = wc_get_account_payment_methods_types(); do_action( 'woocommerce_before_account_payment_methods', $has_methods ); ?> <?php if ( $has_methods ) : ?> <table class="woocommerce-MyAccount-paymentMethods shop_table shop_table_responsive account-payment-methods-table"> <thead> <tr> <?php foreach ( wc_get_account_payment_methods_columns() as $column_id => $column_name ) : ?> <th class="woocommerce-PaymentMethod woocommerce-PaymentMethod--<?php echo esc_attr( $column_id ); ?> payment-method-<?php echo esc_attr( $column_id ); ?>"><span class="nobr"><?php echo esc_html( $column_name ); ?></span></th> <?php endforeach; ?> </tr> </thead> <?php foreach ( $saved_methods as $type => $methods ) : ?> <?php foreach ( $methods as $method ) : ?> <tr class="payment-method<?php echo ! empty( $method['is_default'] ) ? ' default-payment-method' : '' ?>"> <?php foreach ( wc_get_account_payment_methods_columns() as $column_id => $column_name ) : ?> <td class="woocommerce-PaymentMethod woocommerce-PaymentMethod--<?php echo esc_attr( $column_id ); ?> payment-method-<?php echo esc_attr( $column_id ); ?>" data-title="<?php echo esc_attr( $column_name ); ?>"> <?php if ( has_action( 'woocommerce_account_payment_methods_column_' . $column_id ) ) { do_action( 'woocommerce_account_payment_methods_column_' . $column_id, $method ); } else if ( 'method' === $column_id ) { if ( ! empty ( $method['method']['last4'] ) ) { echo sprintf( __( '%s ending in %s', 'woocommerce' ), esc_html( wc_get_credit_card_type_label( $method['method']['brand'] ) ), esc_html( $method['method']['last4'] ) ); } else { echo esc_html( wc_get_credit_card_type_label( $method['method']['brand'] ) ); } } else if ( 'expires' === $column_id ) { echo esc_html( $method['expires'] ); } else if ( 'actions' === $column_id ) { foreach ( $method['actions'] as $key => $action ) { echo '<a href="' . esc_url( $action['url'] ) . '" class="button ' . sanitize_html_class( $key ) . '">' . esc_html( $action['name'] ) . '</a> '; } } ?> </td> <?php endforeach; ?> </tr> <?php endforeach; ?> <?php endforeach; ?> </table> <?php else : ?> <p class="woocommerce-Message woocommerce-Message--info woocommerce-info"><?php esc_html_e( 'No saved methods found.', 'woocommerce' ); ?></p> <?php endif; ?> <?php do_action( 'woocommerce_after_account_payment_methods', $has_methods ); ?> <a class="button" href="<?php echo esc_url( wc_get_endpoint_url( 'add-payment-method' ) ); ?>"><?php esc_html_e( 'Add Payment Method', 'woocommerce' ); ?></a> my-downloads.php 0000666 00000003664 15214157657 0007724 0 ustar 00 <?php /** * My Downloads * * Shows downloads on the account page. * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/my-downloads.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 * @depreacated 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } if ( $downloads = WC()->customer->get_downloadable_products() ) : ?> <?php do_action( 'woocommerce_before_available_downloads' ); ?> <h2><?php echo apply_filters( 'woocommerce_my_account_my_downloads_title', __( 'Available Downloads', 'woocommerce' ) ); ?></h2> <ul class="woocommerce-Downloads digital-downloads"> <?php foreach ( $downloads as $download ) : ?> <li> <?php do_action( 'woocommerce_available_download_start', $download ); if ( is_numeric( $download['downloads_remaining'] ) ) echo apply_filters( 'woocommerce_available_download_count', '<span class="woocommerce-Count count">' . sprintf( _n( '%s download remaining', '%s downloads remaining', $download['downloads_remaining'], 'woocommerce' ), $download['downloads_remaining'] ) . '</span> ', $download ); echo apply_filters( 'woocommerce_available_download_link', '<a href="' . esc_url( $download['download_url'] ) . '">' . $download['download_name'] . '</a>', $download ); do_action( 'woocommerce_available_download_end', $download ); ?> </li> <?php endforeach; ?> </ul> <?php do_action( 'woocommerce_after_available_downloads' ); ?> <?php endif; ?> form-edit-address.php 0000666 00000003465 15214157657 0010617 0 ustar 00 <?php /** * Edit address form * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-edit-address.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } $page_title = ( $load_address === 'billing' ) ? __( 'Billing Address', 'woocommerce' ) : __( 'Shipping Address', 'woocommerce' ); do_action( 'woocommerce_before_edit_account_address_form' ); ?> <?php if ( ! $load_address ) : ?> <?php wc_get_template( 'myaccount/my-address.php' ); ?> <?php else : ?> <form method="post"> <h3><?php echo apply_filters( 'woocommerce_my_account_edit_address_title', $page_title ); ?></h3> <?php do_action( "woocommerce_before_edit_address_form_{$load_address}" ); ?> <?php foreach ( $address as $key => $field ) : ?> <?php woocommerce_form_field( $key, $field, ! empty( $_POST[ $key ] ) ? wc_clean( $_POST[ $key ] ) : $field['value'] ); ?> <?php endforeach; ?> <?php do_action( "woocommerce_after_edit_address_form_{$load_address}" ); ?> <p> <input type="submit" class="button" name="save_address" value="<?php esc_attr_e( 'Save Address', 'woocommerce' ); ?>" /> <?php wp_nonce_field( 'woocommerce-edit_address' ); ?> <input type="hidden" name="action" value="edit_address" /> </p> </form> <?php endif; ?> <?php do_action( 'woocommerce_after_edit_account_address_form' ); ?> lost-password-confirmation.php 0000666 00000002150 15214157657 0012603 0 ustar 00 <?php /** * Lost password confirmation text. * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/lost-password-confirmation.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } wc_print_notices(); wc_print_notice( __( 'Password reset email has been sent.', 'woocommerce' ) ); ?> <p><?php echo apply_filters( 'woocommerce_lost_password_message', __( 'A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset.', 'woocommerce' ) ); ?></p> form-lost-password.php 0000666 00000003241 15214157657 0011060 0 ustar 00 <?php /** * Lost password form * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-lost-password.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } wc_print_notices(); ?> <form method="post" class="woocommerce-ResetPassword lost_reset_password"> <p><?php echo apply_filters( 'woocommerce_lost_password_message', __( 'Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.', 'woocommerce' ) ); ?></p> <p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first"> <label for="user_login"><?php _e( 'Username or email', 'woocommerce' ); ?></label> <input class="woocommerce-Input woocommerce-Input--text input-text" type="text" name="user_login" id="user_login" /> </p> <div class="clear"></div> <?php do_action( 'woocommerce_lostpassword_form' ); ?> <p class="woocommerce-FormRow form-row"> <input type="hidden" name="wc_reset_password" value="true" /> <input type="submit" class="woocommerce-Button button" value="<?php esc_attr_e( 'Reset Password', 'woocommerce' ); ?>" /> </p> <?php wp_nonce_field( 'lost_password' ); ?> </form> view-order.php 0000666 00000004006 15214157657 0007361 0 ustar 00 <?php /** * View Order * * Shows the details of a particular order on the account page. * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/view-order.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <p><?php printf( __( 'Order #%1$s was placed on %2$s and is currently %3$s.', 'woocommerce' ), '<mark class="order-number">' . $order->get_order_number() . '</mark>', '<mark class="order-date">' . date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ) . '</mark>', '<mark class="order-status">' . wc_get_order_status_name( $order->get_status() ) . '</mark>' ); ?></p> <?php if ( $notes = $order->get_customer_order_notes() ) : ?> <h2><?php _e( 'Order Updates', 'woocommerce' ); ?></h2> <ol class="woocommerce-OrderUpdates commentlist notes"> <?php foreach ( $notes as $note ) : ?> <li class="woocommerce-OrderUpdate comment note"> <div class="woocommerce-OrderUpdate-inner comment_container"> <div class="woocommerce-OrderUpdate-text comment-text"> <p class="woocommerce-OrderUpdate-meta meta"><?php echo date_i18n( __( 'l jS \o\f F Y, h:ia', 'woocommerce' ), strtotime( $note->comment_date ) ); ?></p> <div class="woocommerce-OrderUpdate-description description"> <?php echo wpautop( wptexturize( $note->comment_content ) ); ?> </div> <div class="clear"></div> </div> <div class="clear"></div> </div> </li> <?php endforeach; ?> </ol> <?php endif; ?> <?php do_action( 'woocommerce_view_order', $order_id ); ?> my-address.php 0000666 00000006254 15214157657 0007355 0 ustar 00 <?php /** * My Addresses * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/my-address.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } $customer_id = get_current_user_id(); if ( ! wc_ship_to_billing_address_only() && wc_shipping_enabled() ) { $get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array( 'billing' => __( 'Billing Address', 'woocommerce' ), 'shipping' => __( 'Shipping Address', 'woocommerce' ) ), $customer_id ); } else { $get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array( 'billing' => __( 'Billing Address', 'woocommerce' ) ), $customer_id ); } $oldcol = 1; $col = 1; ?> <p> <?php echo apply_filters( 'woocommerce_my_account_my_address_description', __( 'The following addresses will be used on the checkout page by default.', 'woocommerce' ) ); ?> </p> <?php if ( ! wc_ship_to_billing_address_only() && wc_shipping_enabled() ) echo '<div class="u-columns woocommerce-Addresses col2-set addresses">'; ?> <?php foreach ( $get_addresses as $name => $title ) : ?> <div class="u-column<?php echo ( ( $col = $col * -1 ) < 0 ) ? 1 : 2; ?> col-<?php echo ( ( $oldcol = $oldcol * -1 ) < 0 ) ? 1 : 2; ?> woocommerce-Address"> <header class="woocommerce-Address-title title"> <h3><?php echo $title; ?></h3> <a href="<?php echo esc_url( wc_get_endpoint_url( 'edit-address', $name ) ); ?>" class="edit"><?php _e( 'Edit', 'woocommerce' ); ?></a> </header> <address> <?php $address = apply_filters( 'woocommerce_my_account_my_address_formatted_address', array( 'first_name' => get_user_meta( $customer_id, $name . '_first_name', true ), 'last_name' => get_user_meta( $customer_id, $name . '_last_name', true ), 'company' => get_user_meta( $customer_id, $name . '_company', true ), 'address_1' => get_user_meta( $customer_id, $name . '_address_1', true ), 'address_2' => get_user_meta( $customer_id, $name . '_address_2', true ), 'city' => get_user_meta( $customer_id, $name . '_city', true ), 'state' => get_user_meta( $customer_id, $name . '_state', true ), 'postcode' => get_user_meta( $customer_id, $name . '_postcode', true ), 'country' => get_user_meta( $customer_id, $name . '_country', true ) ), $customer_id, $name ); $formatted_address = WC()->countries->get_formatted_address( $address ); if ( ! $formatted_address ) _e( 'You have not set up this type of address yet.', 'woocommerce' ); else echo $formatted_address; ?> </address> </div> <?php endforeach; ?> <?php if ( ! wc_ship_to_billing_address_only() && wc_shipping_enabled() ) echo '</div>'; ?> dashboard.php 0000666 00000003573 15214157657 0007235 0 ustar 00 <?php /** * My Account Dashboard * * Shows the first intro screen on the account dashboard. * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/dashboard.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <p> <?php echo sprintf( esc_attr__( 'Hello %s%s%s (not %2$s? %sSign out%s)', 'woocommerce' ), '<strong>', esc_html( $current_user->display_name ), '</strong>', '<a href="' . esc_url( wc_logout_url( wc_get_page_permalink( 'myaccount' ) ) ) . '">', '</a>' ); ?> </p> <p> <?php echo sprintf( esc_attr__( 'From your account dashboard you can view your %1$srecent orders%2$s, manage your %3$sshipping and billing addresses%2$s and %4$sedit your password and account details%2$s.', 'woocommerce' ), '<a href="' . esc_url( wc_get_endpoint_url( 'orders' ) ) . '">', '</a>', '<a href="' . esc_url( wc_get_endpoint_url( 'edit-address' ) ) . '">', '<a href="' . esc_url( wc_get_endpoint_url( 'edit-account' ) ) . '">' ); ?> </p> <?php /** * My Account dashboard. * * @since 2.6.0 */ do_action( 'woocommerce_account_dashboard' ); /** * Deprecated woocommerce_before_my_account action. * * @deprecated 2.6.0 */ do_action( 'woocommerce_before_my_account' ); /** * Deprecated woocommerce_after_my_account action. * * @deprecated 2.6.0 */ do_action( 'woocommerce_after_my_account' ); ?> form-reset-password.php 0000666 00000004144 15214157657 0011224 0 ustar 00 <?php /** * Lost password reset form. * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-reset-password.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } wc_print_notices(); ?> <form method="post" class="woocommerce-ResetPassword lost_reset_password"> <p><?php echo apply_filters( 'woocommerce_reset_password_message', __( 'Enter a new password below.', 'woocommerce') ); ?></p> <p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first"> <label for="password_1"><?php _e( 'New password', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password_1" id="password_1" /> </p> <p class="woocommerce-FormRow woocommerce-FormRow--last form-row form-row-last"> <label for="password_2"><?php _e( 'Re-enter new password', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password_2" id="password_2" /> </p> <input type="hidden" name="reset_key" value="<?php echo esc_attr( $args['key'] ); ?>" /> <input type="hidden" name="reset_login" value="<?php echo esc_attr( $args['login'] ); ?>" /> <div class="clear"></div> <?php do_action( 'woocommerce_resetpassword_form' ); ?> <p class="woocommerce-FormRow form-row"> <input type="hidden" name="wc_reset_password" value="true" /> <input type="submit" class="woocommerce-Button button" value="<?php esc_attr_e( 'Save', 'woocommerce' ); ?>" /> </p> <?php wp_nonce_field( 'reset_password' ); ?> </form>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings