<?php


add_filter('nbd_show_title_start_design', 'nbd_remove_titile_start_design');
add_filter('nbd_upload_design_wrap', 'nbd_chnage_upload_design_wrap');
add_filter('nbd_custom_design_wrap', 'nbd_chnage_custom_design_wrap');
function nbd_remove_titile_start_design()
{
    return;
}
// global $product;
// $id = $product->get_id();
// var_dump($product);
function nbd_chnage_upload_design_wrap()
{
?>
<div class="item__layout upload_design">
    <div class="tile__media-wrap">
        <div class="tile-action__image-wrap">
            <svg width="56" height="48" viewBox="0 0 56 48" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path
                    d="M35.682 39.0456H44.0491C49.1662 39.0456 53.3141 34.8977 53.3141 29.7805C53.3141 25.3476 50.1925 21.6421 46.0304 20.7298C46.1729 19.8604 46.2726 18.9761 46.2726 18.0781C46.2726 9.19792 39.0743 2 30.1941 2C22.8676 2 16.6957 6.90354 14.7572 13.6029C14.7429 13.6029 14.7429 13.6029 14.7287 13.6029C7.70147 13.6029 2 19.304 2 26.3312C2 33.3584 7.70147 39.0602 14.7287 39.0602H26.8873"
                    stroke="#6E60EE" stroke-width="4" stroke-miterlimit="10" stroke-linecap="round"
                    stroke-linejoin="round" />
                <path d="M35.3254 26.8302L27.6568 19.1618L19.9739 26.8302" stroke="#6E60EE" stroke-width="4"
                    stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" />
                <path d="M27.6567 45.5601V19.1618" stroke="#6E60EE" stroke-width="4" stroke-miterlimit="10"
                    stroke-linecap="round" stroke-linejoin="round" />
            </svg>

        </div>
    </div>
    <div class="tile__text-wrap">
        <div class="tile__text-wrap-inner">
            <h3 class="h__block"><?php esc_html_e('Subir un diseño terminado', 'web-to-print-online-designer'); ?>
            </h3>
            <ul>
                <li>-
                    <?php esc_html_e('Sube tu propio diseño, nosotros nos encargamos de lo demás.', 'web-to-print-online-designer'); ?>
                </li>
            </ul>
        </div>
        <svg class="tile--horizontal__chevron" viewBox="0 0 24 24" width="100%" height="100%">
            <path
                d="M10.5 18.5a1 1 0 0 1-.71-1.71l4.8-4.79-4.8-4.79A1 1 0 0 1 11.2 5.8l6.21 6.2-6.21 6.21a1 1 0 0 1-.7.29z">
            </path>
        </svg>
    </div>
</div>
<?php
}

function nbd_chnage_custom_design_wrap()
{
    $link = site_url() . "/create-your-own/?product_id=" . get_the_ID() . "&view=m";
?>
<a href="<?php echo $link; ?>" class="item__layout custom_design">
    <div class="tile__media-wrap">
        <div class="tile-action__image-wrap">
            <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path
                    d="M4.72003 26.805L2 37.995L13.19 35.275L36.2401 12.225C38.5801 9.88497 38.5801 6.095 36.2401 3.755C33.9001 1.415 30.11 1.415 27.77 3.755L4.72003 26.805Z"
                    stroke="#6E60EE" stroke-width="4" stroke-miterlimit="10" stroke-linecap="round"
                    stroke-linejoin="round" />
                <path d="M27.3501 9.22485L31.9601 13.835" stroke="#6E60EE" stroke-width="4" stroke-miterlimit="10"
                    stroke-linecap="round" stroke-linejoin="round" />
                <path d="M3.04004 33.7349L6.25 36.9648" stroke="#6E60EE" stroke-width="4" stroke-miterlimit="10"
                    stroke-linecap="round" stroke-linejoin="round" />
                <path d="M16.96 37.9949H37.9999" stroke="#6E60EE" stroke-width="4" stroke-miterlimit="10"
                    stroke-linecap="round" stroke-linejoin="round" />
            </svg>

        </div>
    </div>
    <div class="tile__text-wrap">
        <div class="tile__text-wrap-inner">
            <h3 class="h__block"><?php esc_html_e('Crea tu diseño online', 'web-to-print-online-designer'); ?></h3>
            <ul>
                <li>-
                    <?php esc_html_e('Personaliza tu diseño en nuestro editor online, desata tu creatividad.', 'web-to-print-online-designer'); ?>
                </li>
            </ul>
        </div>
        <svg class="tile--horizontal__chevron" viewBox="0 0 24 24" width="100%" height="100%">
            <path
                d="M10.5 18.5a1 1 0 0 1-.71-1.71l4.8-4.79-4.8-4.79A1 1 0 0 1 11.2 5.8l6.21 6.2-6.21 6.21a1 1 0 0 1-.7.29z">
            </path>
        </svg>
    </div>
</a>
<?php
}