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

Changeset 6571


Ignore:
Timestamp:
Apr 16, 2008, 8:19:24 PM (12 years ago)
Author:
ebihara
Message:

#135:f_homeにフレンドの最新アルバムを表示するようにした

Location:
OpenPNE/trunk/webapp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/album.php

    r6570 r6571  
    5858 * @param int $count
    5959 * @param int $u viewer's member_id
    60  */
    61 function db_album_get_c_album_subject_list4c_member_id($c_member_id, $count= 10 ,$u = null)
    62 {
    63     $pf_condition = db_album_public_flag_condition($c_member_id, $u);
     60 * @param string $force
     61 */
     62function db_album_get_c_album_subject_list4c_member_id($c_member_id, $count= 10, $u = null, $force = null)
     63{
     64    $pf_condition = db_album_public_flag_condition($c_member_id, $u, $force);
    6465    $sql = 'SELECT * FROM c_album WHERE c_member_id = ? '
    6566         . $pf_condition
  • OpenPNE/trunk/webapp/modules/pc/page/f_home.php

    r6527 r6571  
    5353        $c_diary_list = db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, $u);
    5454        $this->set('c_diary_list', $c_diary_list);
     55        if (OPENPNE_USE_ALBUM) {
     56            // アルバム
     57            $this->set('c_album_list', db_album_get_c_album_subject_list4c_member_id($target_c_member_id, 5, $u));
     58        }
    5559
    5660        // --- f_home, h_prof 共通処理
  • OpenPNE/trunk/webapp/modules/pc/page/h_prof.php

    r4933 r6571  
    1818        $this->set('is_friend', 0);
    1919        $this->set('c_diary_list', db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, null, 'friend'));
     20
     21        if (OPENPNE_USE_ALBUM) {
     22            // アルバム
     23            $this->set('c_album_list', db_album_get_c_album_subject_list4c_member_id($target_c_member_id, 5, null, 'friend'));
     24        }
    2025
    2126        // --- f_home, h_prof 共通処理
  • OpenPNE/trunk/webapp/modules/pc/templates/inc_f_home_h_prof.tpl

    r6410 r6571  
    331331</td></tr>
    332332({/if})
     333({if $c_album_list})
     334<tr><th>最新アルバム</th><td>
     335<dl class="articleList">
     336({foreach from=$c_album_list item=item})
     337<dt>({$item.u_datetime|date_format:"%m月%d日"})</dt><dd><a href="({t_url m=pc a=page_fh_album})&amp;target_c_album_id=({$item.c_album_id})">({$item.subject|t_truncate:30})</a></dd>
     338({/foreach})
     339</dl>
     340<div class="moreInfo"><ul class="moreInfo">
     341<li><a href="({t_url m=pc a=page_fh_album_list})&amp;target_c_member_id=({$target_c_member_id})">もっと読む</a></li>
     342</ul></div>
     343</td></tr>
     344({/if})
    333345</table>
    334346</div></div>
Note: See TracChangeset for help on using the changeset viewer.