Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Began building articles component.
Browse files Browse the repository at this point in the history
Updated default.conf to point / to frontpage foundation.
  • Loading branch information
mchisari authored and The Appleseed Project committed Oct 5, 2010
1 parent f7a6747 commit 377b792
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 1 deletion.
32 changes: 32 additions & 0 deletions components/articles/articles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
/**
* @version $Id$
* @package Appleseed.Components
* @subpackage Articles
* @copyright Copyright (C) 2004 - 2010 Michael Chisari. All rights reserved.
* @link http://opensource.appleseedproject.org
* @license GNU General Public License version 2.0 (See LICENSE.txt)
*/

// Restrict direct access
defined( 'APPLESEED' ) or die( 'Direct Access Denied' );

/** Articles Component
*
* Articles Component Entry Class
*
* @package Appleseed.Components
* @subpackage Articles
*/
class cArticles extends cComponent {

/**
* Constructor
*
* @access public
*/
public function __construct ( ) {
parent::__construct();
}

}
36 changes: 36 additions & 0 deletions components/articles/controllers/articles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* @version $Id$
* @package Appleseed.Components
* @subpackage Articles
* @copyright Copyright (C) 2004 - 2010 Michael Chisari. All rights reserved.
* @link http://opensource.appleseedproject.org
* @license GNU General Public License version 2.0 (See LICENSE.txt)
*/

// Restrict direct access
defined( 'APPLESEED' ) or die( 'Direct Access Denied' );

/** Articles Component Controller
*
* Articles Component Controller Class
*
* @package Appleseed.Components
* @subpackage Articles
*/
class cArticlesArticlesController extends cController {

/**
* Constructor
*
* @access public
*/
public function __construct ( ) {
parent::__construct( );
}

function Display ( $pView = null, $pData = array ( ) ) {
return ( parent::Display( $pView, $pData ) );
}

}
2 changes: 2 additions & 0 deletions components/articles/views/articles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Newswire Title</h1>

3 changes: 3 additions & 0 deletions foundations/default/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ routes[example/(.*)]="/example/example.php"
; Appleseed Routes
; ----------------

[frontpage]
routes[/]="frontpage/frontpage.php"

[photos]
;routes[profile/(.*)/photos]="photos/sets.php"
;routes[profile/(.*)/photos/(.*)]="photos/photos.php"
Expand Down
86 changes: 86 additions & 0 deletions foundations/default/frontpage/frontpage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="en">

<head>

<!-- Meta -->
<meta charset="utf-8" />

<!-- Title -->
<title><?php echo __("Frontpage | Appleseed"); ?></title>

<!-- Links -->
<?php $zApp->Theme->UseStyles (); ?>

<!-- Javascript -->
<!--[if IE]>
<script src="/themes/default/style/html5.js"></script>
<![endif]-->

<!-- Load JLoader framework -->
<script type="text/javascript" src="/libraries/javascript/jloader.init.js"></script>
<script type="text/javascript" src="/foundations/default/default.js"></script>

<!-- Load JQuery -->
<script type="text/javascript" src="/libraries/external/JQuery-1.4.2/jquery-1.4.2.min.js"></script>

<!-- Load JQuery::UI -->
<script type="text/javascript" src="/libraries/external/JQuery-1.4.2/plugins/jquery-ui-1.8.2.custom.min.js"></script>

<!-- Load JQuery::Validation -->
<script type="text/javascript" src="/libraries/external/JQuery-1.4.2/plugins/jquery.validate.js"></script>

<!-- Load JQuery::Preload -->
<script type="text/javascript" src="/libraries/external/JQuery-1.4.2/plugins/jquery.preload-min.js"></script>

</head>

<body id="www-website-com">

<!-- System Message -->
<?php $zApp->Components->Go ( "system" ); ?>

<div class="clear"></div>

<!-- Header -->
<header id="appleseed-header">
<?php $zApp->Components->Go ( "header" ); ?>
</header>

<div id="appleseed-logo"></div>

<div id="appleseed-container" class="container_16">

<div id="appleseed-frontpage" class="container_16">
<div id="appleseed-frontpage-menu" class="container_16">
</div>

<div id="appleseed-frontpage-main" class="grid_16">
<div id="appleseed-frontpage-info" class="grid_4 alpha">
<section id="frontpage-login">
<?php $zApp->Components->Go ( "login", "login", "login" ); ?>
</section>

<?php $zApp->Components->Go ( "appleseed", "appleseed", "donate" ); ?>

</div>
<div id="appleseed-frontpage-content" class="grid_12 omega">
<section id="frontpage-content">
<?php $zApp->Components->Go ( "articles", "articles", "articles" ); ?>
</section>
</div>
</div>
</div>

</div>

<div class="clear"></div>

<footer id="appleseed-footer" class="container_16">
<?php $zApp->Components->Go ( "footer" ); ?>
</footer>

<div class="clear"></div>

</body>
</html>
2 changes: 1 addition & 1 deletion system/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function Route ( ) {
foreach ( $routes as $r => $route ) {
$r = strtolower ( ltrim ( rtrim ( $r, '/' ), '/' ) );

if ( !$r ) continue;
if ( (!$route) and (!$r) ) continue;

$pattern = '/^' . addcslashes ($r, '/') . '$/';

Expand Down
10 changes: 10 additions & 0 deletions themes/default/style/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,16 @@

#appleseed-404-info { float:left; }

/* Login */
#appleseed-frontpage { float:left; background-color:#f1fed5; min-height:840px; }
#appleseed-frontpage-menu { height:80px; background-color:#c0d895; border-bottom:1px solid #80af1f; }

#appleseed-frontpage-info { float:left; }

#appleseed-frontpage-info #frontpage-login fieldset { width:198px; }
#appleseed-frontpage-info #frontpage-login input { width:95px; margin-left:10px; }
#appleseed-frontpage-info #frontpage-login label { width:75px; padding:0; }

/* Login */
#appleseed-login { float:left; background-color:#f1fed5; min-height:840px; }
#appleseed-login-menu { height:80px; background-color:#c0d895; border-bottom:1px solid #80af1f; }
Expand Down

0 comments on commit 377b792

Please sign in to comment.