本文整理汇总了PHP中osc_logged_user_email函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_logged_user_email函数的具体用法?PHP osc_logged_user_email怎么用?PHP osc_logged_user_email使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_logged_user_email函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: email_text
public static function email_text()
{
if (osc_logged_user_email() == '') {
$value = self::default_email_text();
}
parent::generic_input_text('alert_email', $value);
return true;
}
示例2: your_email
public static function your_email()
{
if (Session::newInstance()->_getForm("yourEmail") != "") {
$email = Session::newInstance()->_getForm("yourEmail");
parent::generic_input_text("yourEmail", $email, null, false);
} else {
parent::generic_input_text("yourEmail", osc_logged_user_email(), null, false);
}
return true;
}
示例3: osc_item_id
" method="post" >
<input type="hidden" name="action" value="send_friend_post" />
<input type="hidden" name="page" value="item" />
<input type="hidden" name="id" value="<?php
echo osc_item_id();
?>
" />
<?php
if (osc_is_web_user_logged_in()) {
?>
<input type="hidden" name="yourName" value="<?php
echo osc_esc_html(osc_logged_user_name());
?>
" />
<input type="hidden" name="yourEmail" value="<?php
echo osc_logged_user_email();
?>
" />
<?php
} else {
?>
<div class="control-group">
<label class="control-label" for="yourName"><?php
_e("Your name", 'bender');
?>
</label>
<div class="controls ">
<?php
SendFriendForm::your_name();
?>
</div>
示例4: payment_pro_cart_get
<?php
require_once PAYMENT_PRO_PATH . 'CheckoutDataTable.php';
$products = payment_pro_cart_get();
$extra = array('user' => osc_logged_user_id(), 'email' => osc_logged_user_email());
$checkoutDataTable = new CheckoutDataTable();
$checkoutDataTable->table($products);
$aData = $checkoutDataTable->getData();
$aRawRows = $checkoutDataTable->rawRows();
$columns = $aData['aColumns'];
$rows = $aData['aRows'];
?>
<style type="text/css">
.payments-ul {
list-style-type:none;
}
.payments-ul li
{
display: inline-block;
}
.payments-preview {
float:left;
width: 40%;
}
.payments-options {
float:left;
width: 60%;
}
table.table {
width: 100%;
max-width: 100%;
示例5: dd_userpic
function dd_userpic()
{
if (function_exists("profile_picture_show")) {
current_user_picture();
} else {
?>
<img src="http://www.gravatar.com/avatar/<?php
echo md5(strtolower(trim(osc_logged_user_email())));
?>
?s=20&d=<?php
echo osc_current_web_theme_url('images/user-default.jpg');
?>
" />
<?php
}
}
示例6: item_comments
//.........这里部分代码省略.........
<?php
echo osc_comments_pagination();
?>
</div>
</div>
<?php
}
?>
<div class="comment_form">
<h2>
<?php
_e('Leave your comment', 'pop');
?>
</h2>
<div class="resp-wrapper">
<ul id="comment_error_list" class="error_list">
</ul>
<form action="<?php
echo osc_base_url(true);
?>
" method="post" name="comment_form" id="comment_form">
<fieldset>
<input type="hidden" name="action" value="add_comment" />
<input type="hidden" name="page" value="item" />
<input type="hidden" name="id" value="<?php
echo osc_item_id();
?>
" />
<?php
if (osc_is_web_user_logged_in()) {
?>
<input type="hidden" name="authorName" value="<?php
echo osc_esc_html(osc_logged_user_name());
?>
" />
<input type="hidden" name="authorEmail" value="<?php
echo osc_logged_user_email();
?>
" />
<?php
} else {
?>
<div class="form-group col-md-6">
<label class="control-label" for="authorName">
<?php
_e('Name', 'pop');
?>
</label>
<div class="controls">
<?php
CommentForm::author_input_text();
?>
</div>
</div>
<div class="form-group col-md-6">
<label class="control-label" for="authorEmail">
<?php
_e('Email', 'pop');
?>
</label>
<div class="controls">
<?php
CommentForm::email_input_text();
?>
</div>
</div>
<?php
}
?>
<div class="form-group col-md-12">
<label class="control-label" for="body">
<?php
_e('Comment', 'pop');
?>
</label>
<div class="controls textarea">
<?php
CommentForm::body_input_textarea();
?>
</div>
</div>
<div class="actions col-md-12">
<button type="submit" class="btn btn-primary">
<?php
_e('Send', 'pop');
?>
</button>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<?php
}
?>
<?php
}
示例7: your_email
public static function your_email()
{
parent::generic_input_text("yourEmail", osc_logged_user_email(), null, false);
return true;
}