Beee

page--bookmarks.twig

Feb 6th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.64 KB | None | 0 0
  1. {% extends "base.twig" %}
  2.  
  3. {% block content %}
  4. <section class="section">
  5.  
  6.     <div class="page__container">
  7.         <section class="page__main">
  8.  
  9.             {% include 'partials/entry-header.twig' with {
  10.                 'type': 'article'
  11.             } %}
  12.  
  13.             {{ function( 'fr_show_error_messages' ) }}
  14.  
  15.             {% if bookmarked_events %}
  16.  
  17.                 {% filter shortcodes %}
  18.                     [events_calendar post_id="{{ bookmarks_string }}"]
  19.                 {% endfilter %}
  20.  
  21.                 {% set items = bookmarked_events %}
  22.                 <h3>You have bookmarked these (future) events.</h3>
  23.  
  24.                 {% for event in bookmarked_events %}
  25.                     {% set event = TimberPost( event.post_id ) %}
  26.  
  27.                     {% include 'teasers/registration.twig' with {
  28.                         'now_ts' : now_ts
  29.                     } %}
  30.                 {% endfor %}
  31.  
  32.                 <form name="remove_bookmarks" class="form__remove-bookmarks" method="post">
  33.                     <input type="hidden" name="user_id" value="{{ user }}" />
  34.                     <input type="hidden" name="remove_bookmarks_nonce" value="{{ remove_all_bookmarks_nonce }}" />
  35.                     <input type="submit" class="button button--small" value="Remove all bookmarks" />
  36.                 </form>
  37.  
  38.             {% else %}
  39.                 <p>You haven't bookmarked any events yet. You can bookmark an event from its event page.</p>
  40.            {% endif %}
  41.  
  42.  
  43.        </section>
  44.  
  45.        <section class="page__aside">
  46.  
  47.             {% include 'partials/sidebar.twig' %}
  48.  
  49.        </section>
  50.    </div>
  51. </section>
  52. {% endblock %}
Add Comment
Please, Sign In to add comment