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

Changeset 10304


Ignore:
Timestamp:
Jan 22, 2009, 12:10:04 AM (11 years ago)
Author:
ogawa
Message:

#3354:added op_mobile_page_title() to set the op_mobile_header slot easily

Location:
OpenPNE3/trunk
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/editSuccess.php

    r10300 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo $community->getName() ?></a></font><br>
    5 </td></tr>
    6 <tr><td align="center" bgcolor="#DDDDDD">
    7 <font color="#000000"><a name="top"><?php echo __('Edit community') ?></a></font><br>
    8 </td></tr>
    9 </table>
    10 <?php end_slot(); ?>
     1<?php op_mobile_page_title($community->getName(), __('Edit community')) ?>
    112
    123<?php if ($form->isNew()) : ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/homeSuccess.php

    r10300 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo $community->getName() ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title($community->getName()) ?>
    82
    93<table width="100%" bgcolor="#EEEEFF">
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/joinError.php

    r10300 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Error') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Error')) ?>
    82<?php echo __('You are already joined in this community.') ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/joinlistError.php

    r10300 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo $member->getName() ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title($member->getName()) ?>
    82<?php echo __('Community does not exist.') ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/joinlistSuccess.php

    r10292 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo $member->getName() ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title($member->getName()) ?>
     2
    83<center>
    94<?php echo pager_total($pager); ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/memberListError.php

    r10300 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo $community->getName() ?></a></font><br>
    5 </td></tr>
    6 <tr><td align="center" bgcolor="#DDDDDD">
    7 <font color="#000000"><a name="top"><?php echo __('Community member') ?></a></font><br>
    8 </td></tr>
    9 </table>
    10 <?php end_slot(); ?>
     1<?php op_mobile_page_title($community->getName(), __('Community member')) ?>
    112<?php echo __('Community member does not exist.') ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/memberListSuccess.php

    r10300 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo $community->getName() ?></a></font><br>
    5 </td></tr>
    6 <tr><td align="center" bgcolor="#DDDDDD">
    7 <font color="#000000"><a name="top"><?php echo __('Community member') ?></a></font><br>
    8 </td></tr>
    9 </table>
    10 <?php end_slot(); ?>
     1<?php op_mobile_page_title($community->getName(), __('Community member')) ?>
    112
    123<center>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/quitError.php

    r10240 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('エラー') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Error')) ?>
    82コミュニティに参加していません。
  • OpenPNE3/trunk/apps/mobile_frontend/modules/default/templates/errorSuccess.php

    r10300 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Error') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Error')) ?>
    82<?php echo __('Can\'t access this page.') ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/friend/templates/listError.php

    r10302 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Friend list') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Friend list')) ?>
    82<?php echo __('Friend does not exist.') ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/friend/templates/listSuccess.php

    r10302 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Friend list') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Friend list')) ?>
    82
    93<center>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/friend/templates/manageError.php

    r10302 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Manage friend') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Manage friend')) ?>
    82<?php echo __('Friend does not exist.') ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/friend/templates/manageSuccess.php

    r10292 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('フレンド管理') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('フレンド管理')) ?>
    82
    93<center>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/configCompleteSuccess.php

    r10267 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Settings') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Settings')) ?>
     2
    83<form action="<?php echo url_for(sprintf('member/configComplete?token=%s&id=%s&type=%s', $sf_params->get('token'), $sf_params->get('id'), $sf_params->get('type'))) ?>" method="post">
    94<?php echo $form ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/configSuccess.php

    r10256 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Settings') ?></a></font><br>
    5 </td></tr>
    6 <?php if ($categoryName) : ?>
    7 <tr><td align="center" bgcolor="#DDDDDD">
    8 <font color="#000000"><a name="top"><?php echo $categoryCaptions[$categoryName] ?></a></font><br>
    9 </td></tr>
     1<?php if ($categoryName): ?>
     2<?php op_mobile_page_title(__('Settings'), $categoryCaptions[$categoryName]) ?>
     3<?php else: ?>
     4<?php op_mobile_page_title(__('Settings')) ?>
    105<?php endif; ?>
    11 </table>
    12 <?php end_slot(); ?>
    13 <?php if ($categoryName) : ?>
     6
     7<?php if ($categoryName): ?>
    148<form action="<?php echo url_for('member/config?category='.$categoryName) ?>" method="post">
    159<?php echo $form ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/editProfileSuccess.php

    r10256 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Edit profile') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Edit profile')) ?>
     2
    83<form action="<?php echo url_for('member/editProfile') ?>" method="post">
    94<?php echo $memberForm ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/inviteError.php

    r10256 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Invite friends for %1%', array('%1%' => $op_config['sns_name'])) ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Invite friends for %1%', array('%1%' => $op_config['sns_name']))) ?>
    82<?php echo __('Invite is not available.') ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/inviteInput.php

    r10256 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Invite friends for %1%', array('%1%' => $op_config['sns_name'])) ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Invite friends for %1%', array('%1%' => $op_config['sns_name']))) ?>
    82
    93<form action="<?php echo url_for('member/invite') ?>" method="post">
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/inviteSuccess.php

    r10256 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Invite friends for %1%', array('%1%' => $op_config['sns_name'])) ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Invite friends for %1%', array('%1%' => $op_config['sns_name']))) ?>
    82<?php echo __('Successful in invite.') ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/linkError.php

    r10256 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Error') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Error')) ?>
    82<?php echo __('This member is already friend.'); ?>
    93
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/profileSuccess.php

    r10292 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo $member->getName() ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title($member->getName()) ?>
    82
    93<?php if ($member == $sf_user->getMember()) : ?>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/registerMobileToRegisterEndSuccess.php

    r10267 r10304  
    1 <?php slot('op_mobile_header') ?>
    2 <table width="100%">
    3 <tr><td align="center" bgcolor="#0D6DDF">
    4 <font color="#EEEEEE"><a name="top"><?php echo __('Register mobile') ?></a></font><br>
    5 </td></tr>
    6 </table>
    7 <?php end_slot(); ?>
     1<?php op_mobile_page_title(__('Register mobile')) ?>
    82
    93<?php echo __('You register mobile UID.') ?><br>
  • OpenPNE3/trunk/lib/helper/PartsHelper.php

    r10303 r10304  
    158158
    159159/**
     160 * Set the op_mobile_header slot
     161 *
     162 * @param string $title
     163 * @param string $subtitle
     164 */
     165function op_mobile_page_title($title, $subtitle = '')
     166{
     167  $params = array(
     168    'title' => $title,
     169    'subtitle' => $subtitle,
     170  );
     171
     172  slot('op_mobile_header', get_partial('global/partsPageTitle', $params));
     173}
     174
     175/**
    160176 * Includes a login parts.
    161177 *
     
    176192}
    177193
     194/**
     195 * @deprecated since 3.0beta4
     196 */
    178197function include_page_title($title, $subtitle = '')
    179198{
Note: See TracChangeset for help on using the changeset viewer.