|
Something like ]this (update: replaced with screenshot)?
Ignore the ‘home’ and messy presentation, as I quickly made it so that you can see the real example. Try register an account so that you can see the logged in version.
Quite a bit of hacking though
1) In the Admin > System > Configuration > Design > Header, change ‘Welcome text’ to ‘You’re logged in as ‘
2) In the layout > customer.xml, remove the first <!--Default layout, loads most of the pages -->, then in the next two,
<customer_logged_in> and <customer_logged_out>, replace this:
<!-- Load this update on every page when customer is logged in -->
<customer_logged_in> <reference name="top.links"> <action method="addLink" translate="label title" module="customer"><label>View your Account,</label><url helper="customer/getAccountUrl"/><title>View your Account,</title><prepare/><urlParams/><position>10</position></action> <action method="addLink" translate="label title" module="customer"><label> or Log Out</label><url helper="customer/getLogoutUrl"/><title>or Log Out</title><prepare/><urlParams/><position>100</position></action> </reference> </customer_logged_in>
<!-- Load this update on every page when customer is logged out -->
<customer_logged_out> <reference name="top.links"> <action method="addLink" translate="label title" module="customer"><label>Guest</label><url helper="customer/getAccountUrl"/><title>Guest</title><prepare/><urlParams/><position>10</position></action> <action method="addLink" translate="label title" module="customer"><label>Log In or Register</label><url helper="customer/getLoginUrl"/><title>Log In or Register</title><prepare/><urlParams/><position>100</position></action> </reference> <remove name="reorder"></remove> </customer_logged_out>
3) In the code > core > Mage, look for
a) Checkout > Block > Links. php, under “public function addCartLink()”, change the 3 ‘My Cart’ wording to ‘Cart’ - add ‘comma’ after the “"(%d items)”
b) Wishlist > Block > Links.php, under “public function addWishlistLink()”, change the 3 “My wishlist” wording to “wishlist” add ‘comma’ after the “"(%d items)”.
I didn’t test it intensively, but quite sure it won’t cause error.
As for the presentation, you can replace the ‘.quick-access li {float:left;}’ to
.quick-access li {display:inline}
In my template, quick-access is placed inside the ‘header.phtml’
<div class="quick-access">
<strong><?php echo $this->htmlEscape($this->getWelcome()) ?></strong>
<?php echo $this->getChildHtml('topLinks') ?>
</div>
It’s possible to remove the <ul><li>...</li></ul> and display span class with p tag like so
<div class="quick-access">
<p><strong><?php echo $this->htmlEscape($this->getWelcome()) ?></strong>
<?php echo $this->getChildHtml('topLinks') ?></p>
</div>
In ‘top.links.phtml’ file, you replace the <ul><li>...</li></ul> to
<span<?php if($_toplink['first']||$_toplink['last']): ?> class="<?php if($_toplink['first']): ?>first <?php endif; ?><?php if($_toplink['last']): ?>last <?php endif; ?>"<?php endif; ?> <?php echo $_toplink['liParams'] ?>> <?php echo $_toplink['beforeText'] ?><a <?php echo $_toplink['aParams'] ?>><?php echo $_toplink['innerText'] ?></a><?php echo $_toplink['afterText'] ?></span>
So if you go with p tag and span, ignore/remove the ‘quick-access li’, change it to
.quick-access p span { } /* don’t think ‘display:inline’ is needed as span is an inline element */
.quick-access p span a {color:#369 }/* for example */
Image Attachments
Click thumbnail to see full-size image
|