src/Bidcoz/Bundle/FrontendBundle/Resources/views/campaign.html.twig line 1

Open in your IDE?
  1. {% extends '@BidcozFrontend/organization.html.twig' %}
  2. {% set campaignParams = {orgSlug: organization.slug, campaignSlug: campaign.slug} %}
  3. {% block title %}CausePilot - {{ campaign.name }} - {{ organization.name }}{% endblock %}
  4. {% block beforeContent %}
  5.     {{ parent() }}
  6.     <div class="breadcrumbs">
  7.         <a href="{{ path('campaign_home', campaignParams) }}" class="d-flex align-items-center">
  8.             {% include '@BidcozCore/Components/icon.html.twig' with { icon: 'arrow-left', class: 'icon-md' } %}
  9.             Back
  10.         </a>
  11.     </div>
  12. {% endblock %}
  13. {% block sidebar '' %}
  14. {% block sponsorships %}
  15.     {# If the have sponsorships enabled. #}
  16.     {% if campaign.hasSponsorship and is_granted('SPONSORSHIP', organization) %}
  17.         {% set sponsorships = campaign_sponsorships(campaign) %}
  18.         {# If the have any actual sponsorships. #}
  19.         {% if sponsorships|length %}
  20.             <div class="d-flex align-items-center mb-4">
  21.                 <h4 class="my-0 flex-grow-1 d-block">Featured Sponsors</h4>
  22.                 <a href="{{ path('all_sponsors', campaignParams) }}" class="flex-shrink-0 d-flex align-items-center">
  23.                     <strong>View All Sponsors</strong>
  24.                     <i class="fas fa-arrow-right ml-1"></i>
  25.                 </a>
  26.             </div>
  27.             {% include '@BidcozCore/Layout/Blocks/sponsorship/main.html.twig' with { sponsorships: sponsorships } %}
  28.         {% endif %}
  29.     {% endif %}
  30. {% endblock %}
  31. {% block shareButtons %}
  32.     <script defer src="https://static.addtoany.com/menu/page.js"></script>
  33. {% endblock %}
  34. {% block stylesheets %}
  35.     {{ parent() }}
  36.     {% if organization is defined or campaign is defined %}
  37.         <link rel="stylesheet" href="/css/manage.css?v={{ asset_version('') }}">
  38.     {% endif %}
  39. {% endblock %}
  40. {% block javascripts %}
  41.     {{ parent() }}
  42.     <script src="/components/font-awesome/js/all.js"></script>
  43.     <script src="/js/clipboard.min.js"></script>
  44. {% endblock %}