summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorjrags <>2007-02-21 05:38:16 +0000
committerjrags <>2007-02-21 05:38:16 +0000
commit9e0fb737a5b60bb738dfd8c7c4a5b90953eea2a7 (patch)
tree3a0436e6834adadba2535b4a67825589b39f5686 /demos
parent2aa645dd2697838711df45e4d2694a7001c1c58d (diff)
Forgot a few things with activeblog
Diffstat (limited to 'demos')
-rw-r--r--demos/activeblog/protected/App_Layouts/MainLayout.php24
-rw-r--r--demos/activeblog/protected/App_Layouts/MainLayout.tpl23
-rw-r--r--demos/activeblog/protected/App_Pages/Home.page12
-rw-r--r--demos/activeblog/protected/App_Pages/Home.php6
-rw-r--r--demos/activeblog/protected/application.xml6
-rw-r--r--demos/activeblog/protected/urlmaps.xml2
6 files changed, 68 insertions, 5 deletions
diff --git a/demos/activeblog/protected/App_Layouts/MainLayout.php b/demos/activeblog/protected/App_Layouts/MainLayout.php
new file mode 100644
index 00000000..e307aaed
--- /dev/null
+++ b/demos/activeblog/protected/App_Layouts/MainLayout.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * MainLayout class file
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2006 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id: MainLayout.php 1398 2006-09-08 19:31:03Z xue $
+ */
+
+/**
+ * MainLayout class
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2006 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ */
+class MainLayout extends TTemplateControl
+{
+}
+
+?> \ No newline at end of file
diff --git a/demos/activeblog/protected/App_Layouts/MainLayout.tpl b/demos/activeblog/protected/App_Layouts/MainLayout.tpl
new file mode 100644
index 00000000..2cabbfed
--- /dev/null
+++ b/demos/activeblog/protected/App_Layouts/MainLayout.tpl
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
+
+<com:THead Title=<%$ SiteName %> >
+<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
+<meta http-equiv="Pragma" content="no-cache"/>
+<meta http-equiv="Cache-Control" content="no-cache"/>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<meta http-equiv="content-language" content="en"/>
+</com:THead>
+
+<body>
+<com:TForm>
+
+<com:TContentPlaceHolder ID="Main" />
+
+<div id="footer">
+Copyright &copy; <%= date('Y') %> <%$ SiteOwner %>.<br/>
+<%= Prado::poweredByPrado() %>
+
+</com:TForm>
+</body>
+</html> \ No newline at end of file
diff --git a/demos/activeblog/protected/App_Pages/Home.page b/demos/activeblog/protected/App_Pages/Home.page
index ff226d4e..a750c44c 100644
--- a/demos/activeblog/protected/App_Pages/Home.page
+++ b/demos/activeblog/protected/App_Pages/Home.page
@@ -1 +1,11 @@
-<h1>Welcome to Prado!</h1> \ No newline at end of file
+<com:TContent ID="Main">
+ <h1>Welcome to Prado!</h1>
+
+ <ul>
+ <li>Login Module</li>
+ <li>Search Module</li>
+ <li>Rss Feed Service</li>
+ <li>Active Controls</li>
+ <li>Active Record interface</li>
+ </ul>
+</com:TContent> \ No newline at end of file
diff --git a/demos/activeblog/protected/App_Pages/Home.php b/demos/activeblog/protected/App_Pages/Home.php
new file mode 100644
index 00000000..e4bda2c3
--- /dev/null
+++ b/demos/activeblog/protected/App_Pages/Home.php
@@ -0,0 +1,6 @@
+<?php
+class Home extends TPage
+{
+
+}
+?> \ No newline at end of file
diff --git a/demos/activeblog/protected/application.xml b/demos/activeblog/protected/application.xml
index 75ba3b06..06481acc 100644
--- a/demos/activeblog/protected/application.xml
+++ b/demos/activeblog/protected/application.xml
@@ -25,11 +25,11 @@
</paths>
<parameters>
+ <parameter id ="SiteName" value="Prado Active Blog"/>
+ <parameter id="SiteOwner" value="Your Name Here"/>
<parameter id="SiteOffline" value="False"/>
-
<!-- Are we allowing signups -->
<parameter id="AllowRegister" value="True"/>
-
<!-- Email Controls -->
<parameter id="DisableEmails" value="False"/>
</parameters>
@@ -96,7 +96,7 @@
BaseUrl="/App_Themes" />
</modules>
-<!-- <pages MasterClass="Application.App_Layouts.DefaultLayout" />-->
+ <pages MasterClass="Application.App_Layouts.MainLayout" />
</service>
</services>
</application> \ No newline at end of file
diff --git a/demos/activeblog/protected/urlmaps.xml b/demos/activeblog/protected/urlmaps.xml
index b8894155..e0352e88 100644
--- a/demos/activeblog/protected/urlmaps.xml
+++ b/demos/activeblog/protected/urlmaps.xml
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<urls>
- <url CaseSensitive="False" ServiceParameter="Home" pattern="/Home/?"/>
+ <url CaseSensitive="False" ServiceParameter="Home" pattern="Home/?"/>
</urls>