Submit
Path:
~
/
home
/
getwphos
/
public_html
/
giulianos
/
wp-content
/
themes
/
mechano
/
admin
/
File Content:
functions-woocommerce.php
<?php remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5); function mechano_remove_wc_breadcrumbs() { remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0); } add_action('init', 'mechano_remove_wc_breadcrumbs'); function mechano_header_add_to_cart_fragment($fragments) { ob_start(); $count = WC()->cart->cart_contents_count; ?> <a class="shopping-cart" href="<?php echo esc_url(wc_get_cart_url()); ?>" title="<?php esc_attr_e('View your shopping cart', 'mechano'); ?>"> <?php if ($count > 0) { ?> <span> <?php echo esc_html($count); ?> </span> <?php } ?> </a> <!-- .shopping-cart --> <?php $fragments['a.shopping-cart'] = ob_get_clean(); return $fragments; } add_filter('woocommerce_add_to_cart_fragments', 'mechano_header_add_to_cart_fragment'); function mechano_wc_cart_count() { if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) { $count = WC()->cart->cart_contents_count; ?> <a class="shopping-cart" href="<?php echo esc_url(wc_get_cart_url()); ?>" title="<?php esc_attr_e('View your shopping cart', 'mechano'); ?>"> <?php if ($count > 0) { ?> <span> <?php echo esc_html($count); ?> </span> <?php } ?> </a> <!-- .shopping-cart --> <?php } } add_action('mechano_header_cart_icon', 'mechano_wc_cart_count'); /* ============================================================================================================================================= */ // $cols contains the current number of products per page based on the value stored on Options -> Reading. // Return the number of products you wanna show per page. function mechano_loop_shop_per_page($cols) { $posts_per_page = get_theme_mod('mechano_setting_products_per_page', '8'); if (! empty($posts_per_page)) { $posts_per_page = intval($posts_per_page); } else { $posts_per_page = 8; } $cols = $posts_per_page; return $cols; } add_filter('loop_shop_per_page', 'mechano_loop_shop_per_page', 20); /* ============================================================================================================================================= */ /** * WooCommerce Extra Feature * -------------------------- * * Change number of related products on product page. * Set your own value for 'posts_per_page'. * */ function woo_related_products_limit() { global $product; $args['posts_per_page'] = 6; return $args; } function mechano_related_products_args($args) { $posts_per_page = get_theme_mod('mechano_setting_related_products_count', '3'); if (! empty($posts_per_page)) { $posts_per_page = intval($posts_per_page); } else { $posts_per_page = 3; } $args['posts_per_page'] = $posts_per_page; // Related products. $args['columns'] = 3; // Arranged in 3 columns. return $args; } add_filter('woocommerce_output_related_products_args', 'mechano_related_products_args'); /* ============================================================================================================================================= */ /** * Remove related products output. */ remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20); /* ============================================================================================================================================= */ function mechano_shop_grid__type() { $grid_type = 'masonry'; $grid_type = get_theme_mod('mechano_setting_shop_grid_type', 'masonry'); if (($grid_type == 'fitRows_square') || ($grid_type == 'fitRows_wide')) { $grid_type = 'fitRows'; } echo 'data-layout="' . esc_attr($grid_type) . '"'; } function mechano_shop_grid__feat_img_size() { $feat_img_size = 'mechano_image_size_2'; $grid_type = get_theme_mod('mechano_setting_shop_grid_type', 'masonry'); if ($grid_type == 'fitRows_square') { $feat_img_size = 'mechano_image_size_3'; } elseif ($grid_type == 'fitRows_wide') { $feat_img_size = 'mechano_image_size_4'; } else { $feat_img_size = 'mechano_image_size_2'; } return $feat_img_size; } function mechano_shop_grid__item_width() { $item_width = '360'; $item_width = get_theme_mod('mechano_setting_shop_grid_item_width', '360'); echo 'data-item-width="' . esc_attr($item_width) . '"'; } ?>
Submit
FILE
FOLDER
Name
Size
Permission
Action
css
---
0755
demo-data
---
0755
js
---
0755
plugins
---
0755
about-author.php
1412 bytes
0644
admin--class-tgm-plugin-activation.php
126853 bytes
0644
admin--demo-import.php
10565 bytes
0644
admin--help-tab.php
2049 bytes
0644
admin--notice.php
9889 bytes
0644
ajax-loader.gif
4203 bytes
0644
archive-title.php
3072 bytes
0644
automatic-excerpt.php
3257 bytes
0644
content-none.php
1105 bytes
0644
customizer-default-values.php
3280 bytes
0644
customizer-sections.php
8509 bytes
0644
customizer-settings.php
262878 bytes
0644
enqueue-inline-script.php
2601 bytes
0644
enqueue-inline-style.php
66490 bytes
0644
enqueue-styles-scripts.php
13122 bytes
0644
functions-core.php
8160 bytes
0644
functions-layout-grid.php
1082 bytes
0644
functions-layout-regular.php
802 bytes
0644
functions-portfolio.php
2917 bytes
0644
functions-singular.php
13678 bytes
0644
functions-woocommerce.php
4674 bytes
0644
html-attributes.php
18503 bytes
0644
image-sizes.php
1986 bytes
0644
index.php
30 bytes
0644
navigation-archive.php
1231 bytes
0644
navigation-single.php
4441 bytes
0644
override-post-class.php
1447 bytes
0644
override-post-gallery.php
7368 bytes
0644
post-meta.php
7608 bytes
0644
pre-get-posts.php
353 bytes
0644
theme-options.php
11646 bytes
0644
widget_area-register.php
10228 bytes
0644
widget_area-sidebar-archive.php
4224 bytes
0644
widget_area-sidebar-singular.php
7161 bytes
0644
N4ST4R_ID | Naxtarrr