本文整理汇总了PHP中op_mobile_page_title函数的典型用法代码示例。如果您正苦于以下问题:PHP op_mobile_page_title函数的具体用法?PHP op_mobile_page_title怎么用?PHP op_mobile_page_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了op_mobile_page_title函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: op_mobile_page_title
<?php
if ($category) {
echo op_mobile_page_title(__('Confirmation List'), __($config[$category]));
} else {
echo op_mobile_page_title(__('Confirmation List'));
}
?>
<?php
$list_html = array();
if (count($list)) {
echo __('You have the following pending requests. Select "Accept" or "Reject".');
?>
<br>
<br>
<?php
foreach ($list as $item) {
slot('_list_html');
foreach ($item['list'] as $k => $v) {
echo __($k);
?>
:<br>
<?php
if (isset($v['link'])) {
echo link_to($v['text'], $v['link']);
} else {
echo $v['text'];
}
?>
<br>
示例2: op_mobile_page_title
<?php
op_mobile_page_title(__('Diary of %1%', array('%1%' => $member->name)), $diary->title);
use_helper('opDiary');
?>
<?php
echo op_within_page_link();
echo op_format_date($diary->created_at, 'XDateTime');
if ($diary->member_id === $sf_user->getMemberId()) {
?>
[<?php
echo link_to(__('Edit'), 'diary_edit', $diary);
?>
][<?php
echo link_to(__('Delete'), 'diary_delete_confirm', $diary);
?>
]
<?php
}
?>
<br>
<?php
echo op_decoration(nl2br($diary->body));
?>
<br>
<?php
if ($diary->has_images) {
foreach ($diary->getDiaryImages() as $image) {
示例3: op_mobile_page_title
<?php
op_mobile_page_title(__('Invite App'), $application->getTitle());
?>
<?php
if ($pager && $pager->getRawValue() instanceof sfPager && $pager->getNbResults()) {
echo __('Select the member who wants to invite to this App.');
?>
<hr color="<?php
echo $op_color['core_color_12'];
?>
">
<center>
<?php
op_include_pager_total($pager);
?>
</center>
<?php
if (count($ids)) {
if (1 === count($ids)) {
echo __('1 member has been selected.');
} else {
echo __('%0% members has been selected.', array('%0%' => count($ids)));
}
}
?>
<?php
echo $form->renderFormTag(url_for('@application_invite?id=' . $memberApplication->getId()));
示例4: op_mobile_page_title
<?php
op_mobile_page_title($member->getName(), __('Photo'));
?>
<center>
<?php
$images = $member->getMemberImage();
for ($i = 0; $i < 3 && $i < count($images); $i++) {
$image = $images[$i];
echo op_image_tag_sf_image($image->getFile(), array('size' => '120x120', 'format' => 'jpg'));
?>
<br>
<?php
echo '[' . link_to(__('Expansion'), sf_image_path($image->getFile(), array('size' => '320x320', 'format' => 'jpg'))) . ']';
?>
<br><br>
<?php
}
?>
</center>
<?php
slot('op_mobile_footer_menu');
echo op_link_to_member($member, array('link_target' => __("%1%'s Profile", array('%1%' => $member->getName()))));
end_slot();
示例5: op_mobile_page_title
<?php
op_mobile_page_title($community->getName(), __('Create a new topic'));
?>
<?php
op_include_form('formCommunityTopic', $form, array('url' => url_for('communityTopic_create', $community), 'button' => __('Create')));
示例6: op_mobile_page_title
<?php
op_mobile_page_title(__('Edit profile'));
?>
<?php
op_include_form('profileForm', array($memberForm, $profileForm), array('url' => url_for('@member_editProfile'), 'align' => 'center', 'button' => __('Save')));
示例7: op_mobile_page_title
<?php
op_mobile_page_title($id === $sf_user->getMemberId() ? __('My Activities') : __('Activities of %0%', array('%0%' => $member->getName())));
if ($pager->getNbResults()) {
?>
<center>
<?php
op_include_pager_total($pager);
?>
</center>
<?php
include_partial('default/activityBox', array('title' => '', 'activities' => $pager->getResults()));
op_include_pager_navigation($pager, 'member/showActivity?page=%d&id=' . $id);
} else {
op_include_parts('box', 'ActivityBox', array('body' => __('There is no activity.')));
}
示例8: op_mobile_page_title
<?php
op_mobile_page_title(__('Diaries of %my_friend%', array('%my_friend%' => $op_term['my_friend']->pluralize()->titleize())));
use_helper('opDiary');
?>
<?php
if ($pager->getNbResults()) {
?>
<center>
<?php
op_include_pager_total($pager);
?>
</center>
<?php
$list = array();
foreach ($pager->getResults() as $diary) {
$list[] = sprintf("%s<br>%s (%s)", op_format_date($diary->created_at, 'XDateTime'), link_to(op_diary_get_title_and_count($diary, false, 28), 'diary_show', $diary), $diary->Member->name);
}
$options = array('border' => true);
op_include_list('diaryList', $list, $options);
echo op_include_pager_navigation($pager, '@diary_list_friend?page=%d', array('is_total' => false));
?>
<?php
} else {
?>
<?php
echo __('There are no diaries.');
示例9: op_mobile_page_title
<?php
op_mobile_page_title(__('Recently Posted %Community% Events'));
?>
<?php
if ($pager->getNbResults()) {
use_helper('Date');
?>
<center>
<?php
echo pager_total($pager);
?>
</center>
<?php
$list = array();
foreach ($pager->getResults() as $event) {
$list[] = sprintf("%s<br>%s (%s)", op_format_date($event->getUpdatedAt(), 'XDateTime'), link_to(sprintf("%s(%d)", op_truncate($event->getName(), 28), $event->getCommunityEventComment()->count()), '@communityEvent_show?id=' . $event->getId()), op_truncate($event->getCommunity()->getName(), 28));
}
$options = array('border' => true);
op_include_list('communityList', $list, $options);
?>
<?php
if ($pager->haveToPaginate()) {
op_include_pager_navigation($pager, '@communityEvent_recently_event_list?page=%d', array('is_total' => false));
}
?>
示例10: op_mobile_page_title
<?php
op_mobile_page_title(__('Search Communities'));
?>
<?php
if ($isResult) {
if ($pager->getNbResults()) {
?>
<center>
<?php
op_include_pager_total($pager);
?>
</center>
<?php
$list = array();
foreach ($pager->getResults() as $community) {
$list[] = link_to(sprintf('%s(%d)', $community->getName(), $community->countCommunityMembers()), '@community_home?id=' . $community->getId());
}
$option = array('border' => true);
op_include_list('communityList', $list, $option);
op_include_pager_navigation($pager, 'community/search?page=%d', array('is_total' => false, 'use_current_query_string' => true));
} else {
echo __('Your search queries did not match any communities.');
}
}
?>
<?php
$options = array('url' => url_for('community/search'), 'button' => __('Search'), 'method' => 'get', 'align' => 'center');
if (!$isResult) {
示例11: op_mobile_page_title
<?php op_mobile_page_title(__('Do you really delete it?')) ?>
<?php op_include_parts('yesNo', 'delete_introfriend', array(
'yes_form' => new BaseForm(),
'yes_method' => 'post',
'no_method' => 'get',
'no_url' => $uri,
)) ?>
示例12: op_mobile_page_title
<?php
op_mobile_page_title($community->getName(), __('Event Members'));
?>
<center>
<?php
op_include_pager_total($pager);
?>
</center>
<?php
$list = array();
foreach ($pager->getResults() as $member) {
$list[] = link_to(sprintf('%s(%d)', $member->getName(), $member->countFriends()), 'member/profile?id=' . $member->getId());
}
$option = array('border' => true);
op_include_list('memberList', $list, $option);
?>
<?php
op_include_pager_navigation($pager, '@communityEvent_memberList?page=%d&id=' . $communityEvent->getId(), array('is_total' => false));
示例13: op_mobile_page_title
<?php
if ($pager->getNbResults()) {
op_mobile_page_title(__('Pageview logs'));
?>
<?php
echo __('Pageview Logs of %1%', array('%1%' => $sf_user->getMember()->getName()));
?>
<hr color="#b3ceef">
<?php
echo __('Pageview %d Count', array('%d' => $count));
?>
<hr color="#b3ceef">
<table width="100%">
<?php
foreach ($pager->getResults() as $ashiato) {
?>
<tr><td bgcolor="<?php
echo cycle_vars($id, '#e0eaef,#ffffff');
?>
">
<?php
echo op_format_date($ashiato->max_updated_at, 'XDateTime');
?>
<?php
if ($ashiato->Member_2 && $ashiato->Member_2->id) {
?>
<?php
示例14: op_mobile_page_title
<?php
op_mobile_page_title(__('Delete the diary'));
?>
<?php
echo __('Do you really delete this diary?');
?>
<br>
<br>
<form action="<?php
echo url_for('diary_delete', $diary);
?>
" method="post">
<?php
echo $form[$form->getCSRFFieldName()];
?>
<input type="submit" value="<?php
echo __('Delete');
?>
"><br>
</form>
<?php
echo link_to(__('Back'), 'diary_show', $diary);
示例15: op_mobile_page_title
<?php
op_mobile_page_title(__('%Friend% list'));
?>
<center>
<?php
op_include_pager_total($pager);
?>
</center>
<?php
$list = array();
foreach ($pager->getResults() as $member) {
$list[] = op_link_to_member($member->getId(), '@obj_member_profil', array('link_target' => sprintf('%s(%d)', $member->getName(), $member->countFriends())));
}
$option = array('border' => true);
op_include_list('friendList', $list, $option);
?>
<?php
op_include_pager_navigation($pager, 'friend/list?page=%d&id=' . $id, array('is_total' => false));
?>
<br>
<?php
if ($relation->isSelf()) {
slot('op_mobile_footer_menu');
echo link_to(__('Manage %friend%'), 'friend/manage');
end_slot();
}