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


PHP bp_is_members_component函数代码示例

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


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

示例1: lsx_buddypress_page_columns

/**
 * Forces the BP Profile Pages to be 1 Column
 * 
 * @package lsx
 * @subpackage jetpack
 * @category infinite scroll
 */
function lsx_buddypress_page_columns($layout)
{
    if (bp_is_profile_component() || bp_is_settings_component() || bp_is_activity_component() || bp_is_group() || bp_is_messages_component() || bp_is_members_directory() || bp_is_groups_directory() || bp_is_groups_component() || bp_is_members_component()) {
        $layout = '1c';
    }
    return $layout;
}
开发者ID:LinaPeterssonOberg,项目名称:exam,代码行数:14,代码来源:buddypress.php

示例2: bp_members_screen_index

/**
 * Handles the display of the members directory index
 *
 * @global object $bp
 *
 * @uses bp_is_user()
 * @uses bp_is_current_component()
 * @uses do_action()
 * @uses bp_core_load_template()
 * @uses apply_filters()
 */
function bp_members_screen_index()
{
    if (!bp_is_user() && bp_is_members_component()) {
        bp_update_is_directory(true, 'members');
        do_action('bp_members_screen_index');
        bp_core_load_template(apply_filters('bp_members_screen_index', 'members/index'));
    }
}
开发者ID:hornetalcala,项目名称:trunk,代码行数:19,代码来源:bp-members-screens.php

示例3: bphelp_pbpp_redirect

function bphelp_pbpp_redirect()
{
    global $bp;
    //IMPORTANT: Do not alter the following line.
    $bphelp_my_redirect_slug = get_option('bphelp-my-redirect-slug', 'register');
    if (bp_is_activity_component() || bp_is_groups_component() || bp_is_group_forum() || bbp_is_single_forum() || bbp_is_single_topic() || bp_is_forums_component() || bp_is_blogs_component() || bp_is_members_component() || bp_is_profile_component()) {
        if (!is_user_logged_in()) {
            bp_core_redirect(get_option('home') . '/' . $bphelp_my_redirect_slug);
        }
    }
}
开发者ID:pausaura,项目名称:agora_nodes,代码行数:11,代码来源:private-bp-pages.php

示例4: dt_theme_bbpress_title

function dt_theme_bbpress_title(){
	global $bp;
	$doctitle = "";
	$separator = dttheme_option ( 'seo', 'title-delimiter' );
	$id = 0;

	if ( !empty( $bp->displayed_user->fullname ) ) {
		
		$blog_title = preg_replace ( "~(?:\[/?)[^/\]]+/?\]~s", '', get_option ( 'blogname' ));
		$title =  bp_current_component() === "profile" ? __("Profile","dt_themes") : __("Member","dt_themes");
		$subtitle = strip_tags( $bp->displayed_user->fullname );
		$doctitle = $blog_title.' '.$separator.' '.$title.' '.$separator.' '.$subtitle.' '.$separator;

	} elseif( bp_is_members_component() ) {
		$id = $bp->pages->members->id;
	}elseif( bp_is_activity_component() ){
		$id = $bp->pages->activity->id;
	}elseif( bp_current_component() === "groups" ) {
		$id = $bp->pages->groups->id;
	}elseif( bp_current_component() === "register" ) {
		$id = $bp->pages->register->id;
	}elseif( bp_current_component() === "activate" ) {
		$id = $bp->pages->activate->id;
	}
	if( $id > 0 ){
		global $post;
		$args = array (
			"blog_title" => preg_replace ( "~(?:\[/?)[^/\]]+/?\]~s", '', get_option ( 'blogname' ) ),
			"blog_description" => get_bloginfo ( 'description' ),
			"post_title" => ! empty ( $post ) ? $post->post_title : NULL,
			"post_author_nicename" => ! empty ( $nickname ) ? ucwords ( $nickname ) : NULL,
			"post_author_firstname" => ! empty ( $first_name ) ? ucwords ( $first_name ) : NULL,
			"post_author_lastname" => ! empty ( $last_name ) ? ucwords ( $last_name ) : NULL,
			"post_author_dsiplay" => ! empty ( $display_name ) ? ucwords ( $display_name ) : NULL );
		$args = array_filter ( $args );

		$doctitle = get_post_meta ( $id, '_seo_title', true );
		if (empty ( $doctitle )) :
			$options = is_array ( dttheme_option ( 'seo', 'page-title-format' ) ) ? dttheme_option ( 'seo', 'page-title-format' ) : array ();
			foreach ( $options as $option ) :
				if (array_key_exists ( $option, $args ))
					$doctitle .= $args [$option] . ' ' . $separator . ' ';
			endforeach;
		endif;

	}	
	
	return $doctitle;
}
开发者ID:namnguyen2312,项目名称:spa,代码行数:49,代码来源:utils.php

