Guest User

Untitled

a guest
Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. <!doctype html>
  2. <html class="no-js" lang="en">
  3. <head>
  4. <title>Testing carousel with matrix</title>
  5. <meta charset="utf-8">
  6. </head>
  7. <body>
  8.  
  9. <h2>Embedded</h2>
  10. {embed="embeds/dev-carousel"}
  11.  
  12.  
  13. <h2>Same code as above, only not embedded</h2>
  14. <div class="gallery">
  15. <span class="tl">&nbsp;</span>
  16. <span class="tr">&nbsp;</span>
  17. <span class="bl">&nbsp;</span>
  18. <span class="br">&nbsp;</span>
  19.  
  20. <div class="gallery-holder">
  21.  
  22. {!-- ******* start 1st loop ******* --}
  23.  
  24. {exp:weblog:entries weblog="homepage" orderby="entry_id" sort="asc"}
  25.  
  26.  
  27. {if {Carousel:total_rows} != 0}
  28.  
  29.  
  30. {Carousel}
  31.  
  32. {if "{row_count}" == 1}
  33. <ul>
  34. {/if}
  35.  
  36. <li>
  37.  
  38. <div class="carusel-box">
  39. <div class="text-hold">
  40. <h2>{menu_label}</h2>
  41. <p>{promo_text}</p>
  42. <p><a href="{site_url}{read_more_url}" class="button blue">Read more <span class="removed">{read_more_hidden}</span> &raquo;</a></p>
  43. </div><!--texthold-->
  44. <img src="{promo_image}" alt="" class="bg-image png" />
  45. </div><!--/ carusel-box-->
  46.  
  47. </li>
  48.  
  49.  
  50. {if "{row_count}" == "{Carousel:total_rows}"}
  51. </ul>
  52. {/if}
  53.  
  54.  
  55. {/Carousel}
  56.  
  57. {/if}
  58.  
  59. </div><!--/ gallery-holder-->
  60.  
  61. {/exp:weblog:entries}
  62.  
  63.  
  64.  
  65.  
  66.  
  67. {!-- ******* end 1st loop ******* --}
  68.  
  69. {exp:weblog:entries weblog="homepage" orderby="entry_id" sort="asc"}
  70.  
  71.  
  72. {if {Carousel:total_rows} != 0}
  73.  
  74.  
  75. {Carousel}
  76.  
  77. {if "{row_count}" == 1}
  78.  
  79. <div class="swicher">
  80. <nav class="nav-swicher">
  81. <ul class="nav" role="navigation">
  82. {/if}
  83.  
  84.  
  85. <li><a href="{site_url}{read_more_url}" title="">{menu_label}</a></li>
  86.  
  87.  
  88. {if "{row_count}" == "{Carousel:total_rows}"}
  89.  
  90. </ul>
  91. </nav>
  92. {/if}
  93.  
  94. {/Carousel}
  95.  
  96. {/if}
  97.  
  98.  
  99.  
  100.  
  101. </div><!--/switcher-->
  102.  
  103. {/exp:weblog:entries}
  104.  
  105. {!-- ******* end 2nd loop ******* --}
  106.  
  107.  
  108. </div><!--/ gallery-->
  109.  
  110. </body>
  111. </html>
Add Comment
Please, Sign In to add comment