OSDN Git Service

ホームレイアウト追加
[trpgtools-onweb/cake-frame.git] / app / views / users / index.ctp
index e3f263b..d44e676 100644 (file)
@@ -1,47 +1,17 @@
+<div id="home" class="layout2colums users view">
 <?php 
 if ($user['User']['id']) {
-       echo $this->renderElement('home', array(
-               'user' => $user,
-               'owner' => true,
-               ));
+//     $user = ;
 }
-?>
+echo $this->renderElement('home_left', array(
+       'user' => $user,
+       'owner' => true,
+));
+
+echo $this->renderElement('home_right', array(
+       'public_characters' => $public_characters,
+));
 
-<p>
-<div class="characters index">
-<h2><?php __('Characters');?></h2>
-<p>
-<dl>
-<?php
-$i = 0;
-foreach ($public_characters as $character):
-       $class = null;
-       if ($i++ % 2 == 0) {
-               $class = ' class="altrow"';
-       }
-?>
-<dt<?php echo $class;?>>
-<?php
-       echo $html->div('characterName', $html->link($character['Character']['name'], array('controller' => 'characters', 'action' => 'view', $character['Character']['id'])));
-       echo $html->div('systemName', $html->link($character['System']['name'], array('controller' => 'systems', 'action' => 'view', $character['System']['id'])));
 ?>
-</dt>
-<dd>
-<?php 
-       $url = array('controller' => 'characters', 'action' => 'view', $character['Character']['id']);
 
-       echo $this->renderElement('character_picture_image', array(
-               'basename' => $character['Character']['main_picture'],
-               'options' => array(
-                       'previewVersion' => 'm',
-                       'class' => 'mainImage',
-                       'url' => $url,
-                       'alt' => $character['Character']['name'],
-               )
-       ));
- ?>
-</dd>
-<?php endforeach; ?>
-</dl>
-</div>
-</p>
+</div>
\ No newline at end of file