Skip to content

Instantly share code, notes, and snippets.

View jorgejaramillo's full-sized avatar
🎯
Focusing

Jorge Jaramillo jorgejaramillo

🎯
Focusing
View GitHub Profile
@jorgejaramillo
jorgejaramillo / dabblet.css
Created January 25, 2012 07:01
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
@jorgejaramillo
jorgejaramillo / header.php
Created April 12, 2012 03:05 — forked from jameskoster/header.php
WooCommerce - Link de la cuenta
<?php if ( is_user_logged_in() ) { ?>
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" rell="nofollow" title="<?php _e('Mi Cuenta','woothemes'); ?>"><?php _e('Mi Cuenta','woothemes'); ?></a>
<?php }
else { ?>
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" rell="nofollow" title="<?php _e('Ingresar / Registro','woothemes'); ?>"><?php _e('Ingresar / Registro','woothemes'); ?></a>
<?php } ?>
@jorgejaramillo
jorgejaramillo / WooCommerce - Titulo del producto
Created April 12, 2012 03:12
WooCommerce - Título del producto
<?php
/**
* Título del producto
*/
?>
<h1 itemprop="name" id="tituloProducto"><?php the_title(); ?></h1>
@jorgejaramillo
jorgejaramillo / title.php
Created April 13, 2012 03:45 — forked from mikejolley/title.php
WooCommerce - Calificación y número de comentarios debajo del título.
<?php
/**
* Single Product Title
*/
?>
<h1 itemprop="name" class="product_title page-title"><?php the_title(); ?></h1>
<?php
global $wpdb, $post;
@jorgejaramillo
jorgejaramillo / gist:2373530
Created April 13, 2012 03:49 — forked from mikejolley/gist:2044101
WooCommerce - Mostrar número de items en la canasta y valor total
<?php global $woocommerce; ?>
<a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a>
@jorgejaramillo
jorgejaramillo / pagarAhora
Created April 13, 2012 05:29
WooCommerce - Link de pagar ahora
<?php if (sizeof($woocommerce->cart->cart_contents)>0) :?>
<a href="<?php echo $woocommerce->cart->get_checkout_url()?>" title="<?php _e('Pagar Ahora','woothemes') ?>"><?php _e('Pagar Ahora','woothemes') ?></a>
<?php endif; ?>
@jorgejaramillo
jorgejaramillo / gist:2374207
Created April 13, 2012 05:58
WooCommerce - Mostrar precio individual
<?php global $post, $product; ?>
<?php echo $product->get_price(); ?>
@jorgejaramillo
jorgejaramillo / gist:2374363
Created April 13, 2012 06:25
WooCommerce - Titulo del producto
<?php echo get_the_title($product->ID) ?>
@jorgejaramillo
jorgejaramillo / gist:2374395
Created April 13, 2012 06:31
WooCommerce - Dejar de usar los css de WooCommerce
define('WOOCOMMERCE_USE_CSS', false);
Link o url:
<?php the_permalink(); ?>