Skip to content

Instantly share code, notes, and snippets.

View marcobarbadoro's full-sized avatar

marco marcobarbadoro

View GitHub Profile
@marcobarbadoro
marcobarbadoro / gist:7e47eecf7817ba3bbb9dbcf638c3f6f2
Created March 31, 2016 15:15
Add Product image to email template of WooCommerce (WordPress)
//Aggiunta dell' immagine nell' email di woocommerce del nuovo ordine
function sww_add_wc_order_email_images( $table, $order ) {
ob_start();
$template = $plain_text ? 'emails/plain/email-order-items.php' : 'emails/email-order-items.php';
wc_get_template( $template, array(
'order' => $order,
'items' => $order->get_items(),
'show_download_links' => $show_download_links,
@marcobarbadoro
marcobarbadoro / gist:d4c0b5ab75e265c632ae252464b43873
Created March 31, 2016 15:14
Add Product image to email template of WooCommerce (WordPress)
//Aggiunta dell' immagine nell' email di woocommerce del nuovo ordine
function sww_add_wc_order_email_images( $table, $order ) {
ob_start();
$template = $plain_text ? 'emails/plain/email-order-items.php' : 'emails/email-order-items.php';
wc_get_template( $template, array(
'order' => $order,
'items' => $order->get_items(),
'show_download_links' => $show_download_links,
@marcobarbadoro
marcobarbadoro / stile
Last active August 29, 2015 14:16
+ and - buttons to zoom in and out a div.   with a time of transition. With a simple script and short in a single html page
@charset "utf-8";
/* CSS Document */
.cont {
height: 339px;
width: 340px;
margin: 0 auto;
padding-left: 0px;
}