-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #720 from nishizoe/t-4698
(refs #4698, BP from #4696) スマートフォン版に Information ガジェットを追加
- Loading branch information
Showing
14 changed files
with
242 additions
and
3 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
apps/pc_frontend/modules/community/templates/_smtCautionAboutChangeAdminRequest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php if ($communityCount): ?> | ||
<hr class="toumei" /> | ||
<p class="caution"> | ||
<?php echo __('You\'ve gotten %1% %community% administrator taking over requests', array('%1%' => $communityCount)) ?> | ||
<br /> | ||
<?php echo link_to(__('Go to Confirmation Page'), '@confirmation_list?category=community_admin_request') ?> | ||
</p> | ||
<?php endif; ?> | ||
|
8 changes: 8 additions & 0 deletions
8
apps/pc_frontend/modules/community/templates/_smtCautionAboutCommunityMemberPre.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php if ($communityMembersCount): ?> | ||
<hr class="toumei" /> | ||
<p class="caution"> | ||
<?php echo __('You\'ve gotten %1% one\'s %community% joining requests', array('%1%' => $communityMembersCount)); ?> | ||
<br /> | ||
<?php echo link_to(__('Go to Confirmation Page'), '@confirmation_list?category=community_confirm') ?> | ||
</p> | ||
<?php endif; ?> |
9 changes: 9 additions & 0 deletions
9
apps/pc_frontend/modules/community/templates/_smtCautionAboutSubAdminRequest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php if ($communityCount): ?> | ||
<hr class="toumei" /> | ||
<p class="caution"> | ||
<?php echo __('You\'ve gotten %1% %community% sub-administrator requests', array('%1%' => $communityCount)) ?> | ||
<br /> | ||
<?php echo link_to(__('Go to Confirmation Page'), '@confirmation_list?category=community_sub_admin_request') ?> | ||
</p> | ||
<?php endif; ?> | ||
|
66 changes: 66 additions & 0 deletions
66
apps/pc_frontend/modules/confirmation/templates/smtListSuccess.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php slot('op_sidemenu'); ?> | ||
<?php | ||
$categoryList = array(); | ||
foreach ($config as $k => $v) | ||
{ | ||
$categoryList[$k] = link_to(__($v), '@confirmation_list?category='.$k); | ||
} | ||
|
||
op_include_parts('pageNav', 'pageNav', array('list' => $categoryList, 'current' => $category)); | ||
?> | ||
<?php end_slot(); ?> | ||
|
||
<?php if (count($list)): ?> | ||
<div class="row"> | ||
<div class="gadget_header span12"><?php echo __($config[$category]) ?></div> | ||
</div> | ||
<div class="row"> | ||
<div class="pad12"> | ||
<?php echo __('You have the following pending requests. Select "Accept" or "Reject".') ?> | ||
</div> | ||
|
||
<?php foreach ($list as $item): ?> | ||
<div class="pad12"> | ||
<?php echo $form->renderFormTag(url_for('@confirmation_decision?id='.$item['id'].'&category='.$category)) ?> | ||
<?php echo $form->renderHiddenFields() ?> | ||
|
||
<table class="smt-table" style="width: 100%;"> | ||
<?php foreach ($item['list'] as $k => $v): ?> | ||
<tr> | ||
<th style="width: 40%; "><?php echo __($k) ?></th> | ||
<td> | ||
<?php if ($k == '%nickname%'): ?> | ||
<div style="margin-bottom: 3px;"> | ||
<?php echo link_to(op_image_tag_sf_image($item['image']['url'], array('size' => '76x76', 'style' => 'width: 32px;')), $item['image']['link']); ?> | ||
</div> | ||
<?php endif; ?> | ||
<?php if (isset($v['link'])): ?> | ||
<?php echo link_to(nl2br($v['text']), $v['link']) ?> | ||
<?php else: ?> | ||
<?php echo nl2br($v['text']) ?> | ||
<?php endif; ?> | ||
</td> | ||
</tr> | ||
<?php endforeach; ?> | ||
<tr class="operation"> | ||
<td colspan="3"> | ||
<input type="submit" name="accept" value="<?php echo __('Accept') ?>" class="input_submit" /> | ||
<input type="submit" value="<?php echo __('Reject') ?>" class="input_submit" /> | ||
</td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</table> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<?php else: ?> | ||
<div class="row"> | ||
<div class="gadget_header span12"><?php echo __($config[$category]) ?></div> | ||
</div> | ||
<div class="row"> | ||
<div class="pad12"> | ||
<?php echo __('You don\'t have any pending requests') ?> | ||
</div> | ||
</div> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
apps/pc_frontend/modules/default/templates/_smtInformationBox.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
op_include_parts('smtInformationBox', 'information_'.$gadget->getId(), array('body' => $gadget->getRawValue()->getConfig('value'))) | ||
?> |
12 changes: 12 additions & 0 deletions
12
apps/pc_frontend/modules/friend/templates/_smtCautionAboutFriendPre.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php if ($sf_user->getMember()->countFriendPreTo()) : ?> | ||
<hr class="toumei" /> | ||
<p class="caution"> | ||
<?php | ||
echo __('You\'ve gotten %1% %friend% requests', array( | ||
'%1%' => $sf_user->getMember()->countFriendPreTo(), | ||
)); | ||
?> | ||
<br /> | ||
<?php echo link_to(__('Go to Confirmation Page'), '@confirmation_list?category=friend_confirm') ?> | ||
</p> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php $options->setDefault('single', true) ?> | ||
<div class="row"> | ||
<div class="gadget_header span12"><?php echo __('Information') ?></div> | ||
</div> | ||
<div class="row"> | ||
<div class="pad12"> | ||
<?php include_customizes($id, 'bodyTop') ?> | ||
<?php include_customizes('information', 'bodyTop') ?> | ||
<?php echo $options->getRaw('body') ?> | ||
<?php include_customizes('information', 'bodyBottom') ?> | ||
<?php include_customizes($id, 'bodyBottom') ?> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters