<?php echo $header; ?>
<?php if ($journal3->get('pageTitlePosition') == 'top') { ?>
  <h1 class="title page-title <?php echo $journal3->get("title_color_scheme"); ?>"><span class="page-title-text"><?php echo $heading_title; ?></span></h1>
<?php } ?>
<div class="breadcrumbs <?php echo $journal3->get("breadcrumbs_color_scheme"); ?>">
  <ul class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
      <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
    <?php } ?>
  </ul>
</div>
<?php echo $journal3_top; ?>
<div id="account-account" class="container">
  <?php if ($success) { ?>
  <div class="alert alert-success"><i class="fa fa-check-circle"></i> <?php echo $success; ?></div>
  <?php } ?>
  <div class="row"><?php echo $column_left; ?>
    <?php if ($column_left && $column_right) { ?>
    <?php $class = 'col-sm-6'; ?>
    <?php } elseif ($column_left || $column_right) { ?>
    <?php $class = 'col-sm-9'; ?>
    <?php } else { ?>
    <?php $class = 'col-sm-12'; ?>
    <?php } ?>
    <div id="content" class="account-page <?php echo $class; ?>">
      <?php if ($journal3->get('pageTitlePosition') == 'default') { ?>
      <h1 class="title page-title <?php echo $journal3->get("title_color_scheme"); ?>"><?php echo $heading_title; ?></h1>
      <?php } ?>
      <?php echo $content_top; ?>
      <div class="my-account">
      <h2 class="title"><?php echo $text_my_account; ?></h2>
      <ul class="list-unstyled account-list">
        <li class="edit-info"><a href="<?php echo $edit; ?>"><?php echo $text_edit; ?></a></li>
        <li class="edit-pass"><a href="<?php echo $password; ?>"><?php echo $text_password; ?></a></li>
        <li class="edit-address"><a href="<?php echo $address; ?>"><?php echo $text_address; ?></a></li>
        <li class="edit-wishlist"><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>
      </ul>
      </div>
      <?php if ($credit_cards) { ?>
      <div class="my-cards">
      <h2 class="title"><?php echo $text_credit_card; ?></h2>
      <ul class="list-unstyled account-list">
        <?php foreach ($credit_cards as $credit_card) { ?>
        <li><a href="<?php echo $credit_card['href']; ?>"><?php echo $credit_card['name']; ?></a></li>
        <?php } ?>
      </ul>
      </div>
      <?php } ?>
      <div class="my-orders">
      <h2 class="title"><?php echo $text_my_orders; ?></h2>
      <ul class="list-unstyled account-list">
        <li class="edit-order"><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
        <li class="edit-downloads"><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
        <?php if ($reward) { ?>
        <li class="edit-rewards"><a href="<?php echo $reward; ?>"><?php echo $text_reward; ?></a></li>
        <?php } ?>
        <li class="edit-returns"><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
        <li class="edit-transactions"><a href="<?php echo $transaction; ?>"><?php echo $text_transaction; ?></a></li>
        <li class="edit-recurring"><a href="<?php echo $recurring; ?>"><?php echo $text_recurring; ?></a></li>
      </ul>
      </div>
      <div class="my-newsletter">
      <h2 class="title"><?php echo $text_my_newsletter; ?></h2>
      <ul class="list-unstyled account-list">
        <li><a href="<?php echo $newsletter; ?>"><?php echo $text_newsletter; ?></a></li>
      </ul>
      </div>
      <?php echo $content_bottom; ?></div>
    <?php echo $column_right; ?></div>
</div>
<?php echo $footer; ?>
