SproutCMS

This is the code documentation for the SproutCMS project

source of /skin/harbor/home.php

  1. <?php
  2. use Sprout\Helpers\ContentReplace;
  3. use Sprout\Helpers\Enc;
  4. use Sprout\Helpers\Jquery;
  5. use Sprout\Helpers\Notification;
  6. use Sprout\Helpers\Request;
  7. use Sprout\Helpers\Skin;
  8. use Sprout\Helpers\Url;
  9. use Sprout\Helpers\Widgets;
  10.  
  11.  
  12. $page['text'] = ContentReplace::executeChain('main_content', $page['text']);
  13. ?>
  14. <!DOCTYPE html>
  15. <html lang="en" class="no-js">
  16.  
  17. <head>
  18. <?php require_once '_meta-data.php'; ?>
  19.  
  20. <title><?php echo Enc::html($browser_title); ?></title>
  21.  
  22. <script type="text/javascript">var ROOT = 'SITE/';</script>
  23. <?= Jquery::script('jquery', 'front'); ?>
  24. <needs />
  25.  
  26. <link rel="preconnect" href="https://fonts.googleapis.com">
  27. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  28. <link href="https://fonts.googleapis.com/css2?family=Amatic+SC&display=swap" rel="stylesheet">
  29.  
  30. <?= Skin::css('home', 'icons'); ?>
  31.  
  32. <?php require_once '_google_analytics.php'; ?>
  33. </head>
  34.  
  35. <body>
  36. <div bp="container">
  37.  
  38. <header bp="text-center">
  39. <a href="/"><img src="https://cdn.shopify.com/s/files/1/0401/9172/1631/files/Harbor_and_Sprout_Logo_in_color_with_text_300x300.png?v=1619754829" alt="<?php echo Enc::html($browser_title); ?>"></a>
  40. </header>
  41.  
  42. <main>
  43. <?php foreach ($files as $file): ?>
  44. <?php if (!empty($file['url'])): ?><a bp="grid vertical-center" href="<?= Enc::html($file['url']); ?>"><?php else: ?><div bp="grid vertical-center"><?php endif; ?>
  45.  
  46. <div bp="2" class="icon--mask icon-<?= Enc::html($file['icon']); ?>"></div>
  47. <div bp="10"><h2><?= Enc::html($file['name']); ?></h2></div>
  48. <?php if (!empty($file['url'])): ?></a><?php else: ?></div><?php endif; ?>
  49. <?php endforeach; ?>
  50. </main>
  51.  
  52. <footer>
  53. <p>&copy; <?= Enc::html(sprintf('%s - %s', date('Y'), Kohana::config('sprout.site_title'))); ?></p>
  54. </footer>
  55.  
  56. </div>
  57. </body>
  58. </html>
  59.