Changeset 14937 for events/phpframework
- Timestamp:
- 06/30/08 23:55:04 (5 years ago)
- Location:
- events/phpframework/piece_framework/trunk
- Files:
-
- 3 modified
-
libs/Phwittr/Interceptor/LayoutSetter.php (modified) (1 diff)
-
web/frontend/webapp/config/piece-unity-config.yaml (modified) (1 diff)
-
web/frontend/webapp/templates/Layout/Contents.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/piece_framework/trunk/libs/Phwittr/Interceptor/LayoutSetter.php
r14268 r14937 61 61 public function invoke() 62 62 { 63 $config = $this->_context->getConfiguration(); 63 $viewElement = $this->_context->getViewElement(); 64 $service = new Piece_Unity_Service_Authentication(); 64 65 65 $service = new Piece_Unity_Service_Authentication();66 66 if ($service->isAuthenticated()) { 67 $ config->setConfiguration('Renderer_Runemaster',68 'layoutView', 'Layout_User'69 );67 $viewElement->setElement('isAuthenticated', true); 68 } else { 69 $viewElement->setElement('isAuthenticated', false); 70 70 } 71 71 -
events/phpframework/piece_framework/trunk/web/frontend/webapp/config/piece-unity-config.yaml
r14871 r14937 96 96 - name: layoutView 97 97 type: configuration 98 value: Layout_ Guest98 value: Layout_Contents 99 99 - name: templateDir 100 100 type: configuration -
events/phpframework/piece_framework/trunk/web/frontend/webapp/templates/Layout/Contents.html
r14935 r14937 27 27 <div id="header"> 28 28 <h1><img src="/img/share/phwittr_logo.gif" alt="phwittr" /></h1> 29 <ul id="guideNav"> 29 <ul id="guideNav" if="isAuthenticated"> 30 <li><a href="/home">ホーム</a></li> 31 <li><a href="/account/settings">設定</a></li> 32 <li><a href="/logout">ログアウト</a></li> 33 </ul> 34 <ul id="guideNav" if="!isAuthenticated"> 30 35 <li><a href="/login">ログイン</a></li> 31 36 <li><a href="/signup">ユーザ登録</a></li>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)