You are here

index.twig in Open Social 8.8

<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta charset="utf-8">
  <title>{{ options.title }}</title>
  <meta name="description" content="">
  <meta name="generator" content="kss-node">
  <link rel="shortcut icon" href="kss-assets/blue/favicon.ico" type="image/vnd.microsoft.icon" />
  <link rel="stylesheet" href="kss-assets/lib/menu.css">
  <link rel="stylesheet" href="kss-assets/lib/autocomplete.css">
  {{ styles|raw }}
</head>

<body id="kss-node" {% if template.isItem %}class="kss-fullscreen-mode"{% endif %}>
<!-- Google Tag Manager-->
<noscript>
  <iframe src="//www.googletagmanager.com/ns.html?id=GTM-5BGZV3" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
{#<script>#}
  {#(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':#}
    {#new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],#}
    {#j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=#}
    {#'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);#}
  {#})(window,document,'script','dataLayer','GTM-5BGZV3');#}
{#</script>#}
<!-- End Google Tag Manager-->
  <div id="skip-link">
    <a href="#main-content" class="sr-only-focusable">
      {{ 'Skip to main content'|t }}
    </a>
  </div>


  <nav class="navbar navbar-default navbar-fixed-top" id="top" role="banner">
    <div class="container container--navbar">
      <div class="navbar-header">
        <a class="navbar-brand" href="./" title="Home" rel="home">
          <img src="kss-assets/blue/logo.svg" alt="{{ options.title }}" />
        </a>
        <button href="#" data-toggle="collapse" data-target="#main-navigation" type="button" aria-haspopup="true" aria-expanded="false" class="navbar-toggle collapsed">
          <span> Menu</span>
          <span class="sr-only">
            Toggle navigation
          </span>
        </button>
      </div>

      <div id="main-navigation" class="collapse navbar-collapse">
        <ul class="nav navbar-nav" role="navigation">
          <li class="expanded dropdown"><a href="./">Home</a></li>
          {% for menu_item in menu %}
            <li class="expanded dropdown{% if menu_item.isActive %} active {% endif %}"><a href="section-{{ menu_item.referenceURI }}.html">{{ menu_item.header }}</a></li>
          {% endfor %}
        </ul>
      </div>


    </div>
  </nav>

  <main id="content" class="main-container" role="main">
    <a id="main-content" tabindex="-1"></a>

    <div class="container">

      <div class="row layout--with-complementary">

        <aside class="region--complementary">
          <div class="complementary-top" role="complementary">
            <nav id="scrollspy" class="docs-sidebar hidden-print toc-wrapper">
              {% for menu_item in menu %}
                {% if menu_item.isActive and menu_item.children is not empty %}
              <h6 class="text-primary"><span class="kss-nav__name">{{ menu_item.header }}</span></h6>
                  <ul class="nav table-of-contents docs-sidebar">
                      {% for menu_child in menu_item.children %}
                        <li>
                          <a class="kss-nav__menu-link" href="#kssref-{{ menu_child.referenceURI }}">
                  <span class="kss-nav__ref {% if menu_child.isGrandChild %}kss-nav__ref-child{% endif %}">{{ menu_child.referenceNumber }}</span
                  ><span class="kss-nav__name">{{ menu_child.header }}</span>
                          </a>
                        </li>
                      {% endfor %}
                    <li>
                      <a href="#main-content" class="back-to-top">
                        <span>Back to top</span>
                        <svg class="icon-small icon-gray">
                        <use xlink:href="#icon-expand-less"></use>
                        </svg>
                      </a>
                    </li>
                  {% endif %}
                {% endfor %}
              </ul>
            </nav>
          </div>
        </aside>

        <div class="region--content">
            {% if homepage %}
            <div id="kssref-0" class="kss-section kss-section--depth-0 kss-overview kss-style">
              {{ homepage|raw }}
            </div>
            {% else %}

            {#
              Display each section, in order.

              The "root" element comes first in this loop, and can be detected using the
              "loop.first" variable as seen below.
            #}
            {% for section in sections %}
            {% set sectionElement = loop.first ? 'div' : 'section' %}
            <{{ sectionElement }} id="kssref-{{ section.referenceURI }}" class="kss-section kss-section--depth-{{ section.depth }} {% if template.isItem %}is-fullscreen{% endif %}">

              {% if 'Chart' in section.header %}
                <script src="kss-assets/lib/drupal-core.js"></script>
                <script src="kss-assets/lib/raphael.min.js"></script>
                <script src="kss-assets/lib/morris.min.js"></script>
              {% endif %}

              {% set headerElement = (section.depth > 6) ? 'h6' : 'h' ~ section.depth %}
              <{{ headerElement }} class="kss-title kss-title--level-{{ section.depth }}">
              <a href="#kssref-{{ section.referenceURI }}">
                <span class="lead">
                  {{ section.referenceNumber }}
                  <span class="visually-hidden">
                      {{ hasNumericReferences ? '#permalink' : section.reference }}
                    </span>
                </span>
                {{ section.header }}
              </a>
            </{{ headerElement }}>

            {% if section.example %}
              <p class="kss-toolbar">
                {% if not template.isItem %}
                  <a href="#kssref-{{section.referenceURI}}" data-kss-fullscreen="kssref-{{section.referenceURI}}">
                    <span class="kss-toolbar__tooltip">Toggle full screen</span>
                    <svg class="off" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
                      <path class="kss-toolbar__icon-fill" d="M64 0v26l-10-10-12 12-6-6 12-12-10-10zM28 42l-12 12 10 10h-26v-26l10 10 12-12z"></path>
                    </svg>
                    <svg class="on" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
                      <path class="kss-toolbar__icon-fill" d="M28 36v26l-10-10-12 12-6-6 12-12-10-10zM64 6l-12 12 10 10h-26v-26l10 10 12-12z"></path>
                    </svg>
                  </a>
                  <a href="item-{{section.referenceURI}}.html" target="_blank">
                    <span class="kss-toolbar__tooltip">Open in new window</span>
                    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
                      <rect x="0" y="20" width="40" height="44" fill="#fff"/>
                      <path class="kss-toolbar__icon-fill" d="M40,64l-40,0l0,-44l40,0l0,44Zm-36,-40l0,36l32,0l0,-36l-32,0Z"/>
                      <rect class="kss-toolbar__icon-fill" x="0" y="20" width="40" height="10"/>
                      <rect x="24" y="0" width="40" height="44" fill="#fff"/>
                      <path class="kss-toolbar__icon-fill" d="M64,44l-40,0l0,-44l40,0l0,44Zm-36,-40l0,36l32,0l0,-36l-32,0Z"/>
                      <rect class="kss-toolbar__icon-fill" x="24" y="0" width="40" height="10"/>
                    </svg>
                  </a>
                {% endif %}
                <a href="#kssref-{{section.referenceURI}}" data-kss-guides="true">
                  <span class="kss-toolbar__tooltip">Toggle example guides</span>
                  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
                    <rect class="kss-toolbar__icon-fill" x="5" y="35" width="5" height="9"/>
                    <rect class="kss-toolbar__icon-fill" x="54" y="21" width="5" height="9"/>
                    <rect class="kss-toolbar__icon-fill" x="54" y="35" width="5" height="9"/>
                    <rect class="kss-toolbar__icon-fill" x="5" y="21" width="5" height="9"/>
                    <rect class="kss-toolbar__icon-fill" x="5" y="0" width="5" height="15"/>
                    <rect class="kss-toolbar__icon-fill" x="35" y="5" width="9" height="5"/>
                    <rect class="kss-toolbar__icon-fill" x="20" y="5" width="9" height="5"/>
                    <rect class="kss-toolbar__icon-fill" x="0" y="5" width="15" height="5"/>
                    <rect class="kss-toolbar__icon-fill" x="54" y="0" width="5" height="15"/>
                    <rect class="kss-toolbar__icon-fill" x="49" y="5" width="15" height="5"/>
                    <rect class="kss-toolbar__icon-fill" x="54" y="49" width="5" height="15"/>
                    <rect class="kss-toolbar__icon-fill" x="49" y="54" width="15" height="5"/>
                    <rect class="kss-toolbar__icon-fill" x="5" y="49" width="5" height="15"/>
                    <rect class="kss-toolbar__icon-fill" x="0" y="54" width="15" height="5"/>
                    <rect class="kss-toolbar__icon-fill" x="35" y="54" width="9" height="5"/>
                    <rect class="kss-toolbar__icon-fill" x="20" y="54" width="9" height="5"/>
                  </svg>
                </a>
                <a href="#kssref-{{section.referenceURI}}" data-kss-markup="true">
                  <span class="kss-toolbar__tooltip">Toggle HTML markup</span>
                  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
                    <path class="kss-toolbar__icon-fill" d="M37.555,46.239l6.103,6.103l20.342,-20.342l-20.342,-20.342l-6.103,6.103l14.24,14.239l-14.24,14.239Z"/>
                    <path class="kss-toolbar__icon-fill" d="M26.445,17.761l-6.103,-6.103l-20.342,20.342l20.342,20.342l6.103,-6.103l-14.24,-14.239l14.24,-14.239Z"/>
                  </svg>
                </a>
              </p>
            {% endif %}


            {% if section.description %}
              <div class="kss-description">
                {{ section.description|raw }}
              </div>
            {% endif %}

            {% for parameter in section.parameters %}
              {% if loop.first %}
                <div class="kss-parameters__title">Parameters:</div>
                <ul class="kss-parameters">
              {% endif %}
              <li class="kss-parameters__item">
                <div class="kss-parameters__name"><code>{{ parameter.name }}</code></div>
                <div class="kss-parameters__description">
                  {{ parameter.description|raw }}
                  {% if parameter.defaultValue %}
                    <div class="kss-parameters__default-value">
                      Defaults to: <code>{{ parameter.defaultValue }}</code>
                    </div>
                  {% endif %}
                </div>
              </li>
              {% if loop.last %}
                </ul>
              {% endif %}
            {% endfor %}


            {% if section.example %}
              <div class="card">
                <header class="card__title card__title--underline">
                  Example{% if section.modifiers is not empty %}s{% endif %}
                </header>
                <div class="card__body">

                  {% if section.modifiers is not empty %}
                    <!--<div class="kss-modifier__default-name kss-style">
                      Default styling
                    </div>-->
                  {% endif %}

                  {% if section.modifiers is empty %}
                    <div class="kss-modifier__example">
                      {{ section.example|raw }}
                      <div class="kss-modifier__example-footer"></div>
                    </div>
                  {% endif %}

                  {% for modifier in section.modifiers %}
                    <div class="kss-modifier__name kss-style">
                      {{ modifier.name }}
                    </div>
                    <div class="kss-modifier__description kss-style">
                      {{ modifier.description|raw }}
                    </div>
                    <div class="kss-modifier__example">
                      {{ modifier.markup|raw }}
                    </div>
                  {% endfor %}

                </div>

              </div>

              {% if section.markup %}
                <details class="card kss-markup kss-style">
                  <summary style="padding: 5px 20px; cursor: pointer;">
                    {% if section.markupFile %}
                      Markup: <code>{{ section.markupFile }}</code>
                    {% else %}
                      Markup
                    {% endif %}
                  </summary>
                   <pre><code class="language-markup" data-language="html">{{ section.markup|escape('html') }}</code></pre>

                </details>
              {% endif %}

            {% endif %}

            {% if section.source.filename %}
              <div class="kss-source kss-style">
                Source: <code>{{ section.source.filename }}</code>, line {{ section.source.line }}
              </div>
            {% endif %}
          </{{ sectionElement }}>
          {% endfor %}
          {% endif %}

        </div>

      </div>

    </div>

  </main>

  <footer class="site-footer" role="contentinfo">
    <div class="container clearfix">
      <nav role="navigation">
        <ul class="nav navbar-nav navbar-right">
          <li><a href='https://www.drupal.org/project/social'>Drupal project</a></li>
          <li><a href="https://github.com/goalgorilla/open_social/">Main repository</a></li>
          <li><a href="https://github.com/goalgorilla/open_social/issues/new">Report an issue</a></li>
        </ul>
      </nav>
    </div>
  </footer>

  {% include '../../socialbase/assets/icons/icons.svg' %}

  <!-- SCRIPTS -->

  <script src="kss-assets/lib/drupal-core.js"></script>
  <script src="kss-assets/lib/bootstrap.min.js"></script>
  <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  <script src="kss-assets/lib/waves.min.js"></script>
  <script src="kss-assets/custom/js/waves.js"></script>
  <script src="kss-assets/kss/kss-fullscreen.js"></script>
  <script src="kss-assets/kss/kss-guides.js"></script>
  <script src="kss-assets/kss/kss-markup.js"></script>
  <script src="kss-assets/kss/prism.js"></script>
  <script src="kss-assets/kss/prism-scss.min.js"></script>
  <script src="kss-assets/styleguide.js"></script>
  <script src="kss-assets/lib/autosize.min.js"></script>
  <script src="kss-assets/custom/js/textarea-autogrow.js"></script>
  <script src="kss-assets/lib/select2.min.js"></script>
  <script src="kss-assets/custom/js/multiselect.js"></script>
  <script src="kss-assets/custom/js/autocomplete.js"></script>
  <script>
    // Escape code
    // ============================================================

    var $lang_markup       = document.querySelectorAll('pre.language-html code'),
        $lang_js           = document.querySelectorAll('script.atomic-js'),
        $lang_jscode       = document.querySelectorAll('pre code.language-javascript'),
        lang_markupsnippet = [],
        lang_jsnippet      = [];

    // Markup
    // order matters!
    // ============================================================

    for(var i = 0, l = $lang_markup.length; i < l; i++) {
      lang_markupsnippet.push(
        $lang_markup[i].innerHTML.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
      );
      $lang_markup[i].innerHTML = lang_markupsnippet[i];
    }

    // JavaScript
    // order matters!
    // ============================================================
    for(var i = 0, l = $lang_jscode.length; i < l; i++) {
      lang_jsnippet.push(
        $lang_jscode[i].innerHTML.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
      );
    }

    for(var i = 0, l = $lang_js.length; i < l; i++) {
      $lang_js[i].innerHTML = lang_jsnippet[i];
    }

    var kssFullScreen = new KssFullScreen({
      idPrefix: 'kss-fullscreen-',
      bodyClass: 'kss-fullscreen-mode',
      elementClass: 'is-fullscreen'
    });
    var kssGuides = new KssGuides({
      bodyClass: 'kss-guides-mode'
    });
    var kssMarkup = new KssMarkup({
      bodyClass: 'kss-markup-mode',
      detailsClass: 'kss-markup'
    });

  </script>

    {{ scripts|raw }}

</body>
</html>

File

themes/socialblue/os-builder/index.twig
View source
  1. <!DOCTYPE html>
  2. <html class="no-js" lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta charset="utf-8">
  8. <title>{{ options.title }}</title>
  9. <meta name="description" content="">
  10. <meta name="generator" content="kss-node">
  11. <link rel="shortcut icon" href="kss-assets/blue/favicon.ico" type="image/vnd.microsoft.icon" />
  12. <link rel="stylesheet" href="kss-assets/lib/menu.css">
  13. <link rel="stylesheet" href="kss-assets/lib/autocomplete.css">
  14. {{ styles|raw }}
  15. </head>
  16. <body id="kss-node" {% if template.isItem %}class="kss-fullscreen-mode"{% endif %}>
  17. <!-- Google Tag Manager-->
  18. <noscript>
  19. <iframe src="//www.googletagmanager.com/ns.html?id=GTM-5BGZV3" height="0" width="0" style="display:none;visibility:hidden"></iframe>
  20. </noscript>
  21. {#<script>#}
  22. {#(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':#}
  23. {#new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],#}
  24. {#j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=#}
  25. {#'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);#}
  26. {#})(window,document,'script','dataLayer','GTM-5BGZV3');#}
  27. {#</script>#}
  28. <!-- End Google Tag Manager-->
  29. <div id="skip-link">
  30. <a href="#main-content" class="sr-only-focusable">
  31. {{ 'Skip to main content'|t }}
  32. </a>
  33. </div>
  34. <nav class="navbar navbar-default navbar-fixed-top" id="top" role="banner">
  35. <div class="container container--navbar">
  36. <div class="navbar-header">
  37. <a class="navbar-brand" href="./" title="Home" rel="home">
  38. <img src="kss-assets/blue/logo.svg" alt="{{ options.title }}" />
  39. </a>
  40. <button href="#" data-toggle="collapse" data-target="#main-navigation" type="button" aria-haspopup="true" aria-expanded="false" class="navbar-toggle collapsed">
  41. <span> Menu</span>
  42. <span class="sr-only">
  43. Toggle navigation
  44. </span>
  45. </button>
  46. </div>
  47. <div id="main-navigation" class="collapse navbar-collapse">
  48. <ul class="nav navbar-nav" role="navigation">
  49. <li class="expanded dropdown"><a href="./">Home</a></li>
  50. {% for menu_item in menu %}
  51. <li class="expanded dropdown{% if menu_item.isActive %} active {% endif %}"><a href="section-{{ menu_item.referenceURI }}.html">{{ menu_item.header }}</a></li>
  52. {% endfor %}
  53. </ul>
  54. </div>
  55. </div>
  56. </nav>
  57. <main id="content" class="main-container" role="main">
  58. <a id="main-content" tabindex="-1"></a>
  59. <div class="container">
  60. <div class="row layout--with-complementary">
  61. <aside class="region--complementary">
  62. <div class="complementary-top" role="complementary">
  63. <nav id="scrollspy" class="docs-sidebar hidden-print toc-wrapper">
  64. {% for menu_item in menu %}
  65. {% if menu_item.isActive and menu_item.children is not empty %}
  66. <h6 class="text-primary"><span class="kss-nav__name">{{ menu_item.header }}</span></h6>
  67. <ul class="nav table-of-contents docs-sidebar">
  68. {% for menu_child in menu_item.children %}
  69. <li>
  70. <a class="kss-nav__menu-link" href="#kssref-{{ menu_child.referenceURI }}">
  71. <span class="kss-nav__ref {% if menu_child.isGrandChild %}kss-nav__ref-child{% endif %}">{{ menu_child.referenceNumber }}</span
  72. ><span class="kss-nav__name">{{ menu_child.header }}</span>
  73. </a>
  74. </li>
  75. {% endfor %}
  76. <li>
  77. <a href="#main-content" class="back-to-top">
  78. <span>Back to top</span>
  79. <svg class="icon-small icon-gray">
  80. <use xlink:href="#icon-expand-less"></use>
  81. </svg>
  82. </a>
  83. </li>
  84. {% endif %}
  85. {% endfor %}
  86. </ul>
  87. </nav>
  88. </div>
  89. </aside>
  90. <div class="region--content">
  91. {% if homepage %}
  92. <div id="kssref-0" class="kss-section kss-section--depth-0 kss-overview kss-style">
  93. {{ homepage|raw }}
  94. </div>
  95. {% else %}
  96. {#
  97. Display each section, in order.
  98. The "root" element comes first in this loop, and can be detected using the
  99. "loop.first" variable as seen below.
  100. #}
  101. {% for section in sections %}
  102. {% set sectionElement = loop.first ? 'div' : 'section' %}
  103. <{{ sectionElement }} id="kssref-{{ section.referenceURI }}" class="kss-section kss-section--depth-{{ section.depth }} {% if template.isItem %}is-fullscreen{% endif %}">
  104. {% if 'Chart' in section.header %}
  105. <script src="kss-assets/lib/drupal-core.js"></script>
  106. <script src="kss-assets/lib/raphael.min.js"></script>
  107. <script src="kss-assets/lib/morris.min.js"></script>
  108. {% endif %}
  109. {% set headerElement = (section.depth > 6) ? 'h6' : 'h' ~ section.depth %}
  110. <{{ headerElement }} class="kss-title kss-title--level-{{ section.depth }}">
  111. <a href="#kssref-{{ section.referenceURI }}">
  112. <span class="lead">
  113. {{ section.referenceNumber }}
  114. <span class="visually-hidden">
  115. {{ hasNumericReferences ? '#permalink' : section.reference }}
  116. </span>
  117. </span>
  118. {{ section.header }}
  119. </a>
  120. </{{ headerElement }}>
  121. {% if section.example %}
  122. <p class="kss-toolbar">
  123. {% if not template.isItem %}
  124. <a href="#kssref-{{section.referenceURI}}" data-kss-fullscreen="kssref-{{section.referenceURI}}">
  125. <span class="kss-toolbar__tooltip">Toggle full screen</span>
  126. <svg class="off" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
  127. <path class="kss-toolbar__icon-fill" d="M64 0v26l-10-10-12 12-6-6 12-12-10-10zM28 42l-12 12 10 10h-26v-26l10 10 12-12z"></path>
  128. </svg>
  129. <svg class="on" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
  130. <path class="kss-toolbar__icon-fill" d="M28 36v26l-10-10-12 12-6-6 12-12-10-10zM64 6l-12 12 10 10h-26v-26l10 10 12-12z"></path>
  131. </svg>
  132. </a>
  133. <a href="item-{{section.referenceURI}}.html" target="_blank">
  134. <span class="kss-toolbar__tooltip">Open in new window</span>
  135. <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
  136. <rect x="0" y="20" width="40" height="44" fill="#fff"/>
  137. <path class="kss-toolbar__icon-fill" d="M40,64l-40,0l0,-44l40,0l0,44Zm-36,-40l0,36l32,0l0,-36l-32,0Z"/>
  138. <rect class="kss-toolbar__icon-fill" x="0" y="20" width="40" height="10"/>
  139. <rect x="24" y="0" width="40" height="44" fill="#fff"/>
  140. <path class="kss-toolbar__icon-fill" d="M64,44l-40,0l0,-44l40,0l0,44Zm-36,-40l0,36l32,0l0,-36l-32,0Z"/>
  141. <rect class="kss-toolbar__icon-fill" x="24" y="0" width="40" height="10"/>
  142. </svg>
  143. </a>
  144. {% endif %}
  145. <a href="#kssref-{{section.referenceURI}}" data-kss-guides="true">
  146. <span class="kss-toolbar__tooltip">Toggle example guides</span>
  147. <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
  148. <rect class="kss-toolbar__icon-fill" x="5" y="35" width="5" height="9"/>
  149. <rect class="kss-toolbar__icon-fill" x="54" y="21" width="5" height="9"/>
  150. <rect class="kss-toolbar__icon-fill" x="54" y="35" width="5" height="9"/>
  151. <rect class="kss-toolbar__icon-fill" x="5" y="21" width="5" height="9"/>
  152. <rect class="kss-toolbar__icon-fill" x="5" y="0" width="5" height="15"/>
  153. <rect class="kss-toolbar__icon-fill" x="35" y="5" width="9" height="5"/>
  154. <rect class="kss-toolbar__icon-fill" x="20" y="5" width="9" height="5"/>
  155. <rect class="kss-toolbar__icon-fill" x="0" y="5" width="15" height="5"/>
  156. <rect class="kss-toolbar__icon-fill" x="54" y="0" width="5" height="15"/>
  157. <rect class="kss-toolbar__icon-fill" x="49" y="5" width="15" height="5"/>
  158. <rect class="kss-toolbar__icon-fill" x="54" y="49" width="5" height="15"/>
  159. <rect class="kss-toolbar__icon-fill" x="49" y="54" width="15" height="5"/>
  160. <rect class="kss-toolbar__icon-fill" x="5" y="49" width="5" height="15"/>
  161. <rect class="kss-toolbar__icon-fill" x="0" y="54" width="15" height="5"/>
  162. <rect class="kss-toolbar__icon-fill" x="35" y="54" width="9" height="5"/>
  163. <rect class="kss-toolbar__icon-fill" x="20" y="54" width="9" height="5"/>
  164. </svg>
  165. </a>
  166. <a href="#kssref-{{section.referenceURI}}" data-kss-markup="true">
  167. <span class="kss-toolbar__tooltip">Toggle HTML markup</span>
  168. <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 64 64">
  169. <path class="kss-toolbar__icon-fill" d="M37.555,46.239l6.103,6.103l20.342,-20.342l-20.342,-20.342l-6.103,6.103l14.24,14.239l-14.24,14.239Z"/>
  170. <path class="kss-toolbar__icon-fill" d="M26.445,17.761l-6.103,-6.103l-20.342,20.342l20.342,20.342l6.103,-6.103l-14.24,-14.239l14.24,-14.239Z"/>
  171. </svg>
  172. </a>
  173. </p>
  174. {% endif %}
  175. {% if section.description %}
  176. <div class="kss-description">
  177. {{ section.description|raw }}
  178. </div>
  179. {% endif %}
  180. {% for parameter in section.parameters %}
  181. {% if loop.first %}
  182. <div class="kss-parameters__title">Parameters:</div>
  183. <ul class="kss-parameters">
  184. {% endif %}
  185. <li class="kss-parameters__item">
  186. <div class="kss-parameters__name"><code>{{ parameter.name }}</code></div>
  187. <div class="kss-parameters__description">
  188. {{ parameter.description|raw }}
  189. {% if parameter.defaultValue %}
  190. <div class="kss-parameters__default-value">
  191. Defaults to: <code>{{ parameter.defaultValue }}</code>
  192. </div>
  193. {% endif %}
  194. </div>
  195. </li>
  196. {% if loop.last %}
  197. </ul>
  198. {% endif %}
  199. {% endfor %}
  200. {% if section.example %}
  201. <div class="card">
  202. <header class="card__title card__title--underline">
  203. Example{% if section.modifiers is not empty %}s{% endif %}
  204. </header>
  205. <div class="card__body">
  206. {% if section.modifiers is not empty %}
  207. <!--<div class="kss-modifier__default-name kss-style">
  208. Default styling
  209. </div>-->
  210. {% endif %}
  211. {% if section.modifiers is empty %}
  212. <div class="kss-modifier__example">
  213. {{ section.example|raw }}
  214. <div class="kss-modifier__example-footer"></div>
  215. </div>
  216. {% endif %}
  217. {% for modifier in section.modifiers %}
  218. <div class="kss-modifier__name kss-style">
  219. {{ modifier.name }}
  220. </div>
  221. <div class="kss-modifier__description kss-style">
  222. {{ modifier.description|raw }}
  223. </div>
  224. <div class="kss-modifier__example">
  225. {{ modifier.markup|raw }}
  226. </div>
  227. {% endfor %}
  228. </div>
  229. </div>
  230. {% if section.markup %}
  231. <details class="card kss-markup kss-style">
  232. <summary style="padding: 5px 20px; cursor: pointer;">
  233. {% if section.markupFile %}
  234. Markup: <code>{{ section.markupFile }}</code>
  235. {% else %}
  236. Markup
  237. {% endif %}
  238. </summary>
  239. <pre><code class="language-markup" data-language="html">{{ section.markup|escape('html') }}</code></pre>
  240. </details>
  241. {% endif %}
  242. {% endif %}
  243. {% if section.source.filename %}
  244. <div class="kss-source kss-style">
  245. Source: <code>{{ section.source.filename }}</code>, line {{ section.source.line }}
  246. </div>
  247. {% endif %}
  248. </{{ sectionElement }}>
  249. {% endfor %}
  250. {% endif %}
  251. </div>
  252. </div>
  253. </div>
  254. </main>
  255. <footer class="site-footer" role="contentinfo">
  256. <div class="container clearfix">
  257. <nav role="navigation">
  258. <ul class="nav navbar-nav navbar-right">
  259. <li><a href='https://www.drupal.org/project/social'>Drupal project</a></li>
  260. <li><a href="https://github.com/goalgorilla/open_social/">Main repository</a></li>
  261. <li><a href="https://github.com/goalgorilla/open_social/issues/new">Report an issue</a></li>
  262. </ul>
  263. </nav>
  264. </div>
  265. </footer>
  266. {% include '../../socialbase/assets/icons/icons.svg' %}
  267. <!-- SCRIPTS -->
  268. <script src="kss-assets/lib/drupal-core.js"></script>
  269. <script src="kss-assets/lib/bootstrap.min.js"></script>
  270. <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  271. <script src="kss-assets/lib/waves.min.js"></script>
  272. <script src="kss-assets/custom/js/waves.js"></script>
  273. <script src="kss-assets/kss/kss-fullscreen.js"></script>
  274. <script src="kss-assets/kss/kss-guides.js"></script>
  275. <script src="kss-assets/kss/kss-markup.js"></script>
  276. <script src="kss-assets/kss/prism.js"></script>
  277. <script src="kss-assets/kss/prism-scss.min.js"></script>
  278. <script src="kss-assets/styleguide.js"></script>
  279. <script src="kss-assets/lib/autosize.min.js"></script>
  280. <script src="kss-assets/custom/js/textarea-autogrow.js"></script>
  281. <script src="kss-assets/lib/select2.min.js"></script>
  282. <script src="kss-assets/custom/js/multiselect.js"></script>
  283. <script src="kss-assets/custom/js/autocomplete.js"></script>
  284. <script>
  285. // Escape code
  286. // ============================================================
  287. var $lang_markup = document.querySelectorAll('pre.language-html code'),
  288. $lang_js = document.querySelectorAll('script.atomic-js'),
  289. $lang_jscode = document.querySelectorAll('pre code.language-javascript'),
  290. lang_markupsnippet = [],
  291. lang_jsnippet = [];
  292. // Markup
  293. // order matters!
  294. // ============================================================
  295. for(var i = 0, l = $lang_markup.length; i < l; i++) {
  296. lang_markupsnippet.push(
  297. $lang_markup[i].innerHTML.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
  298. );
  299. $lang_markup[i].innerHTML = lang_markupsnippet[i];
  300. }
  301. // JavaScript
  302. // order matters!
  303. // ============================================================
  304. for(var i = 0, l = $lang_jscode.length; i < l; i++) {
  305. lang_jsnippet.push(
  306. $lang_jscode[i].innerHTML.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
  307. );
  308. }
  309. for(var i = 0, l = $lang_js.length; i < l; i++) {
  310. $lang_js[i].innerHTML = lang_jsnippet[i];
  311. }
  312. var kssFullScreen = new KssFullScreen({
  313. idPrefix: 'kss-fullscreen-',
  314. bodyClass: 'kss-fullscreen-mode',
  315. elementClass: 'is-fullscreen'
  316. });
  317. var kssGuides = new KssGuides({
  318. bodyClass: 'kss-guides-mode'
  319. });
  320. var kssMarkup = new KssMarkup({
  321. bodyClass: 'kss-markup-mode',
  322. detailsClass: 'kss-markup'
  323. });
  324. </script>
  325. {{ scripts|raw }}
  326. </body>
  327. </html>