title: Foreach loop for fotorama
body: <p>im trying to use a foreach loop with the plugin fotorama.</p>
  
  <p>What im trying to do is load one half sized image for the main gallery image. Which i have working in a foreach, but i want to use a full image for the data-full tag but i cant get it to work.</p>
  
  <p>This is the working code.</p>
  
  <pre><code>&lt;div class="fotorama"
                   data-allowfullscreen="native"
                   data-nav="thumbs"
                   data-fit="scaledown"
                   data-width="100%"
                   data-height="100%"
                   data-arrows="true"
                   data-click="true"
                   data-swipe="true"&gt;
                  &lt;?php
                        $dirname = "admin/image-upload/uploads/";
                        $images = glob($dirname."*.*");
                        foreach($images as $image) {
                        echo '&lt;img src="'.$image.'" /&gt;&lt;br /&gt;';
                        }
                  ?&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>this is what im trying to do.</p>
  
  <pre><code>&lt;div class="fotorama"
                   data-allowfullscreen="native"
                   data-nav="thumbs"
                   data-fit="scaledown"
                   data-width="100%"
                   data-height="100%"
                   data-arrows="true"
                   data-click="true"
                   data-swipe="true"&gt;
                  &lt;?php
                        $dirname = "admin/image-upload/uploads/";
                        $images = glob($dirname."*.*");
                        $dirname2 = "admin/image-upload/full/";
                        $images2 = glob($dirname2."*.*");
                        $fullImgs = "&lt;img data-full=".$image2." src=".$image." /&gt;&lt;br /&gt;";
                        foreach($fullImgs as $fullImg) {
                        echo $fullImg;
                        }
                  ?&gt;
  
  
              &lt;/div&gt;
  </code></pre>
  
  <p>thanks in advanced guys    </p>