本文整理汇总了PHP中__e函数的典型用法代码示例。如果您正苦于以下问题:PHP __e函数的具体用法?PHP __e怎么用?PHP __e使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了__e函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: check_updates
public function check_updates()
{
$exist = $this->session->userdata('user_data');
$result = array();
foreach ($exist as $feed_id => $feed) {
$flag = 0;
$user_data[$feed_id]['likes'] = $this->get_feed_like_count($feed_id);
$user_data[$feed_id]['comments'] = $this->get_feed_comment_count($feed_id);
if ($exist[$feed_id]['likes'] != $user_data[$feed_id]['likes'] || $exist[$feed_id]['comments'] != $user_data[$feed_id]['comments']) {
$flag = 1;
}
$user_data[$feed_id]['comment_details'] = array();
$comments = $this->get_feed_comment($feed_id);
foreach ($comments as $comment) {
$user_data[$feed_id]['comment_details'][$comment->tc_feed_comment_id] = $this->get_comment_likes($comment->tc_feed_comment_id);
if (isset($exist[$feed_id]['comment_details'][$comment->tc_feed_comment_id])) {
if ($exist[$feed_id]['comment_details'][$comment->tc_feed_comment_id] != $user_data[$feed_id]['comment_details'][$comment->tc_feed_comment_id]) {
$flag = 1;
} else {
$flag = 1;
}
}
}
if ($flag == 1) {
$result[$feed_id] = $user_data[$feed_id];
}
}
__e($exist);
__e($result);
__e($user_data);
return $result;
}
示例2: test__e
public function test__e()
{
ob_start();
__e("<br />\n");
$output = ob_get_clean();
$this->assertEquals("<br />\n", $output);
}
示例3: not_compatible_notice
function not_compatible_notice()
{
?>
<div class="error">
<p><?php
__e('This plugin is only multisite compatible.', 'siw');
?>
</p>
</div>
<?php
}
示例4: uploadparent
public function uploadparent()
{
$this->data['file_error'] = "";
__e($this->input->post());
if ($this->input->post('upload')) {
$file = $this->do_upload('parent');
$file_path = "./media/uploads/parent/" . $file;
if ($this->csvimport->get_array($file_path)) {
$csv_array = $this->csvimport->get_array($file_path);
foreach ($csv_array as $parent) {
$this->admin->upload_parent($parent);
}
redirect('admin/user/inesertparent');
} else {
echo "file not found";
die;
}
}
$this->data['inner_nav'] = 5;
$this->data['view_file'] = 'user/uploadparent';
echo Modules::run('template/admin', $this->data);
}
示例5: __e
?>
</td>
</tr>
<tr>
<th><p>希望されるサンプル<strong>※</strong></p></th>
<td>
<?php
__e($mailform->getMultiSelectedValue('interesting_items'));
?>
</td>
</tr>
<tr>
<th><p>ご希望の時間帯<strong>※</strong></p></th>
<td>
<?php
__e($mailform->getSelectedValue('time'));
?>
</td>
</tr>
</table>
</div>
<ul class="btnbox cfx">
<input type="reset" class="btnreset" onclick="javascript:history.back();" value="前の画面に戻って編集">
<input type="submit" class="btnconf" name="mailform-complete-submit" value="送信する">
</ul>
</form>
</div><!--/formarea-->
</div><!-- /contact -->
</body>
</html>
示例6: javascript_link_tag
echo javascript_link_tag(__('Remove user from this scope'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __e('Remove this user?') . "', '" . __e('Are you sure you want to remove this user from the current scope? The users login is kept, and you can re-add the user later.') . "', {yes: {click: function() {TBG.Config.User.remove('" . make_url('configure_users_delete_user', array('user_id' => $user->getID())) . "', " . $user->getID() . "); TBG.Main.Helpers.Dialog.dismiss(); } }, no: {click: TBG.Main.Helpers.Dialog.dismiss}});"));
?>
</li>
<?php
} else {
?>
<li><?php
echo javascript_link_tag(__('Cancel invitation'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __e('Cancel membership in this scope?') . "', '" . __e('If you cancel the invitation to this scope, then this user will be notified and the unconfirmed membership removed from this scope.') . "', {yes: {click: function() {TBG.Config.User.remove('" . make_url('configure_users_delete_user', array('user_id' => $user->getID())) . "', " . $user->getID() . "); TBG.Main.Helpers.Dialog.dismiss(); } }, no: {click: TBG.Main.Helpers.Dialog.dismiss}});"));
?>
</li>
<?php
}
?>
<?php
} else {
?>
<li class="disabled"><a href="javascript:void(0);" onclick="TBG.Main.Helpers.Message.error('<?php
echo __e('This user cannot be removed');
?>
', '<?php
echo __e('This is a system user which cannot be removed');
?>
');" class="disabled"><?php
echo __('Delete this user');
?>
</a></li>
<?php
}
?>
</ul>
</td>
示例7: eat
private function eat(FinalClass $num, FinalClass $nums)
{
__e($num, $nums);
}
示例8: header
//Send 404 headers...
header('HTTP/1.1 404 Not Found');
header('Status: 404 Not Found');
include_once 'engine/engine.inc';
$page = new Page();
$page->printHead(__('Error 404 (Page Not Found)'), TAB_HOME);
$page->printHeading(__('Page Not Found...'));
$page->printPara(__('For some reason (mis-typed URL, faulty referral from another site, out-of-date search engine listing or we simply deleted a file) the page you were looking for could not be found.'), __('This site has recently undergone a major re-working, so that might explain why you got this page instead.'));
$page->printSubHeading(__('Were you looking for...'));
?>
<ul>
<li><?php
__e('<a href="%s">Download</a>?', $translations->prepareLink('/{lang}/#download'));
?>
</li>
<li><?php
__e('<a href="%s">Screenshots</a>?', $translations->prepareLink('/{lang}/screenshots/'));
?>
</li>
<li><?php
__e('<a href="%s">Support</a>?', $translations->prepareLink('/{lang}/#support'));
?>
</li>
<li><?php
__e('<a href="%s">Translations</a>?', $translations->prepareLink('/{lang}/translations/'));
?>
</li>
</ul>
<?php
$page->printFoot();
示例9: foreach
<?php
foreach ($key_headers as $key => $val) {
?>
<tr id="<?php
__e($key);
?>
" class="<?php
odd_even(++$i);
?>
">
<th><?php
__e($val);
?>
</th>
<td class="center" id="<?php
__e($object . '-' . $i . '-' . $key);
?>
"><?php
__ed($key, $object_data);
?>
</td>
</tr>
<?php
}
?>
<?php
}
?>
</tbody>
</table>
</form>
示例10: switch
<?php
}
?>
<div style="line-height: 1.4; word-break: break-all; word-wrap: break-word; -ms-word-break: break-all; <?php
if (!isset($include_issue_title) || $include_issue_title == false) {
?>
margin-top: -7px; margin-bottom: 10px;<?php
}
?>
">
<?php
switch ($log_action['change_type']) {
case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CREATED:
echo '<i>' . __('Issue created') . '</i>';
if (isset($include_details) && $include_details) {
echo '<div class="timeline_inline_details">' . nl2br(__e($issue->getDescription())) . '</div>';
}
break;
case \thebuggenie\core\entities\tables\Log::LOG_COMMENT:
$comment = \thebuggenie\core\entities\Comment::getB2DBTable()->selectById((int) $log_action['text']);
echo '<div class="timeline_inline_details">';
echo nl2br(tbg_truncateText(tbg_decodeUTF8($comment->getContent())));
echo '</div>';
break;
case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CLOSE:
echo '<span class="issue_closed"><i>' . __('Issue closed %text', array('%text' => $log_action['text'])) . '</i></span>';
break;
case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_REOPEN:
echo '<i>' . __('Issue reopened') . '</i>';
break;
case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_UPDATE:
示例11: __e
<!-- start: Content -->
<div id="content" class="span10">
<ul class="breadcrumb">
<li>
<i class="icon-home"></i>
<a href="<?php
__e(base_url("admin/dashboard"));
?>
">Home</a>
<i class="icon-angle-right"></i>
</li>
</ul>
<?php
__e($action_messages);
示例12: sendComplete
function sendComplete()
{
$this->saved->updateQuick('tm_finished', $this->getDi()->sqlDateTime);
$total = $this->saved->count_users;
$this->view->assign('title', ___('Email Sent'));
ob_start();
$queue_id = $this->getFiltered('queue_id');
print '<div class="info">';
__e('E-Mail has been successfully sent to %s customers. E-Mail Batch ID is %s', $total, $queue_id);
print '. ';
$url = $this->getUrl(null, 'index');
print '<a href="' . $url . '">' . ___('Send New E-Mail') . '</a></div>';
$this->view->assign('content', ob_get_clean());
$this->view->display('admin/layout.phtml');
}
示例13: make_url
<li class="epic" id="epic_<?php
echo $epic->getId();
?>
" data-issue-id="<?php
echo $epic->getID();
?>
" data-assign-issue-url="<?php
echo make_url('agile_assignepic', array('project_key' => $board->getProject()->getKey(), 'epic_id' => $epic->getID()));
?>
" title="<?php
echo __e($epic->getFormattedTitle(true, false));
?>
" data-shortname="<?php
echo __e($epic->getShortname());
?>
">
<?php
include_component('agile/colorpicker', array('issue' => $epic));
?>
<div class="planning_indicator" id="issue_<?php
echo $epic->getId();
?>
_indicator" style="display: none;"><?php
echo image_tag('spinning_30.gif');
?>
</div>
<a class="epic_name" href="<?php
echo make_url('viewissue', array('issue_no' => $epic->getFormattedIssueNo(), 'project_key' => $epic->getProject()->getKey()));
?>
"><?php
echo $epic->getTitle();
示例14: __
echo __('%save or %cancel', array('%save' => '<input type="submit" value="' . __('Save') . '">', '%cancel' => '<a href="#" onclick="$(\'shortname_change\').hide(); return false;">' . __('cancel') . '</a>'));
?>
</form>
</li>
<li id="shortname_spinning" style="margin-top: 3px; display: none;"><?php
echo image_tag('spinning_20.gif', array('style' => 'float: left; margin-right: 5px;')) . ' ' . __('Please wait');
?>
...</li>
<li id="shortname_change_error" class="error_message" style="display: none;"></li>
</ul>
<?php
}
?>
<span id="shortname_name"><?php
if ($issue->hasShortname()) {
echo __e($issue->getShortname());
}
?>
</span>
<span class="faded_out" id="no_shortname"<?php
if ($issue->hasShortname()) {
?>
style="display: none;"<?php
}
?>
><?php
echo __('No label set');
?>
</span>
</dd>
</dl>
示例15: Page
<?php
$page = new Page();
$page->printHead(__('Screenshots'));
$page->printHeading(__('Screenshots'));
$page->printSubHeading(__('Main Window'));
?>
<a href="/sites/screenshots/frhed_main_window.png" target="_blank"><img src="/sites/screenshots/frhed_main_window_small.png" alt="<?php
__e('Main Window');
?>
" style="border:none;" /></a>
<?php
$page->printPara(__('The main window from Frhed.'));
$page->printFoot();