Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[FIX] preview screen as liquid file

  • Loading branch information...
commit 8eced9d3c89427aa5db41755de718419e2aa22f0 1 parent 9013d30
rajeshv authored
Showing with 74 additions and 2 deletions.
  1. +74 −2 public/templates/content_page.liquid
View
76 public/templates/content_page.liquid
@@ -1,2 +1,74 @@
-<h2>Site Builder Content</h2>
-{{ content_site_builder }}
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+ <head>
+ <title>{{ site.name }}</title>
+ <link href="/css/pecaaCF.css" rel="stylesheet" type="text/css" />
+ <script src="/assets/jquery.min.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ $('document').ready(function(){
+ $('.menu li ul').hide();
+ $('#mainNav a.dropdown').parent().hover(function(e) {
+ $(this).find('.subMenuBox').stop().slideToggle("medium");
+ });
+
+ });
+ </script>
+ {{ site_theme }}
+ {{ site.get_the_styles }}
+ </head>
+ <body>
+ <div class="mainContainer">
+ <div class="userEditHolder">
+ <div class="header-section">
+ <div class="topHeader">
+ <div class="logoHolder">
+ </div>
+ <!-- <div class="rightPanel">
+ <ul>
+ <li class="help"></li>
+ <li class="myAccount"></li>
+ <li class="logout"></li>
+ </ul>
+ </div> -->
+ </div>
+ </div>
+ {%if site.site_pages != [] %}
+ {{ content_for_navigation }}
+ <div id="box">
+ <div class="textStyle"><h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras nec neque a ligula elementum posuere. Nunc mollis vulputate vulputate. Sed pellentesque tincidunt leo, a lacinia libero ornare vitae. Nullam id diam quam, a tempor eros. Nulla quis nunc ante. Etiam fermentum porta velit, a malesuada ante ullamcorper sit amet. Sed vel gravida metus. Sed at fringilla est. </h1></div>
+ {% for x in site_page.content_libraries %}
+ {% if x.content_library != null %}
+ {% assign c = x.content_library %}
+ {% assign content = c.get_content %}
+ {% if c.source_type == "Video" && content != null %}
+ <div class="block">
+ <h2>{{ content.source_file_name }}</h2>
+ <div class="content">
+ <embed src ="/flash/mediaplayer.swf?file={{ content.source_url }}" width="480" height="320" allowfullscreen="true" />
+ </div>
+ </div>
+ {% elsif c.source_type == "Image" && content != null %}
+ <div class="block">
+ <h2>{{ content.upload_file_name }}</h2>
+ <div class="content">
+ <img src="{{ content.get_medium_url }}" />
+ </div>
+ </div>
+ {% elsif c.source_type == "Text" && content != null %}
+ <div class="block">
+ <h2>{{ content.text_block_name %}}</h2>
+ <div class="content">
+ {{ content.description }}
+ </div>
+ </div>
+ {% endif %}
+
+ {% endif %}
+ {% endfor %}
+ </div>
+ {% endif %}
+ </div>
+ </div>
+ </body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.