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

PHP bp_root_domain函数代码示例

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

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



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

示例1: printf

				<?php else : ?>

					<div id="message" class="info">
						<p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( BP_GROUPS_SLUG . '/create/' ) ) ?></p>
					</div>

				<?php endif; ?>

			<?php endif; ?>
		</div><!-- #new-topic-post -->

		<form action="" method="post" id="forums-directory-form" class="dir-form">

			<div class="item-list-tabs">
				<ul>
					<li class="selected" id="forums-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ) ?></a></li>

					<?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
						<li id="forums-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
					<?php endif; ?>

					<?php do_action( 'bp_forums_directory_group_types' ) ?>

					<li id="forums-order-select" class="last filter">

						<?php _e( 'Order By:', 'buddypress' ) ?>
						<select>
							<option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
							<option value="popular"><?php _e( 'Most Posts', 'buddypress' ) ?></option>
							<option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ) ?></option>
开发者ID:n-sane,项目名称:zaroka,代码行数:30,代码来源:index.php


示例2: do_action

			<?php 
do_action('bp_before_directory_blogs_content');
?>

			<div id="blog-dir-search" class="dir-search" role="search">

				<?php 
bp_directory_blogs_search_form();
?>

			</div><!-- #blog-dir-search -->

			<div class="item-list-tabs" role="navigation">
				<ul>
					<li class="selected" id="blogs-all"><a href="<?php 
bp_root_domain();
?>
/<?php 
bp_blogs_root_slug();
?>
"><?php 
printf(__('All Sites <span>%s</span>', 'buddypress'), bp_get_total_blog_count());
?>
</a></li>

					<?php 
if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
    ?>

						<li id="blogs-personal"><a href="<?php 
    echo bp_loggedin_user_domain() . bp_get_blogs_slug();
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:31,代码来源:index.php


示例3: widget

    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', empty($instance['title']) ? 'Blogs' : $instance['title']);
        ?>
	    <?php 
        echo $before_widget;
        echo $before_title . $title . $after_title;
        ?>
		    <form action="" method="post" id="blogs-directory-form" class="dir-form">

			    <?php 
        do_action('bp_before_directory_blogs_content');
        ?>

			    <div class="item-list-tabs">
				    <ul>
					    <li class="selected menulist" id="blogs-all"><a href="<?php 
        bp_root_domain();
        ?>
"><?php 
        printf(__('All Blogs (%s)', 'buddypress'), bp_get_total_blog_count());
        ?>
</a></li>

					    <?php 
        if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
            ?>
						    <li class="menulist" id="blogs-personal">
                            	|
                                <a href="<?php 
            echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/';
            ?>
"><?php 
            printf(__('My Blogs (%s)', 'buddypress'), bp_get_total_blog_count_for_user(bp_loggedin_user_id()));
            ?>
</a>
                            </li>
					    <?php 
        }
        ?>

					    <?php 
        do_action('bp_blogs_directory_blog_types');
        ?>

					    <li id="blogs-order-select" class="last filter">
							<?php 
        _e('Order By:', 'buddypress');
        ?>
                            <select>
                                <option value="active"><?php 
        _e('Last Active', 'buddypress');
        ?>
</option>
                                <option value="newest"><?php 
        _e('Newest', 'buddypress');
        ?>
</option>
                                <option value="alphabetical"><?php 
        _e('Alphabetical', 'buddypress');
        ?>
</option>
            
                                <?php 
        do_action('bp_blogs_directory_order_options');
        ?>
                            </select>
					    </li>
				    </ul>
			    </div>
			    
                <div id="blogs-dir-list" class="blogs dir-list">
				    <?php 
        locate_template(array('blogs/blogs-loop.php'), true);
        ?>
			    </div>

			    <?php 
        do_action('bp_after_directory_blogs_content');
        ?>

			    <?php 
        wp_nonce_field('directory_blogs', '_wpnonce-blogs-filter');
        ?>

		    </form>
	    <?php 
        echo $after_widget;
    }
