Freemarker - alternative syntax
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<!doctype html>
|
||||
[#ftl]
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
@@ -19,13 +20,13 @@
|
||||
<p class="text-center">${rutext}</p>
|
||||
<form method="get" action="${basedir}/">
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" placeholder="Что ищем?" name="search" value="<#if searchtext??>${searchtext}</#if>"/>
|
||||
<input class="form-control" type="text" placeholder="Что ищем?" name="search" value="[#if searchtext??]${searchtext}[/#if]"/>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-primary" type="submit">Ищи!</button>
|
||||
</span>
|
||||
</div>
|
||||
<div class="checkbox checkbox-primary">
|
||||
<input type="checkbox" id="strong" name="strong" value="1"<#if strong?? && strong = true> checked</#if>>
|
||||
<input type="checkbox" id="strong" name="strong" value="1"[#if strong?? && strong = true] checked[/#if]>
|
||||
<label for="strong">Точное совпадение</label>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<#include "/header.inc.html">
|
||||
<#if resultsearch??>
|
||||
[#ftl]
|
||||
[#include "/header.inc.html"]
|
||||
[#if resultsearch??]
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('a.spoiler').bind('click',function(){
|
||||
@@ -9,16 +10,16 @@
|
||||
});
|
||||
</script>
|
||||
<hr>
|
||||
<#if resultsearch?has_content>
|
||||
<#list resultsearch as kino>
|
||||
<#if kino.getClass().getSimpleName() == "KinoGroup">
|
||||
[#if resultsearch?has_content]
|
||||
[#list resultsearch as kino]
|
||||
[#if kino.getClass().getSimpleName() == "KinoGroup"]
|
||||
<div class="panel panel-default">
|
||||
<a href="#" class="panel-heading spoiler">
|
||||
<span class="glyphicon glyphicon-chevron-down"> </span><b>${kino.name}</b>
|
||||
</a>
|
||||
<div class="panel-collapse collapse out">
|
||||
<div class="panel-body">
|
||||
<#list kino.kinolist as kino_groupped>
|
||||
[#list kino.kinolist as kino_groupped]
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><b>${kino_groupped.name}</b></div>
|
||||
<div class="panel-body">
|
||||
@@ -32,11 +33,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</#list>
|
||||
[/#list]
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#else>
|
||||
[#else]
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><b>${kino.name}</b></div>
|
||||
<div class="panel-body">
|
||||
@@ -50,12 +51,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</#if>
|
||||
</#list>
|
||||
<#else>
|
||||
[/#if]
|
||||
[/#list]
|
||||
[#else]
|
||||
<p>Ничего не найдено =(</p>
|
||||
</#if>
|
||||
<#else>
|
||||
<#include "/news.inc.html">
|
||||
</#if>
|
||||
<#include "/fother.inc.html">
|
||||
[/#if]
|
||||
[#else]
|
||||
[#include "/news.inc.html"]
|
||||
[/#if]
|
||||
[#include "/fother.inc.html"]
|
||||
@@ -1,4 +1,5 @@
|
||||
<#include "/header.inc.html">
|
||||
[#ftl]
|
||||
[#include "/header.inc.html"]
|
||||
<script type="text/javascript" src="${basedir}/js/js.cookie-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="${basedir}/js/player.js"></script>
|
||||
<script type="text/javascript">
|
||||
@@ -113,4 +114,4 @@
|
||||
|
||||
<video id="player" class="center-block" controls="controls" preload="none"></video>
|
||||
<br>
|
||||
<#include "/fother.inc.html">
|
||||
[#include "/fother.inc.html"]
|
||||
@@ -1,4 +1,5 @@
|
||||
<#include "/header.inc.html">
|
||||
[#ftl]
|
||||
[#include "/header.inc.html"]
|
||||
<hr>
|
||||
<p>
|
||||
Частенько бывает, что желанный фильм, мультфильм или сериал располагается только на одном каком-то кино-ресурсе.
|
||||
@@ -24,4 +25,4 @@
|
||||
</p>
|
||||
<hr>
|
||||
<p>Автор: <a href="http://dmitriymx.ru">DmitriyMX</a> / 2015</p>
|
||||
<#include "/fother.inc.html">
|
||||
[#include "/fother.inc.html"]
|
||||
Reference in New Issue
Block a user