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

Changeset 11239 for OpenPNE3/trunk/apps


Ignore:
Timestamp:
Apr 8, 2009, 1:45:52 PM (13 years ago)
Author:
ShogoKawahara
Message:

#3691:added gadgets for login screen of the mobile

Location:
OpenPNE3/trunk/apps
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/config/mobile_frontendConfiguration.class.php

    r11111 r11239  
    2727      ini_set('session.use_trans_sid', 1);
    2828    }
     29
     30    sfWidgetFormSchema::setDefaultFormFormatterName('mobile');
    2931  }
    3032}
  • OpenPNE3/trunk/apps/mobile_frontend/modules/default/actions/components.class.php

    r10277 r11239  
    1919  {
    2020  }
     21
     22  public function executeFreeAreaBox()
     23  {
     24  }
     25
     26  public function executeLoginFormBox()
     27  {
     28    $this->forms = $this->getUser()->getAuthForms();
     29  }
    2130}
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/actions/actions.class.php

    r11224 r11239  
    5757
    5858    return parent::executeHome($request);
     59  }
     60
     61 /**
     62  * Executes login action
     63  *
     64  * @param sfWebRequest $request A request object
     65  */
     66  public function executeLogin($request)
     67  {
     68    $gadgets = GadgetPeer::retrieveGadgetsByTypesName('mobileLogin');
     69    $this->mobileLoginContentsGadgets = $gadgets['mobileLoginContents'];
     70     
     71    return parent::executeLogin($request);
    5972  }
    6073
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/loginSuccess.php

    r8757 r11239  
    1 <?php foreach ($forms as $form) : ?>
    2 
    3 <?php include_login_parts('Login', $form, 'member/login'); ?>
    4 
     1<?php if (isset($mobileLoginContentsGadgets)) : ?>
     2<?php foreach ($mobileLoginContentsGadgets as $gadget) : ?>
     3<?php if ($gadget->isEnabled()) : ?>
     4<?php include_component($gadget->getComponentModule(), $gadget->getComponentAction(), array('gadget' => $gadget)) ?>
     5<?php endif; ?>
    56<?php endforeach; ?>
     7<?php endif; ?>
  • OpenPNE3/trunk/apps/pc_backend/modules/design/actions/actions.class.php

    r11224 r11239  
    149149    $this->gadgetConfig = sfConfig::get('op_mobile_gadget_list');
    150150
     151    return sfView::SUCCESS;
     152  }
     153
     154  /**
     155   * Executes mobile login gadget plot action
     156   *
     157   * @param sfWebRequest $request A request object
     158   */
     159  public function executeMobileLoginGadgetPlot(sfWebRequest $request)
     160  {
     161    $this->gadgets = GadgetPeer::retrieveGadgetsByTypesName('mobileLogin');
     162    $this->gadgetConfig = sfConfig::get('op_mobile_login_gadget_list');
     163   
    151164    return sfView::SUCCESS;
    152165  }
  • OpenPNE3/trunk/apps/pc_backend/modules/design/config/view.yml

    r10800 r11239  
    2525mobileHomeGadgetPlotSuccess:
    2626  <<: *homeGadgetPlotSuccess
     27
     28mobileLoginGadgetPlotSuccess:
     29  <<: *homeGadgetPlotSuccess
  • OpenPNE3/trunk/apps/pc_backend/modules/design/templates/_plotGadget.php

    r11224 r11239  
    11<div id="plot<?php echo ucfirst($type) ?>">
     2<?php if ($gadgets instanceof sfOutputEscaperArrayDecorator) : ?>
    23<?php foreach ($gadgets as $gadget) : ?>
    34<div class="sortable" id="plot<?php echo ucfirst($type) ?>_gadget_<?php echo $gadget->getId() ?>">
     
    78</div>
    89<?php endforeach; ?>
     10<?php endif; ?>
    911<div class="emptyGadget">
    1012<?php echo link_to_function(__('ガジェットを追加'), 'showModalOnParent(\''.url_for('design/addGadget?type='.$type).'\')') ?>
Note: See TracChangeset for help on using the changeset viewer.