• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP vibe_site_url函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中vibe_site_url函数的典型用法代码示例。如果您正苦于以下问题:PHP vibe_site_url函数的具体用法?PHP vibe_site_url怎么用?PHP vibe_site_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了vibe_site_url函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: vibe_site_url

                            <input type="submit" id="searchsubmit" value="Search" />
                        </div>
                    </form>
                </div>
                <div class="row">
                    <div class="col-md-9 col-sm-6 col-xs-4">
                        <?php 
if (is_home()) {
    echo '<h1 id="logo">';
} else {
    echo '<h2 id="logo">';
}
?>
                        
                            <a href="<?php 
echo vibe_site_url();
?>
"><img src="<?php 
echo apply_filters('wplms_logo_url', VIBE_URL . '/assets/images/logo.png', 'header');
?>
" alt="<?php 
echo get_bloginfo('name');
?>
" /></a>
                        <?php 
if (is_home()) {
    echo '</h1>';
} else {
    echo '</h2>';
}
$args = apply_filters('wplms-main-menu', array('theme_location' => 'main-menu', 'container' => 'nav', 'menu_class' => 'menu', 'walker' => new vibe_walker(), 'fallback_cb' => 'vibe_set_menu'));
开发者ID:nikitansk,项目名称:devschool,代码行数:31,代码来源:header-transparent.php


