src/Bidcoz/Bundle/CoreBundle/Resources/views/Layout/Blocks/menu/auction.html.twig line 1

Open in your IDE?
  1. <li>
  2.     <a href="{{ path('campaign_home', campaignParams) }}">Home</a>
  3. </li>
  4. <li>
  5.     <a href="{{ path('campaign_contact', campaignParams) }}">Contact Us</a>
  6. </li>
  7. {% if is_logged_in() and campaign.hasAuction %}
  8.     {% set watchListItems = user_campaign_watchlist(app.user, campaign) %}
  9.     {% if watchListItems|length %}
  10.         <li class="watchlist-link">
  11.             <a href="{{ path('auction_watchlist', campaignParams) }}">
  12.                 Watchlist
  13.                 {% if watchListItems|length %}
  14.                     <div class="bubble">{{ watchListItems|length }}</div>
  15.                 {% endif %}
  16.             </a>
  17.         </li>
  18.     {% endif %}
  19. {% endif %}
  20. <li class="auction-links">
  21.     <a href="#" class="align-items-center d-none d-lg-flex">
  22.         More
  23.         {% include '@BidcozCore/Components/icon.html.twig' with { icon: 'caret-down', h: '1.25rem', w: '1.25rem' } %}
  24.     </a>
  25.     <ul class="menu">
  26.         {% if campaign.auctionAvailable and is_granted('AUCTION', organization) %}
  27.             <li><a href="{{ path('auction_catalog', campaignParams) }}">Auction</a></li>
  28.         {% endif %}
  29.         {% set hasCashDonations = is_granted('DONATION', organization) and campaign.hasCashDonations and campaign.showCashDonations %}
  30.         {% set hasItemDonations = is_granted('PROCUREMENT', organization) and campaign.hasItemDonations %}
  31.         {% if campaign.hasVolunteers and is_granted('VOLUNTEER', organization) %}
  32.             <li><a href="{{ path('campaign_volunteer', campaignParams) }}">Crew Up</a></li>
  33.         {% endif %}
  34.         {% if hasCashDonations and hasItemDonations %}
  35.             <li><a href="{{ path('campaign_donate', campaignParams) }}">Donate</a></li>
  36.         {% elseif hasItemDonations %}
  37.             <li><a href="{{ path('campaign_donate_item', campaignParams) }}">Donate</a></li>
  38.         {% elseif hasCashDonations %}
  39.             <li><a href="{{ path('campaign_donate_cash', campaignParams) }}">Donate</a></li>
  40.         {% endif %}
  41.         {% if campaign.hasFundANeed and is_granted('FUND_A_NEED', organization) %}
  42.             <li><a href="{{ path('fund_a_need_catalog', campaignParams) }}">Fund A Need</a></li>
  43.         {% endif %}
  44.         {% if campaign.hasFundDrive and is_granted('FUND_DRIVE', organization) %}
  45.             <li><a href="{{ path('campaign_donate_levels', campaignParams) }}">Give</a></li>
  46.         {% endif %}
  47.         {% if campaign.hasMembership and is_granted('MEMBERSHIP', organization) %}
  48.             <li><a href="{{ path('campaign_membership_levels', campaignParams) }}">Become a Member</a></li>
  49.         {% endif %}
  50.         {% if campaign.hasShop and is_granted('SHOP', organization) %}
  51.             <li><a href="{{ path('shop_catalog', campaignParams) }}">Shop</a></li>
  52.         {% endif %}
  53.         {% if campaign.hasSponsorship and campaign.sponsorshipSignup and is_granted('SPONSORSHIP', organization) %}
  54.             <li><a href="{{ path('campaign_sponsor', campaignParams) }}">Sponsor</a></li>
  55.         {% endif %}
  56.     </ul>
  57. </li>