403Webshell
Server IP : 185.216.8.13  /  Your IP : 216.73.216.187
Web Server : Apache
System : Linux webhost-vie2.sitetide.com 4.18.0-553.156.1.el8_10.x86_64 #1 SMP Mon Aug 17 17:52:57 UTC 2026 x86_64
User : medicalkn ( 9986)
PHP Version : 8.2.33
Disable Function : syslog
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/fitnesstransformationebooks.com/wp-content/themes/flatsome-child/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/fitnesstransformationebooks.com/wp-content/themes/flatsome-child/functions.php
<?php

// Quicksand peste tot, dar cu font-weight normal (nu totul bold)
function conversio_quicksand_fix_weights() {

    if ( is_admin() ) {
        return;
    }

    // Incarcam Quicksand (normal + semi-bold)
    wp_enqueue_style(
        'conversio-quicksand',
        'https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap',
        array(),
        null
    );

    $css = "
        /* Text normal pe site */
        body,
        p,
        li,
        .entry-content,
        .product-short-description,
        .woocommerce-Tabs-panel,
        .woocommerce-product-details__short-description,
        .widget,
        input,
        textarea,
        select {
            font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
            font-weight: 400 !important;
        }

        /* Titluri & lucruri care chiar trebuie sa fie bold */
        h1, h2, h3, h4, h5, h6,
        .page-title,
        .entry-title,
        .product-title,
        .woocommerce-loop-product__title,
        .widget-title,
        .section-title-main,
        .button,
        .button.alt,
        .single_add_to_cart_button,
        .ux-menu-link__text {
            font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
            font-weight: 600 !important;
        }
    ";

    wp_add_inline_style( 'conversio-quicksand', $css );
}
add_action( 'wp_enqueue_scripts', 'conversio_quicksand_fix_weights', 20 );


add_filter( 'woocommerce_cart_item_name', 'bbloomer_product_image_review_order_checkout', 9999, 3 );
  
function bbloomer_product_image_review_order_checkout( $name, $cart_item, $cart_item_key ) {
    if ( ! is_checkout() ) return $name;
    $product = $cart_item['data'];
    $thumbnail = $product->get_image( array( '50', '50' ), array( 'class' => 'alignleft' ) );
    return $thumbnail . $name;
}

add_filter( 'woocommerce_product_single_add_to_cart_text', 'bbloomer_add_symbol_add_cart_button_single' );

function bbloomer_add_symbol_add_cart_button_single( $button ) {
   $button_new = $button . ' ➟';
   return $button_new;
}

function restrict_checkout_over_500() {
    $maximum = 500; 
    $cart_total = WC()->cart->get_total('edit');

    if ($cart_total > $maximum) {
        remove_action('woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20);
        echo '<p class="woocommerce-error" style="color: red; font-weight: bold;">⚠ You cannot proceed to checkout. Maximum order limit is $500.</p>';
    }
}
add_action('woocommerce_proceed_to_checkout', 'restrict_checkout_over_500', 1);

function block_checkout_over_500() {
    $maximum = 500; 
    $cart_total = WC()->cart->get_total('edit');

    if (is_checkout() && !is_wc_endpoint_url('order-received') && $cart_total > $maximum) {
        wp_redirect(wc_get_cart_url());
        exit;
    }
}
add_action('template_redirect', 'block_checkout_over_500');

Youez - 2016 - github.com/yon3zu
LinuXploit