开发者ID:CoordCulturaDigital-Minc,项目名称:cdigital2014,代码行数:90,代码来源:widget-blogs.php


示例4: _e

"/>
<?php 
    if (bp_get_signup_allowed()) {
        ?>
<input type="button" name="signup-submit" id="signup-submit" value="<?php 
        _e('Sign Up', TEMPLATE_DOMAIN);
        ?>
" onclick="location.href='<?php 
        echo bp_signup_page();
        ?>
'" />
<?php 
    }
    ?>
<input type="hidden" name="redirect_to" value="<?php 
    echo bp_root_domain();
    ?>
" />
<input type="hidden" name="testcookie" value="1" />
<?php 
    do_action('bp_login_bar_logged_out');
    ?>
</form>
<?php 
} else {
    ?>
<div id="logout-link">
<?php 
    bp_loggedin_user_avatar('width=30&height=30');
    ?>
 &nbsp; <?php 
开发者ID:hscale,项目名称:webento,代码行数:31,代码来源:bp-login-panel.php


示例5: bp_root_domain

<input type="hidden" name="redirect_to" value="<?php 
                echo bp_root_domain();
                ?>
"/>
<input type="hidden" name="testcookie" value="1" />

<small><a href="<?php 
                echo bp_root_domain();
                ?>
/wp-login.php?action=lostpassword"><?php 
                _e('Lost your password?', TEMPLATE_DOMAIN);
                ?>
</a>&nbsp;|&nbsp;
<a href="<?php 
                echo bp_root_domain() . '/' . bp_get_root_slug('register') . '/';
                ?>
"><?php 
                _e('Create a new account', TEMPLATE_DOMAIN);
                ?>
</a></small>
<?php 
                do_action('bp_sidebar_login_form');
                ?>
</form>
<?php 
                do_action('bp_after_sidebar_login_form');
                ?>


<?php 
开发者ID:hscale,项目名称:webento,代码行数:30,代码来源:page-template-custom-login.php


示例6: _e

	<div id="content">
		<div class="padder">

		<form action="" method="post" id="galleries-directory-form" class="dir-form">

			<h3><?php _e( 'Gallery Directory', 'bp-gallery' ) ?></h3>

			<?php do_action( 'bp_before_directory_gallery_content' ) ?>

                        <div id="members-dir-search" class="dir-search">
				<?php bp_directory_members_search_form() ?>
			</div><!-- #members-dir-search -->
                        
                        <div class="item-list-tabs">
				<ul>
					<li class="selected" id="gallery-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Galleries (%s)', 'bp-gallery' ), bp_get_total_gallery_count_for_dir() ) ?></a></li>

					<?php if ( is_user_logged_in() && function_exists( 'gallery_total_gallery_for_user' )  ) : ?>
						<li id="gallery-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GALLERY_SLUG . '/my-galleries/' ?>"><?php printf( __( 'My Galleries (%s)', 'bp-gallery' ),  gallery_total_gallery_for_user(bp_loggedin_user_id()) ) ?></a></li>
						<li id="gallery-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/group-galleries/' ?>"><?php printf( __( 'My Group Galleries', 'bp-gallery' ) ) ?></a></li>
					<?php endif; ?>
					
                                        <?php do_action( 'bp_gallery_directory_member_types' ) ?>

					<li id="gallery-order-select" class="last filter">

						<?php _e( 'Filter By:', 'bp-gallery' ) ?>
						<select><option value=""><?php _e( 'All Galleries', 'bp-gallery' ) ?></option>
							<option value="photo"><?php _e( 'Photo Gallery', 'bp-gallery' ) ?></option>
							<option value="audio"><?php _e( 'Audio Gallery', 'bp-gallery' ) ?></option>
							<option value="video"><?php _e( 'Video Gallery', 'bp-gallery' ) ?></option>
开发者ID:r-chopra17,项目名称:p2bp,代码行数:31,代码来源:directory.php


示例7: bp_ning_import_finished_markup

function bp_ning_import_finished_markup()
{
    update_option('bp_ning_import_finished', 1);
    $already_sent = get_option('bp_ning_emails_sent');
    $users = get_option('bp_ning_import_users');
    $siteurl = get_option('siteurl');
    $blogname = get_option('blogname');
    $subject = "{$blogname} has a new home";
    $emailtext = "Dear {$blogname} member,\n\nWe've moved!\n\nThe content of our old Ning community has been transferred to {$siteurl}. The new site is built on cool software called BuddyPress and WordPress, which is free and open source (unlike Ning!).\n\nA user name and password have been automatically created for you:\nUser name: %USERNAME%\nPassword: %PASSWORD%\n\nHead over to {$siteurl} and log in using this information. The first thing you'll want to do after logging in is to change your password to something more memorable. Go to My Account > Settings in the navigation bar at the top of the screen.\n\nEnjoy using the new {$blogname}!\n\nSincerely,\n\nThe folks at {$blogname}";
    ?>

	<?php 
    bp_ning_import_donate_message();
    ?>

	<h3><?php 
    _e('Notify your users', 'bp-ning-import');
    ?>
</h3>

	<?php 
    if ($already_sent) {
        ?>
		<div id="message" class="updated fade below-h2">
			<p><strong>Hey!</strong> It looks like you've already sent out an email notification to your new members. Click Continue at the bottom of the screen only if you're sure that you want to send it again.</p>
		</div>
	<?php 
    }
    ?>

	<form method="post" action="">

	<p>Your Ning content has been successfully imported into BuddyPress. Now it's time to let your community members know about the new site.</p>

	<p><strong>Don't want to send out an email yet?</strong> Want to take a minute to look around the site first? No problem - just visit the Dashboard > BuddyPress > Import from Ning page at any time in the future. The plugin will remember that you've already imported your content and bring you directly to this screen, so that you can send the notification email to your members.</p>

	<p>In the box below, you'll find some suggested text for the email. Feel free to modify it to suit your needs, but <strong>make sure you include %USERNAME% and %PASSWORD% somewhere in the text</strong>. The plugin will replace <strong>%USERNAME%</strong> and <strong>%PASSWORD%</strong> with the username and password of the recipient. Without this information, new users won't be able to log in.</p>

	<table class="form-table">

	<tr>
		<th scope="row">Subject:</th>
		<td><input type="text" name="email-subject" id="email-subject" size="95" value="<?php 
    echo $subject;
    ?>
" /></td>
	</tr>

	<tr>
		<th scope="row">Email text:</th>
		<td><textarea rows=20 cols=60 id="email-text" name="email-text"><?php 
    echo $emailtext;
    ?>
</textarea></td>
	</tr>

	</table>

	<p>When you click on Send Emails, emails will be sent to the addresses listed below. <strong>Warning:</strong> Sending thousands of emails at the same time might get you marked as spam by some ISPs. If you've got many hundreds of members, you might consider letting them know manually. They can get their login name and password by using the "Forgot your password?" link on <a href="<?php 
    echo bp_root_domain();
    ?>
/wp-login.php?action=lostpassword">the Lost Password</a> page.</p>


	<div class="submit">
			<input class="button primary-button" type="submit" id='submit' name='submit' value="<?php 
    _e('Send Emails');
    ?>
">
			<input type="hidden" id="current_step" name="current_step" value="send_email" />
	</div>

	<ul>
	<?php 
    foreach ((array) $users['success'] as $user) {
        ?>
		<li><?php 
        echo $user['user_name'] . " &middot; " . $user['user_email'];
        ?>
</li>
	<?php 
    }
    ?>
	</ul>



	</form>


<?php 
}
开发者ID:boonebgorges,项目名称:Import-from-Ning,代码行数:92,代码来源:bp-functions.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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