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

Ignore:
Timestamp:
Mar 24, 2009, 9:26:22 PM (13 years ago)
Author:
ShogoKawahara
Message:

#3684:added parameter in member_config for difference of application

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/actions/actions.class.php

    r11013 r11151  
    2929    $this->mobileContentsGadgets = GadgetPeer::retrieveMobileContentsGadgets();
    3030    $this->mobileBottomGadgets = GadgetPeer::retrieveMobileBottomGadgets();
     31
     32    $this->categories = sfConfig::get('openpne_member_category');
     33    $this->categoryCaptions = array();
     34    $attributes = sfConfig::get('openpne_member_category_attribute');
     35    foreach ($this->categories as $key => $value)
     36    {
     37      $title = $key;
     38     
     39      if (isset($attributes[$key]['enable_mobile']))
     40      {
     41        if (!$attributes[$key]['enable_mobile'])
     42        {
     43          unset($this->categories[$key]);
     44          continue;
     45        }
     46      }
     47
     48      if (!empty($attributes[$key]['caption']))
     49      {
     50        $title = $attributes[$key]['caption'];
     51      }
     52
     53      $this->categoryCaptions[$key] = $title;
     54    }
     55   
    3156
    3257    return parent::executeHome($request);
Note: See TracChangeset for help on using the changeset viewer.