Deploy a Express.js project on Heroku
Step by step from command line by Michael Hsu
$ express myfirstexpress && cd myfirstexpress
<a class="cart-contents" href="<?php echo wc_get_cart_url(); ?>" title="<?php _e( 'View your shopping cart' ); ?>"><?php echo sprintf ( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count() ), WC()->cart->get_cart_contents_count() ); ?> - <?php echo WC()->cart->get_cart_total(); ?></a> |
/*Add cursor to the spans and labels*/ | |
form .mycssdropdown li label, form .mycssdropdown li label span{ | |
cursor:pointer; | |
} | |
/*By default, hide the spans*/ | |
form .mycssdropdown li label span{ | |
display:none; | |
} |
#Unstage a single file from the "about to be commited" | |
git reset filename.txt | |
#Unstage a "git add ." | |
git reset |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
Step by step from command line by Michael Hsu
$ express myfirstexpress && cd myfirstexpress
/* | |
check in IE, might need ":" instead of "::" | |
HTML: <p class="tooltip">Some text</p> | |
*/ | |
/* tooltip element with border */ | |
.tooltip { | |
position:relative; | |
padding:15px; | |
margin:1em 0 3em; |
<?php | |
class BlogController extends Controller | |
{ | |
/** | |
* Posts | |
* | |
* @return void | |
*/ | |
public function showPosts() |
alert('hello ' + document.location.href); |
<?php | |
/** | |
* Is a WooCommerce Product Simple or Variable | |
* | |
* see http://wordpress.org/support/topic/condition-to-check-if-product-is-simple-or-variable | |
*/ | |
if( $product->is_type( 'simple' ) ){ | |
// a simple product |