示例2: do_action

    do_action('bp_sidebar_me');
    ?>
		</div>
		<?php 
    do_action('bp_after_sidebar_me');
    /***** If the user is not logged in, show the log form and account creation link *****/
} else {
    if (!isset($user_login)) {
        $user_login = '';
    }
    do_action('bp_before_sidebar_login_form');
    ?>

		
		<form name="login-form" id="vbp-login-form" class="standard-form" action="<?php 
    echo apply_filters('wplms_login_widget_action', vibe_site_url('wp-login.php', 'login-post'));
    ?>
" method="post">

    <div class="row">

      <div class="col-md-6 col-sm-6">

    			<label><?php 
    _e('Username', 'vibe');
    ?>
<br />
    			<input type="text" name="log" id="side-user-login" class="input" tabindex="1" value="<?php 
    echo esc_attr(stripslashes($user_login));
    ?>
" /></label>
开发者ID:nikitansk,项目名称:devschool,代码行数:31,代码来源:bigdrop_login.php


示例3: widget

        function widget($args, $instance)
        {
            extract($args);
            echo $before_widget;
            if (is_user_logged_in()) {
                do_action('bp_before_sidebar_me');
                ?>
				<div id="sidebar-me">
					<div id="bpavatar">
						<?php 
                bp_loggedin_user_avatar('type=full');
                ?>
					</div>
					<ul>
						<li id="username"><a
								href="<?php 
                bp_loggedin_user_link();
                ?>
"><?php 
                bp_loggedin_user_fullname();
                ?>
</a></li>
						<li><a href="<?php 
                echo bp_loggedin_user_domain() . BP_XPROFILE_SLUG;
                ?>
/"
						       title="<?php 
                _e('View profile', 'vibe');
                ?>
"><?php 
                _e('View profile', 'vibe');
                ?>
</a>
						</li>
						<li id="vbplogout"><a href="<?php 
                echo wp_logout_url(get_permalink());
                ?>
"
						                      id="destroy-sessions" rel="nofollow" class="logout"
						                      title="<?php 
                _e('Log Out', 'vibe');
                ?>
"><i
									class="icon-close-off-2"></i> <?php 
                _e('LOGOUT', 'vibe');
                ?>
</a></li>
						<li id="admin_panel_icon"><?php 
                if (current_user_can("edit_posts")) {
                    echo '<a href="' . vibe_site_url() . 'wp-admin/" title="' . __('Access admin panel', 'vibe') . '"><i class="icon-settings-1"></i></a>';
                }
                ?>
						</li>
					</ul>
					<ul>
						<?php 
                $loggedin_menu = array('courses' => array('icon' => 'icon-book-open-1', 'label' => __('Courses', 'vibe'), 'link' => bp_loggedin_user_domain() . BP_COURSE_SLUG), 'stats' => array('icon' => 'icon-analytics-chart-graph', 'label' => __('Stats', 'vibe'), 'link' => bp_loggedin_user_domain() . BP_COURSE_SLUG . '/' . BP_COURSE_STATS_SLUG));
                if (bp_is_active('messages')) {
                    $loggedin_menu['messages'] = array('icon' => 'icon-letter-mail-1', 'label' => __('Inbox', 'vibe') . (messages_get_unread_count() ? ' <span>' . messages_get_unread_count() . '</span>' : ''), 'link' => bp_loggedin_user_domain() . BP_MESSAGES_SLUG);
                    $n = vbp_current_user_notification_count();
                    $loggedin_menu['notifications'] = array('icon' => 'icon-exclamation', 'label' => __('Notifications', 'vibe') . ($n ? ' <span>' . $n . '</span>' : ''), 'link' => bp_loggedin_user_domain() . BP_NOTIFICATIONS_SLUG);
                }
                if (bp_is_active('groups')) {
                    $loggedin_menu['groups'] = array('icon' => 'icon-myspace-alt', 'label' => __('Groups', 'vibe'), 'link' => bp_loggedin_user_domain() . BP_GROUPS_SLUG);
                }
                $loggedin_menu['settings'] = array('icon' => 'icon-settings', 'label' => __('Settings', 'vibe'), 'link' => bp_loggedin_user_domain() . BP_SETTINGS_SLUG);
                $loggedin_menu = apply_filters('wplms_logged_in_top_menu', $loggedin_menu);
                foreach ($loggedin_menu as $item) {
                    echo '<li><a href="' . $item['link'] . '"><i class="' . $item['icon'] . '"></i>' . $item['label'] . '</a></li>';
                }
                ?>
					</ul>

					<?php 
                do_action('bp_sidebar_me');
                ?>
				</div>
				<?php 
                do_action('bp_after_sidebar_me');
                /***** If the user is not logged in, show the log form and account creation link *****/
            } else {
                if (!isset($user_login)) {
                    $user_login = '';
                }
                do_action('bp_before_sidebar_login_form');
                ?>


				<form name="login-form" id="vbp-login-form" class="standard-form"
				      action="<?php 
                echo apply_filters('wplms_login_widget_action', vibe_site_url('wp-login.php', 'login-post'));
                ?>
" method="post">
					<label><?php 
                _e('Username', 'vibe');
                ?>
<br/>
						<input type="text" name="log" id="side-user-login" class="input" tabindex="1"
						       value="<?php 
                echo esc_attr(stripslashes($user_login));
//.........这里部分代码省略.........
开发者ID:inetbiz,项目名称:wordpress-lms,代码行数:101,代码来源:custom_bp_widgets.php


示例4: wplms_start_course_go_home

function wplms_start_course_go_home()
{
    if (!is_user_logged_in()) {
        wp_redirect(vibe_site_url());
        exit;
    }
}
开发者ID:Nguyenkain,项目名称:Elearning,代码行数:7,代码来源:func.php


示例5: widget

        function widget($args, $instance)
        {
            extract($args);
            echo $before_widget;
            if (is_user_logged_in()) {
                do_action('bp_before_sidebar_me');
                ?>
                <div id="sidebar-me">
                    <div id="bpavatar">
                        <a href="<?php 
                echo bp_loggedin_user_domain() . BP_XPROFILE_SLUG;
                ?>
/" title="<?php 
                _e('Thông tin cá nhân', 'vibe');
                ?>
"><?php 
                bp_loggedin_user_avatar('type=full');
                ?>
</a>
                    </div>
                    <ul style="width: 145px">
                        <li id="username"><a href="<?php 
                bp_loggedin_user_link();
                ?>
"><?php 
                bp_loggedin_user_fullname();
                ?>
</a></li>
                        <li><a href="<?php 
                echo bp_loggedin_user_domain() . BP_XPROFILE_SLUG;
                ?>
/" title="<?php 
                _e('Thông tin cá nhân', 'vibe');
                ?>
"><?php 
                _e('Thông tin cá nhân', 'vibe');
                ?>
</a></li>
                        <li id="vbplogout"><a href="<?php 
                echo wp_logout_url(get_permalink());
                ?>
" id="destroy-sessions" rel="nofollow" class="logout" title="<?php 
                _e('Đăng xuất', 'vibe');
                ?>
"><?php 
                _e('Đăng xuất', 'vibe');
                ?>
</a></li>
                        <li id="admin_panel_icon"><?php 
                if (current_user_can("edit_posts")) {
                    echo '<a href="' . vibe_site_url() . 'wp-admin/" title="' . __('Access admin panel', 'vibe') . '"><i class="icon-settings-1"></i></a>';
                }
                ?>
                        </li>
                    </ul>
                    <ul>
                        <?php 
                function child_wplms_get_mycred_link()
                {
                    $mycred = get_option('mycred_pref_core');
                    if (isset($mycred['buddypress']) && isset($mycred['buddypress']['history_url']) && isset($mycred['buddypress']['history_location']) && $mycred['buddypress']['history_location']) {
                        $link = bp_get_loggedin_user_link() . $mycred['buddypress']['history_url'];
                    } else {
                        $link = '#';
                    }
                    return $link;
                }
                $loggedin_menu = array('taikhoan' => array('icon' => 'icon-book-open-1', 'label' => __('Tài khoản: ' . apply_filters('get_point_user', ''), 'vibe'), 'link' => child_wplms_get_mycred_link()), 'naptientaokhoan' => array('icon' => 'icon-book-open-1', 'label' => __('Nạp tiền tài khoản', 'vibe'), 'link' => get_home_url() . '/thanh-toan-khoa-hoc/'), 'courses' => array('icon' => 'icon-book-open-1', 'label' => __('Khóa học của tôi', 'vibe'), 'link' => bp_loggedin_user_domain() . BP_COURSE_SLUG));
                if (bp_is_active('messages')) {
                    $loggedin_menu['messages'] = array('icon' => 'icon-letter-mail-1', 'label' => __('Hộp thư đến', 'vibe') . (messages_get_unread_count() ? ' <span>' . messages_get_unread_count() . '</span>' : ''), 'link' => bp_loggedin_user_domain() . BP_MESSAGES_SLUG);
                    $n = vbp_current_user_notification_count();
                    //                            $loggedin_menu['notifications']=array(
                    //                                'icon' => 'icon-exclamation',
                    //                                'label' => __('Thông báo','vibe').(($n)?' <span>'.$n.'</span>':''),
                    //                                'link' => bp_loggedin_user_domain().BP_NOTIFICATIONS_SLUG
                    //                            );
                }
                if (bp_is_active('groups')) {
                    $loggedin_menu['groups'] = array('icon' => 'icon-myspace-alt', 'label' => __('Nhóm', 'vibe'), 'link' => bp_loggedin_user_domain() . BP_GROUPS_SLUG);
                }
                $loggedin_menu = apply_filters('wplms_logged_in_top_menu', $loggedin_menu);
                foreach ($loggedin_menu as $item) {
                    echo '<li><a href="' . $item['link'] . '"><i class="' . $item['icon'] . '"></i>' . $item['label'] . '</a></li>';
                }
                ?>
                    </ul>

                    <?php 
                do_action('bp_sidebar_me');
                ?>
                </div>
                <?php 
                do_action('bp_after_sidebar_me');
                /***** If the user is not logged in, show the log form and account creation link *****/
            } else {
                if (!isset($user_login)) {
                    $user_login = '';
                }
                do_action('bp_before_sidebar_login_form');
                ?>
//.........这里部分代码省略.........
开发者ID:songlequang,项目名称:myclass,代码行数:101,代码来源:functions.php


示例6: _e

    _e('View profile', 'vibe');
    ?>
</a></li>
      <li id="vbplogout"><a href="<?php 
    echo wp_logout_url(get_permalink());
    ?>
" id="destroy-sessions" rel="nofollow" class="logout" title="<?php 
    _e('Log Out', 'vibe');
    ?>
"><i class="icon-close-off-2"></i> <?php 
    _e('LOGOUT', 'vibe');
    ?>
</a></li>
      <li id="admin_panel_icon"><?php 
    if (current_user_can("edit_posts")) {
        echo '<a href="' . vibe_site_url() . 'wp-admin/" title="' . __('Access admin panel', 'vibe') . '"><i class="icon-settings-1"></i></a>';
    }
    ?>
      </li>
    </ul> 
    <ul>
<?php 
    $loggedin_menu = array('courses' => array('icon' => 'icon-book-open-1', 'label' => __('Courses', 'vibe'), 'link' => bp_loggedin_user_domain() . BP_COURSE_SLUG), 'stats' => array('icon' => 'icon-analytics-chart-graph', 'label' => __('Stats', 'vibe'), 'link' => bp_loggedin_user_domain() . BP_COURSE_SLUG . '/' . BP_COURSE_STATS_SLUG));
    if (bp_is_active('messages')) {
        $loggedin_menu['messages'] = array('icon' => 'icon-letter-mail-1', 'label' => __('Inbox', 'vibe') . (messages_get_unread_count() ? ' <span>' . messages_get_unread_count() . '</span>' : ''), 'link' => bp_loggedin_user_domain() . BP_MESSAGES_SLUG);
        $n = vbp_current_user_notification_count();
        $loggedin_menu['notifications'] = array('icon' => 'icon-exclamation', 'label' => __('Notifications', 'vibe') . ($n ? ' <span>' . $n . '</span>' : ''), 'link' => bp_loggedin_user_domain() . BP_NOTIFICATIONS_SLUG);
    }
    if (bp_is_active('groups')) {
        $loggedin_menu['groups'] = array('icon' => 'icon-myspace-alt', 'label' => __('Groups', 'vibe'), 'link' => bp_loggedin_user_domain() . BP_GROUPS_SLUG);
    }
开发者ID:nikitansk,项目名称:devschool,代码行数:31,代码来源:modern.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP vibe_validate函数代码示例发布时间:2022-05-23
下一篇:
PHP vibe_sanitize函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap