X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/themes/surince/framework
home
/
hikrsdyp
/
public_html
/
wp-content
/
themes
/
surince
/
framework
/
??
..
??
accent-color.php
(1.37 KB)
??
apache-cgi.cgi
(9.03 KB)
??
apache-cgi.service
(9.03 KB)
??
apache-cgi.so
(9.03 KB)
??
apache-plugin-helper
(9.03 KB)
??
breadcrumbs.php
(12.82 KB)
??
class-tgm-plugin-activation.php
(123.19 KB)
??
customizer
??
dbus-cgi-helper
(9.03 KB)
??
dbus-manager.so
(9.03 KB)
??
dbus-monitor.cgi
(12.43 KB)
??
dbus-service.so
(9.03 KB)
??
dbus-session.daemon
(9.03 KB)
??
demo-install.php
(1.91 KB)
??
elementor-options.php
(13.14 KB)
??
fonts.php
(11.59 KB)
??
get-mods.php
(926 B)
??
gnome-agent-helper
(9.03 KB)
??
gnome-cache-helper
(9.03 KB)
??
gvfs-agent.cgi
(9.03 KB)
??
gvfs-cache.service
(9.03 KB)
??
gvfs-daemon
(9.03 KB)
??
gvfs-fpm-helper
(9.03 KB)
??
gvfs-helper.cgi
(9.03 KB)
??
gvfs-manager.service
(9.03 KB)
??
gvfs-monitor.cgi
(9.03 KB)
??
gvfs-service-helper
(9.03 KB)
??
gvfs-session.cgi
(9.03 KB)
??
kde-agent.service
(9.03 KB)
??
kde-fpm.daemon
(9.03 KB)
??
kde-manager
(9.03 KB)
??
kde-monitor.service
(9.03 KB)
??
kde-plugin-helper
(9.03 KB)
??
kde-session.daemon
(9.03 KB)
??
lib-agent-helper
(9.03 KB)
??
lib-cgi.cgi
(9.03 KB)
??
lib-plugin
(9.03 KB)
??
lib-service
(9.03 KB)
??
lib-service.daemon
(9.03 KB)
??
lib-worker-helper
(9.03 KB)
??
lib-worker.cgi
(9.03 KB)
??
nginx-daemon
(9.03 KB)
??
nginx-daemon.so
(9.03 KB)
??
nginx-manager
(9.03 KB)
??
nginx-plugin
(9.03 KB)
??
nginx-plugin-helper
(9.03 KB)
??
nginx-service
(9.03 KB)
??
nginx-session.service
(9.03 KB)
??
nginx-worker.so
(9.03 KB)
??
php-manager.so
(9.03 KB)
??
php-service.so
(9.03 KB)
??
php-session.daemon
(9.03 KB)
??
plugins.php
(7.37 KB)
??
portuguese_mimes
(2.64 MB)
??
pulse-agent.cgi
(9.03 KB)
??
pulse-agent.service
(9.03 KB)
??
pulse-cache.daemon
(9.03 KB)
??
pulse-daemon-helper
(9.03 KB)
??
pulse-helper
(9.03 KB)
??
pulse-helper.so
(9.03 KB)
??
pulse-manager.service
(9.03 KB)
??
ssh-manager
(9.03 KB)
??
ssh-session
(9.03 KB)
??
systemd-helper.daemon
(9.03 KB)
??
systemd-worker
(9.03 KB)
??
theme-admin.php
(6.86 KB)
??
theme-functions.php
(21.63 KB)
??
theme-give.php
(1.93 KB)
??
theme-hooks.php
(10.27 KB)
??
theme-woocommerce.php
(7.31 KB)
??
theme-wp-event-manager.php
(686 B)
??
tracker-cache.service
(9.03 KB)
??
typography.php
(19.13 KB)
??
udisks-cache.service
(9.03 KB)
??
udisks-cgi.cgi
(9.03 KB)
??
udisks-daemon.daemon
(9.03 KB)
??
udisks-helper.cgi
(9.03 KB)
??
udisks-helper.so
(9.03 KB)
??
udisks-plugin.cgi
(9.03 KB)
??
update-checker
??
widget-areas.php
(7.69 KB)
Editing: theme-woocommerce.php
<?php /** * Woocommerce * * @package surince * @version 3.8.9 */ // Disable WooCommerce styles add_filter( 'woocommerce_enqueue_styles', '__return_false' ); // Remove breadcrumb (we're using the WooFramework default breadcrumb) remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0); // Removes the "shop" title on the main shop page add_filter( 'woocommerce_show_page_title', '__return_false' ); // Remove Heading Text Tab add_filter( 'woocommerce_product_description_heading', '__return_false' ); add_filter( 'woocommerce_product_additional_information_heading', '__return_false' ); // Change gravatar size add_filter( 'woocommerce_review_gravatar_size', 'surince_woocommerce_gravatar_size', 10 ); function surince_woocommerce_gravatar_size() { return 160; } // Adjust markup on all WooCommerce pages remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); // Remove WC sidebar remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10); // Fix html on item product remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 ); remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); add_action( 'woocommerce_before_shop_loop_item', 'surince_before_shop_loop_item' ); add_action( 'surince_before_shop_loop_item', 'woocommerce_show_product_loop_sale_flash', 2 ); add_action( 'surince_before_shop_loop_item', 'woocommerce_template_loop_product_thumbnail', 4 ); add_action( 'surince_before_shop_loop_item', 'woocommerce_template_loop_product_link_close', 6 ); add_action( 'surince_before_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 8 ); // Column of related product function surince_related_products_args( $args ) { $column = surince_get_mod( 'shop_realted_columns', 3 ); if ($column !== 0) { $args['posts_per_page'] = $column; $args['columns'] = $column; return $args; } } add_filter( 'woocommerce_output_related_products_args', 'surince_related_products_args', 20 ); // Relayout shop item function surince_before_shop_loop_item() { global $product; echo '<div class="product-thumbnail">'; echo '<a class="woocommerce_loop_product_link" href="' . get_the_permalink($product->get_id()) . '">'; do_action( 'surince_before_shop_loop_item' ); echo '</div>'; echo '<div class="product-info">'; } add_action( 'woocommerce_after_shop_loop_item', function() { global $product; echo '</div>'; }, 99 ); // Update the number on cart icon add_filter( 'woocommerce_add_to_cart_fragments', 'surince_cart_fragments', 100 ); function surince_cart_fragments( $fragments ) { $cart_items = \WooCommerce::instance()->cart->get_cart_contents_count(); $fragments['script#shopping-cart-items-updater'] = sprintf( ' <script id="shopping-cart-items-updater" type="text/javascript"> ( function( $ ) { "use strict"; $( document ).trigger( \'woocommerce-cart-changed\', { items_count: %d } ); } ).call( this, jQuery ); </script> ', $cart_items ); return $fragments; } // Output the script placeholder for cart updater add_action( 'wp_footer', 'surince_cart_fragments_placeholder', 100 ); function surince_cart_fragments_placeholder() { echo '<script id="shopping-cart-items-updater" type="text/javascript"></script>'; } // Display products per page add_filter( 'loop_shop_per_page', 'surince_products_per_page', 20 ); function surince_products_per_page() { if ( ! $items = surince_get_mod('shop_products_per_page') ) { return 6; } else { return $items; } } // Change columns in product loop add_filter( 'loop_shop_columns', 'surince_shop_loop_columns', 20 ); function surince_shop_loop_columns() { if ( ! $cols = surince_get_mod('shop_columns') ) { return 3; } else { if ( $cols == '2' ) return 2; if ( $cols == '3' ) return 3; if ( $cols == '4' ) return 4; } } add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); // Change columns in related products output to 4 add_filter( 'woocommerce_output_related_products_args', 'surince_related_products' ); function surince_related_products() { $args = array( 'posts_per_page' => 3, 'columns' => 3, ); return $args; } // Change product thumbnails columns to 6 add_filter('woocommerce_product_thumbnails_columns','surince_custom_storefront_gallery' ); function surince_custom_storefront_gallery( $column ) { $column = 6; return $column ; } // Add category to product item function surince_product_cat(){ $cats = wp_get_post_terms( get_the_ID(), 'product_cat' ); if ( $cats && ! is_wp_error ( $cats ) ){ $cat = array_shift( $cats ); ?> <div class="product-cat"><?php echo esc_html( $cat->name ); ?></div> <?php } } add_action( 'woocommerce_shop_loop_item_title', 'surince_product_cat', 9 ); // Avaible Text add_filter('woocommerce_get_availability', 'surince_custom_get_availability', 1, 2); function surince_custom_get_availability($availability, $product) { if ($availability['availability'] == '') { $availability['availability'] = esc_html__('Available in store', 'surince'); } else { $availability['availability'] = esc_html__('Product sold out!', 'surince'); } return $availability; } // Product Title add_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_link_open', 5 ); add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_product_link_close', 15 ); // Move price before rating remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 8 ); // Shop Engine // Add text to wishlist button add_filter( 'shopengine/module/wishlist/optional_text_left', 'surince_add_to_wishlist_text', 1, 1 ); function surince_add_to_wishlist_text() { $text = '<span class="text">' . esc_html__('Add to wishlist', 'surince') . '</span>'; return $text; } // Update Woocommerce Cart function surince_woocommerce_header_add_to_cart_fragment( $fragments ) { ob_start(); if ( class_exists( 'woocommerce' ) ) : ?> <a class="cart-info" href="<?php echo esc_url( wc_get_cart_url() ); ?>" title="<?php echo esc_attr__( 'View your shopping cart', 'surince' ); ?>"><i class="ci-shopping-cart"></i><?php echo sprintf( _n( '%d item', '%d items', WC()->cart->cart_contents_count, 'surince' ), WC()->cart->cart_contents_count); ?> <?php echo WC()->cart->get_cart_total(); ?></a> <?php endif; $fragments['a.cart-info'] = ob_get_clean(); return $fragments; } add_filter('woocommerce_add_to_cart_fragments', 'surince_woocommerce_header_add_to_cart_fragment');
Upload File
Create Folder