Skip to content

Instantly share code, notes, and snippets.

@NickToye
Created April 9, 2012 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickToye/2342907 to your computer and use it in GitHub Desktop.
Save NickToye/2342907 to your computer and use it in GitHub Desktop.
page_account.htm
<?
extract(array_merge(array(
'partial_step' => post('partial_step', false),
'section' => post('section', 'change_information') //defaults to the change_information section
), $params));
?>
<div id="account_page" class="col span_12">
<h2>My Account</h2>
<div class="row">
<? if($partial_step) { $this->render_block($section); return; } ?>
<? $this->render_block($section) ?>
<nav id="account_navigation" class="col span_4">
<ul>
<li>
<a href="javascript:;" onclick="return LS.sendRequest('/account', 'on_action', {
update: {'#account_page': 'ls_cms_page'},
extraFields: {'section': 'change_information'}
})">Change Information</a>
</li>
<li>
<a href="javascript:;" onclick="return LS.sendRequest('/account', 'on_action', {
update: {'#account_page': 'ls_cms_page'},
extraFields: {'section': 'change_account'}
})">Change Account</a>
</li>
<li>
<a href="javascript:;" onclick="return LS.sendRequest('/account/orders', 'on_action', {
update: {'#account_page': 'ls_cms_page'}
})">View Orders</a>
</li>
</ul>
</nav>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment