コード例 #1
0
 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
0
ファイル: header.php プロジェクト: blairmain/theme-realestate
?>
"><?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');
        ?>
コード例 #3
0
ファイル: header.php プロジェクト: bomvendador/soroka_r
        <?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);
        ?>
コード例 #4
0
ファイル: user-dashboard.php プロジェクト: Ashishr2/Kathmandu
                                    <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
0
ファイル: footer.php プロジェクト: oanav/closetshare
<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');
        ?>
コード例 #6
0
 *        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
0
ファイル: header.php プロジェクト: oanav/closetshare
          <?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
0
ファイル: functions.php プロジェクト: oanav/closetshare
function item_comments()
{
    if (osc_reg_user_post_comments() && osc_is_web_user_logged_in() || !osc_reg_user_post_comments()) {
        ?>
        <div id="comments" class="box">
            <?php 
        if (osc_count_item_comments() >= 1) {
            ?>
            <h2>
                <?php 
            _e('Comments', 'pop');
            ?>
 (<?php 
            echo osc_count_item_comments();
            ?>
)
            </h2>
            <?php 
        }
        ?>
         
            <?php 
        CommentForm::js_validation();
        ?>
            <?php 
        if (osc_count_item_comments() >= 1) {
            ?>
            <div class="comments_list">
                <?php 
            while (osc_has_item_comments()) {
                ?>
                <div class="comment">
                    
                     <div class="user-avatar" style="background-image: url('<?php 
                echo osc_current_web_theme_url('images/seller-default.png');
                ?>
')"></div>
                    <?php 
                if (osc_comment_author_name()) {
                    ?>
                    <h4><em><?php 
                    echo osc_comment_author_name();
                    ?>
:</em></h4>
                    <?php 
                } else {
                    ?>
                    <h4><em><?php 
                    echo osc_comment_author_email();
                    ?>
:</em></h4>
                    <?php 
                }
                ?>
                    <div class="date">
                    <?php 
                echo osc_comment_pub_date();
                ?>
                    </div>
                    <p class="body"><?php 
                echo nl2br(osc_comment_body());
                ?>
 </p>
                    <?php 
                if (osc_comment_user_id() && osc_comment_user_id() == osc_logged_user_id()) {
                    ?>
                    <a rel="nofollow" href="<?php 
                    echo osc_delete_comment_url();
                    ?>
" title="<?php 
                    _e('Delete your comment', 'pop');
                    ?>
">
                            <?php 
                    _e('Delete', 'pop');
                    ?>
                        </a>
                    <?php 
                }
                ?>
                </div>
                <?php 
            }
            ?>
                <div class="pagination">
                    <?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 
}
コード例 #9
0
ファイル: header.php プロジェクト: nsswaga/OSClass
            <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');
        ?>
コード例 #10
0
    </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
0
ファイル: user-dashboard.php プロジェクト: randomecho/OSClass
?>
        <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
0
ファイル: user-dashboard.php プロジェクト: jmcclenon/Osclass
?>
        <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(__('Listings from %s', 'modern'), osc_logged_user_name());
?>
</h2>
                <?php 
if (osc_count_items() == 0) {
    ?>
                    <h3><?php 
    _e('No listings have been added yet', 'modern');
    ?>
</h3>
                <?php 
} else {
    ?>
                    <?php 
    while (osc_has_items()) {
        ?>
コード例 #13
0
ファイル: header3.php プロジェクト: jhalendra/classmandu
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 
コード例 #14
0
ファイル: header2.php プロジェクト: jhalendra/classmandu
                        <?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();
コード例 #15
0
ファイル: item-contact.php プロジェクト: nsswaga/OSClass
</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();
    ?>
コード例 #16
0
ファイル: header.php プロジェクト: semul/Osclass
?>
"><?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');
        ?>
コード例 #17
0
        <ul id="error_list"></ul>
        <form name="sendfriend" action="<?php 
echo osc_base_url(true);
?>
" 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 ">
コード例 #18
0
 public static function your_name()
 {
     parent::generic_input_text("yourName", osc_logged_user_name(), null, false);
     return true;
 }