ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 8810


Ignore:
Timestamp:
Oct 26, 2008, 1:44:50 PM (12 years ago)
Author:
ebihara
Message:

#2886:designed member/home for mobile phone as a sample

Location:
OpenPNE3/trunk
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/homeSuccess.php

    r8757 r8810  
    1 homeSuccess
    2 <ul>
    3 <li><?php echo link_to('config', 'member/configUID') ?></li>
    4 </ul>
     1<?php include_page_title(OpenPNEConfig::get('sns_name')) ?>
     2
     3<?php
     4$info = array(
     5  'name' => $sf_user->getMember()->getName(),
     6);
     7
     8$menu = array(
     9  'C' => array(
     10    'friend/list' => sprintf('マイフレンド(%s)', $sf_user->getMember()->countFriendsRelatedByMemberIdTo()),
     11    'community/joinlist' => sprintf('参加コミュニティ(%s)', $sf_user->getMember()->countCommunityMembers()),
     12  ),
     13  'D' => array(
     14    'member/profile' => 'プロフィール'
     15  ),
     16);
     17include_home_header_box_parts('menu', $info, $menu)
     18?>
     19
     20<br>
     21
     22<?php
     23$list = array(
     24  'member/editProfile' => array(
     25    'link' => 'プロフィール変更',
     26  ),
     27);
     28include_list_box('profileEdit', $list, '%link%', array('title' => 'プロフィール変更'))
     29?>
     30
     31<?php
     32$list = array(
     33  'member/configUID' => array(
     34    'link' => 'かんたんログイン設定',
     35  ),
     36);
     37include_list_box('configEdit', $list, '%link%', array('title' => '設定変更'))
     38?>
  • OpenPNE3/trunk/lib/helper/PartsHelper.php

    r8764 r8810  
    2626  );
    2727  include_partial('global/partsLogin', $params);
     28}
     29
     30function include_home_header_box_parts($id, $info = array(), $menu = array())
     31{
     32  $params = array(
     33    'id' => $id,
     34    'info' => $info,
     35    'menu' => $menu,
     36  );
     37  include_partial('global/partsHomeHeaderBox', $params);
     38}
     39
     40function include_page_title($title)
     41{
     42  $params = array(
     43    'title' => $title,
     44  );
     45  include_partial('global/partsPageTitle', $params);
     46}
     47
     48function include_list_box($id, $list, $format, $options = array())
     49{
     50  $params = array(
     51    'id' => $id,
     52    'list' => $list,
     53    'format' => $format,
     54    'options' => $options,
     55  );
     56  include_partial('global/partsListBox', $params);
    2857}
    2958
Note: See TracChangeset for help on using the changeset viewer.