diff options
-rw-r--r-- | .gitattributes | 3 | ||||
-rw-r--r-- | demos/activeblog/protected/App_Layouts/MainLayout.php | 24 | ||||
-rw-r--r-- | demos/activeblog/protected/App_Layouts/MainLayout.tpl | 23 | ||||
-rw-r--r-- | demos/activeblog/protected/App_Pages/Home.page | 12 | ||||
-rw-r--r-- | demos/activeblog/protected/App_Pages/Home.php | 6 | ||||
-rw-r--r-- | demos/activeblog/protected/application.xml | 6 | ||||
-rw-r--r-- | demos/activeblog/protected/urlmaps.xml | 2 |
7 files changed, 71 insertions, 5 deletions
diff --git a/.gitattributes b/.gitattributes index 97abdcc8..a7050ef7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -645,7 +645,10 @@ buildscripts/wikibuilder/external.png -text buildscripts/wikibuilder/main.css -text demos/activeblog/index.php -text demos/activeblog/protected/.htaccess -text +demos/activeblog/protected/App_Layouts/MainLayout.php -text +demos/activeblog/protected/App_Layouts/MainLayout.tpl -text demos/activeblog/protected/App_Pages/Home.page -text +demos/activeblog/protected/App_Pages/Home.php -text demos/activeblog/protected/application.xml -text demos/activeblog/protected/urlmaps.xml -text demos/address-book/index.php -text 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 © 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 © 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 © <%= 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> |