当前位置: 首页>>代码示例>>PHP>>正文


PHP osc_logged_user_name函数代码示例

本文整理汇总了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;
 }
开发者ID:mylastof,项目名称:os-class,代码行数:10,代码来源:Contact.form.class.php

示例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() . '!');
        ?>
 &bull;
                        <strong><a href="<?php 
        echo osc_user_dashboard_url();
        ?>
"><?php 
        _e('My account', 'realestate');
        ?>
</a></strong> &middot;
                        <a href="<?php 
        echo osc_user_logout_url();
        ?>
"><?php 
        _e('Logout', 'realestate');
        ?>
开发者ID:blairmain,项目名称:theme-realestate,代码行数:31,代码来源:header.php

示例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> &#10072; <a href="<?php 
        echo osc_user_dashboard_url();
        ?>
"><i class="fa fa-user"></i>&nbsp;
          <?php 
        _e('My account', OSCLASSWIZARDS_THEME_FOLDER);
        ?>
          </a> &#10072; <a href="<?php 
        echo osc_user_logout_url();
        ?>
"><i class="fa fa-sign-out"></i>&nbsp;
          <?php 
        _e('Logout', OSCLASSWIZARDS_THEME_FOLDER);
        ?>
开发者ID:bomvendador,项目名称:soroka_r,代码行数:31,代码来源:header.php

示例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');
开发者ID:Ashishr2,项目名称:Kathmandu,代码行数:31,代码来源:user-dashboard.php

示例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() . '!');
        ?>
  &middot;
                    <strong><a href="<?php 
        echo osc_user_dashboard_url();
        ?>
"><?php 
        _e('My account', 'bender');
        ?>
</a></strong> &middot;
                    <a href="<?php 
        echo osc_user_logout_url();
        ?>
"><?php 
        _e('Logout', 'bender');
        ?>
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:footer.php

示例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()) {
开发者ID:blairmain,项目名称:theme-realestate,代码行数:31,代码来源:user-dashboard.php

示例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');
        ?>
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:header.php

示例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>
开发者ID:oanav,项目名称:closetshare,代码行数:67,代码来源:functions.php

示例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() . '!');
        ?>
  &middot;</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');
        ?>
开发者ID:nsswaga,项目名称:OSClass,代码行数:31,代码来源:header.php

示例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>
开发者ID:ricktaylord,项目名称:osclass-themes,代码行数:31,代码来源:user-dashboard.php

示例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()) {
        ?>
开发者ID:randomecho,项目名称:OSClass,代码行数:31,代码来源:user-dashboard.php

示例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() . '!  ');
    ?>
&nbsp;&nbsp;&nbsp;</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 
开发者ID:jhalendra,项目名称:classmandu,代码行数:31,代码来源:header3.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() . '!');
        ?>
  &middot;
                            </li>    
                            <li>    
                                <strong><a href="<?php 
        echo osc_user_dashboard_url();
        ?>
"><?php 
        _e('My account', 'nepcoders');
        ?>
</a></strong> &middot;
                            </li>
                            <li>    
                                <a href="<?php 
        echo osc_user_logout_url();
开发者ID:jhalendra,项目名称:classmandu,代码行数:31,代码来源:header2.php

示例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();
    ?>
开发者ID:nsswaga,项目名称:OSClass,代码行数:31,代码来源:item-contact.php

示例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() . '!');
        ?>
  &middot;
                        <strong><a href="<?php 
        echo osc_user_dashboard_url();
        ?>
"><?php 
        _e('My account', 'modern');
        ?>
</a></strong> &middot;
                        <a href="<?php 
        echo osc_user_logout_url();
        ?>
"><?php 
        _e('Logout', 'modern');
        ?>
开发者ID:semul,项目名称:Osclass,代码行数:31,代码来源:header.php


注:本文中的osc_logged_user_name函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。