Add links to GLMBlocks
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 13 Aug 2014 18:58:42 +0000 (14:58 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 13 Aug 2014 19:02:11 +0000 (15:02 -0400)
For the glm blocks need the links to output for title and first image

templates/template.html

index ce00abd..cecb6c3 100644 (file)
                  </div>
               </div>
               <div class="small-12 medium-5 columns content">
-                <h2>{headlines[0][header]}</h2>
+                  <h2>
+                    {if:headlines[0][href]}<a href="{headlines[0][href]:h}">{end:}
+                      {headlines[0][header]}
+                    {if:headlines[0][href]}</a>{end:}
+                </h2>
                 <hr />
                 <p>
                     {headlines[0][descr]:h}
                 </p>
                 <div class="north"></div>
+                {if:headlines[0][img]}
+                {if:headlines[0][href]}<a href="{headlines[0][href]:h}">{end:}
                 <img src="<?php echo HEADLINE_SMALL;?>{headlines[0][img]:h}" />
+                {if:headlines[0][href]}</a>{end:}
+                {end:}
               </div>
             </div>
             {end:}
             {if:headlines[1]}
             <div class="row  collapse bottom-content" flexy:if="isHomePage">
               <div class="small-12 medium-5 columns content">
+                  {if:headlines[1][href]}<a href="{headlines[1][href]:h}">{end:}
                   {if:headlines[1][img]}
                   <img src="<?php echo HEADLINE_SMALL;?>{headlines[1][img]:h}" />
                   {end:}
-                <h2>{headlines[1][header]}</h2>
+                  {if:headlines[1][href]}</a>{end:}
+                <h2>
+                    {if:headlines[1][href]}<a href="{headlines[1][href]:h}">{end:}
+                      {headlines[1][header]}
+                    {if:headlines[1][href]}</a>{end:}
+                </h2>
                 <hr />
                 <p>
                     {headlines[1][descr]:h}