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


PHP bp_group_avatar函数代码示例

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


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

示例1: bp_group_permalink

?>

</div><!-- #item-actions -->

<div id="item-header-info">
    <div id="item-header-meta">
		<a href="<?php 
bp_group_permalink();
?>
" title="<?php 
bp_group_name();
?>
">

			<?php 
bp_group_avatar();
?>

		</a>
        <h2><a href="<?php 
bp_group_permalink();
?>
" title="<?php 
bp_group_name();
?>
"><?php 
bp_group_name();
?>
</a></h2>
        <p><span class="highlight"><?php 
bp_group_type();
开发者ID:buddydev,项目名称:bp-magic,代码行数:31,代码来源:group-header.php

示例2: while

	<ul id="groups-list" class="item-list">

		<?php 
    while (bp_groups()) {
        bp_the_group();
        ?>
			<li <?php 
        bp_group_class();
        ?>
>
				<div class="group-avatar">
					<a href="<?php 
        bp_group_permalink();
        ?>
"><?php 
        bp_group_avatar('type=full&width=124&height=124');
        ?>
</a>
				</div>
				<div class="group-content">
					<div class="group-title"><a href="<?php 
        bp_group_permalink();
        ?>
"><?php 
        bp_group_name();
        ?>
</a></div>
					<div class="group-meta"><span class="group-activity"><?php 
        printf(__('active %s', 'buddypress'), bp_get_group_last_active());
        ?>
</span></div>
开发者ID:wesavetheworld,项目名称:buddypress-templates,代码行数:31,代码来源:groups-loop.php

示例3: if

		<?php if ( bp_group_has_moderators() ) : ?>
			<?php do_action( 'bp_before_group_menu_mods' ) ?>

			<h3><?php _e( 'Group Mods' , 'buddypress' ) ?></h3>
			<?php bp_group_list_mods() ?>

			<?php do_action( 'bp_after_group_menu_mods' ) ?>
		<?php endif; ?>

	<?php endif; ?>
</div><!-- #item-actions -->

<div id="item-header-avatar">
	<a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>">
		<?php bp_group_avatar() ?>
	</a>
</div><!-- #item-header-avatar -->

<div id="item-header-content">
	<h2><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_name() ?></a></h2>
	<span class="highlight"><?php bp_group_type() ?></span> <span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ) ?></span>

	<?php do_action( 'bp_before_group_header_meta' ) ?>

	<div id="item-meta">
		<?php bp_group_description() ?>

		<div id="item-buttons">

			<?php do_action( 'bp_group_header_actions' ); ?>
开发者ID:n-sane,项目名称:zaroka,代码行数:30,代码来源:group-header.php

示例4: x_buddypress_groups_list_item_header

    function x_buddypress_groups_list_item_header()
    {
        ?>

    <div class="x-list-item-header">
      <div class="x-list-item-avatar-wrap item-avatar">
        <a href="<?php 
        bp_group_permalink();
        ?>
"><?php 
        bp_group_avatar('type=thumb&width=45&height=45');
        ?>
</a>
      </div>

      <div class="x-list-item-header-info item-header">
        <p>
          <a href="<?php 
        bp_group_permalink();
        ?>
"><?php 
        bp_group_name();
        ?>
</a>
          <span class="activity"><?php 
        printf(__('active %s', 'buddypress'), bp_get_group_last_active());
        ?>
</span>
        </p>
      </div>
    </div>

  <?php 
    }
开发者ID:ju4nr3v0l,项目名称:juandavidmarulanda.com,代码行数:34,代码来源:buddypress.php

示例5: bp_group_permalink

" class="column<?php 
        echo $i_column;
        ?>
 row<?php 
        echo $i_row;
        ?>
 row-<?php 
        echo $i_row % 2 == 0 ? 'even' : 'odd';
        ?>
">
			<div class="item-avatar">
				<a href="<?php 
        bp_group_permalink();
        ?>
"><?php 
        bp_group_avatar('type=thumb&width=35&height=35');
        ?>
