function renderFilesInFolder($dir)
{
    $files = preg_grep('/^([^.])/', scandir($dir));
    sort($files);
    echo '<div class="sg-section-group">';
    foreach ($files as $file) {
        $path = $dir . '/' . $file;
        if (is_dir($path)) {
            renderTitleFromPath($path, 'h1');
            renderFilesInFolder($path);
        } else {
            renderFile($path);
        }
    }
    echo '</div>';
}
Ejemplo n.º 2
0
function renderFilesInFolder($dir)
{
    $files = scandir($dir);
    sort($files);
    echo '<div class="sg-section-group">';
    foreach ($files as $file) {
        if ($file != '.' && $file != '..') {
            $path = $dir . '/' . $file;
            if (is_dir($path)) {
                renderTitleFromPath($path, 'h1');
                renderFilesInFolder($path);
            } else {
                renderFile($path);
            }
        }
    }
    echo '</div>';
}
Ejemplo n.º 3
0
              <dd style='font-family: "HelveticaNeue", Helvetica, Arial, sans-serif; font-style: italic;'>"HelveticaNeue", Helvetica, Arial, sans-serif;</dd>

              <dt>Primary Font Bold:</dt>
              <dd style='font-family: "HelveticaNeue", Helvetica, Arial, sans-serif; font-weight: 800;'>"HelveticaNeue", Helvetica, Arial, sans-serif;</dd>

              <dt>Secondary Font:</dt>
              <dd style='font-family: Georgia, Times, "Times New Roman", serif;'>Georgia, Times, "Times New Roman", serif;</dd>

              <dt>Secondary Font Italic:</dt>
              <dd style='font-family: Georgia, Times, "Times New Roman", serif; font-style: italic;'>Georgia, Times, "Times New Roman", serif;</dd>

              <dt>Secondary Font Bold:</dt>
              <dd style='font-family: Georgia, Times, "Times New Roman", serif; font-weight: 800;'>Georgia, Times, "Times New Roman", serif;</dd>
            </dl>
            <div class="sg-markup-controls"><a class="sg-btn--top" href="#top">Back to Top</a></div>
          </div><!--/.sg-font-stacks-->
        </div><!--/.sg-info-->

        <?php 
renderFilesInFolder('markup');
?>
      </div><!--/.sg-container-->
    </div><!--/.sg-main-->
  </div><!--/.sg-wrapper-->

  <!--[if gt IE 8]><!--><script src="vendor/prisim/prisim.js"></script><!--<![endif]-->
  <script src="js/sg-scripts.js"></script>
</body>
</html>