示例5: is_members

 /**
  * Are we looking at something that needs members theme compatibility?
  *
  * @since 1.7.0
  */
 public function is_members()
 {
     // Bail if not looking at the members component or a user's page.
     if (!bp_is_members_component() && !bp_is_user()) {
         return;
     }
     // Members Directory.
     if (!bp_current_action() && !bp_current_item()) {
         bp_update_is_directory(true, 'members');
         /**
          * Fires if looking at Members directory when needing theme compat.
          *
          * @since 1.5.0
          */
         do_action('bp_members_screen_index');
         add_filter('bp_get_buddypress_template', array($this, 'directory_template_hierarchy'));
         add_action('bp_template_include_reset_dummy_post_data', array($this, 'directory_dummy_post'));
         add_filter('bp_replace_the_content', array($this, 'directory_content'));
         // User page.
     } elseif (bp_is_user()) {
         // If we're on a single activity permalink page, we shouldn't use the members
         // template, so stop here!
         if (bp_is_active('activity') && bp_is_single_activity()) {
             return;
         }
         /**
          * Fires if looking at Members user page when needing theme compat.
          *
          * @since 1.5.0
          */
         do_action('bp_members_screen_display_profile');
         add_filter('bp_get_buddypress_template', array($this, 'single_template_hierarchy'));
         add_action('bp_template_include_reset_dummy_post_data', array($this, 'single_dummy_post'));
         add_filter('bp_replace_the_content', array($this, 'single_dummy_content'));
     }
 }
开发者ID:igniterealtime,项目名称:community-plugins,代码行数:41,代码来源:class-bp-members-theme-compat.php

示例6: widget_community_nav

/**
 *  widget for the community navigation
 *
 * @package Custom Community
 * @since 1.8.3
 */