</a>
			</div>

			<div class="item">
				<div class="item-title"><a href="<?php 
        bp_group_permalink();
        ?>
"><?php 
        bp_group_name();
        ?>
</a></div>
				<!--
				<div class="item-meta"><span class="activity"><?php 
        printf(__('active %s', 'huddle'), bp_get_group_last_active());
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:31,代码来源:groups-loop.php

示例6: bp_group_permalink

	<div id="item-header-avatar" class="hidden-phone">
		<a href="<?php 
bp_group_permalink();
?>
" title="<?php 
bp_group_name();
?>
">
			<?php 
global $cap;
$asize = '150';
if ($cap->bp_groups_avatar_size != '') {
    $asize = $cap->bp_groups_avatar_size;
}
bp_group_avatar('type=full&width=' . $asize . '&height=' . $asize);
?>
		</a>
	</div><!-- #item-header-avatar -->

<div id="item-header-content">
	<h2><a href="<?php 
bp_group_permalink();
?>
" title="<?php 
bp_group_name();
?>
"><?php 
bp_group_name();
?>
</a></h2>
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:30,代码来源:group-header.php

示例7: bp_group_permalink

        //backup the group current loop to ignore loop conflict from widgets
        $groups_template_safe = $groups_template;
        ?>

        <div id="secondary" class="widget-area" role="complementary">
            <div class="secondary-inner">
                <a href="<?php 
        bp_group_permalink();
        ?>
" title="<?php 
        bp_group_name();
        ?>
" class="group-header-avatar">

                    <?php 
        bp_group_avatar('type=full&width=300&height=300');
        ?>

                </a>
                <div id="group-description">
                    <h3><?php 
        _e("Group Info", 'boss');
        ?>
</h3>
                    <?php 
        bp_group_description();
        ?>
                    <?php 
        do_action('bp_group_header_meta');
        ?>
                </div>
开发者ID:rpi-virtuell,项目名称:rw-social-learner,代码行数:31,代码来源:index.php

示例8: bp_group_permalink

        ?>

		<li class="col-xs-12 col-md-6 col-sm-4 buddypress-listing">

			<div class="item">
            	<a href="<?php 
        bp_group_permalink();
        ?>
" class="wpsvse-tooltip" data-toggle="tooltip" data-placement="top" title="<?php 
        bp_group_name();
        ?>
 - <?php 
        bp_group_member_count();
        ?>
"><?php 
        bp_group_avatar('type=thumb&width=256&height=256');
        ?>
								<div class="item-type-wrapper clearfix">
										<div class="item-title"><?php 
        bp_group_name();
        ?>
</div>
                    <div class="item-meta"><?php 
        printf(__('Aktiv %s', 'buddypress'), bp_get_group_last_active());
        ?>
</div>
              	</div>
						  </a>

				<?php 
        do_action('bp_directory_groups_item');
开发者ID:melgar3d,项目名称:wpsvse,代码行数:31,代码来源:front.php

示例9: do_action

	</div>

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

    <div class="clearfix"></div>

	<ul id="groups-list" class="row clearfix" role="main">

	<?php while ( bp_groups() ) : bp_the_group(); ?>

		<li class="yit_animate fadeInUp col-md-4 col-sm-6 masonry_item">
            <div class="item-container">
                <div class="item-header clearfix">
                    <div class="item-avatar">
                        <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
                    </div>

                    <div class="item">
                        <div class="item-username"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div>
                        <div class="item-meta"><span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>
                    </div>
                </div>

                <div class="item-quote">
                    <div class="item-desc"><?php bp_group_description_excerpt(); ?></div>

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

                </div>
开发者ID:jabue,项目名称:wordpress,代码行数:29,代码来源:groups-loop.php

示例10: bp_group_permalink

}
?>

</div><!-- #item-actions -->

<div id="item-header-avatar">
	<a href="<?php 
bp_group_permalink();
?>
" title="<?php 
bp_group_name();
?>
">

		<?php 
bp_group_avatar('width=65&height=65');
?>

	</a>
</div><!-- #item-header-avatar -->

<div id="item-header-content">
	<span class="highlight"><?php 
