title: How to add a download button on Fancybox?
body: <p>I would like to add a download link in my Fancybox. I'm new in programming and I can't seem to figure out what code to use and where to put it. Thank you in advance.</p>
  
  <p>I'm using FancyBox v3.2.10.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>&lt;?php  $directory = "images/"; ?&gt;
      &lt;?php $dir = glob ($directory . "*.{jpg,png,gif,JPG}",GLOB_BRACE) ?&gt;
  
      &lt;?php foreach ($dir as $key =&gt; $value): ?&gt;
  
          &lt;div class="thumb"&gt;
              &lt;a href="&lt;?php echo $value; ?&gt;" data-fancybox="images" data-caption="&lt;?php echo $value; ?&gt;"&gt;
                  &lt;img src="&lt;?php echo $value; ?&gt;" alt="" /&gt;
              &lt;/a&gt;
  
          &lt;/div&gt;
      &lt;?php endforeach; ?&gt;
  </code></pre>