Skip to content

Commit

Permalink
extract: Calendly widget
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Feb 20, 2024
1 parent c4f6595 commit a284ca0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
11 changes: 1 addition & 10 deletions site-root/public/booking/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,7 @@
<article is="booking">
<section>
<h2>Book 30 minute free consultation</h2>

<noscript>
<p>Please follow this link to our <a href="https://calendly.com/mastering-the-mundane/30min?month=2024-02">scheduling provider</a> (Calendly) and be sure JavaScript is enabled for that site.</p>
<p><small>The booking widget requires JavaScript. If you donʼt want to enable JavaScript for our site, we understand.</small></p>
</noscript>
<p>The scheduling view may take a moment to appear.</p>
<!-- Calendly inline widget begin -->
<div class="calendly-inline-widget" data-url="https://calendly.com/mastering-the-mundane/30min?primary_color=831601" style="min-width:320px;height:700px;"></div>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js" async></script>
<!-- Calendly inline widget end -->
<?php require_once($relativeToRoot . 'calendly-widget.php'); ?>
</section>
</article>
<?php require_once($relativeToRoot . 'foot.php'); ?>
9 changes: 9 additions & 0 deletions site-root/public/calendly-widget.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<noscript>
<p>Please follow this link to our <a href="https://calendly.com/mastering-the-mundane/30min?month=2024-02">scheduling provider</a> (Calendly) and be sure JavaScript is enabled for that site.</p>
<p><small>The booking widget requires JavaScript. If you donʼt want to enable JavaScript for our site, we understand.</small></p>
</noscript>
<p>The scheduling view may take a moment to appear.</p>
<!-- Calendly inline widget begin -->
<div class="calendly-inline-widget" data-url="https://calendly.com/mastering-the-mundane/30min?primary_color=831601" style="min-width:320px;height:700px;"></div>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js" async></script>
<!-- Calendly inline widget end -->

0 comments on commit a284ca0

Please sign in to comment.