bp_group_type();
?>
</span>
	<span class="activity"><?php 
printf(__('active %s', 'buddypress'), bp_get_group_last_active());
?>
</span>
开发者ID:justinwool,项目名称:vortago,代码行数:30,代码来源:group-header.php

示例11: bp_group_management_admin_main


//.........这里部分代码省略.........
</a></th>

            		<?php 
        do_action('bp_gm_group_column_header');
        ?>
            	</tr>
            </thead>

			<tbody id="the-list">
            	<?php 
        while (bp_groups()) {
            bp_the_group();
            ?>
   					<?php 
            $group = $groups_template->group;
            ?>
            		<tr>
            			<th scope="row" class="check-column">

						</th>

						<th scope="row"  class="bp-gm-group-id">
							<?php 
            bp_group_id();
            ?>
						</th>


						<td scope="row" class="bp-gm-avatar">
  							 <a href="admin.php?page=bp-group-management&action=edit&id=<?php 
            bp_group_id();
            ?>
" class="edit"><?php 
            bp_group_avatar('width=35&height=35');
            ?>
</a>
 						</td>

						<td scope="row">
							<?php 
            bp_group_name();
            ?>
									<br/>
									<?php 
            $controlActions = array();
            $controlActions[] = '<a href="admin.php?page=bp-group-management&amp;action=edit&amp;id=' . bp_get_group_id() . '" class="edit">' . __('Members', 'bp-group-management') . '</a>';
            $controlActions[] = '<a class="delete" href="admin.php?page=bp-group-management&amp;action=delete&amp;id=' . bp_get_group_id() . '">' . __("Delete") . '</a>';
            $controlActions[] = '<a href="' . bp_get_group_permalink() . 'admin">' . __('Admin', 'bp-group-management') . '</a>';
            $controlActions[] = "<a href='" . bp_get_group_permalink() . "' rel='permalink'>" . __('Visit', 'bp-group-management') . '</a>';
            $controlActions = apply_filters('bp_gm_group_action_links', $controlActions);
            ?>

									<?php 
            if (count($controlActions)) {
                ?>
									<div class="row-actions">
										<?php 
                echo implode(' | ', $controlActions);
                ?>
									</div>
									<?php 
            }
            ?>


						</td>
开发者ID:adisonc,项目名称:MaineLearning,代码行数:67,代码来源:bp-group-management-bp-functions.php

示例12: bp_group_description_excerpt

</span></h6>
					<p class="desc"><?php 
        bp_group_description_excerpt();
        ?>
</p>
					<?php 
        do_action('bp_group_invites_item');
        ?>
				</div>
				<div class="row">
					<div class="item-avatar">
						<a href="<?php 
        bp_group_permalink();
        ?>
"><?php 
        bp_group_avatar('type=full');
        ?>
</a>
					</div>
				</div>
				<div class="row">
					<div class="action">
						<a class="btn btn-primary btn-sm accept" href="<?php 
        bp_group_accept_invite_link();
        ?>
"><?php 
        _e('Accept', 'buddypress');
        ?>
</a> &nbsp;
						<a class="btn btn-primary btn-sm reject confirm" href="<?php 
        bp_group_reject_invite_link();
开发者ID:sekane81,项目名称:ratoninquietoweb,代码行数:31,代码来源:invites.php

示例13: display

    function display($page = 1)
    {
        global $bp, $groups_template;
        $parent_template = $groups_template;
        $hide_button = false;
        if (isset($_REQUEST['grpage'])) {
            $page = (int) $_REQUEST['grpage'];
        } else {
            if (!is_numeric($page)) {
                $page = 1;
            } else {
                $page = (int) $page;
            }
        }
        /** Respect BuddyPress group creation restriction */
        if (function_exists('bp_user_can_create_groups')) {
            $hide_button = !bp_user_can_create_groups();
        }
        bp_has_groups_hierarchy(array('type' => 'alphabetical', 'parent_id' => $bp->groups->current_group->id, 'page' => $page));
        ?>
		<div class="group">

			<?php 
        if (($bp->is_item_admin || $bp->groups->current_group->can_create_subitems) && !$hide_button) {
            ?>
			<div class="generic-button group-button">
				<a title="<?php 
            printf(__('Create a %s', 'bp-group-hierarchy'), __('Member Group', 'bp-group-hierarchy'));
            ?>
" href="<?php 
            echo $bp->root_domain . '/' . bp_get_groups_root_slug() . '/' . 'create' . '/?parent_id=' . $bp->groups->current_group->id;
            ?>
"><?php 
            printf(__('Create a %s', 'bp-group-hierarchy'), __('Member Group', 'bp-group-hierarchy'));
            ?>
</a>
			</div><br /><br />
			<?php 
        }
        ?>

		<?php 
        if ($groups_template && count($groups_template->groups) > 0) {
            ?>

			<div id="pag-top" class="pagination">
				<div class="pag-count" id="group-dir-count-top">
					<?php 
            bp_groups_pagination_count();
            ?>
				</div>
		
				<div class="pagination-links" id="group-dir-pag-top">
					<?php 
            bp_groups_pagination_links();
            ?>
				</div>
			</div>
	
			<ul id="groups-list" class="item-list">
				<?php 
            while (bp_groups()) {
                bp_the_group();
                ?>
				<?php 
                $subgroup = $groups_template->group;
                ?>
				<?php 
                if ($subgroup->status == 'hidden' && !(groups_is_user_member($bp->loggedin_user->id, $subgroup->id) || groups_is_user_admin($bp->loggedin_user->id, $bp->groups->current_group->id))) {
                    continue;
                }
                ?>
				<li id="tree-childof_<?php 
                bp_group_id();
                ?>
">
					<div class="item-avatar">
						<a href="<?php 
                bp_group_permalink();
                ?>
"><?php 
                bp_group_avatar('type=thumb&width=50&height=50');
                ?>
</a>
					</div>
		
					<div class="item">
						<div class="item-title"><a href="<?php 
                bp_group_permalink();
                ?>
"><?php 
                bp_group_name();
                ?>
</a></div>
						<div class="item-meta"><span class="activity"><?php 
                printf(__('active %s', 'buddypress'), bp_get_group_last_active());
                ?>
</span></div>
						<div class="item-desc"><?php 
                bp_group_description_excerpt();
//.........这里部分代码省略.........
开发者ID:adisonc,项目名称:MaineLearning,代码行数:101,代码来源:extension.php

示例14: while

    ?>

	<ul id="groups-list" class="item-list" role="main">

	<?php 
    while (bp_groups()) {
        bp_the_group();
        ?>

		<li>
			<div class="item-avatar">
				<a href="<?php 
        bp_group_permalink();
        ?>
"><?php 
        bp_group_avatar('type=full&width=150&height=150');
        ?>
</a>
			</div>

			<div class="item">
				<div class="item-title"><a href="<?php 
        bp_group_permalink();
        ?>
"><?php 
        bp_group_name();
        ?>
</a></div>
				<div class="item-meta"><span class="activity"><?php 
        printf(__('active %s', 'buddypress'), bp_get_group_last_active());
        ?>
开发者ID:igniterealtime,项目名称:community-plugins,代码行数:31,代码来源:groups-loop.php

示例15: bp_group_class

			</div>
		</div>
	</div>
	<?php 
        if (false) {
            ?>
		<li <?php 
            bp_group_class();
            ?>
>
			<div class="item-avatar">
				<a href="<?php 
            bp_group_permalink();
            ?>
"><?php 
            bp_group_avatar('type=thumb&width=72&height=72');
            ?>
</a>
			</div>

			<div class="item">
				<div class="item-title"><a href="<?php 
            bp_group_permalink();
            ?>
"><?php 
            bp_group_name();
            ?>
</a></div>
				<div class="item-meta"><span class="activity"><?php 
            printf(__('active %s', 'buddypress'), bp_get_group_last_active());
            ?>
开发者ID:kd5ytx,项目名称:Empirical-Wordpress,代码行数:31,代码来源:groups-loop.php


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