This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continued rounding out the articles and frontpage component/foundation.
Added the profile/page foundation.
- Loading branch information
mchisari
authored and
The Appleseed Project
committed
Oct 5, 2010
1 parent
5be2520
commit 08c466b
Showing
13 changed files
with
373 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/** | ||
* @version $Id$ | ||
* @package Appleseed.Components | ||
* @subpackage Tabs | ||
* @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 Tabs Controller Class | ||
* | ||
* @package Appleseed.Components | ||
* @subpackage Articles | ||
*/ | ||
class cArticlesTabsController extends cController { | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @access public | ||
*/ | ||
public function __construct ( ) { | ||
parent::__construct( ); | ||
} | ||
|
||
public function Display ( $pView = null, $pData = array ( ) ) { | ||
|
||
$this->_Current = $this->Talk ( 'User', 'Current' ); | ||
$parameters['account'] = $this->_Current->Account; | ||
$access = $this->Talk ( "Security", "Access", $parameters ); | ||
|
||
if ( ( $this->_Current ) && ( $access->Get ( "Admin" ) ) ) { | ||
$this->View = $this->GetView ( "tabs.admin" ); | ||
} else if ( $this->_Current ) { | ||
$this->View = $this->GetView ( "tabs.current" ); | ||
} else { | ||
$this->View = $this->GetView ( "tabs" ); | ||
} | ||
|
||
$this->_Prep(); | ||
|
||
$this->View->Display(); | ||
|
||
return ( true ); | ||
} | ||
|
||
private function _Prep ( ) { | ||
|
||
$parts = explode ( $this->GetSys ( "Router" )->Get ( "Base" ), $_SERVER['REQUEST_URI'] ); | ||
|
||
$concern = $parts[1]; | ||
|
||
$this->View->Find ( "[class=articles-read-tab]", 0 )->class .= " selected "; | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
<nav class="pagination"> | ||
</nav> | ||
|
||
<h1>Article Summaries Title</h1> | ||
|
||
<ul class="article-list"> | ||
<li class="article-summary"> | ||
<article> | ||
<a href=""><img src="http://community.appleseed/?_social=true&_task=user.icon&_request=abed&_width=64&_height=64" border="0" /></a> | ||
<h2 class="title" ></h2> | ||
<h3 class="subtitle" > Posted By <a class="localuser" href="http://community.appleseed/profile/abed/">Abed</a></span> </h3> | ||
<time class="article-timestamp" datetime="2010-05-19T20:27:47-07:00" pubdate> | ||
Sep 16, 2010 @ 12:09pm | ||
</time> | ||
<p class="summary"> | ||
</p> | ||
<nav class="readmore"> | ||
<a href="articles/0000000033/#comments">0 Comment(s)</a> | ||
<a href="articles/0000000033/">Read More</a> | ||
</nav> | ||
</article> | ||
</li> | ||
</ul> | ||
|
||
<nav class="pagination"> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<ul> | ||
<li class="articles-read-tab"><a href="/articles/">Read Articles</a></li> | ||
<li class="articles-submit-tab"><a href="/articles/submit/">Submit An Article</a></li> | ||
<li class="articles-queue-tab"><a href="/articles/queue/">Article Queue</a></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<ul> | ||
<li class="articles-read-tab"><a href="/articles/">Read Articles</a></li> | ||
<li class="articles-submit-tab"><a href="/articles/submit/">Submit An Article</a></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<ul> | ||
<li class="articles-read-tab"><a href="/articles/">Read Articles</a></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<!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"> | ||
<nav id="articles-tabs" class="grid_9 push_4"> | ||
<?php $zApp->Components->Go ( "articles", "tabs", "tabs" ); ?> | ||
</nav> | ||
</div> | ||
|
||
<div id="appleseed-frontpage-main" class="grid_16"> | ||
<div id="appleseed-frontpage-info" class="grid_4 alpha"> | ||
<?php $zApp->Components->Go ( "login", "login", "login" ); ?> | ||
|
||
<?php $zApp->Components->Go ( "login", "login", "remote" ); ?> | ||
|
||
<?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", "summaries", "summaries" ); ?> | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
|
||
<!-- Meta --> | ||
<meta charset="utf-8" /> | ||
|
||
<!-- Title --> | ||
<title><?php echo __("Page"); ?></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"> | ||
|
||
<?php $zApp->Components->Go ( "system" ); ?> | ||
|
||
<div class="clear"></div> | ||
|
||
<!-- System Message --> | ||
<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-profile" class="container_16"> | ||
<div id="appleseed-profile-status" class="container_16"> | ||
<div id="status-container" class="grid_12 push_4"> | ||
<?php $zApp->Components->Go ( "profile", "status", "status" ); ?> | ||
</div> | ||
</div> | ||
<div id="appleseed-profile-menu" class="container_16"> | ||
<nav id="profile-tabs" class="grid_9 push_4"> | ||
<?php $zApp->Components->Go ( "profile", "tabs", "tabs" ); ?> | ||
</nav> | ||
<div id="profile-search" class="grid_3 push_4"> | ||
<?php $zApp->Components->Go ( "search", "search", "local" ); ?> | ||
</div> | ||
</div> | ||
|
||
<div id="appleseed-profile-main" class="grid_16"> | ||
<div id="appleseed-profile-info" class="grid_4 alpha"> | ||
<div id="profile-photo"> | ||
<?php $zApp->Components->Go ( "photos", "profile", "profile" ); ?> | ||
</div> | ||
<div id="profile-contact"> | ||
<?php $zApp->Components->Go ( "profile", "contact", "contact" ); ?> | ||
</div> | ||
<div id="profile-summary"> | ||
<?php $zApp->Components->Go ( "profile", "summary", "summary" ); ?> | ||
</div> | ||
<div id="profile-mutual"> | ||
<?php $zApp->Components->Go ( "friends", "mutual", "summary" ); ?> | ||
</div> | ||
</div> | ||
<div id="appleseed-profile-content" class="grid_12 omega"> | ||
<?php $zApp->Components->Go ( "profile", "page", "page" ); ?> | ||
</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> |
Oops, something went wrong.