source\lib\gtpublisher\styles\w-website\default.g
1 /******************************************************************************
2 *
3 * Copyright (C) 2006, The Gentee Group. All rights reserved.
4 * This file is part of the Gentee open source project - http://www.gentee.com.
5 *
6 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE GENTEE LICENSE ("AGREEMENT").
7 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS
8 * ACCEPTANCE OF THE AGREEMENT.
9 *
10 * ID: default 17.11.06 0.0.A.
11 *
12 * Author: Alexey Krivonogov ( gentee )
13 *
14 ******************************************************************************/
15
16 include : "standard.g"
17
18 text W_default( gtitem gti )
19 \{
20 str desc title lang prjname url keys edit
21
22 _gtp.prj.get("project/lang", lang )
23 _gtp.prj.get("project/name", prjname )
24
25 gti.getsubitem( "desc", desc )
26 if !*desc : desc = "#/title#"
27
28 gti.getsubitem( "keywords", keys )
29 if !*keys : keys = "#/title#"
30
31 title = "\( prjname ): #/title#"
32 _gtp.geturl( gti, url )
33
34 if !_gtp.prj.find( "project/options", "noedit" )
35 {
36 edit = "<a href=\"/admin/edit.phtml?url=\(url)\">#lng/edit#</a>"
37 }
38
39 }<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>
40 <head>
41 <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
42 <!--meta http-equiv="Content-Language" content="\( lang )"-->
43 <meta NAME="KEYWORDS" CONTENT="\( keys )">
44 <meta NAME="DESCRIPTION" CONTENT="\( desc )">
45 <link rel="icon" href="/favicon.ico" type="image/x-icon">
46 <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
47 <link rel="stylesheet" type="text/css" href="/css/default/styles.css">
48 <script language="JavaScript1.2" src="/css/ddnmenu.js" type="text/javascript"></script>
49 <title>\( title )</title></head>
50 <body>
51 \@header( gti, "" )
52
53 <div id="center" >
54 <div class="left-column">
55 \{
56 str info
57 gti.getsubitem( "info", info )
58 if *info : @info
59
60 @navmenu( gti )
61 }
62 <!--#include virtual="/adv.php" -->
63 </div>
64 <div class="content">
65 \{
66 @grainmenu( gti )
67 }
68 <div class="box"><!--EDIT-->\@content( gti )<!--EDIT-->
69 \@related( gti.name )
70 </div>
71 \(edit)
72 </div>
73 <br style="clear:left">
74 </div>
75
76 <!--#include virtual="/footer.html" -->
77 </body></html>
78 \!
79
80 func W_standard< entry >
81 {
82 str out
83
84 out.fgetdir($_FILE).faddname( "standard.gt")
85 _gtp.read( out )
86 }
87