本文整理汇总了PHP中osc_logged_user_name函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_logged_user_name函数的具体用法?PHP osc_logged_user_name怎么用?PHP osc_logged_user_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_logged_user_name函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: your_name
public static function your_name()
{
if (Session::newInstance()->_getForm("yourName") != "") {
$name = Session::newInstance()->_getForm("yourName");
parent::generic_input_text("yourName", $name, null, false);
} else {
parent::generic_input_text("yourName", osc_logged_user_name(), null, false);
}
return true;
}
示例2: logo_header
?>
"><?php
echo logo_header();
?>
</a>
<div id="user_menu">
<ul>
<?php
if (osc_users_enabled()) {
?>
<?php
if (osc_is_web_user_logged_in()) {
?>
<li class="first logged">
<?php
echo sprintf(__('Hi %s', 'realestate'), osc_logged_user_name() . '!');
?>
•
<strong><a href="<?php
echo osc_user_dashboard_url();
?>
"><?php
_e('My account', 'realestate');
?>
</a></strong> ·
<a href="<?php
echo osc_user_logout_url();
?>
"><?php
_e('Logout', 'realestate');
?>
示例3: sprintf
<?php
if (osc_is_static_page() || osc_is_contact_page()) {
?>
<li class="search"><a class="ico-search icons" data-bclass-toggle="display-search"></a></li>
<li class="cat"><a class="ico-menu icons" data-bclass-toggle="display-cat"></a></li>
<?php
}
?>
<?php
if (osc_users_enabled()) {
?>
<?php
if (osc_is_web_user_logged_in()) {
?>
<li class="first logged"> <span><?php
echo sprintf(__('Hi %s', OSCLASSWIZARDS_THEME_FOLDER), osc_logged_user_name() . '!');
?>
</span> ❘ <a href="<?php
echo osc_user_dashboard_url();
?>
"><i class="fa fa-user"></i>
<?php
_e('My account', OSCLASSWIZARDS_THEME_FOLDER);
?>
</a> ❘ <a href="<?php
echo osc_user_logout_url();
?>
"><i class="fa fa-sign-out"></i>
<?php
_e('Logout', OSCLASSWIZARDS_THEME_FOLDER);
?>
示例4: nc_osc_get_logged_user_ref_date
<h6 style="color:#ffffff; text-align:center; padding-bottom:20px; border-bottom:1px solid #404040;">Member Since <?php
echo nc_osc_get_logged_user_ref_date();
?>
</h6>
<?php
echo osc_private_user_menu();
?>
</div>
</div>
<div class="col-md-9 col-sm-12 col-xs-12">
<table class="table table-striped">
<thead>
<tr>
<th><?php
echo sprintf(__('Listings from %s', 'classified'), osc_logged_user_name());
?>
</th>
<th>Posted on</th>
<th>Price</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<?php
if (osc_count_items() == 0) {
?>
<tr>
<h3><?php
_e('No listings have been added yet', 'classified');
示例5: osc_show_widgets
<div class="clear"></div>
<?php
osc_show_widgets('footer');
?>
<div id="footer">
<div class="wrapper">
<ul class="resp-toggle">
<?php
if (osc_users_enabled()) {
?>
<?php
if (osc_is_web_user_logged_in()) {
?>
<li>
<?php
echo sprintf(__('Hi %s', 'bender'), osc_logged_user_name() . '!');
?>
·
<strong><a href="<?php
echo osc_user_dashboard_url();
?>
"><?php
_e('My account', 'bender');
?>
</a></strong> ·
<a href="<?php
echo osc_user_logout_url();
?>
"><?php
_e('Logout', 'bender');
?>
示例6: osc_current_web_theme_path
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
osc_current_web_theme_path('header.php');
?>
<div class="content user-area">
<div id="right-side">
<h1><?php
_e('User account manager', 'realestate');
?>
</h1>
<h2><?php
echo sprintf(__('listings from %s', 'realestate'), osc_logged_user_name());
?>
</h2>
<div class="ad_list">
<?php
if (osc_count_items() == 0) {
?>
<h3><?php
_e('No listings have been added yet', 'realestate');
?>
</h3>
<?php
} else {
?>
<?php
while (osc_has_items()) {
示例7: sprintf
<?php
if (osc_is_static_page() || osc_is_contact_page()) {
?>
<li class="search"><a class="ico-search icons" data-bclass-toggle="display-search"></a></li>
<li class="cat"><a class="ico-menu icons" data-bclass-toggle="display-cat"></a></li>
<?php
}
?>
<?php
if (osc_users_enabled()) {
?>
<?php
if (osc_is_web_user_logged_in()) {
?>
<li class="first logged"> <span><?php
echo sprintf(__('Hi %s', 'osclasswizards'), osc_logged_user_name() . '!');
?>
</span> <strong><a href="<?php
echo osc_user_dashboard_url();
?>
">
| <?php
_e('My account', 'osclasswizards');
?>
</a></strong> <a href="<?php
echo osc_user_logout_url();
?>
">
| <?php
_e('Log out', 'osclasswizards');
?>
示例8: 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>
示例9: osc_item_post_url_in_category
<ul class="nav secondary-nav">
<?php
if (osc_users_enabled()) {
?>
<?php
if (osc_is_web_user_logged_in()) {
?>
<li><a id="new_post" href="<?php
echo osc_item_post_url_in_category();
?>
"><button class="small btn"><?php
_e("New Post", 'twitter_bootstrap');
?>
</button></a></li>
<!--li><p><?php
printf(__('Hi %s', 'twitter_bootstrap'), osc_logged_user_name() . '!');
?>
·</p></li-->
<li><a href="<?php
echo osc_user_dashboard_url();
?>
"><?php
_e('My account', 'twitter_bootstrap');
?>
</a> </li>
<li><a href="<?php
echo osc_user_logout_url();
?>
"><?php
_e('Logout', 'twitter_bootstrap');
?>
示例10: osc_current_web_theme_path
</head>
<body>
<?php
osc_current_web_theme_path('header.php');
?>
<div class="container user">
<div class="row">
<div class="span16 columns">
<?php
twitter_user_menu();
?>
<?php
twitter_show_flash_message();
?>
<h2><?php
printf(__('Latest items of %s', 'twitter'), osc_logged_user_name());
?>
</h2>
</div>
</div>
<?php
if (osc_count_items() == 0) {
?>
<div class="row">
<div class="span16 columns">
<h4><?php
_e("You don't have any items yet", 'twitter');
?>
</h4>
</div>
</div>
示例11: _e
?>
<div class="content user_account">
<h1>
<strong><?php
_e('User account manager', 'modern');
?>
</strong>
</h1>
<div id="sidebar">
<?php
echo osc_private_user_menu();
?>
</div>
<div id="main">
<h2><?php
echo sprintf(__('Items from %s', 'modern'), osc_logged_user_name());
?>
</h2>
<?php
if (osc_count_items() == 0) {
?>
<h3><?php
_e('No items have been added yet', 'modern');
?>
</h3>
<?php
} else {
?>
<?php
while (osc_has_items()) {
?>
示例12: osc_base_url
echo osc_base_url();
?>
"><?php
echo logo_header();
?>
</a>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 text-right">
<div class="login">
<h4>
<?php
if (osc_is_web_user_logged_in()) {
?>
<span><?php
echo sprintf(__('Hi %s', 'classified'), osc_logged_user_name() . '! ');
?>
</span>
<span><a class="my_account" href="<?php
echo osc_user_dashboard_url();
?>
"><?php
_e('My account', 'classified');
?>
</a></span>
<?php
if (nc_osc_get_post_ads_settings()) {
echo "<a class='post_an_ad' href=" . osc_item_post_url() . ">Post an Ad</a>";
}
?>
<span><a class="log_out" href="<?php
示例13: nc_osc_get_picture_link
<?php
}
?>
</li>
<?php
if (osc_is_web_user_logged_in()) {
?>
<li>
<img id='ppicture_header' src='<?php
echo nc_osc_get_picture_link();
?>
' name='ppicture' alt='default' width="30" height="30"/>
</li>
<li>
<?php
echo sprintf(__('Hi %s', 'nepcoders'), osc_logged_user_name() . '!');
?>
·
</li>
<li>
<strong><a href="<?php
echo osc_user_dashboard_url();
?>
"><?php
_e('My account', 'nepcoders');
?>
</a></strong> ·
</li>
<li>
<a href="<?php
echo osc_user_logout_url();
示例14: _e
</label><br/>
<label><?php
_e('Item', 'modern');
?>
: <a href="<?php
echo osc_item_url();
?>
"><?php
echo osc_item_title();
?>
</a></label><br/>
<?php
if (osc_is_web_user_logged_in()) {
?>
<input type="hidden" name="yourName" value="<?php
echo osc_logged_user_name();
?>
" />
<input type="hidden" name="yourEmail" value="<?php
echo osc_logged_user_email();
?>
" />
<?php
} else {
?>
<label for="yourName"><?php
_e('Your name', 'modern');
?>
</label> <?php
ContactForm::your_name();
?>
示例15: logo_header
?>
"><?php
echo logo_header();
?>
</a>
<div id="user_menu">
<ul>
<?php
if (osc_users_enabled()) {
?>
<?php
if (osc_is_web_user_logged_in()) {
?>
<li class="first logged">
<?php
echo sprintf(__('Hi %s', 'modern'), osc_logged_user_name() . '!');
?>
·
<strong><a href="<?php
echo osc_user_dashboard_url();
?>
"><?php
_e('My account', 'modern');
?>
</a></strong> ·
<a href="<?php
echo osc_user_logout_url();
?>
"><?php
_e('Logout', 'modern');
?>