Add blocks
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 2 May 2014 19:32:44 +0000 (19:32 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 2 May 2014 19:32:44 +0000 (19:32 +0000)
Adding glm-blocks from the demo template

templates/template.html

index 1c53c71..afc856b 100644 (file)
             {if:rotatingImages}
                 {rotatingImages:h}
             {end:}
-            <ul id="homeLinks" class="glmCL">
-                <li>
-                    <a href="#" class="glmTxtImg">Summer Gear</a>
-                </li>
-                <li>
-                    <a href="#" class="glmTxtImg">Docks Available</a>
-                </li>
-                <li>
-                    <a href="#" class="glmTxtImg">Seaweed Removal</a>
-                </li>
-                <li>
-                    <a href="#" class="glmTxtImg">Boat &amp; Engine Repeair</a>
-                </li>
-            </ul>
+            <section id="hHlines" flexy:if="hasHeadlines" class="opensearchserver.ignore">
+            <h2>Headlines</h2>
+                <ul>
+                    <li flexy:foreach="headlines,v" class="hHlinesItem">
+                        {if:v[external]}
+                        <a href="{v[href]:h}" class="hHlinesHeaderLink" target="_blank">
+                        {else:}
+                        <a href="{v[href]:h}" class="hHlinesHeaderLink">
+                        {end:}
+                        {v[header]:h}</a>
+                        {if:v[img]}
+                            {if:v[external]}
+                            <a href="{v[href]:h}" class="hHlinesImageLink" target="_blank">
+                            {else:}
+                            <a href="{v[href]:h}" class="hHlinesImageLink" target="_blank">
+                            {end:}
+                            <img src="{v[img]:h}" alt="Home page headline image">
+                        </a>
+                        {end:}
+                        <p>{v[descr]:h}<span class="hHlinesMore"> <a href="{v[href]:h}" class="hHlinesMoreLink">More ></a></span></p>
+                    </li><!-- /.hHlinesItem -->
+                </ul>
+            </section><!-- /#hHlines -->
         </div>
     </div><!-- /.row -->