{% if request.is_saas_domain %}
<footer class="mps-footer">
  <div class="mps-footer-grid">

    <div class="mps-footer-brand">
      <a href="/" class="mps-footer-logo">Make Post Sell</a>
      <p class="mps-footer-tagline">
        Commission-free digital downloads &amp; physical product sales for creators.
      </p>
    </div>

    <div class="mps-footer-group">
      <span class="mps-footer-group-title">Get Started</span>
      <nav class="mps-footer-links">
        <a href="https://blog.makepostsell.com/c/0b408430-3a2a-11ef-8208-c3d535a3beac/how-to-create-a-new-shop-on-makepostsell">Create a Shop</a>
        <a href="https://blog.makepostsell.com/c/83c41f98-3a2f-11ef-8208-c3d535a3beac/how-to-create-a-new-product-on-makepostsell">Create a Product</a>
        <a href="https://blog.makepostsell.com/c/59c8c980-3a3b-11ef-8208-c3d535a3beac/how-to-create-new-content-on-makepostsell">Create Content</a>
        <a href="https://blog.makepostsell.com/c/64903474-3a3c-11ef-8208-c3d535a3beac/how-to-create-a-digital-bundle-for-products-content-on-makepostsell">Create a Bundle</a>
      </nav>
    </div>

    <div class="mps-footer-group">
      <span class="mps-footer-group-title">Resources</span>
      <nav class="mps-footer-links">
        <a href="https://blog.makepostsell.com/">Blog</a>
        <a href="https://git.unturf.com/engineering/make-post-sell/make_post_sell" target="_blank">Source Code</a>
        <a href="https://pypi.org/project/make-post-sell/" target="_blank">PyPi</a>
      </nav>
    </div>

    <div class="mps-footer-group">
      <span class="mps-footer-group-title">Account</span>
      <nav class="mps-footer-links">
        <a href="/u/settings">My Account</a>
        <a href="/s/new">New Shop</a>
      </nav>
    </div>

  </div>

  <div class="mps-footer-ctas">
    <a href="/s/new" class="shop-new-button mps-button">&#65291; New Shop</a>
    <a href="https://blog.makepostsell.com/" class="product-edit-button mps-button">&#128366; Blog</a>
  </div>

  <div class="mps-footer-bottom">
    makepostsell.com &copy; 2026 &mdash; Commission-free sales by <a href="https://www.unturf.com/software/" target="_blank">unturf.com</a>
  </div>
</footer>

{% elif request.shop %}
<footer class="mps-footer">
  <div class="mps-footer-grid">

    <div class="mps-footer-brand">
      <a href="/" class="mps-footer-logo">{{ request.shop.name }}</a>
      {% if request.shop.description %}
      <p class="mps-footer-tagline">{{ request.shop.description }}</p>
      {% endif %}
    </div>

    <div class="mps-footer-group">
      <span class="mps-footer-group-title">{{ request.shop.name }}</span>
      <nav class="mps-footer-links">
        <a href="/">Home</a>
        <a href="/cart">Cart</a>
        {% if request.shop.gift_card_enabled %}
        <a href="/s/{{ request.shop.uuid_str }}/gift-card">Gift Cards</a>
        {% endif %}
        {% if request.shop.subscriptions_enabled %}
        <a href="/subscribe">Subscribe</a>
        {% endif %}
      </nav>
    </div>

    <div class="mps-footer-group">
      <span class="mps-footer-group-title">Feeds</span>
      <nav class="mps-footer-links">
        <a href="/rss.xml" target="_blank">RSS</a>
        <a href="/atom.xml" target="_blank">Atom</a>
      </nav>
    </div>

    <div class="mps-footer-group">
      <span class="mps-footer-group-title">Account</span>
      <nav class="mps-footer-links">
        <a href="/u/settings">My Account</a>
        <a href="https://www.makepostsell.com" target="_blank">Powered by makepostsell.com</a>
        <a href="https://git.unturf.com/engineering/make-post-sell/make_post_sell" target="_blank">Source Code</a>
        <a href="https://pypi.org/project/make-post-sell/" target="_blank">PyPi</a>
      </nav>
    </div>

  </div>

  <div class="mps-footer-bottom">
    {{ request.shop.name }} &copy; 2026
  </div>
</footer>
{% endif %}
