Permalink
Browse files

Initial layout

  • Loading branch information...
1 parent 096d5d9 commit 460297899bb41e654af26f6bcb337955f607c216 @weierophinney committed Oct 18, 2010
View
@@ -1,7 +1,8 @@
mobile-app=/home/matthew/git/zf-examples/mobile-app CD=. filter="*.php *.phtml *.txt *.xml *.json *.css *.js *.sql .htaccess" {
application=application {
Bootstrap.php
- configs=configs {
+ configs=configs filter="*.ini *.json *.yaml *.xml *.php" {
+ application.ini
wurfl-config.php
}
controllers=controllers {
@@ -13,6 +13,8 @@ resources.useragent.wurflapi.wurfl_api_version = "1.1"
resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl-php-1.1/WURFL/"
resources.useragent.wurflapi.wurfl_config_file = APPLICATION_PATH "/configs/wurfl-config.php"
+resources.view.doctype = "XHTML1_STRICT"
+
[staging : production]
[testing : production]
@@ -1 +1,22 @@
-<?php echo $this->layout()->content; ?>
+<?php
+$this->placeholder('sidebar')
+ ->setPrefix('<ul class="sidebar">')
+ ->setPostfix('</ul>');
+$this->headTitle('Mobile Device Demo')
+ ->setSeparator(' - ');
+
+echo $this->doctype() ?>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
+<?php
+ echo $this->headTitle();
+ echo $this->headStyle();
+ echo $this->headScript();
+?>
+</head>
+<body>
+<?php echo $this->placeholder('sidebar') ?>
+<?php echo $this->layout()->content; ?>
+</body>
+</html>
@@ -1,43 +1,21 @@
-<style>
- a:link,
- a:visited
- {
- color: #0398CA;
- }
-
- span#zf-name
- {
- color: #91BE3F;
- }
-
- div#welcome
- {
- color: #FFFFFF;
- background-image: url(http://framework.zend.com/images/bkg_header.jpg);
- width: 600px;
- height: 400px;
- border: 2px solid #444444;
- overflow: hidden;
- text-align: center;
- }
-
- div#more-information
- {
- background-image: url(http://framework.zend.com/images/bkg_body-bottom.gif);
- height: 100%;
- }
-</style>
<div id="welcome">
- <h1>Welcome to the <span id="zf-name">Zend Framework!</span></h1>
+ <h1>Mobile Device Demonstration Application</span></h1>
+
+ <p>
+ This application is intended to show off some of the features of
+ <a href="http://framework.zend.com/">Zend Framework 1.11's</a> mobile
+ capabilities.
+ </p>
+</div>
- <h3>This is your project's main page</h3>
+<?php $this->placeholder('sidebar')->captureStart() ?>
+ <li><a href="<?php echo $this->url(array(
+ 'controller' => 'mobile',
+ 'action' => 'details',
+ ), 'default') ?>">List of mobile capabilities</a></li>
- <div id="more-information">
- <p><img src="http://framework.zend.com/images/PoweredBy_ZF_4LightBG.png" /></p>
- <p>
- Helpful Links: <br />
- <a href="http://framework.zend.com/">Zend Framework Website</a> |
- <a href="http://framework.zend.com/manual/en/">Zend Framework Manual</a>
- </p>
- </div>
-</div>
+ <li><a href="<?php echo $this->url(array(
+ 'controller' => 'mobile',
+ 'action' => 'dojo',
+ ), 'default') ?>">dojox.mobile</a></li>
+<?php $this->placeholder('sidebar')->captureEnd() ?>

0 comments on commit 4602978

Please sign in to comment.