Skip to content

Instantly share code, notes, and snippets.

@jorgejaramillo
Forked from jameskoster/header.php
Created April 12, 2012 03:05
Show Gist options
  • Select an option

  • Save jorgejaramillo/2364394 to your computer and use it in GitHub Desktop.

Select an option

Save jorgejaramillo/2364394 to your computer and use it in GitHub Desktop.

Revisions

  1. jorgejaramillo revised this gist Apr 12, 2012. No changes.
  2. jorgejaramillo revised this gist Apr 12, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions header.php
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    <?php if ( is_user_logged_in() ) { ?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('Mi Cuenta','woothemes'); ?></a>
    <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') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Ingresar / Registro','woothemes'); ?></a>
    <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 } ?>
  3. jorgejaramillo revised this gist Apr 12, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions header.php
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    <?php if ( is_user_logged_in() ) { ?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('My Account','woothemes'); ?></a>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('Mi Cuenta','woothemes'); ?></a>
    <?php }
    else { ?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Login / Register','woothemes'); ?></a>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Ingresar / Registro','woothemes'); ?></a>
    <?php } ?>
  4. @jameskoster jameskoster revised this gist Feb 3, 2012. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions header.php
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    <?php if ( is_user_logged_in() ) { ?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('My Account','woothemes'); ?></a>
    <?php }
    else { ?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Login / Register','woothemes'); ?></a>
    <?php } ?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('My Account','woothemes'); ?></a>
    <?php }
    else { ?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Login / Register','woothemes'); ?></a>
    <?php } ?>
  5. @jameskoster jameskoster revised this gist Feb 3, 2012. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion header.php
    Original file line number Diff line number Diff line change
    @@ -1 +1,6 @@
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('Account','woothemes'); ?></a>
    <?php if ( is_user_logged_in() ) { ?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('My Account','woothemes'); ?></a>
    <?php }
    else { ?>
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Login / Register','woothemes'); ?></a>
    <?php } ?>
  6. @jameskoster jameskoster created this gist Feb 3, 2012.
    1 change: 1 addition & 0 deletions header.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('Account','woothemes'); ?></a>