File manager - Edit - /home/monara/public_html/test.athavaneng.com/views.tar
Back
revisions-panel-template.php 0000644 00000006642 15073230645 0012221 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } ?> <script type="text/template" id="tmpl-elementor-panel-revisions"> <div class="elementor-panel-box"> <div class="elementor-panel-revisions-buttons"> <button class="elementor-button e-btn-txt e-revision-discard" disabled> <?php echo esc_html__( 'Discard', 'elementor' ); ?> </button> <button class="elementor-button e-revision-save" disabled> <?php echo esc_html__( 'Apply', 'elementor' ); ?> </button> </div> </div> <div class="elementor-panel-box"> <div id="elementor-revisions-list" class="elementor-panel-box-content"></div> </div> </script> <script type="text/template" id="tmpl-elementor-panel-revisions-no-revisions"> <# var no_revisions_1 = '<?php echo esc_html__( 'Revision history lets you save your previous versions of your work, and restore them any time.', 'elementor' ); ?>', no_revisions_2 = '<?php echo esc_html__( 'Start designing your page and you will be able to see the entire revision history here.', 'elementor' ); ?>', revisions_disabled_1 = '<?php echo esc_html__( 'It looks like the post revision feature is unavailable in your website.', 'elementor' ); ?>', revisions_disabled_2 = '<?php printf( /* translators: %1$s Link open tag, %2$s: Link close tag. */ esc_html__( 'Learn more about %1$sWordPress revisions%2$s', 'elementor' ), '<a target="_blank" href="https://go.elementor.com/wordpress-revisions/">', '</a>' ); ?>'; #> <img class="elementor-nerd-box-icon" src="<?php // PHPCS - Safe Elementor SVG echo ELEMENTOR_ASSETS_URL . 'images/information.svg' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" /> <div class="elementor-nerd-box-title"><?php echo esc_html__( 'No Revisions Saved Yet', 'elementor' ); ?></div> <div class="elementor-nerd-box-message">{{{ elementor.config.document.revisions.enabled ? no_revisions_1 : revisions_disabled_1 }}}</div> <div class="elementor-nerd-box-message">{{{ elementor.config.document.revisions.enabled ? no_revisions_2 : revisions_disabled_2 }}}</div> </script> <script type="text/template" id="tmpl-elementor-panel-revisions-loading"> <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> </script> <script type="text/template" id="tmpl-elementor-panel-revisions-revision-item"> <div class="elementor-revision-item__wrapper {{ type }}"> <div class="elementor-revision-item__gravatar">{{{ gravatar }}}</div> <div class="elementor-revision-item__details"> <div class="elementor-revision-date" title="{{{ new Date( timestamp * 1000 ) }}}">{{{ date }}}</div> <div class="elementor-revision-meta"> <span>{{{ typeLabel }}}</span> <?php echo esc_html__( 'By', 'elementor' ); ?> {{{ author }}} <span>(#{{{ id }}})</span> </div> </div> <div class="elementor-revision-item__tools"> <i class="elementor-revision-item__tools-spinner eicon-loading eicon-animation-spin" aria-hidden="true"></i> <# if ( 'current' === type ) { #> <i class="elementor-revision-item__tools-current eicon-check" aria-hidden="true"></i> <span class="elementor-screen-only"><?php echo esc_html__( 'Published', 'elementor' ); ?></span> <# } #> <!-- <# if ( 'revision' === type ) { #>--> <!-- <i class="eicon-undo" aria-hidden="true"></i>--> <!-- <span class="elementor-screen-only">--><?php //echo esc_html__( 'Restore', 'elementor' ); ?><!--</span>--> <!-- <# } #>--> </div> </div> </script> history-panel-template.php 0000644 00000003570 15073230645 0011676 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } ?> <script type="text/template" id="tmpl-elementor-panel-history-page"> <div id="elementor-panel-elements-navigation" class="elementor-panel-navigation"> <button class="elementor-component-tab elementor-panel-navigation-tab" data-tab="actions"><?php echo esc_html__( 'Actions', 'elementor' ); ?></button> <button class="elementor-component-tab elementor-panel-navigation-tab" data-tab="revisions"><?php echo esc_html__( 'Revisions', 'elementor' ); ?></button> </div> <div id="elementor-panel-history-content"></div> </script> <script type="text/template" id="tmpl-elementor-panel-history-tab"> <div id="elementor-history-list"></div> <div class="elementor-history-revisions-message"><?php echo esc_html__( 'Switch to Revisions tab for older versions', 'elementor' ); ?></div> </script> <script type="text/template" id="tmpl-elementor-panel-history-no-items"> <img class="elementor-nerd-box-icon" src="<?php // PHPCS - Safe Elementor SVG echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" /> <div class="elementor-nerd-box-title"><?php echo esc_html__( 'No History Yet', 'elementor' ); ?></div> <div class="elementor-nerd-box-message"><?php echo esc_html__( 'Once you start working, you\'ll be able to redo / undo any action you make in the editor.', 'elementor' ); ?></div> </script> <script type="text/template" id="tmpl-elementor-panel-history-item"> <div class="elementor-history-item__details"> <span class="elementor-history-item__title">{{{ title }}}</span> <span class="elementor-history-item__subtitle">{{{ subTitle }}}</span> <span class="elementor-history-item__action">{{{ action }}}</span> </div> <div class="elementor-history-item__icon"> <span class="eicon" aria-hidden="true"></span> </div> </script> html-notice-updating.php 0000644 00000002171 15073234460 0011316 0 ustar 00 <?php /** * Admin View: Notice - Updating * * @package WooCommerce\Admin */ use Automattic\Jetpack\Constants; if ( ! defined( 'ABSPATH' ) ) { exit; } $pending_actions_url = admin_url( 'admin.php?page=wc-status&tab=action-scheduler&s=woocommerce_run_update&status=pending' ); $cron_disabled = Constants::is_true( 'DISABLE_WP_CRON' ); $cron_cta = $cron_disabled ? __( 'You can manually run queued updates here.', 'woocommerce' ) : __( 'View progress →', 'woocommerce' ); ?> <div id="message" class="updated woocommerce-message wc-connect"> <p> <strong><?php esc_html_e( 'WooCommerce database update', 'woocommerce' ); ?></strong><br> <?php esc_html_e( 'WooCommerce is updating the database in the background. The database update process may take a little while, so please be patient.', 'woocommerce' ); ?> <?php if ( $cron_disabled ) { echo '<br>' . esc_html__( 'Note: WP CRON has been disabled on your install which may prevent this update from completing.', 'woocommerce' ); } ?> <a href="<?php echo esc_url( $pending_actions_url ); ?>"><?php echo esc_html( $cron_cta ); ?></a> </p> </div> html-admin-page-reports.php 0000644 00000004605 15073234460 0011726 0 ustar 00 <?php /** * Admin View: Page - Reports */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wrap woocommerce"> <?php if ( WC()->is_wc_admin_active() ) { ?> <div id="message" class="error inline" style="margin-top:30px"> <p> <strong> <?php /* translators: 1: Link URL */ echo wp_kses_post( sprintf( __( 'With the release of WooCommerce 4.0, these reports are being replaced. There is a new and better Analytics section available for users running WordPress 5.3+. Head on over to the <a href="%1$s">WooCommerce Analytics</a> or learn more about the new experience in the <a href="https://woo.com/document/woocommerce-analytics/" target="_blank">WooCommerce Analytics documentation</a>.', 'woocommerce' ), esc_url( wc_admin_url( '&path=/analytics/overview' ) ) ) ); ?> </strong> </p> </div> <?php } ?> <nav class="nav-tab-wrapper woo-nav-tab-wrapper"> <?php foreach ( $reports as $key => $report_group ) { echo '<a href="' . admin_url( 'admin.php?page=wc-reports&tab=' . urlencode( $key ) ) . '" class="nav-tab '; if ( $current_tab == $key ) { echo 'nav-tab-active'; } echo '">' . esc_html( $report_group['title'] ) . '</a>'; } do_action( 'wc_reports_tabs' ); ?> </nav> <?php if ( count( $reports[ $current_tab ]['reports'] ) > 1 ) { ?> <ul class="subsubsub"> <li> <?php $links = array(); foreach ( $reports[ $current_tab ]['reports'] as $key => $report ) { $link = '<a href="admin.php?page=wc-reports&tab=' . urlencode( $current_tab ) . '&report=' . urlencode( $key ) . '" class="'; if ( $key == $current_report ) { $link .= 'current'; } $link .= '">' . $report['title'] . '</a>'; $links[] = $link; } echo implode( ' | </li><li>', $links ); ?> </li> </ul> <br class="clear" /> <?php } if ( isset( $reports[ $current_tab ]['reports'][ $current_report ] ) ) { $report = $reports[ $current_tab ]['reports'][ $current_report ]; if ( ! isset( $report['hide_title'] ) || true != $report['hide_title'] ) { echo '<h1>' . esc_html( $report['title'] ) . '</h1>'; } else { echo '<h1 class="screen-reader-text">' . esc_html( $report['title'] ) . '</h1>'; } if ( $report['description'] ) { echo '<p>' . $report['description'] . '</p>'; } if ( $report['callback'] && ( is_callable( $report['callback'] ) ) ) { call_user_func( $report['callback'], $current_report ); } } ?> </div> html-notice-install.php 0000644 00000001334 15073234460 0011151 0 ustar 00 <?php /** * Admin View: Notice - Install * * @deprecated 4.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="message" class="updated woocommerce-message wc-connect"> <p><?php _e( '<strong>Welcome to WooCommerce</strong> – You‘re almost ready to start selling :)', 'woocommerce' ); ?></p> <p class="submit"><a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-setup' ) ); ?>" class="button-primary"><?php _e( 'Run the Setup Wizard', 'woocommerce' ); ?></a> <a class="button-secondary skip" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'install' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Skip setup', 'woocommerce' ); ?></a></p> </div> html-admin-page-product-export.php 0000644 00000007640 15073234460 0013231 0 ustar 00 <?php /** * Admin View: Product Export * * @package WooCommerce\Admin\Export */ if ( ! defined( 'ABSPATH' ) ) { exit; } wp_enqueue_script( 'wc-product-export' ); $exporter = new WC_Product_CSV_Exporter(); ?> <div class="wrap woocommerce"> <h1><?php esc_html_e( 'Export Products', 'woocommerce' ); ?></h1> <div class="woocommerce-exporter-wrapper"> <form class="woocommerce-exporter"> <header> <span class="spinner is-active"></span> <h2><?php esc_html_e( 'Export products to a CSV file', 'woocommerce' ); ?></h2> <p><?php esc_html_e( 'This tool allows you to generate and download a CSV file containing a list of all products.', 'woocommerce' ); ?></p> </header> <section> <table class="form-table woocommerce-exporter-options"> <tbody> <tr> <th scope="row"> <label for="woocommerce-exporter-columns"><?php esc_html_e( 'Which columns should be exported?', 'woocommerce' ); ?></label> </th> <td> <select id="woocommerce-exporter-columns" class="woocommerce-exporter-columns wc-enhanced-select" style="width:100%;" multiple data-placeholder="<?php esc_attr_e( 'Export all columns', 'woocommerce' ); ?>"> <?php foreach ( $exporter->get_default_column_names() as $column_id => $column_name ) { echo '<option value="' . esc_attr( $column_id ) . '">' . esc_html( $column_name ) . '</option>'; } ?> <option value="downloads"><?php esc_html_e( 'Downloads', 'woocommerce' ); ?></option> <option value="attributes"><?php esc_html_e( 'Attributes', 'woocommerce' ); ?></option> </select> </td> </tr> <tr> <th scope="row"> <label for="woocommerce-exporter-types"><?php esc_html_e( 'Which product types should be exported?', 'woocommerce' ); ?></label> </th> <td> <select id="woocommerce-exporter-types" class="woocommerce-exporter-types wc-enhanced-select" style="width:100%;" multiple data-placeholder="<?php esc_attr_e( 'Export all products', 'woocommerce' ); ?>"> <?php foreach ( WC_Admin_Exporters::get_product_types() as $value => $label ) { echo '<option value="' . esc_attr( $value ) . '">' . esc_html( $label ) . '</option>'; } ?> </select> </td> </tr> <tr> <th scope="row"> <label for="woocommerce-exporter-category"><?php esc_html_e( 'Which product category should be exported?', 'woocommerce' ); ?></label> </th> <td> <select id="woocommerce-exporter-category" class="woocommerce-exporter-category wc-enhanced-select" style="width:100%;" multiple data-placeholder="<?php esc_attr_e( 'Export all categories', 'woocommerce' ); ?>"> <?php $categories = get_categories( array( 'taxonomy' => 'product_cat', 'hide_empty' => false, ) ); foreach ( $categories as $category ) { echo '<option value="' . esc_attr( $category->slug ) . '">' . esc_html( $category->name ) . '</option>'; } ?> </select> </td> </tr> <tr> <th scope="row"> <label for="woocommerce-exporter-meta"><?php esc_html_e( 'Export custom meta?', 'woocommerce' ); ?></label> </th> <td> <input type="checkbox" id="woocommerce-exporter-meta" value="1" /> <label for="woocommerce-exporter-meta"><?php esc_html_e( 'Yes, export all custom meta', 'woocommerce' ); ?></label> </td> </tr> <?php do_action( 'woocommerce_product_export_row' ); ?> </tbody> </table> <progress class="woocommerce-exporter-progress" max="100" value="0"></progress> </section> <div class="wc-actions"> <button type="submit" class="woocommerce-exporter-button button button-primary" value="<?php esc_attr_e( 'Generate CSV', 'woocommerce' ); ?>"><?php esc_html_e( 'Generate CSV', 'woocommerce' ); ?></button> </div> </form> </div> </div> html-quick-edit-product.php 0000644 00000017154 15073234460 0011750 0 ustar 00 <?php /** * Admin View: Quick Edit Product * * @package WooCommerce\Admin\Notices */ defined( 'ABSPATH' ) || exit; ?> <fieldset class="inline-edit-col-left"> <div id="woocommerce-fields" class="inline-edit-col"> <h4><?php esc_html_e( 'Product data', 'woocommerce' ); ?></h4> <?php do_action( 'woocommerce_product_quick_edit_start' ); ?> <?php if ( wc_product_sku_enabled() ) : ?> <label> <span class="title"><?php esc_html_e( 'SKU', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <input type="text" name="_sku" class="text sku" value=""> </span> </label> <br class="clear" /> <?php endif; ?> <div class="price_fields"> <label> <span class="title"><?php esc_html_e( 'Price', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <input type="text" name="_regular_price" class="text wc_input_price regular_price" placeholder="<?php esc_attr_e( 'Regular price', 'woocommerce' ); ?>" value=""> </span> </label> <br class="clear" /> <label> <span class="title"><?php esc_html_e( 'Sale', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <input type="text" name="_sale_price" class="text wc_input_price sale_price" placeholder="<?php esc_attr_e( 'Sale price', 'woocommerce' ); ?>" value=""> </span> </label> <br class="clear" /> </div> <?php if ( wc_tax_enabled() ) : ?> <label class="alignleft"> <span class="title"><?php esc_html_e( 'Tax status', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="tax_status" name="_tax_status"> <?php $options = array( 'taxable' => __( 'Taxable', 'woocommerce' ), 'shipping' => __( 'Shipping only', 'woocommerce' ), 'none' => _x( 'None', 'Tax status', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <br class="clear" /> <label class="alignleft"> <span class="title"><?php esc_html_e( 'Tax class', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="tax_class" name="_tax_class"> <?php $options = array( '' => __( 'Standard', 'woocommerce' ), ); $tax_classes = WC_Tax::get_tax_classes(); if ( ! empty( $tax_classes ) ) { foreach ( $tax_classes as $class ) { $options[ sanitize_title( $class ) ] = esc_html( $class ); } } foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <br class="clear" /> <?php endif; ?> <?php if ( wc_product_weight_enabled() || wc_product_dimensions_enabled() ) : ?> <div class="dimension_fields"> <?php if ( wc_product_weight_enabled() ) : ?> <label> <span class="title"><?php esc_html_e( 'Weight', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <input type="text" name="_weight" class="text weight" placeholder="<?php echo esc_attr( wc_format_localized_decimal( 0 ) ); ?>" value=""> </span> </label> <br class="clear" /> <?php endif; ?> <?php if ( wc_product_dimensions_enabled() ) : ?> <div class="inline-edit-group dimensions"> <div> <span class="title"><?php esc_html_e( 'L/W/H', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <input type="text" name="_length" class="text wc_input_decimal length" placeholder="<?php esc_attr_e( 'Length', 'woocommerce' ); ?>" value=""> <input type="text" name="_width" class="text wc_input_decimal width" placeholder="<?php esc_attr_e( 'Width', 'woocommerce' ); ?>" value=""> <input type="text" name="_height" class="text wc_input_decimal height" placeholder="<?php esc_attr_e( 'Height', 'woocommerce' ); ?>" value=""> </span> </div> </div> <?php endif; ?> </div> <?php endif; ?> <div class="inline-edit-group"> <span class="title"><?php esc_html_e( 'Shipping class', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="shipping_class" name="_shipping_class"> <option value="_no_shipping_class"><?php esc_html_e( 'No shipping class', 'woocommerce' ); ?></option> <?php foreach ( $shipping_class as $key => $value ) { echo '<option value="' . esc_attr( $value->slug ) . '">' . esc_html( $value->name ) . '</option>'; } ?> </select> </span> </div> <div class="inline-edit-group"> <label class="alignleft"> <span class="title"><?php esc_html_e( 'Visibility', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="visibility" name="_visibility"> <?php $options = apply_filters( 'woocommerce_product_visibility_options', array( 'visible' => __( 'Catalog & search', 'woocommerce' ), 'catalog' => __( 'Catalog', 'woocommerce' ), 'search' => __( 'Search', 'woocommerce' ), 'hidden' => __( 'Hidden', 'woocommerce' ), ) ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <label class="alignleft featured"> <input type="checkbox" name="_featured" value="1"> <span class="checkbox-title"><?php esc_html_e( 'Featured', 'woocommerce' ); ?></span> </label> </div> <?php if ( get_option( 'woocommerce_manage_stock' ) === 'yes' ) : ?> <div class="inline-edit-group manage_stock_field"> <label class="manage_stock"> <input type="checkbox" name="_manage_stock" value="1"> <span class="checkbox-title"><?php esc_html_e( 'Manage stock?', 'woocommerce' ); ?></span> </label> </div> <?php endif; ?> <label class="stock_status_field"> <span class="title"><?php esc_html_e( 'In stock?', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="stock_status" name="_stock_status"> <?php echo '<option value="" id="stock_status_no_change">' . esc_html__( '— No Change —', 'woocommerce' ) . '</option>'; foreach ( wc_get_product_stock_status_options() as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> <div class="wc-quick-edit-warning" style="display:none"> <?php echo esc_html__( 'This will change the stock status of all variations.', 'woocommerce' ); ?></p> </div> </span> </label> <div class="stock_fields"> <?php if ( get_option( 'woocommerce_manage_stock' ) === 'yes' ) : ?> <label class="stock_qty_field"> <span class="title"><?php esc_html_e( 'Stock qty', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <input type="number" name="_stock" class="text stock" step="any" value=""> </span> </label> <?php endif; ?> </div> <label class="alignleft backorder_field"> <span class="title"><?php esc_html_e( 'Backorders?', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="backorders" name="_backorders"> <?php foreach ( wc_get_product_backorder_options() as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <?php do_action( 'woocommerce_product_quick_edit_end' ); ?> <input type="hidden" name="woocommerce_quick_edit" value="1" /> <input type="hidden" name="woocommerce_quick_edit_nonce" value="<?php echo esc_attr( wp_create_nonce( 'woocommerce_quick_edit_nonce' ) ); ?>" /> </div> </fieldset> html-notice-update.php 0000644 00000002543 15073234460 0010770 0 ustar 00 <?php /** * Admin View: Notice - Update * * @package WooCommerce\Admin */ if ( ! defined( 'ABSPATH' ) ) { exit; } $update_url = wp_nonce_url( add_query_arg( 'do_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ), 'wc_db_update', 'wc_db_update_nonce' ); ?> <div id="message" class="updated woocommerce-message wc-connect"> <p> <strong><?php esc_html_e( 'WooCommerce database update required', 'woocommerce' ); ?></strong> </p> <p> <?php esc_html_e( 'WooCommerce has been updated! To keep things running smoothly, we have to update your database to the newest version.', 'woocommerce' ); /* translators: 1: Link to docs 2: Close link. */ printf( ' ' . esc_html__( 'The database update process runs in the background and may take a little while, so please be patient. Advanced users can alternatively update via %1$sWP CLI%2$s.', 'woocommerce' ), '<a href="https://github.com/woocommerce/woocommerce/wiki/Upgrading-the-database-using-WP-CLI">', '</a>' ); ?> </p> <p class="submit"> <a href="<?php echo esc_url( $update_url ); ?>" class="wc-update-now button-primary"> <?php esc_html_e( 'Update WooCommerce Database', 'woocommerce' ); ?> </a> <a href="https://woo.com/document/how-to-update-woocommerce/" class="button-secondary"> <?php esc_html_e( 'Learn more about updates', 'woocommerce' ); ?> </a> </p> </div> html-admin-page-status-logs-db.php 0000644 00000003552 15073234460 0013100 0 ustar 00 <?php /** * Admin View: Page - Status Database Logs * * @package WooCommerce\Admin\Logs */ if ( ! defined( 'ABSPATH' ) ) { exit; } $delete_confirmation_js = sprintf( "return window.confirm( '%s' )", esc_js( __( 'Are you sure you want to clear all logs from the database?', 'woocommerce' ) ) ); ?> <form method="get" id="mainform"> <input type="hidden" name="page" value="wc-status" /> <input type="hidden" name="tab" value="logs" /> <?php $log_table_list->search_box( __( 'Search logs', 'woocommerce' ), 'log' ); ?> <?php $log_table_list->display(); ?> <?php submit_button( __( 'Flush all logs', 'woocommerce' ), 'delete', 'flush-logs', true, array( 'onclick' => esc_attr( $delete_confirmation_js ), ) ); ?> </form> <script> document.addEventListener( 'DOMContentLoaded', function() { var contextToggles = Array.from( document.getElementsByClassName( 'log-toggle' ) ); contextToggles.forEach( ( element ) => { element.addEventListener( 'click', ( event ) => { event.preventDefault(); const button = event.currentTarget; const buttonLabel = button.querySelector( '.log-toggle-label' ); const buttonIcon = button.querySelector( '.dashicons' ); const context = document.getElementById( 'log-context-' + button.dataset.logId ); switch ( button.dataset.toggleStatus ) { case 'off': context.style.display = 'table-row'; buttonLabel.textContent = button.dataset.labelHide; buttonIcon.classList.replace( 'dashicons-arrow-down-alt2', 'dashicons-arrow-up-alt2' ); button.dataset.toggleStatus = 'on'; break; case 'on': context.style.display = 'none'; buttonLabel.textContent = button.dataset.labelShow; buttonIcon.classList.replace( 'dashicons-arrow-up-alt2', 'dashicons-arrow-down-alt2' ); button.dataset.toggleStatus = 'off'; break; } } ); } ); } ); </script> html-notice-regenerating-thumbnails.php 0000644 00000001152 15073234460 0014317 0 ustar 00 <?php /** * Admin View: Notice - Regenerating thumbnails. */ defined( 'ABSPATH' ) || exit; ?> <div id="message" class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'regenerating_thumbnails' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Cancel thumbnail regeneration', 'woocommerce' ); ?></a> <p><?php esc_html_e( 'Thumbnail regeneration is running in the background. Depending on the amount of images in your store this may take a while.', 'woocommerce' ); ?></p> </div> html-notice-secure-connection.php 0000644 00000001510 15073234460 0013122 0 ustar 00 <?php /** * Admin View: Notice - Secure connection. * * @package WooCommerce\Admin\Notices */ defined( 'ABSPATH' ) || exit; ?> <div id="message" class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'no_secure_connection' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a> <p> <?php echo wp_kses_post( sprintf( /* translators: %s: documentation URL */ __( 'Your store does not appear to be using a secure connection. We highly recommend serving your entire website over an HTTPS connection to help keep customer data secure. <a href="%s">Learn more here.</a>', 'woocommerce' ), 'https://woo.com/document/ssl-and-https/' ) ); ?> </p> </div> html-admin-page-status-logs.php 0000644 00000003746 15073234460 0012522 0 ustar 00 <?php /** * Admin View: Page - Status Logs * * @package WooCommerce\Admin\Logs */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <?php if ( $logs ) : ?> <div id="log-viewer-select"> <div class="alignleft"> <h2> <?php echo esc_html( $viewed_log ); ?> <?php if ( ! empty( $viewed_log ) ) : ?> <a class="page-title-action" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'handle' => sanitize_title( $viewed_log ) ), admin_url( 'admin.php?page=wc-status&tab=logs' ) ), 'remove_log' ) ); ?>" class="button"><?php esc_html_e( 'Delete log', 'woocommerce' ); ?></a> <?php endif; ?> </h2> </div> <div class="alignright"> <form action="<?php echo esc_url( admin_url( 'admin.php?page=wc-status&tab=logs' ) ); ?>" method="post"> <select class="wc-enhanced-select" name="log_file"> <?php foreach ( $logs as $log_key => $log_file ) : ?> <?php $timestamp = filemtime( WC_LOG_DIR . $log_file ); $date = sprintf( /* translators: 1: last access date 2: last access time 3: last access timezone abbreviation */ __( '%1$s at %2$s %3$s', 'woocommerce' ), wp_date( wc_date_format(), $timestamp ), wp_date( wc_time_format(), $timestamp ), wp_date( 'T', $timestamp ) ); ?> <option value="<?php echo esc_attr( $log_key ); ?>" <?php selected( sanitize_title( $viewed_log ), $log_key ); ?>><?php echo esc_html( $log_file ); ?> (<?php echo esc_html( $date ); ?>)</option> <?php endforeach; ?> </select> <button type="submit" class="button" value="<?php esc_attr_e( 'View', 'woocommerce' ); ?>"><?php esc_html_e( 'View', 'woocommerce' ); ?></button> </form> </div> <div class="clear"></div> </div> <div id="log-viewer"> <pre><?php echo esc_html( file_get_contents( WC_LOG_DIR . $viewed_log ) ); ?></pre> </div> <?php else : ?> <div class="updated woocommerce-message inline"><p><?php esc_html_e( 'There are currently no logs to view.', 'woocommerce' ); ?></p></div> <?php endif; ?> html-notice-template-check.php 0000644 00000003236 15073234460 0012374 0 ustar 00 <?php /** * Admin View: Notice - Template Check * * @package WooCommerce\Views */ if ( ! defined( 'ABSPATH' ) ) { exit; } $theme = wp_get_theme(); ?> <div id="message" class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'template_files' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a> <p> <?php /* translators: %s: theme name */ ?> <?php printf( __( '<strong>Your theme (%s) contains outdated copies of some WooCommerce template files.</strong> These files may need updating to ensure they are compatible with the current version of WooCommerce. Suggestions to fix this:', 'woocommerce' ), esc_html( $theme['Name'] ) ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?> <ol> <li><?php esc_html_e( 'Update your theme to the latest version. If no update is available contact your theme author asking about compatibility with the current WooCommerce version.', 'woocommerce' ); ?></li> <li><?php esc_html_e( 'If you copied over a template file to change something, then you will need to copy the new version of the template and apply your changes again.', 'woocommerce' ); ?></li> </ol> </p> <p class="submit"> <a class="button-primary" href="https://woo.com/document/template-structure/" target="_blank"><?php esc_html_e( 'Learn more about templates', 'woocommerce' ); ?></a> <a class="button-primary" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-status' ) ); ?>" target="_blank"><?php esc_html_e( 'View affected templates', 'woocommerce' ); ?></a> </p> </div> html-admin-settings.php 0000644 00000003651 15073234460 0011156 0 ustar 00 <?php /** * Admin View: Settings * * @package WooCommerce */ if ( ! defined( 'ABSPATH' ) ) { exit; } $tab_exists = isset( $tabs[ $current_tab ] ) || has_action( 'woocommerce_sections_' . $current_tab ) || has_action( 'woocommerce_settings_' . $current_tab ) || has_action( 'woocommerce_settings_tabs_' . $current_tab ); $current_tab_label = isset( $tabs[ $current_tab ] ) ? $tabs[ $current_tab ] : ''; if ( ! $tab_exists ) { wp_safe_redirect( admin_url( 'admin.php?page=wc-settings' ) ); exit; } ?> <div class="wrap woocommerce"> <?php do_action( 'woocommerce_before_settings_' . $current_tab ); ?> <form method="<?php echo esc_attr( apply_filters( 'woocommerce_settings_form_method_tab_' . $current_tab, 'post' ) ); ?>" id="mainform" action="" enctype="multipart/form-data"> <nav class="nav-tab-wrapper woo-nav-tab-wrapper"> <?php foreach ( $tabs as $slug => $label ) { echo '<a href="' . esc_html( admin_url( 'admin.php?page=wc-settings&tab=' . esc_attr( $slug ) ) ) . '" class="nav-tab ' . ( $current_tab === $slug ? 'nav-tab-active' : '' ) . '">' . esc_html( $label ) . '</a>'; } do_action( 'woocommerce_settings_tabs' ); ?> </nav> <h1 class="screen-reader-text"><?php echo esc_html( $current_tab_label ); ?></h1> <?php do_action( 'woocommerce_sections_' . $current_tab ); self::show_messages(); do_action( 'woocommerce_settings_' . $current_tab ); do_action( 'woocommerce_settings_tabs_' . $current_tab ); // @deprecated 3.4.0 hook. ?> <p class="submit"> <?php if ( empty( $GLOBALS['hide_save_button'] ) ) : ?> <button name="save" class="button-primary woocommerce-save-button" type="submit" value="<?php esc_attr_e( 'Save changes', 'woocommerce' ); ?>"><?php esc_html_e( 'Save changes', 'woocommerce' ); ?></button> <?php endif; ?> <?php wp_nonce_field( 'woocommerce-settings' ); ?> </p> </form> <?php do_action( 'woocommerce_after_settings_' . $current_tab ); ?> </div> html-admin-page-status-tools.php 0000644 00000004102 15073234460 0012701 0 ustar 00 <?php /** * Admin View: Page - Status Tools * * @package WooCommerce */ use Automattic\WooCommerce\Utilities\ArrayUtil; if ( ! defined( 'ABSPATH' ) ) { exit; } foreach ( $tools as $action_name => $tool ) { ?> <form id="<?php echo esc_attr( 'form_' . $action_name ); ?>" method="GET" action="<?php echo esc_attr( esc_url( admin_url( 'admin.php?foo=bar' ) ) ); ?>"> <?php wp_nonce_field( 'debug_action', '_wpnonce', false ); ?> <input type="hidden" name="page" value="wc-status"/> <input type="hidden" name="tab" value="tools"/> <input type="hidden" name="action" value="<?php echo esc_attr( $action_name ); ?>"/> </form> <?php } ?> <table class="wc_status_table wc_status_table--tools widefat" cellspacing="0"> <tbody class="tools"> <?php foreach ( $tools as $action_name => $tool ) : ?> <tr class="<?php echo sanitize_html_class( $action_name ); ?>"> <th> <strong class="name"><?php echo esc_html( $tool['name'] ); ?></strong> <p class="description"> <?php echo wp_kses_post( $tool['desc'] ); if ( ! is_null( ArrayUtil::get_value_or_default( $tool, 'selector' ) ) ) { $selector = $tool['selector']; if ( isset( $selector['description'] ) ) { echo '</p><p class="description">'; echo wp_kses_post( $selector['description'] ); } // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo " <select style='width: 300px;' form='form_$action_name' id='selector_$action_name' data-allow_clear='true' class='{$selector['class']}' name='{$selector['name']}' data-placeholder='{$selector['placeholder']}' data-action='{$selector['search_action']}'></select>"; } ?> </p> </th> <td class="run-tool"> <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> <input <?php echo ArrayUtil::is_truthy( $tool, 'disabled' ) ? 'disabled' : ''; ?> type="submit" form="<?php echo 'form_' . $action_name; ?>" class="button button-large" value="<?php echo esc_attr( $tool['button'] ); ?>" /> </td> </tr> <?php endforeach; ?> </tbody> </table> html-notice-updated.php 0000644 00000001224 15073234460 0011127 0 ustar 00 <?php /** * Admin View: Notice - Updated. * * @package WooCommerce\Admin */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="message" class="updated woocommerce-message wc-connect woocommerce-message--success"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'update', remove_query_arg( 'do_update_woocommerce' ) ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a> <p><?php esc_html_e( 'WooCommerce database update complete. Thank you for updating to the latest version!', 'woocommerce' ); ?></p> </div> html-notice-base-table-missing.php 0000644 00000003111 15073234460 0013144 0 ustar 00 <?php /** * Admin View: Notice - Base table missing. * * @package WooCommerce\Admin */ defined( 'ABSPATH' ) || exit; ?> <div class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'base_tables_missing' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"> <?php esc_html_e( 'Dismiss', 'woocommerce' ); ?> </a> <p> <strong><?php esc_html_e( 'Database tables missing', 'woocommerce' ); ?></strong> </p> <p> <?php $verify_db_tool_available = array_key_exists( 'verify_db_tables', WC_Admin_Status::get_tools() ); $missing_tables = get_option( 'woocommerce_schema_missing_tables' ); if ( $verify_db_tool_available ) { echo wp_kses_post( sprintf( /* translators: %1%s: Missing tables (separated by ",") %2$s: Link to check again */ __( 'One or more tables required for WooCommerce to function are missing, some features may not work as expected. Missing tables: %1$s. <a href="%2$s">Check again.</a>', 'woocommerce' ), esc_html( implode( ', ', $missing_tables ) ), wp_nonce_url( admin_url( 'admin.php?page=wc-status&tab=tools&action=verify_db_tables' ), 'debug_action' ) ) ); } else { echo wp_kses_post( sprintf( /* translators: %1%s: Missing tables (separated by ",") */ __( 'One or more tables required for WooCommerce to function are missing, some features may not work as expected. Missing tables: %1$s.', 'woocommerce' ), esc_html( implode( ', ', $missing_tables ) ) ) ); } ?> </p> </div> html-notice-legacy-shipping.php 0000644 00000003215 15073234460 0012566 0 ustar 00 <?php /** * Admin View: Notice - Legacy Shipping. * * @package WooCommerce\Admin\Notices */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="message" class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'legacy_shipping' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"> <?php esc_html_e( 'Dismiss', 'woocommerce' ); ?> </a> <p class="main"> <strong><?php esc_html_e( 'New:', 'woocommerce' ); ?> <?php esc_html_e( 'Shipping zones', 'woocommerce' ); ?></strong> – <?php esc_html_e( 'a group of regions that can be assigned different shipping methods and rates.', 'woocommerce' ); ?> </p> <p> <?php esc_html_e( 'Legacy shipping methods (flat rate, international flat rate, local pickup and delivery, and free shipping) are deprecated but will continue to work as normal for now. <b><em>They will be removed in future versions of WooCommerce</em></b>. We recommend disabling these and setting up new rates within shipping zones as soon as possible.', 'woocommerce' ); ?> </p> <p class="submit"> <?php if ( empty( $_GET['page'] ) || empty( $_GET['tab'] ) || 'wc-settings' !== $_GET['page'] || 'shipping' !== $_GET['tab'] ) : ?> <a class="button-primary" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings&tab=shipping' ) ); ?>"> <?php esc_html_e( 'Setup shipping zones', 'woocommerce' ); ?> </a> <?php endif; ?> <a class="button-secondary" href="https://woo.com/document/setting-up-shipping-zones/"> <?php esc_html_e( 'Learn more about shipping zones', 'woocommerce' ); ?> </a> </p> </div> html-notice-download-dir-sync-complete.php 0000644 00000002254 15073234460 0014650 0 ustar 00 <?php /** * Admin View: Notice - Product downloads directories sync complete. */ defined( 'ABSPATH' ) || exit; ?> <div id="message" class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'download_directories_sync_complete' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Dismiss', 'woocommerce' ); ?></a> <p> <?php $settings_screen_link = '<a href="' . esc_url( get_admin_url( null, 'admin.php?page=wc-settings&tab=products§ion=download_urls' ) ) . '">'; $documentation_link = '<a href="https://woo.com/document/approved-download-directories">'; $closing_link = '</a>'; printf( /* translators: %1$s and %3$s are HTML (opening link tags). %2$s is also HTML (closing link tag). */ esc_html__( 'The %1$sApproved Product Download Directories list%2$s has been updated. To protect your site, please review the list and make any changes that might be required. For more information, please refer to %3$sthis guide%2$s.', 'woocommerce' ), $settings_screen_link, $closing_link, $documentation_link ); ?> </p> </div> html-admin-page-addons.php 0000644 00000013546 15073234460 0011504 0 ustar 00 <?php /** * Admin View: Page - Addons * * @package WooCommerce\Admin * @var string $view * @var object $addons * @var object $promotions * @var array $sections * @var string $current_section */ use Automattic\WooCommerce\Admin\RemoteInboxNotifications as PromotionRuleEngine; if ( ! defined( 'ABSPATH' ) ) { exit; } $current_section_name = __( 'Browse Categories', 'woocommerce' ); ?> <div class="woocommerce wc-addons-wrap"> <h1 class="screen-reader-text"><?php esc_html_e( 'Marketplace', 'woocommerce' ); ?></h1> <?php if ( $sections ) : ?> <div class="marketplace-header"> <h1 class="marketplace-header__title"><?php esc_html_e( 'WooCommerce Marketplace', 'woocommerce' ); ?></h1> <p class="marketplace-header__description"><?php esc_html_e( 'Grow your business with hundreds of free and paid WooCommerce extensions.', 'woocommerce' ); ?></p> <form class="marketplace-header__search-form" method="GET"> <input type="text" name="search" value="<?php echo esc_attr( ! empty( $search ) ? sanitize_text_field( wp_unslash( $search ) ) : '' ); ?>" placeholder="<?php esc_attr_e( 'Search for extensions', 'woocommerce' ); ?>" /> <button type="submit"> <span class="dashicons dashicons-search"></span> </button> <input type="hidden" name="page" value="wc-addons"> <input type="hidden" name="section" value="_all"> </form> </div> <div class="top-bar"> <ul class="marketplace-header__tabs"> <li class="marketplace-header__tab"> <a class="marketplace-header__tab-link is-current" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-addons' ) ); ?>" > <?php esc_html_e( 'Browse Extensions', 'woocommerce' ); ?> </a> </li> <li class="marketplace-header__tab"> <a class="marketplace-header__tab-link marketplace-header__tab-link_helper" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-addons§ion=helper' ) ); ?>" > <?php $count_html = WC_Helper_Updater::get_updates_count_html(); /* translators: %s: Woo.com Subscriptions tab count HTML. */ echo ( wp_kses_post( sprintf( __( 'My Subscriptions %s', 'woocommerce' ), $count_html ) ) ); ?> </a> </li> </ul> </div> <div class="wp-header-end"></div> <div class="wrap"> <div class="marketplace-content-wrapper"> <?php require __DIR__ . '/html-admin-page-addons-category-nav.php'; ?> <?php if ( ! empty( $search ) && ! is_wp_error( $addons ) && 0 === count( $addons ) ) : ?> <h1 class="search-form-title"> <?php esc_html_e( 'Sorry, could not find anything. Try searching again using a different term.', 'woocommerce' ); ?></p> </h1> <?php endif; ?> <?php if ( ! empty( $search ) && ! is_wp_error( $addons ) && count( $addons ) > 0 ) : ?> <h1 class="search-form-title"> <?php // translators: search keyword. ?> <?php printf( esc_html__( 'Search results for "%s"', 'woocommerce' ), esc_html( sanitize_text_field( wp_unslash( $search ) ) ) ); ?> </h1> <?php endif; ?> <?php if ( '_featured' === $current_section ) : ?> <div class="addons-featured"> <?php WC_Admin_Addons::render_featured(); ?> </div> <?php endif; ?> <?php if ( '_featured' !== $current_section ) : ?> <?php if ( is_wp_error( $addons ) ) : ?> <?php WC_Admin_Addons::output_empty( $addons->get_error_message() ); ?> <?php else : ?> <?php if ( ! empty( $promotions ) && WC()->is_wc_admin_active() ) { foreach ( $promotions as $promotion ) { WC_Admin_Addons::output_search_promotion_block( $promotion ); } } ?> <ul class="products"> <?php foreach ( $addons as $addon ) : ?> <?php if ( 'shipping_methods' === $current_section ) { // Do not show USPS or Canada Post extensions for US and CA stores, respectively. $country = WC()->countries->get_base_country(); if ( 'US' === $country && false !== strpos( $addon->link, 'woo.com/products/usps-shipping-method' ) ) { continue; } if ( 'CA' === $country && false !== strpos( $addon->link, 'woo.com/products/canada-post-shipping-method' ) ) { continue; } } WC_Admin_Addons::render_product_card( $addon ); ?> <?php endforeach; ?> </ul> <?php endif; ?> <?php endif; ?> </div> <?php else : ?> <?php /* translators: a url */ ?> <p><?php printf( wp_kses_post( __( 'Our catalog of WooCommerce Extensions can be found on Woo.com here: <a href="%s">WooCommerce Extensions Catalog</a>', 'woocommerce' ) ), 'https://woo.com/product-category/woocommerce-extensions/' ); ?></p> <?php endif; ?> <?php if ( 'Storefront' !== $theme['Name'] && '_featured' !== $current_section ) : ?> <?php $storefront_url = WC_Admin_Addons::add_in_app_purchase_url_params( 'https://woo.com/products/storefront/?utm_source=extensionsscreen&utm_medium=product&utm_campaign=wcaddon' ); ?> <div class="storefront"> <h2><?php esc_html_e( 'Looking for a WooCommerce theme?', 'woocommerce' ); ?></h2> <p><?php echo wp_kses_post( __( 'We recommend Storefront, the <em>official</em> WooCommerce theme.', 'woocommerce' ) ); ?></p> <p><?php echo wp_kses_post( __( 'Storefront is an intuitive, flexible and <strong>free</strong> WordPress theme offering deep integration with WooCommerce and many of the most popular customer-facing extensions.', 'woocommerce' ) ); ?></p> <p> <a href="<?php echo esc_url( $storefront_url ); ?>" target="_blank" class="button"><?php esc_html_e( 'Read all about it', 'woocommerce' ); ?></a> <a href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'update.php?action=install-theme&theme=storefront' ), 'install-theme_storefront' ) ); ?>" class="button button-primary"><?php esc_html_e( 'Download & install', 'woocommerce' ); ?></a> </p> </div> <?php endif; ?> </div> </div> html-notice-maxmind-license-key.php 0000644 00000002232 15073234460 0013344 0 ustar 00 <?php /** * Admin View: Notice - Missing MaxMind license key * * @package WooCommerce\Admin */ defined( 'ABSPATH' ) || exit; ?> <div id="message" class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'maxmind_license_key' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a> <p> <strong><?php esc_html_e( 'Geolocation has not been configured.', 'woocommerce' ); ?></strong> </p> <p> <?php echo wp_kses_post( sprintf( /* translators: %1%s: integration page %2$s: general settings page */ __( 'You must enter a valid license key on the <a href="%1$s">MaxMind integration settings page</a> in order to use the geolocation service. If you do not need geolocation for shipping or taxes, you should change the default customer location on the <a href="%2$s">general settings page</a>.', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=integration§ion=maxmind_geolocation' ), admin_url( 'admin.php?page=wc-settings&tab=general' ) ) ); ?> </p> </div> html-notice-redirect-only-download.php 0000644 00000002315 15073234460 0014070 0 ustar 00 <?php /** * Admin View: Notice - Redirect only download method is selected. * * @package WooCommerce\Admin\Notices */ defined( 'ABSPATH' ) || exit; ?> <div class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'redirect_download_method' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a> <p> <?php echo wp_kses_post( sprintf( /* translators: %s: Link to settings page. */ __( 'Your store is configured to serve digital products using "Redirect only" method. This method is deprecated, <a href="%s">please switch to a different method instead.</a><br><em>If you use a remote server for downloadable files (such as Google Drive, Dropbox, Amazon S3), you may optionally wish to "allow using redirects as a last resort". Enabling that and/or selecting any of the other options will make this notice go away.</em>', 'woocommerce' ), add_query_arg( array( 'page' => 'wc-settings', 'tab' => 'products', 'section' => 'downloadable', ), admin_url( 'admin.php' ) ) ) ); ?> </p> </div> html-admin-page-addons-category-nav.php 0000644 00000002116 15073234460 0014070 0 ustar 00 <?php /** * Admin View: Page - Addons - category navigation * * @package WooCommerce\Admin * @var array $sections * @var string $current_section * @var string $current_section_name */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="marketplace-current-section-dropdown" class="current-section-dropdown"> <h2 class="current-section-dropdown__title"><?php esc_html_e( 'Browse categories', 'woocommerce' ); ?></h2> <ul> <?php foreach ( $sections as $section ) : ?> <?php if ( $current_section === $section->slug && '_featured' !== $section->slug ) { $current_section_name = $section->label; } ?> <?php if ( $current_section === $section->slug ) : ?> <li class="current"> <?php else: ?> <li> <?php endif; ?> <a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-addons§ion=' . esc_attr( $section->slug ) ) ); ?>"> <?php echo esc_html( $section->label ); ?> </a> </li> <?php endforeach; ?> </ul> <div id="marketplace-current-section-name" class="current-section-name"><?php echo esc_html( $current_section_name ); ?></div> </div> html-notice-uploads-directory-is-unprotected.php 0000644 00000002024 15073234460 0016114 0 ustar 00 <?php /** * Admin View: Notice - Uploads directory is unprotected. * * @package WooCommerce\Admin\Notices * @since 4.2.0 */ defined( 'ABSPATH' ) || exit; $uploads = wp_get_upload_dir(); ?> <div id="message" class="error woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'uploads_directory_is_unprotected' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a> <p> <?php echo wp_kses_post( sprintf( /* translators: 1: uploads directory URL 2: documentation URL */ __( 'Your store\'s uploads directory is <a href="%1$s">browsable via the web</a>. We strongly recommend <a href="%2$s">configuring your web server to prevent directory indexing</a>.', 'woocommerce' ), esc_url( $uploads['baseurl'] . '/woocommerce_uploads' ), 'https://woo.com/document/digital-downloadable-product-handling/#protecting-your-uploads-directory' ) ); ?> </p> </div> html-admin-dashboard-setup.php 0000644 00000004026 15073234460 0012400 0 ustar 00 <?php /** * Admin View: Dashboard - Finish Setup * * @package WooCommerce\Admin */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="dashboard-widget-finish-setup" data-current-step="<?php echo esc_html( $step_number - 1 ); ?>" data-total-steps="<?php echo esc_html( $tasks_count ); ?>"> <span class='progress-wrapper'> <svg class="circle-progress" width="17" height="17" version="1.1" xmlns="http://www.w3.org/2000/svg"> <circle r="6.5" cx="10" cy="10" fill="transparent" stroke-dasharray="40.859" stroke-dashoffset="0"></circle> <circle class="bar" r="6.5" cx="190" cy="10" fill="transparent" stroke-dasharray="40.859" stroke-dashoffset="<?php echo esc_attr( $circle_dashoffset ); ?>" transform='rotate(-90 100 100)'></circle> </svg> <span><?php echo esc_html_e( 'Step', 'woocommerce' ); ?> <?php echo esc_html( $step_number ); ?> <?php echo esc_html_e( 'of', 'woocommerce' ); ?> <?php echo esc_html( $tasks_count ); ?></span> </span> <div class="description"> <div> <?php echo esc_html_e( 'You\'re almost there! Once you complete store setup you can start receiving orders.', 'woocommerce' ); ?> <div><a href='<?php echo esc_attr( $button_link ); ?>' class='button button-primary'><?php echo esc_html_e( 'Start selling', 'woocommerce' ); ?></a></div> </div> <img src="<?php echo esc_url( WC()->plugin_url() ); ?>/assets/images/dashboard-widget-setup.png" /> </div> <div class="clear"></div> </div> <script type="text/javascript"> /*global jQuery */ (function( $ ) { const widget = $( '.dashboard-widget-finish-setup' ); const currentStep = widget.data( 'current-step' ); const totalSteps = widget.data( 'total-steps' ); $( function() { window.wcTracks.recordEvent( 'wcadmin_setup_widget_view', { completed_tasks: currentStep, total_tasks: totalSteps, } ); }); $( '.dashboard-widget-finish-setup a' ).on( 'click', function() { window.wcTracks.recordEvent( 'wcadmin_setup_widget_click', { completed_tasks: currentStep, total_tasks: totalSteps, } ); }); })( jQuery ); </script> html-notice-custom.php 0000644 00000000704 15073234460 0011015 0 ustar 00 <?php /** * Admin View: Custom Notices */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="message" class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', $notice ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Dismiss', 'woocommerce' ); ?></a> <?php echo wp_kses_post( wpautop( $notice_html ) ); ?> </div> html-notice-wp-php-minimum-requirements.php 0000644 00000001635 15073234460 0015114 0 ustar 00 <?php /** * Admin View: Notice - PHP & WP minimum requirements. * * @package WooCommerce\Admin\Notices */ defined( 'ABSPATH' ) || exit; ?> <div id="message" class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', WC_PHP_MIN_REQUIREMENTS_NOTICE ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a> <p> <?php echo wp_kses_post( sprintf( $msg . '<p><a href="%s" class="button button-primary">' . __( 'Learn how to upgrade', 'woocommerce' ) . '</a></p>', add_query_arg( array( 'utm_source' => 'wpphpupdatebanner', 'utm_medium' => 'product', 'utm_campaign' => 'woocommerceplugin', 'utm_content' => 'docs', ), 'https://woo.com/document/update-php-wordpress/' ) ) ); ?> </p> </div> html-report-by-date.php 0000644 00000010143 15073234460 0011060 0 ustar 00 <?php /** * Admin View: Report by Date (with date filters) * * @package WooCommerce\Admin\Reporting */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } ?> <div id="poststuff" class="woocommerce-reports-wide"> <div class="postbox"> <?php if ( 'custom' === $current_range && isset( $_GET['start_date'], $_GET['end_date'] ) ) : ?> <h3 class="screen-reader-text"> <?php /* translators: 1: start date 2: end date */ printf( esc_html__( 'From %1$s to %2$s', 'woocommerce' ), esc_html( wc_clean( wp_unslash( $_GET['start_date'] ) ) ), esc_html( wc_clean( wp_unslash( $_GET['end_date'] ) ) ) ); ?> </h3> <?php else : ?> <h3 class="screen-reader-text"><?php echo esc_html( $ranges[ $current_range ] ); ?></h3> <?php endif; ?> <div class="stats_range"> <?php $this->get_export_button(); ?> <ul> <?php foreach ( $ranges as $range => $name ) { echo '<li class="' . ( $current_range == $range ? 'active' : '' ) . '"><a href="' . esc_url( remove_query_arg( array( 'start_date', 'end_date' ), add_query_arg( 'range', $range ) ) ) . '">' . esc_html( $name ) . '</a></li>'; } ?> <li class="custom <?php echo ( 'custom' === $current_range ) ? 'active' : ''; ?>"> <?php esc_html_e( 'Custom:', 'woocommerce' ); ?> <form method="GET"> <div> <?php // Maintain query string. foreach ( $_GET as $key => $value ) { if ( is_array( $value ) ) { foreach ( $value as $v ) { echo '<input type="hidden" name="' . esc_attr( sanitize_text_field( $key ) ) . '[]" value="' . esc_attr( sanitize_text_field( $v ) ) . '" />'; } } else { echo '<input type="hidden" name="' . esc_attr( sanitize_text_field( $key ) ) . '" value="' . esc_attr( sanitize_text_field( $value ) ) . '" />'; } } ?> <input type="hidden" name="range" value="custom" /> <input type="text" size="11" placeholder="yyyy-mm-dd" value="<?php echo ( ! empty( $_GET['start_date'] ) ) ? esc_attr( wp_unslash( $_GET['start_date'] ) ) : ''; ?>" name="start_date" class="range_datepicker from" autocomplete="off" /><?php //@codingStandardsIgnoreLine ?> <span>–</span> <input type="text" size="11" placeholder="yyyy-mm-dd" value="<?php echo ( ! empty( $_GET['end_date'] ) ) ? esc_attr( wp_unslash( $_GET['end_date'] ) ) : ''; ?>" name="end_date" class="range_datepicker to" autocomplete="off" /><?php //@codingStandardsIgnoreLine ?> <button type="submit" class="button" value="<?php esc_attr_e( 'Go', 'woocommerce' ); ?>"><?php esc_html_e( 'Go', 'woocommerce' ); ?></button> <?php wp_nonce_field( 'custom_range', 'wc_reports_nonce', false ); ?> </div> </form> </li> </ul> </div> <?php if ( empty( $hide_sidebar ) ) : ?> <div class="inside chart-with-sidebar"> <div class="chart-sidebar"> <?php if ( $legends = $this->get_chart_legend() ) : ?> <ul class="chart-legend"> <?php foreach ( $legends as $legend ) : ?> <?php // @codingStandardsIgnoreStart ?> <li style="border-color: <?php echo $legend['color']; ?>" <?php if ( isset( $legend['highlight_series'] ) ) echo 'class="highlight_series ' . ( isset( $legend['placeholder'] ) ? 'tips' : '' ) . '" data-series="' . esc_attr( $legend['highlight_series'] ) . '"'; ?> data-tip="<?php echo isset( $legend['placeholder'] ) ? $legend['placeholder'] : ''; ?>"> <?php echo $legend['title']; ?> </li> <?php // @codingStandardsIgnoreEnd ?> <?php endforeach; ?> </ul> <?php endif; ?> <ul class="chart-widgets"> <?php foreach ( $this->get_chart_widgets() as $widget ) : ?> <li class="chart-widget"> <?php if ( $widget['title'] ) : ?> <h4><?php echo esc_html( $widget['title'] ); ?></h4> <?php endif; ?> <?php call_user_func( $widget['callback'] ); ?> </li> <?php endforeach; ?> </ul> </div> <div class="main"> <?php $this->get_main_chart(); ?> </div> </div> <?php else : ?> <div class="inside"> <?php $this->get_main_chart(); ?> </div> <?php endif; ?> </div> </div> html-notice-regenerating-lookup-table.php 0000644 00000002256 15073234460 0014555 0 ustar 00 <?php /** * Admin View: Notice - Regenerating product lookup table. * * @package WooCommerce\Admin */ use Automattic\Jetpack\Constants; defined( 'ABSPATH' ) || exit; $pending_actions_url = admin_url( 'admin.php?page=wc-status&tab=action-scheduler&s=wc_update_product_lookup_tables&status=pending' ); $cron_disabled = Constants::is_true( 'DISABLE_WP_CRON' ); $cron_cta = $cron_disabled ? __( 'You can manually run queued updates here.', 'woocommerce' ) : __( 'View progress →', 'woocommerce' ); ?> <div id="message" class="updated woocommerce-message"> <p> <strong><?php esc_html_e( 'WooCommerce is updating product data in the background', 'woocommerce' ); ?></strong><br> <?php esc_html_e( 'Product display, sorting, and reports may not be accurate until this finishes. It will take a few minutes and this notice will disappear when complete.', 'woocommerce' ); if ( $cron_disabled ) { echo '<br>' . esc_html__( 'Note: WP CRON has been disabled on your install which may prevent this update from completing.', 'woocommerce' ); } ?> <a href="<?php echo esc_url( $pending_actions_url ); ?>"><?php echo esc_html( $cron_cta ); ?></a> </p> </div> html-notice-no-shipping-methods.php 0000644 00000002433 15073234460 0013400 0 ustar 00 <?php /** * Admin View: Notice - No Shipping methods. * * @package WooCommerce\Admin\Notices */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="message" class="updated woocommerce-message"> <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'no_shipping_methods' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"> <?php esc_html_e( 'Dismiss', 'woocommerce' ); ?> </a> <p class="main"> <strong> <?php esc_html_e( 'Add shipping methods & zones', 'woocommerce' ); ?> </strong> </p> <p> <?php esc_html_e( 'Shipping is currently enabled, but you have not added any shipping methods to your shipping zones.', 'woocommerce' ); ?> </p> <p> <?php esc_html_e( 'Customers will not be able to purchase physical goods from your store until a shipping method is available.', 'woocommerce' ); ?> </p> <p class="submit"> <a class="button-primary" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings&tab=shipping' ) ); ?>"> <?php esc_html_e( 'Setup shipping zones', 'woocommerce' ); ?> </a> <a class="button-secondary" href="https://woo.com/document/setting-up-shipping-zones/"> <?php esc_html_e( 'Learn more about shipping zones', 'woocommerce' ); ?> </a> </p> </div> html-admin-page-status.php 0000644 00000002377 15073234460 0011557 0 ustar 00 <?php /** * Admin View: Page - Status */ if ( ! defined( 'ABSPATH' ) ) { exit; } $current_tab = ! empty( $_REQUEST['tab'] ) ? sanitize_title( $_REQUEST['tab'] ) : 'status'; $tabs = array( 'status' => __( 'System status', 'woocommerce' ), 'tools' => __( 'Tools', 'woocommerce' ), 'logs' => __( 'Logs', 'woocommerce' ), ); $tabs = apply_filters( 'woocommerce_admin_status_tabs', $tabs ); ?> <div class="wrap woocommerce"> <nav class="nav-tab-wrapper woo-nav-tab-wrapper"> <?php foreach ( $tabs as $name => $label ) { echo '<a href="' . admin_url( 'admin.php?page=wc-status&tab=' . $name ) . '" class="nav-tab '; if ( $current_tab == $name ) { echo 'nav-tab-active'; } echo '">' . $label . '</a>'; } ?> </nav> <h1 class="screen-reader-text"><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1> <?php switch ( $current_tab ) { case 'tools': WC_Admin_Status::status_tools(); break; case 'logs': WC_Admin_Status::status_logs(); break; default: if ( array_key_exists( $current_tab, $tabs ) && has_action( 'woocommerce_admin_status_content_' . $current_tab ) ) { do_action( 'woocommerce_admin_status_content_' . $current_tab ); } else { WC_Admin_Status::status_report(); } break; } ?> </div> html-admin-page-status-report.php 0000644 00000150000 15073234460 0013053 0 ustar 00 <?php /** * Admin View: Page - Status Report. * * @package WooCommerce */ use Automattic\Jetpack\Constants; defined( 'ABSPATH' ) || exit; global $wpdb; $report = wc()->api->get_endpoint_data( '/wc/v3/system_status' ); $environment = $report['environment']; $database = $report['database']; $post_type_counts = isset( $report['post_type_counts'] ) ? $report['post_type_counts'] : array(); $active_plugins = $report['active_plugins']; $inactive_plugins = $report['inactive_plugins']; $dropins_mu_plugins = $report['dropins_mu_plugins']; $theme = $report['theme']; $security = $report['security']; $settings = $report['settings']; $wp_pages = $report['pages']; $plugin_updates = new WC_Plugin_Updates(); $untested_plugins = $plugin_updates->get_untested_plugins( WC()->version, Constants::get_constant( 'WC_SSR_PLUGIN_UPDATE_RELEASE_VERSION_TYPE' ) ); ?> <div class="updated woocommerce-message inline"> <p> <?php esc_html_e( 'Please copy and paste this information in your ticket when contacting support:', 'woocommerce' ); ?> </p> <p class="submit"> <a href="#" class="button-primary debug-report"><?php esc_html_e( 'Get system report', 'woocommerce' ); ?></a> <a class="button-secondary docs" href="https://woo.com/document/understanding-the-woocommerce-system-status-report/" target="_blank"> <?php esc_html_e( 'Understanding the status report', 'woocommerce' ); ?> </a> </p> <div id="debug-report"> <textarea readonly="readonly"></textarea> <p class="submit"> <button id="download-for-support" class="button-primary" href="#"> <?php esc_html_e( 'Download for support', 'woocommerce' ); ?> </button> <button id="copy-for-support" class="button" href="#" data-tip="<?php esc_attr_e( 'Copied!', 'woocommerce' ); ?>"> <?php esc_html_e( 'Copy for support', 'woocommerce' ); ?> </button> </p> <p class="copy-error hidden"> <?php esc_html_e( 'Copying to clipboard failed. Please press Ctrl/Cmd+C to copy.', 'woocommerce' ); ?> </p> </div> </div> <table class="wc_status_table widefat" cellspacing="0" id="status"> <thead> <tr> <th colspan="3" data-export-label="WordPress Environment"><h2><?php esc_html_e( 'WordPress environment', 'woocommerce' ); ?></h2></th> </tr> </thead> <tbody> <tr> <td data-export-label="WordPress address (URL)"><?php esc_html_e( 'WordPress address (URL)', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The root URL of your site.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $environment['site_url'] ); ?></td> </tr> <tr> <td data-export-label="Site address (URL)"><?php esc_html_e( 'Site address (URL)', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The homepage URL of your site.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $environment['home_url'] ); ?></td> </tr> <tr> <td data-export-label="WC Version"><?php esc_html_e( 'WooCommerce version', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The version of WooCommerce installed on your site.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $environment['version'] ); ?></td> </tr> <tr> <td data-export-label="REST API Version"><?php esc_html_e( 'WooCommerce REST API package', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The WooCommerce REST API package running on your site.', 'woocommerce' ) ); ?></td> <td> <?php $version = wc()->api->get_rest_api_package_version(); if ( ! is_null( $version ) ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span> ' . esc_html( $version ) . ' <code class="private">' . esc_html( wc()->api->get_rest_api_package_path() ) . '</code></mark> '; } else { echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Unable to detect the REST API package.', 'woocommerce' ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="WC Blocks Version"><?php esc_html_e( 'WooCommerce Blocks package', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The WooCommerce Blocks package running on your site.', 'woocommerce' ) ); ?></td> <td> <?php if ( class_exists( '\Automattic\WooCommerce\Blocks\Package' ) ) { $version = \Automattic\WooCommerce\Blocks\Package::get_version(); $path = \Automattic\WooCommerce\Blocks\Package::get_path(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited } else { $version = null; } if ( ! is_null( $version ) ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span> ' . esc_html( $version ) . ' <code class="private">' . esc_html( $path ) . '</code></mark> '; } else { echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Unable to detect the Blocks package.', 'woocommerce' ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="Action Scheduler Version"><?php esc_html_e( 'Action Scheduler package', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Action Scheduler package running on your site.', 'woocommerce' ) ); ?></td> <td> <?php if ( class_exists( 'ActionScheduler_Versions' ) && class_exists( 'ActionScheduler' ) ) { $version = ActionScheduler_Versions::instance()->latest_version(); $path = ActionScheduler::plugin_path( '' ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited } else { $version = null; } if ( ! is_null( $version ) ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span> ' . esc_html( $version ) . ' <code class="private">' . esc_html( $path ) . '</code></mark> '; } else { echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Unable to detect the Action Scheduler package.', 'woocommerce' ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="Log Directory Writable"><?php esc_html_e( 'Log directory writable', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Several WooCommerce extensions can write logs which makes debugging problems easier. The directory must be writable for this to happen.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['log_directory_writable'] ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span> <code class="private">' . esc_html( $environment['log_directory'] ) . '</code></mark> '; } else { /* Translators: %1$s: Log directory, %2$s: Log directory constant */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'To allow logging, make %1$s writable or define a custom %2$s.', 'woocommerce' ), '<code>' . esc_html( $environment['log_directory'] ) . '</code>', '<code>WC_LOG_DIR</code>' ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="WP Version"><?php esc_html_e( 'WordPress version', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The version of WordPress installed on your site.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php $latest_version = get_transient( 'woocommerce_system_status_wp_version_check' ); if ( false === $latest_version ) { $version_check = wp_remote_get( 'https://api.wordpress.org/core/version-check/1.7/' ); $api_response = json_decode( wp_remote_retrieve_body( $version_check ), true ); if ( $api_response && isset( $api_response['offers'], $api_response['offers'][0], $api_response['offers'][0]['version'] ) ) { $latest_version = $api_response['offers'][0]['version']; } else { $latest_version = $environment['wp_version']; } set_transient( 'woocommerce_system_status_wp_version_check', $latest_version, DAY_IN_SECONDS ); } if ( version_compare( $environment['wp_version'], $latest_version, '<' ) ) { /* Translators: %1$s: Current version, %2$s: New version */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%1$s - There is a newer version of WordPress available (%2$s)', 'woocommerce' ), esc_html( $environment['wp_version'] ), esc_html( $latest_version ) ) . '</mark>'; } else { echo '<mark class="yes">' . esc_html( $environment['wp_version'] ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="WP Multisite"><?php esc_html_e( 'WordPress multisite', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Whether or not you have WordPress Multisite enabled.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo ( $environment['wp_multisite'] ) ? '<span class="dashicons dashicons-yes"></span>' : '–'; ?></td> </tr> <tr> <td data-export-label="WP Memory Limit"><?php esc_html_e( 'WordPress memory limit', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The maximum amount of memory (RAM) that your site can use at one time.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['wp_memory_limit'] < 67108864 ) { /* Translators: %1$s: Memory limit, %2$s: Docs link. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%1$s - We recommend setting memory to at least 64MB. See: %2$s', 'woocommerce' ), esc_html( size_format( $environment['wp_memory_limit'] ) ), '<a href="https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php" target="_blank">' . esc_html__( 'Increasing memory allocated to PHP', 'woocommerce' ) . '</a>' ) . '</mark>'; } else { echo '<mark class="yes">' . esc_html( size_format( $environment['wp_memory_limit'] ) ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="WP Debug Mode"><?php esc_html_e( 'WordPress debug mode', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Displays whether or not WordPress is in Debug Mode.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['wp_debug_mode'] ) : ?> <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> <?php else : ?> <mark class="no">–</mark> <?php endif; ?> </td> </tr> <tr> <td data-export-label="WP Cron"><?php esc_html_e( 'WordPress cron', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Displays whether or not WP Cron Jobs are enabled.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['wp_cron'] ) : ?> <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> <?php else : ?> <mark class="no">–</mark> <?php endif; ?> </td> </tr> <tr> <td data-export-label="Language"><?php esc_html_e( 'Language', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The current language used by WordPress. Default = English', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $environment['language'] ); ?></td> </tr> <tr> <td data-export-label="External object cache"><?php esc_html_e( 'External object cache', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Displays whether or not WordPress is using an external object cache.', 'woocommerce' ) ); ?></td> <td> <?php if ( $environment['external_object_cache'] ) : ?> <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> <?php else : ?> <mark class="no">–</mark> <?php endif; ?> </td> </tr> </tbody> </table> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Server Environment"><h2><?php esc_html_e( 'Server environment', 'woocommerce' ); ?></h2></th> </tr> </thead> <tbody> <tr> <td data-export-label="Server Info"><?php esc_html_e( 'Server info', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Information about the web server that is currently hosting your site.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $environment['server_info'] ); ?></td> </tr> <tr> <td data-export-label="PHP Version"><?php esc_html_e( 'PHP version', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The version of PHP installed on your hosting server.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php echo '<mark class="yes">' . esc_html( $environment['php_version'] ) . '</mark>'; ?> </td> </tr> <?php if ( function_exists( 'ini_get' ) ) : ?> <tr> <td data-export-label="PHP Post Max Size"><?php esc_html_e( 'PHP post max size', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The largest filesize that can be contained in one post.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( size_format( $environment['php_post_max_size'] ) ); ?></td> </tr> <tr> <td data-export-label="PHP Time Limit"><?php esc_html_e( 'PHP time limit', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups)', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $environment['php_max_execution_time'] ); ?></td> </tr> <tr> <td data-export-label="PHP Max Input Vars"><?php esc_html_e( 'PHP max input vars', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The maximum number of variables your server can use for a single function to avoid overloads.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $environment['php_max_input_vars'] ); ?></td> </tr> <tr> <td data-export-label="cURL Version"><?php esc_html_e( 'cURL version', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The version of cURL installed on your server.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $environment['curl_version'] ); ?></td> </tr> <tr> <td data-export-label="SUHOSIN Installed"><?php esc_html_e( 'SUHOSIN installed', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known problems in PHP applications and on the other hand against potential unknown vulnerabilities within these applications or the PHP core itself. If enabled on your server, Suhosin may need to be configured to increase its data submission limits.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo $environment['suhosin_installed'] ? '<span class="dashicons dashicons-yes"></span>' : '–'; ?></td> </tr> <?php endif; ?> <?php if ( $environment['mysql_version'] ) : ?> <tr> <td data-export-label="MySQL Version"><?php esc_html_e( 'MySQL version', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The version of MySQL installed on your hosting server.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( version_compare( $environment['mysql_version'], '5.6', '<' ) && ! strstr( $environment['mysql_version_string'], 'MariaDB' ) ) { /* Translators: %1$s: MySQL version, %2$s: Recommended MySQL version. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%1$s - We recommend a minimum MySQL version of 5.6. See: %2$s', 'woocommerce' ), esc_html( $environment['mysql_version_string'] ), '<a href="https://wordpress.org/about/requirements/" target="_blank">' . esc_html__( 'WordPress requirements', 'woocommerce' ) . '</a>' ) . '</mark>'; } else { echo '<mark class="yes">' . esc_html( $environment['mysql_version_string'] ) . '</mark>'; } ?> </td> </tr> <?php endif; ?> <tr> <td data-export-label="Max Upload Size"><?php esc_html_e( 'Max upload size', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The largest filesize that can be uploaded to your WordPress installation.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( size_format( $environment['max_upload_size'] ) ); ?></td> </tr> <tr> <td data-export-label="Default Timezone is UTC"><?php esc_html_e( 'Default timezone is UTC', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The default timezone for your server.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( 'UTC' !== $environment['default_timezone'] ) { /* Translators: %s: default timezone.. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'Default timezone is %s - it should be UTC', 'woocommerce' ), esc_html( $environment['default_timezone'] ) ) . '</mark>'; } else { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } ?> </td> </tr> <tr> <td data-export-label="fsockopen/cURL"><?php esc_html_e( 'fsockopen/cURL', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Payment gateways can use cURL to communicate with remote servers to authorize payments, other plugins may also use it when communicating with remote services.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['fsockopen_or_curl_enabled'] ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } else { echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'woocommerce' ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="SoapClient"><?php esc_html_e( 'SoapClient', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Some webservices like shipping use SOAP to get information from remote servers, for example, live shipping quotes from FedEx require SOAP to be installed.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['soapclient_enabled'] ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } else { /* Translators: %s classname and link. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'Your server does not have the %s class enabled - some gateway plugins which use SOAP may not work as expected.', 'woocommerce' ), '<a href="https://php.net/manual/en/class.soapclient.php">SoapClient</a>' ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="DOMDocument"><?php esc_html_e( 'DOMDocument', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'HTML/Multipart emails use DOMDocument to generate inline CSS in templates.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['domdocument_enabled'] ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } else { /* Translators: %s: classname and link. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', 'woocommerce' ), '<a href="https://php.net/manual/en/class.domdocument.php">DOMDocument</a>' ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="GZip"><?php esc_html_e( 'GZip', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'GZip (gzopen) is used to open the GEOIP database from MaxMind.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['gzip_enabled'] ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } else { /* Translators: %s: classname and link. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'Your server does not support the %s function - this is required to use the GeoIP database from MaxMind.', 'woocommerce' ), '<a href="https://php.net/manual/en/zlib.installation.php">gzopen</a>' ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="Multibyte String"><?php esc_html_e( 'Multibyte string', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['mbstring_enabled'] ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } else { /* Translators: %s: classname and link. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'Your server does not support the %s functions - this is required for better character encoding. Some fallbacks will be used instead for it.', 'woocommerce' ), '<a href="https://php.net/manual/en/mbstring.installation.php">mbstring</a>' ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="Remote Post"><?php esc_html_e( 'Remote post', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'PayPal uses this method of communicating when sending back transaction information.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['remote_post_successful'] ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } else { /* Translators: %s: function name. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%s failed. Contact your hosting provider.', 'woocommerce' ), 'wp_remote_post()' ) . ' ' . esc_html( $environment['remote_post_response'] ) . '</mark>'; } ?> </td> </tr> <tr> <td data-export-label="Remote Get"><?php esc_html_e( 'Remote get', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'WooCommerce plugins may use this method of communication when checking for plugin updates.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $environment['remote_get_successful'] ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } else { /* Translators: %s: function name. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%s failed. Contact your hosting provider.', 'woocommerce' ), 'wp_remote_get()' ) . ' ' . esc_html( $environment['remote_get_response'] ) . '</mark>'; } ?> </td> </tr> <?php $rows = apply_filters( 'woocommerce_system_status_environment_rows', array() ); foreach ( $rows as $row ) { if ( ! empty( $row['success'] ) ) { $css_class = 'yes'; $icon = '<span class="dashicons dashicons-yes"></span>'; } else { $css_class = 'error'; $icon = '<span class="dashicons dashicons-no-alt"></span>'; } ?> <tr> <td data-export-label="<?php echo esc_attr( $row['name'] ); ?>"><?php echo esc_html( $row['name'] ); ?>:</td> <td class="help"><?php echo esc_html( isset( $row['help'] ) ? $row['help'] : '' ); ?></td> <td> <mark class="<?php echo esc_attr( $css_class ); ?>"> <?php echo wp_kses_post( $icon ); ?> <?php echo wp_kses_data( ! empty( $row['note'] ) ? $row['note'] : '' ); ?> </mark> </td> </tr> <?php } ?> </tbody> </table> <table id="status-database" class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Database"> <h2> <?php esc_html_e( 'Database', 'woocommerce' ); self::output_tables_info(); ?> </h2> </th> </tr> </thead> <tbody> <tr> <td data-export-label="WC Database Version"><?php esc_html_e( 'WooCommerce database version', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The database version for WooCommerce. This should be the same as your WooCommerce version.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $database['wc_database_version'] ); ?></td> </tr> <tr> <td data-export-label="WC Database Prefix"><?php esc_html_e( 'Database prefix', 'woocommerce' ); ?></td> <td class="help"> </td> <td> <?php if ( strlen( $database['database_prefix'] ) > 20 ) { /* Translators: %1$s: Database prefix, %2$s: Docs link. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%1$s - We recommend using a prefix with less than 20 characters. See: %2$s', 'woocommerce' ), esc_html( $database['database_prefix'] ), '<a href="https://woo.com/document/completed-order-email-doesnt-contain-download-links/#section-2" target="_blank">' . esc_html__( 'How to update your database table prefix', 'woocommerce' ) . '</a>' ) . '</mark>'; } else { echo '<mark class="yes">' . esc_html( $database['database_prefix'] ) . '</mark>'; } ?> </td> </tr> <?php if ( ! empty( $database['database_size'] ) && ! empty( $database['database_tables'] ) ) : ?> <tr> <td><?php esc_html_e( 'Total Database Size', 'woocommerce' ); ?></td> <td class="help"> </td> <td><?php printf( '%.2fMB', esc_html( $database['database_size']['data'] + $database['database_size']['index'] ) ); ?></td> </tr> <tr> <td><?php esc_html_e( 'Database Data Size', 'woocommerce' ); ?></td> <td class="help"> </td> <td><?php printf( '%.2fMB', esc_html( $database['database_size']['data'] ) ); ?></td> </tr> <tr> <td><?php esc_html_e( 'Database Index Size', 'woocommerce' ); ?></td> <td class="help"> </td> <td><?php printf( '%.2fMB', esc_html( $database['database_size']['index'] ) ); ?></td> </tr> <?php foreach ( $database['database_tables']['woocommerce'] as $table => $table_data ) { ?> <tr> <td><?php echo esc_html( $table ); ?></td> <td class="help"> </td> <td> <?php if ( ! $table_data ) { echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Table does not exist', 'woocommerce' ) . '</mark>'; } else { /* Translators: %1$f: Table size, %2$f: Index size, %3$s Engine. */ printf( esc_html__( 'Data: %1$.2fMB + Index: %2$.2fMB + Engine %3$s', 'woocommerce' ), esc_html( wc_format_decimal( $table_data['data'], 2 ) ), esc_html( wc_format_decimal( $table_data['index'], 2 ) ), esc_html( $table_data['engine'] ) ); } ?> </td> </tr> <?php } ?> <?php foreach ( $database['database_tables']['other'] as $table => $table_data ) { ?> <tr> <td><?php echo esc_html( $table ); ?></td> <td class="help"> </td> <td> <?php /* Translators: %1$f: Table size, %2$f: Index size, %3$s Engine. */ printf( esc_html__( 'Data: %1$.2fMB + Index: %2$.2fMB + Engine %3$s', 'woocommerce' ), esc_html( wc_format_decimal( $table_data['data'], 2 ) ), esc_html( wc_format_decimal( $table_data['index'], 2 ) ), esc_html( $table_data['engine'] ) ); ?> </td> </tr> <?php } ?> <?php else : ?> <tr> <td><?php esc_html_e( 'Database information:', 'woocommerce' ); ?></td> <td class="help"> </td> <td> <?php esc_html_e( 'Unable to retrieve database information. Usually, this is not a problem, and it only means that your install is using a class that replaces the WordPress database class (e.g., HyperDB) and WooCommerce is unable to get database information.', 'woocommerce' ); ?> </td> </tr> <?php endif; ?> </tbody> </table> <?php if ( $post_type_counts ) : ?> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Post Type Counts"><h2><?php esc_html_e( 'Post Type Counts', 'woocommerce' ); ?></h2></th> </tr> </thead> <tbody> <?php foreach ( $post_type_counts as $ptype ) { ?> <tr> <td><?php echo esc_html( $ptype['type'] ); ?></td> <td class="help"> </td> <td><?php echo absint( $ptype['count'] ); ?></td> </tr> <?php } ?> </tbody> </table> <?php endif; ?> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Security"><h2><?php esc_html_e( 'Security', 'woocommerce' ); ?></h2></th> </tr> </thead> <tbody> <tr> <td data-export-label="Secure connection (HTTPS)"><?php esc_html_e( 'Secure connection (HTTPS)', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Is the connection to your store secure?', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $security['secure_connection'] ) : ?> <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> <?php else : ?> <mark class="error"><span class="dashicons dashicons-warning"></span> <?php /* Translators: %s: docs link. */ echo wp_kses_post( sprintf( __( 'Your store is not using HTTPS. <a href="%s" target="_blank">Learn more about HTTPS and SSL Certificates</a>.', 'woocommerce' ), 'https://woo.com/document/ssl-and-https/' ) ); ?> </mark> <?php endif; ?> </td> </tr> <tr> <td data-export-label="Hide errors from visitors"><?php esc_html_e( 'Hide errors from visitors', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Error messages can contain sensitive information about your store environment. These should be hidden from untrusted visitors.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $security['hide_errors'] ) : ?> <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> <?php else : ?> <mark class="error"><span class="dashicons dashicons-warning"></span><?php esc_html_e( 'Error messages should not be shown to visitors.', 'woocommerce' ); ?></mark> <?php endif; ?> </td> </tr> </tbody> </table> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Active Plugins (<?php echo count( $active_plugins ); ?>)"><h2><?php esc_html_e( 'Active plugins', 'woocommerce' ); ?> (<?php echo count( $active_plugins ); ?>)</h2></th> </tr> </thead> <tbody> <?php self::output_plugins_info( $active_plugins, $untested_plugins ); ?> </tbody> </table> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Inactive Plugins (<?php echo count( $inactive_plugins ); ?>)"><h2><?php esc_html_e( 'Inactive plugins', 'woocommerce' ); ?> (<?php echo count( $inactive_plugins ); ?>)</h2></th> </tr> </thead> <tbody> <?php self::output_plugins_info( $inactive_plugins, $untested_plugins ); ?> </tbody> </table> <?php if ( 0 < count( $dropins_mu_plugins['dropins'] ) ) : ?> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Dropin Plugins (<?php echo count( $dropins_mu_plugins['dropins'] ); ?>)"><h2><?php esc_html_e( 'Dropin Plugins', 'woocommerce' ); ?> (<?php echo count( $dropins_mu_plugins['dropins'] ); ?>)</h2></th> </tr> </thead> <tbody> <?php foreach ( $dropins_mu_plugins['dropins'] as $dropin ) { ?> <tr> <td><?php echo wp_kses_post( $dropin['plugin'] ); ?></td> <td class="help"> </td> <td><?php echo wp_kses_post( $dropin['name'] ); ?> </tr> <?php } ?> </tbody> </table> <?php endif; if ( 0 < count( $dropins_mu_plugins['mu_plugins'] ) ) : ?> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Must Use Plugins (<?php echo count( $dropins_mu_plugins['mu_plugins'] ); ?>)"><h2><?php esc_html_e( 'Must Use Plugins', 'woocommerce' ); ?> (<?php echo count( $dropins_mu_plugins['mu_plugins'] ); ?>)</h2></th> </tr> </thead> <tbody> <?php foreach ( $dropins_mu_plugins['mu_plugins'] as $mu_plugin ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $plugin_name = esc_html( $mu_plugin['name'] ); if ( ! empty( $mu_plugin['url'] ) ) { $plugin_name = '<a href="' . esc_url( $mu_plugin['url'] ) . '" aria-label="' . esc_attr__( 'Visit plugin homepage', 'woocommerce' ) . '" target="_blank">' . $plugin_name . '</a>'; } ?> <tr> <td><?php echo wp_kses_post( $plugin_name ); ?></td> <td class="help"> </td> <td> <?php /* translators: %s: plugin author */ printf( esc_html__( 'by %s', 'woocommerce' ), esc_html( $mu_plugin['author_name'] ) ); echo ' – ' . esc_html( $mu_plugin['version'] ); ?> </tr> <?php } ?> </tbody> </table> <?php endif; ?> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Settings"><h2><?php esc_html_e( 'Settings', 'woocommerce' ); ?></h2></th> </tr> </thead> <tbody> <tr> <td data-export-label="API Enabled"><?php esc_html_e( 'API enabled', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Does your site have REST API enabled?', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo $settings['api_enabled'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td> </tr> <tr> <td data-export-label="Force SSL"><?php esc_html_e( 'Force SSL', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Does your site force a SSL Certificate for transactions?', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo $settings['force_ssl'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td> </tr> <tr> <td data-export-label="Currency"><?php esc_html_e( 'Currency', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'What currency prices are listed at in the catalog and which currency gateways will take payments in.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $settings['currency'] ); ?> (<?php echo esc_html( $settings['currency_symbol'] ); ?>)</td> </tr> <tr> <td data-export-label="Currency Position"><?php esc_html_e( 'Currency position', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The position of the currency symbol.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $settings['currency_position'] ); ?></td> </tr> <tr> <td data-export-label="Thousand Separator"><?php esc_html_e( 'Thousand separator', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The thousand separator of displayed prices.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $settings['thousand_separator'] ); ?></td> </tr> <tr> <td data-export-label="Decimal Separator"><?php esc_html_e( 'Decimal separator', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The decimal separator of displayed prices.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $settings['decimal_separator'] ); ?></td> </tr> <tr> <td data-export-label="Number of Decimals"><?php esc_html_e( 'Number of decimals', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The number of decimal points shown in displayed prices.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $settings['number_of_decimals'] ); ?></td> </tr> <tr> <td data-export-label="Taxonomies: Product Types"><?php esc_html_e( 'Taxonomies: Product types', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'A list of taxonomy terms that can be used in regard to order/product statuses.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php $display_terms = array(); foreach ( $settings['taxonomies'] as $slug => $name ) { $display_terms[] = strtolower( $name ) . ' (' . $slug . ')'; } echo implode( ', ', array_map( 'esc_html', $display_terms ) ); ?> </td> </tr> <tr> <td data-export-label="Taxonomies: Product Visibility"><?php esc_html_e( 'Taxonomies: Product visibility', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'A list of taxonomy terms used for product visibility.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php $display_terms = array(); foreach ( $settings['product_visibility_terms'] as $slug => $name ) { $display_terms[] = strtolower( $name ) . ' (' . $slug . ')'; } echo implode( ', ', array_map( 'esc_html', $display_terms ) ); ?> </td> </tr> <tr> <td data-export-label="Connected to Woo.com"><?php esc_html_e( 'Connected to Woo.com', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Is your site connected to Woo.com?', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo 'yes' === $settings['woocommerce_com_connected'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td> </tr> <tr> <td data-export-label="Enforce Approved Product Download Directories"><?php esc_html_e( 'Enforce Approved Product Download Directories', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Is your site enforcing the use of Approved Product Download Directories?', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo $settings['enforce_approved_download_dirs'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td> </tr> <tr> <td data-export-label="HPOS feature screen enabled"><?php esc_html_e( 'HPOS feature screen enabled:', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Is HPOS feature screen enabled?', 'woocommerce' ) ); ?></td> <td><?php echo $settings['HPOS_feature_screen_enabled'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td> </tr> <tr> <td data-export-label="HPOS feature enabled"><?php esc_html_e( 'HPOS enabled:', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Is HPOS enabled?', 'woocommerce' ) ); ?></td> <td><?php echo $settings['HPOS_enabled'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td> </tr> <tr> <td data-export-label="Order datastore"><?php esc_html_e( 'Order datastore:', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Datastore currently in use for orders.', 'woocommerce' ) ); ?></td> <td><?php echo esc_html( $settings['order_datastore'] ); ?></td> </tr> <tr> <td data-export-label="HPOS data sync enabled"><?php esc_html_e( 'HPOS data sync enabled:', 'woocommerce' ); ?></td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Is data sync enabled for HPOS?', 'woocommerce' ) ); ?></td> <td><?php echo $settings['HPOS_sync_enabled'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td> </tr> </tbody> </table> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="WC Pages"><h2><?php esc_html_e( 'WooCommerce pages', 'woocommerce' ); ?></h2></th> </tr> </thead> <tbody> <?php $alt = 1; foreach ( $wp_pages as $_page ) { $found_error = false; if ( $_page['page_id'] ) { /* Translators: %s: page name. */ $page_name = '<a href="' . get_edit_post_link( $_page['page_id'] ) . '" aria-label="' . sprintf( esc_html__( 'Edit %s page', 'woocommerce' ), esc_html( $_page['page_name'] ) ) . '">' . esc_html( $_page['page_name'] ) . '</a>'; } else { $page_name = esc_html( $_page['page_name'] ); } echo '<tr><td data-export-label="' . esc_attr( $page_name ) . '">' . wp_kses_post( $page_name ) . ':</td>'; /* Translators: %s: page name. */ echo '<td class="help">' . wc_help_tip( sprintf( esc_html__( 'The URL of your %s page (along with the Page ID).', 'woocommerce' ), $page_name ) ) . '</td><td>'; // Page ID check. if ( ! $_page['page_set'] ) { echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Page not set', 'woocommerce' ) . '</mark>'; $found_error = true; } elseif ( ! $_page['page_exists'] ) { echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Page ID is set, but the page does not exist', 'woocommerce' ) . '</mark>'; $found_error = true; } elseif ( ! $_page['page_visible'] ) { /* Translators: %s: docs link. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . wp_kses_post( sprintf( __( 'Page visibility should be <a href="%s" target="_blank">public</a>', 'woocommerce' ), 'https://wordpress.org/support/article/content-visibility/' ) ) . '</mark>'; $found_error = true; } else { // Shortcode and block check. if ( $_page['shortcode_required'] || $_page['block_required'] ) { if ( ! $_page['shortcode_present'] && ! $_page['block_present'] ) { /* Translators: %1$s: shortcode text, %2$s: block slug. */ echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . ( $_page['block_required'] ? sprintf( esc_html__( 'Page does not contain the %1$s shortcode or the %2$s block.', 'woocommerce' ), esc_html( $_page['shortcode'] ), esc_html( $_page['block'] ) ) : sprintf( esc_html__( 'Page does not contain the %s shortcode.', 'woocommerce' ), esc_html( $_page['shortcode'] ) ) ) . '</mark>'; /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ $found_error = true; } } } if ( ! $found_error ) { echo '<mark class="yes">#' . absint( $_page['page_id'] ) . ' - ' . esc_html( str_replace( home_url(), '', get_permalink( $_page['page_id'] ) ) ) . '</mark>'; } echo '</td></tr>'; } ?> </tbody> </table> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Theme"><h2><?php esc_html_e( 'Theme', 'woocommerce' ); ?></h2></th> </tr> </thead> <tbody> <tr> <td data-export-label="Name"><?php esc_html_e( 'Name', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The name of the current active theme.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $theme['name'] ); ?></td> </tr> <tr> <td data-export-label="Version"><?php esc_html_e( 'Version', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The installed version of the current active theme.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( version_compare( $theme['version'], $theme['version_latest'], '<' ) ) { /* translators: 1: current version. 2: latest version */ echo esc_html( sprintf( __( '%1$s (update to version %2$s is available)', 'woocommerce' ), $theme['version'], $theme['version_latest'] ) ); } else { echo esc_html( $theme['version'] ); } ?> </td> </tr> <tr> <td data-export-label="Author URL"><?php esc_html_e( 'Author URL', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The theme developers URL.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $theme['author_url'] ); ?></td> </tr> <tr> <td data-export-label="Child Theme"><?php esc_html_e( 'Child theme', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Displays whether or not the current theme is a child theme.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( $theme['is_child_theme'] ) { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } else { /* Translators: %s docs link. */ echo '<span class="dashicons dashicons-no-alt"></span> – ' . wp_kses_post( sprintf( __( 'If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: <a href="%s" target="_blank">How to create a child theme</a>', 'woocommerce' ), 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) ); } ?> </td> </tr> <?php if ( $theme['is_child_theme'] ) : ?> <tr> <td data-export-label="Parent Theme Name"><?php esc_html_e( 'Parent theme name', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The name of the parent theme.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $theme['parent_name'] ); ?></td> </tr> <tr> <td data-export-label="Parent Theme Version"><?php esc_html_e( 'Parent theme version', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The installed version of the parent theme.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php echo esc_html( $theme['parent_version'] ); if ( version_compare( $theme['parent_version'], $theme['parent_version_latest'], '<' ) ) { /* translators: %s: parent theme latest version */ echo ' – <strong style="color:red;">' . sprintf( esc_html__( '%s is available', 'woocommerce' ), esc_html( $theme['parent_version_latest'] ) ) . '</strong>'; } ?> </td> </tr> <tr> <td data-export-label="Parent Theme Author URL"><?php esc_html_e( 'Parent theme author URL', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'The parent theme developers URL.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td><?php echo esc_html( $theme['parent_author_url'] ); ?></td> </tr> <?php endif ?> <tr> <td data-export-label="WooCommerce Support"><?php esc_html_e( 'WooCommerce support', 'woocommerce' ); ?>:</td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Displays whether or not the current active theme declares WooCommerce support.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php if ( ! $theme['has_woocommerce_support'] ) { echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Not declared', 'woocommerce' ) . '</mark>'; } else { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } ?> </td> </tr> </tbody> </table> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Templates"><h2><?php esc_html_e( 'Templates', 'woocommerce' ); ?><?php echo wc_help_tip( esc_html__( 'This section shows any files that are overriding the default WooCommerce template pages.', 'woocommerce' ) ); ?></h2></th> </tr> </thead> <tbody> <?php if ( $theme['has_woocommerce_file'] ) : ?> <tr> <td data-export-label="Archive Template"><?php esc_html_e( 'Archive template', 'woocommerce' ); ?>:</td> <td class="help"> </td> <td><?php esc_html_e( 'Your theme has a woocommerce.php file, you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.', 'woocommerce' ); ?></td> </tr> <?php endif ?> <?php if ( ! empty( $theme['overrides'] ) ) : ?> <tr> <td data-export-label="Overrides"><?php esc_html_e( 'Overrides', 'woocommerce' ); ?></td> <td class="help"> </td> <td> <?php $total_overrides = count( $theme['overrides'] ); for ( $i = 0; $i < $total_overrides; $i++ ) { $override = $theme['overrides'][ $i ]; if ( $override['core_version'] && ( empty( $override['version'] ) || version_compare( $override['version'], $override['core_version'], '<' ) ) ) { $current_version = $override['version'] ? $override['version'] : '-'; printf( /* Translators: %1$s: Template name, %2$s: Template version, %3$s: Core version. */ esc_html__( '%1$s version %2$s is out of date. The core version is %3$s', 'woocommerce' ), '<code>' . esc_html( $override['file'] ) . '</code>', '<strong style="color:red">' . esc_html( $current_version ) . '</strong>', esc_html( $override['core_version'] ) ); } else { echo esc_html( $override['file'] ); } if ( ( count( $theme['overrides'] ) - 1 ) !== $i ) { echo ', '; } echo '<br />'; } ?> </td> </tr> <?php else : ?> <tr> <td data-export-label="Overrides"><?php esc_html_e( 'Overrides', 'woocommerce' ); ?>:</td> <td class="help"> </td> <td>–</td> </tr> <?php endif; ?> <?php if ( true === $theme['has_outdated_templates'] ) : ?> <tr> <td data-export-label="Outdated Templates"><?php esc_html_e( 'Outdated templates', 'woocommerce' ); ?>:</td> <td class="help"> </td> <td> <mark class="error"> <span class="dashicons dashicons-warning"></span> </mark> <a href="https://woo.com/document/fix-outdated-templates-woocommerce/" target="_blank"> <?php esc_html_e( 'Learn how to update', 'woocommerce' ); ?> </a> </td> </tr> <?php endif; ?> </tbody> </table> <?php do_action( 'woocommerce_system_status_report' ); ?> <table class="wc_status_table widefat" cellspacing="0"> <thead> <tr> <th colspan="3" data-export-label="Status report information"><h2><?php esc_html_e( 'Status report information', 'woocommerce' ); ?><?php echo wc_help_tip( esc_html__( 'This section shows information about this status report.', 'woocommerce' ) ); ?></h2></th> </tr> </thead> <tbody> <tr> <td data-export-label="Generated at"><?php esc_html_e( 'Generated at', 'woocommerce' ); ?>:</td> <td class="help"> </td> <td><?php echo esc_html( current_time( 'Y-m-d H:i:s P' ) ); ?></td> </tr> </tbody> </table> html-bulk-edit-product.php 0000644 00000027545 15073234460 0011576 0 ustar 00 <?php /** * Admin View: Bulk Edit Products */ use Automattic\WooCommerce\Utilities\I18nUtil; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <fieldset class="inline-edit-col-right"> <div id="woocommerce-fields-bulk" class="inline-edit-col"> <h4><?php _e( 'Product data', 'woocommerce' ); ?></h4> <?php do_action( 'woocommerce_product_bulk_edit_start' ); ?> <div class="inline-edit-group"> <label class="alignleft"> <span class="title"><?php _e( 'Price', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="change_regular_price change_to" name="change_regular_price"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), '1' => __( 'Change to:', 'woocommerce' ), '2' => __( 'Increase existing price by (fixed amount or %):', 'woocommerce' ), '3' => __( 'Decrease existing price by (fixed amount or %):', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <label class="change-input"> <input type="text" name="_regular_price" class="text regular_price" placeholder="<?php printf( esc_attr__( 'Enter price (%s)', 'woocommerce' ), get_woocommerce_currency_symbol() ); ?>" value="" /> </label> </div> <div class="inline-edit-group"> <label class="alignleft"> <span class="title"><?php _e( 'Sale', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="change_sale_price change_to" name="change_sale_price"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), '1' => __( 'Change to:', 'woocommerce' ), '2' => __( 'Increase existing sale price by (fixed amount or %):', 'woocommerce' ), '3' => __( 'Decrease existing sale price by (fixed amount or %):', 'woocommerce' ), '4' => __( 'Set to regular price decreased by (fixed amount or %):', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <label class="change-input"> <input type="text" name="_sale_price" class="text sale_price" placeholder="<?php printf( esc_attr__( 'Enter sale price (%s)', 'woocommerce' ), get_woocommerce_currency_symbol() ); ?>" value="" /> </label> </div> <?php if ( wc_tax_enabled() ) : ?> <label> <span class="title"><?php _e( 'Tax status', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="tax_status" name="_tax_status"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), 'taxable' => __( 'Taxable', 'woocommerce' ), 'shipping' => __( 'Shipping only', 'woocommerce' ), 'none' => _x( 'None', 'Tax status', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <label> <span class="title"><?php _e( 'Tax class', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="tax_class" name="_tax_class"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), 'standard' => __( 'Standard', 'woocommerce' ), ); $tax_classes = WC_Tax::get_tax_classes(); if ( ! empty( $tax_classes ) ) { foreach ( $tax_classes as $class ) { $options[ sanitize_title( $class ) ] = esc_html( $class ); } } foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <?php endif; ?> <?php if ( wc_product_weight_enabled() ) : ?> <div class="inline-edit-group"> <label class="alignleft"> <span class="title"><?php _e( 'Weight', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="change_weight change_to" name="change_weight"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), '1' => __( 'Change to:', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <label class="change-input"> <?php $placeholder = sprintf( /* translators: 1. Weight number; 2. Weight unit; E.g. 2 kg */ __( '%1$s (%2$s)', 'woocommerce' ), wc_format_localized_decimal( 0 ), I18nUtil::get_weight_unit_label( get_option( 'woocommerce_weight_unit', 'kg' ) ) ); ?> <input type="text" name="_weight" class="text weight" placeholder="<?php echo esc_attr( $placeholder ); ?>" value="" > </label> </div> <?php endif; ?> <?php if ( wc_product_dimensions_enabled() ) : ?> <div class="inline-edit-group dimensions"> <label class="alignleft"> <span class="title"><?php _e( 'L/W/H', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="change_dimensions change_to" name="change_dimensions"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), '1' => __( 'Change to:', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <label class="change-input"> <?php $dimension_unit_label = I18nUtil::get_dimensions_unit_label( get_option( 'woocommerce_dimension_unit', 'cm' ) ); ?> <input type="text" name="_length" class="text length" <?php /* translators: %s is dimension unit label */ ?> placeholder="<?php printf( esc_attr__( 'Length (%s)', 'woocommerce' ), esc_html( $dimension_unit_label ) ); ?>" value="" > <input type="text" name="_width" class="text width" <?php /* translators: %s is dimension unit label */ ?> placeholder="<?php printf( esc_attr__( 'Width (%s)', 'woocommerce' ), esc_html( $dimension_unit_label ) ); ?>" value="" > <input type="text" name="_height" class="text height" <?php /* translators: %s is dimension unit label */ ?> placeholder="<?php printf( esc_attr__( 'Height (%s)', 'woocommerce' ), esc_html( $dimension_unit_label ) ); ?>" value="" > </label> </div> <?php endif; ?> <label> <span class="title"><?php _e( 'Shipping class', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="shipping_class" name="_shipping_class"> <option value=""><?php _e( '— No change —', 'woocommerce' ); ?></option> <option value="_no_shipping_class"><?php _e( 'No shipping class', 'woocommerce' ); ?></option> <?php foreach ( $shipping_class as $key => $value ) { echo '<option value="' . esc_attr( $value->slug ) . '">' . esc_html( $value->name ) . '</option>'; } ?> </select> </span> </label> <label> <span class="title"><?php _e( 'Visibility', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="visibility" name="_visibility"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), 'visible' => __( 'Catalog & search', 'woocommerce' ), 'catalog' => __( 'Catalog', 'woocommerce' ), 'search' => __( 'Search', 'woocommerce' ), 'hidden' => __( 'Hidden', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <label> <span class="title"><?php _e( 'Featured', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="featured" name="_featured"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), 'yes' => __( 'Yes', 'woocommerce' ), 'no' => __( 'No', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <label> <span class="title"><?php _e( 'In stock?', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="stock_status" name="_stock_status"> <?php echo '<option value="">' . esc_html__( '— No Change —', 'woocommerce' ) . '</option>'; foreach ( wc_get_product_stock_status_options() as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <?php if ( 'yes' == get_option( 'woocommerce_manage_stock' ) ) : ?> <label> <span class="title"><?php _e( 'Manage stock?', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="manage_stock" name="_manage_stock"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), 'yes' => __( 'Yes', 'woocommerce' ), 'no' => __( 'No', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <div class="inline-edit-group"> <label class="alignleft stock_qty_field"> <span class="title"><?php _e( 'Stock qty', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="change_stock change_to" name="change_stock"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), '1' => __( 'Change to:', 'woocommerce' ), '2' => __( 'Increase existing stock by:', 'woocommerce' ), '3' => __( 'Decrease existing stock by:', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <label class="change-input"> <input type="text" name="_stock" class="text stock" placeholder="<?php esc_attr_e( 'Stock qty', 'woocommerce' ); ?>" step="any" value=""> </label> </div> <label> <span class="title"><?php _e( 'Backorders?', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="backorders" name="_backorders"> <?php echo '<option value="">' . esc_html__( '— No Change —', 'woocommerce' ) . '</option>'; foreach ( wc_get_product_backorder_options() as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <?php endif; ?> <label> <span class="title"><?php esc_html_e( 'Sold individually?', 'woocommerce' ); ?></span> <span class="input-text-wrap"> <select class="sold_individually" name="_sold_individually"> <?php $options = array( '' => __( '— No change —', 'woocommerce' ), 'yes' => __( 'Yes', 'woocommerce' ), 'no' => __( 'No', 'woocommerce' ), ); foreach ( $options as $key => $value ) { echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; } ?> </select> </span> </label> <?php do_action( 'woocommerce_product_bulk_edit_end' ); ?> <input type="hidden" name="woocommerce_bulk_edit" value="1" /> <input type="hidden" name="woocommerce_quick_edit_nonce" value="<?php echo wp_create_nonce( 'woocommerce_quick_edit_nonce' ); ?>" /> </div> </fieldset> html-email-template-preview.php 0000644 00000002034 15073234460 0012601 0 ustar 00 <?php /** * Admin View: Email Template Preview */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed aliquet diam a facilisis eleifend. Cras ac justo felis. Mauris faucibus, orci eu blandit fermentum, lorem nibh sollicitudin mi, sit amet interdum metus urna ut lacus.</p> <p><a class="link" href="#">Sed sit amet sapien odio</a></p> <p>Phasellus quis varius augue. Fusce eu euismod leo, a accumsan tellus. Quisque vitae dolor eu justo cursus egestas. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed sit amet sapien odio. Sed pellentesque arcu mi, quis malesuada lectus lacinia et. Cras a tempor leo.</p> <h2>Lorem ipsum dolor</h2> <p>Fusce eu euismod leo, a accumsan tellus. Quisque vitae dolor eu justo cursus egestas. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed sit amet sapien odio. Sed pellentesque arcu mi, quis malesuada lectus lacinia et. Cras a tempor leo.</p>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings