You are here

index.twig in Open Social 8.4

<!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-->
  <a href="#main-content" class="sr-only sr-only-focusable"> Skip to main content </a>


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