Browse Source

Cache blocks progress

Vova Tkach 5 years ago
parent
commit
2d83a25001

+ 3 - 3
assets/template/header_html_file.go

@@ -12,7 +12,7 @@ var VarHeaderHtmlFile = []byte(`<!doctype html>
 		<link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
 		<link rel="stylesheet" href="{{$.System.PathCssLightGallery}}">
 
-		<title>Cached block 1</title>
+		<title>{{$.Data.CachedBlock1}}</title>
 		<meta name="keywords" content="{{$.Data.Page.MetaKeywords}}" />
 		<meta name="description" content="{{$.Data.Page.MetaDescription}}" />
 		<link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
@@ -55,10 +55,10 @@ var VarHeaderHtmlFile = []byte(`<!doctype html>
 			<div id="main">
 				<div class="bg-fave">
 					<div class="container">
-						<h1 class="text-left text-white m-0 p-0 py-5">Cached block 2</h1>
+						<h1 class="text-left text-white m-0 p-0 py-5">{{$.Data.CachedBlock2}}</h1>
 					</div>
 				</div>
-				Cached block 3
+				{{$.Data.CachedBlock3}}
 				<div class="container clear-top">
 					<div class="row pt-4">
 						{{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category")}}

+ 20 - 0
engine/fetdata/fetdata.go

@@ -130,3 +130,23 @@ func (this *FERData) DateTimeFormat(format string) string {
 func (this *FERData) EscapeString(str string) string {
 	return html.EscapeString(str)
 }
+
+func (this *FERData) CachedBlock1() string {
+	return ""
+}
+
+func (this *FERData) CachedBlock2() string {
+	return ""
+}
+
+func (this *FERData) CachedBlock3() string {
+	return ""
+}
+
+func (this *FERData) CachedBlock4() string {
+	return ""
+}
+
+func (this *FERData) CachedBlock5() string {
+	return ""
+}

+ 3 - 3
hosts/localhost/template/header.html

@@ -10,7 +10,7 @@
 		<link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
 		<link rel="stylesheet" href="{{$.System.PathCssLightGallery}}">
 
-		<title>Cached block 1</title>
+		<title>{{$.Data.CachedBlock1}}</title>
 		<meta name="keywords" content="{{$.Data.Page.MetaKeywords}}" />
 		<meta name="description" content="{{$.Data.Page.MetaDescription}}" />
 		<link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
@@ -53,10 +53,10 @@
 			<div id="main">
 				<div class="bg-fave">
 					<div class="container">
-						<h1 class="text-left text-white m-0 p-0 py-5">Cached block 2</h1>
+						<h1 class="text-left text-white m-0 p-0 py-5">{{$.Data.CachedBlock2}}</h1>
 					</div>
 				</div>
-				Cached block 3
+				{{$.Data.CachedBlock3}}
 				<div class="container clear-top">
 					<div class="row pt-4">
 						{{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category")}}