function widget_community_nav($sidebar_id = false)
{
    ?>
		<?php 
    global $cap;
    if ($sidebar_id == 'leftsidebar' && $cap->bg_leftsidebar_default_nav && $cap->bg_leftsidebar_default_nav == 'no') {
        return;
    }
    ?>
  		<div id="community-nav" class="widget widget-title" >
        	<h3 class="widgettitle"><?php 
    _e('Community', 'cc');
    ?>
</h3>
  				<ul class="item-list">
					
			  		<?php 
    if ('activity' != bp_dtheme_page_on_front() && bp_is_active('activity')) {
        ?>
                                        <li<?php 
        if (bp_is_activity_component()) {
            ?>
 class="selected"<?php 
        }
        ?>
>
							<a href="<?php 
        echo site_url();
        ?>
/<?php 
        echo BP_ACTIVITY_SLUG;
        ?>
/" title="<?php 
        _e('Activity', 'cc');
        ?>
"><?php 
        _e('Activity', 'cc');
        ?>
</a>
						</li>
					<?php 
    }
    ?>

                                        <li<?php 
    if (bp_is_members_component() || bp_is_user()) {
        ?>
 class="selected"<?php 
    }
    ?>
>
                                                <a href="<?php 
    echo site_url();
    ?>
/<?php 
    echo BP_MEMBERS_SLUG;
    ?>
/" title="<?php 
    _e('Members', 'cc');
    ?>
"><?php 
    _e('Members', 'cc');
    ?>
</a>
                                        </li>
			
                                    <?php 
    if (bp_is_active('groups')) {
        ?>
                                            <li<?php 
        if (bp_is_groups_component() || bp_is_group()) {
            ?>
 class="selected"<?php 
        }
        ?>
>
                                                    <a href="<?php 
        echo site_url();
        ?>
/<?php 
        echo BP_GROUPS_SLUG;
        ?>
/" title="<?php 
        _e('Groups', 'cc');
        ?>
"><?php 
        _e('Groups', 'cc');
        ?>
</a>
                                            </li>
			
                                        <?php 
        if (bp_is_active('forums') && (function_exists('bp_forums_is_installed_correctly') && !(int) bp_get_option('bp-disable-forum-directory')) && bp_forums_is_installed_correctly()) {
            ?>
//.........这里部分代码省略.........
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:101,代码来源:widgets.php

示例7: bp_is_members_directory

/**
 * Is the current page the members directory?
 *
 * @since 2.0.0
 *
 * @return bool True if the current page is the members directory.
 */
function bp_is_members_directory()
{
    if (!bp_is_user() && bp_is_members_component()) {
        return true;
    }
    return false;
}
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:14,代码来源:bp-core-template.php

示例8: bp_get_activity_root_slug

        echo bp_get_activity_root_slug();
        ?>
/" title="<?php 
        _e('Activity', 'framemarket');
        ?>
"><?php 
        _e('Activity', 'framemarket');
        ?>
</a>
										</li>
									<?php 
    }
    ?>

									<li<?php 
    if (bp_is_members_component() || bp_is_user()) {
        ?>
 class="selected"<?php 
    }
    ?>
>
										<a href="<?php 
    echo site_url();
    ?>
/<?php 
    echo bp_get_members_root_slug();
    ?>
/" title="<?php 
    _e('Members', 'framemarket');
    ?>
"><?php 
开发者ID:JeffreyBue,项目名称:jb,代码行数:31,代码来源:header.php

示例9: bp_follow_set_members_scope_default

/**
 * Set some default parameters for a member loop.
 *
 * If we're on a user's following or followers page, set the member filter
 * so users are sorted by newest follows instead of last active.
 *
 * If we're on a user's friends page or the members directory, reset the
 * members filter to last active.
 *
 * Only applicable for BuddyPress 1.7+.
 *
 * @since 1.3.0
 *
 * @see bp_follow_add_members_dropdown_filter()
 */
function bp_follow_set_members_scope_default()
{
    // don't do this for older versions of BP
    if (!class_exists('BP_User_Query')) {
        return;
    }
    // set default members filter to 'newest-follows' on member follow pages
    if (bp_is_user() && (bp_is_current_action('following') || bp_is_current_action('followers'))) {
        // set the members filter to 'newest-follows' by faking an ajax request (loophole!)
        $_POST['cookie'] = 'bp-members-filter%3Dnewest-follows';
        // reset the dropdown menu to 'Newest Follows'
        @setcookie('bp-members-filter', 'newest-follows', 0, '/');
        // reset members filter on the user friends and members directory page
        // this is done b/c the 'newest-follows' filter does not apply on these pages
    } elseif (bp_is_user_friends() || !bp_is_user() && bp_is_members_component()) {
        // set the members filter to 'newest' by faking an ajax request (loophole!)
        $_POST['cookie'] = 'bp-members-filter%3Dactive';
        // reset the dropdown menu to 'Last Active'
        @setcookie('bp-members-filter', 'active', 0, '/');
    }
}
开发者ID:vikramshaw,项目名称:buddypress-followers,代码行数:36,代码来源:hooks.php

示例10: get_context


//.........这里部分代码省略.........
                             $crumbs[] = '<a href="' . bp_get_group_permalink() . 'forum/" title="Group Forum">Forum</a>';
                             // Retrieve topic information from the database
                             global $bp;
                             global $wpdb;
                             // Single Topic
                             if (bp_is_action_variable('topic', 0)) {
                                 // Get the topic
                                 $topic = $wpdb->get_row($wpdb->prepare("SELECT post_title AS title, post_name AS url\n\t\t\t\t\t\t\t\t\t\tFROM {$wpdb->posts} \n\t\t\t\t\t\t\t\t\t\tWHERE post_name = %s", $bp->action_variables[1]));
                                 $title = $topic->title;
                                 $crumbs[] = $topic->title;
                                 // Replies
                             } elseif (bp_is_action_variable('reply', 0)) {
                                 // Get the reply parent topic
                                 $topic = $wpdb->get_row($wpdb->prepare("SELECT post_title AS title, post_name AS url\n\t\t\t\t\t\t\t\t\t\tFROM {$wpdb->posts} \n\t\t\t\t\t\t\t\t\t\tWHERE ID = ( \n\t\t\t\t\t\t\t\t\t\t\tSELECT post_parent\n\t\t\t\t\t\t\t\t\t\t\tFROM {$wpdb->posts}\n\t\t\t\t\t\t\t\t\t\t\tWHERE post_name = %s \n\t\t\t\t\t\t\t\t\t\t)", $bp->action_variables[1]));
                                 $title = $topic->title;
                                 $crumbs[] = $topic->title;
                             }
                             // Topic and Reply Edits
                             if (bp_is_action_variable('edit', 2)) {
                                 $crumbs[] = 'Edit';
                             }
                         }
                     }
                 }
             }
             // Directories
         } elseif (bp_is_directory()) {
             // Sitewide Activity
             if (bp_is_activity_component()) {
                 $title = SITENAME . ' Sitewide Activity Feed';
                 $desc = 'A listing of all recent activity happening throughout the ' . SITENAME . ' community.';
                 $crumbs[] = 'Sitewide Activity';
                 // Members Directory
             } elseif (bp_is_members_component()) {
                 $title = SITENAME . ' Members Directory';
                 $desc = 'A listing of all registered members in the ' . SITENAME . ' community.';
                 $crumbs[] = 'Members Directory';
                 // Groups Directory
             } elseif (bp_is_groups_component()) {
                 $title = SITENAME . ' Guilds Directory';
                 $desc = 'A directory listing of guilds active within in the ' . SITENAME . ' community.';
                 $crumbs[] = 'Guilds Directory';
             }
             // Registration
         } elseif (bp_is_register_page()) {
             $title = SITENAME . ' User Registration';
             $desc = "Register to join the " . SITENAME . " community.";
             $crumbs[] = "User Registration";
             // Activation
         } elseif (bp_is_activation_page()) {
             $title = SITENAME . ' Account Activation';
             $desc = "Activate a pending " . SITENAME . " user account.";
             $crumbs[] = "Account Activation";
         }
         /*--------------------------------------------
         			BBPRESS CONTEXT
         		---------------------------------------------*/
     } elseif (class_exists('bbPress') && is_bbpress()) {
         // bbPress Defaults
         $classes[] = 'bbpress';
         $classes[] = 'forums';
         $crumbs[] = bbp_is_forum_archive() ? "Forums" : '<a href="' . get_post_type_archive_link('forum') . '">Forums</a>';
         // Main Forum Archive
         if (bbp_is_forum_archive()) {
             $title = SITENAME . " Forums";
             $desc = "Get involved in the community on the " . SITENAME . " forums.";
开发者ID:tamriel-foundry,项目名称:apoc2,代码行数:67,代码来源:context.php

示例11: test_member_directory_with_member_type_that_has_custom_directory_slug

 /**
  * @ticket BP6286
  * @group member_types
  */
 public function test_member_directory_with_member_type_that_has_custom_directory_slug()
 {
     bp_register_member_type('foo', array('has_directory' => 'foos'));
     $this->go_to(bp_get_members_directory_permalink() . 'type/foos/');
     $this->assertTrue(bp_is_members_component());
 }
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:10,代码来源:members.php

示例12: dttheme_bpress_subtitle

function dttheme_bpress_subtitle()
{
    global $bp;
    if (!empty($bp->displayed_user->fullname)) {
        // looking at a user or self
        $title = bp_current_component() === "profile" ? __("Profile", "dt_themes") : __("Member", "dt_themes");
        $subtitle = strip_tags($bp->displayed_user->userdata->display_name);
        $icon = "fa-user";
        $class = "dark-bg dt-bp-member-page";
        dttheme_custom_subtitle_section($title, $subtitle, $icon, $class);
    } elseif (bp_is_members_component()) {
        dttheme_subtitle_section($bp->pages->members->id, 'page');
    } elseif (bp_is_activity_component()) {
        dttheme_subtitle_section($bp->pages->activity->id, 'page');
    } elseif (bp_current_component() === "groups") {
        dttheme_subtitle_section($bp->pages->groups->id, 'page');
    } elseif (bp_current_component() === "register") {
        dttheme_subtitle_section($bp->pages->register->id, 'page');
    } elseif (bp_current_component() === "activate") {
        dttheme_subtitle_section($bp->pages->activate->id, 'page');
    } else {
        bp_current_component();
    }
}
开发者ID:namnguyen2312,项目名称:spa,代码行数:24,代码来源:register_public.php

示例13: infinity_base_sidebars

/**
 * Show sidebars based on page type (including BP components)
 *
 * @package Infinity
 * @subpackage base
 */
function infinity_base_sidebars()
{
    if (!current_theme_supports('infinity-sidebar-setup')) {
        return;
    }
    if (is_page()) {
        if (function_exists('bp_is_user') && bp_is_user() || function_exists('bp_is_members_component') && bp_is_members_component()) {
            if (is_active_sidebar('member-sidebar')) {
                dynamic_sidebar('member-sidebar');
            } elseif (current_user_can('edit_theme_options')) {
                ?>
				<div class="widget">
					<h4>BP Member Sidebar.</h4>
					<a href="<?php 
                echo home_url('/');
                ?>
nxt-admin/widgets.php" title="Add Widgets">Add Widgets</a>
				</div><?php 
            }
        } elseif (function_exists('bp_is_user') && !bp_is_user() && function_exists('bp_is_groups_component') && bp_is_groups_component()) {
            if (is_active_sidebar('groups-sidebar')) {
                dynamic_sidebar('groups-sidebar');
            } elseif (current_user_can('edit_theme_options')) {
                ?>
				<div class="widget">
					<h4>BP Group Sidebar.</h4>
					<a href="<?php 
                echo home_url('/');
                ?>
nxt-admin/widgets.php" title="Add Widgets">Add Widgets</a>
				</div><?php 
            }
        } elseif (function_exists('bp_is_user') && !bp_is_user() && function_exists('bp_is_forums_component') && bp_is_forums_component()) {
            if (is_active_sidebar('forums-sidebar')) {
                dynamic_sidebar('forums-sidebar');
            } elseif (current_user_can('edit_theme_options')) {
                ?>
				<div class="widget">
					<h4>BP Forums Sidebar.</h4>
					<a href="<?php 
                echo home_url('/');
                ?>
nxt-admin/widgets.php" title="Add Widgets">Add Widgets</a>
				</div><?php 
            }
        } elseif (function_exists('bp_is_user') && !bp_is_user() && function_exists('bp_is_blogs_component') && bp_is_blogs_component()) {
            if (is_active_sidebar('blogs-sidebar')) {
                dynamic_sidebar('blogs-sidebar');
            } elseif (current_user_can('edit_theme_options')) {
                ?>
				<div class="widget">
					<h4>BP Blogs Sidebar.</h4>
					<a href="<?php 
                echo home_url('/');
                ?>
nxt-admin/widgets.php" title="Add Widgets">Add Widgets</a>
				</div><?php 
            }
        } elseif (function_exists('bp_is_user') && !bp_is_user() && function_exists('bp_is_activity_component') && bp_is_activity_component()) {
            if (is_active_sidebar('activity-sidebar')) {
                dynamic_sidebar('activity-sidebar');
            } elseif (current_user_can('edit_theme_options')) {
                ?>
				<div class="widget">
					<h4>Activity Sidebar</h4>
					<a href="<?php 
                echo home_url('/');
                ?>
nxt-admin/widgets.php" title="Add Widgets">Add Widgets</a>
				</div><?php 
            }
        } elseif (is_front_page()) {
            if (is_active_sidebar('home-sidebar')) {
                dynamic_sidebar('home-sidebar');
            } elseif (current_user_can('edit_theme_options')) {
                ?>
				<div class="widget">
					<h4>Home Sidebar.</h4>
					<a href="<?php 
                echo home_url('/');
                ?>
nxt-admin/widgets.php" title="Add Widgets">Add Widgets</a>
				</div><?php 
            }
        } else {
            if (is_active_sidebar('page-sidebar')) {
                dynamic_sidebar('page-sidebar');
            } elseif (current_user_can('edit_theme_options')) {
                ?>
				<div class="widget">
					<h4>Page Sidebar.</h4>
					<a href="<?php 
                echo home_url('/');
                ?>
//.........这里部分代码省略.........
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:101,代码来源:templatetags.php

示例14: bp_menu

    /**
     * header: add the buddypress dropdown navigation to the menu
     *
     * located: header.php do_action( 'bp_menu' )
     *
     * @package Custom Community
     * @since 1.8.3
     */
    function bp_menu()
    {
        global $cap;
        if (!defined('BP_VERSION')) {
            if ($cap->menue_disable_home == true) {
                ?>
				<ul>
					<li id="nav-home"<?php 
                if (is_home()) {
                    ?>
 class="span2 current-menu-item"<?php 
                }
                ?>
>
						<a href="<?php 
                echo home_url();
                ?>
" title="<?php 
                _e('Home', 'cc');
                ?>
"><?php 
                _e('Home', 'cc');
                ?>
</a>
					</li>
				</ul>
			<?php 
            }
            ?>
		<?php 
        } else {
            ?>
			<ul>
			<?php 
            if ($cap->menue_disable_home == true) {
                ?>
				<li id="nav-home"<?php 
                if (is_front_page()) {
                    ?>
 class="span2 current-menu-item"<?php 
                }
                ?>
>
					<a href="<?php 
                echo home_url();
                ?>
" title="<?php 
                _e('Home', 'cc');
                ?>
"><?php 
                _e('Home', 'cc');
                ?>
</a>
				</li>
			<?php 
            }
            ?>
				<?php 
            if ($cap->menue_enable_community == true) {
                ?>
                                <li id="nav-community"<?php 
                if (bp_is_activity_component() || (bp_is_members_component() || bp_is_user()) || (bp_is_groups_component() || bp_is_group()) || bp_is_forums_component() || bp_is_blogs_component()) {
                    ?>
 class="span2 page_item current-menu-item"<?php 
                }
                ?>
>
					<a href="<?php 
                echo site_url();
                ?>
/<?php 
                echo BP_ACTIVITY_SLUG;
                ?>
/" title="<?php 
                _e('Community', 'cc');
                ?>
"><?php 
                _e('Community', 'cc');
                ?>
</a>
					<ul class="children">
						<?php 
                if ('activity' != bp_dtheme_page_on_front() && bp_is_active('activity')) {
                    ?>
							<li<?php 
                    if (bp_is_activity_component()) {
                        ?>
 class="selected"<?php 
                    }
                    ?>
>
								<a href="<?php 
//.........这里部分代码省略.........
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:101,代码来源:theme-generator.php

示例15: kleo_bp_get_component_id

function kleo_bp_get_component_id()
{
    $current_page_id = NULL;
    $page_array = get_option('bp-pages');
    if (bp_is_register_page()) {
        /* register page */
        $current_page_id = $page_array['register'];
    } elseif (bp_is_members_component() || bp_is_user()) {
        /* members component */
        $current_page_id = $page_array['members'];
    } elseif (bp_is_activity_directory()) {
        /* activity directory */
        $current_page_id = $page_array['activity'];
    } elseif (bp_is_groups_directory() || bp_is_group_single()) {
        /* groups directory */
        $current_page_id = $page_array['groups'];
    } elseif (bp_is_activation_page()) {
        /* activation page */
        $current_page_id = $page_array['activate'];
    }
    return $current_page_id;
}
开发者ID:quyip8818,项目名称:wps,代码行数:22,代码来源:buddypress-functions.php


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