<?php
if ( ! post_password_required() ) {
echo ‘your stuff’;
}
?>
<?php
if ( ! post_password_required() ) {
echo ‘your stuff’;
}
?>
.my_div:nth-of-type(3n+4){
clear:both;
}
.my_div { margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; }
.parent_div{position: relative; height:200px; width:200px;}
<script type=”text/javascript”>
(function($){
$(document).ready(function() {
$(‘#myid’).click(function(e){
alert(‘hi’);
});
});
})(jQuery);
</script>
<?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>
<?php global $current_user; get_currentuserinfo(); echo get_avatar( $current_user->ID, 64 ); ?>
<?php echo date(“M Y”, strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?>