<div class="ccbpress-group-search-result">

				<div class="ccbpress-group-name clearfix">
					<div class="ccbpress-group-name-large">
						<?php echo $item->name; ?>
					</div>
					<?php if ( TRUE === ( $spots_available = ccbpress_group_search_result_is_full( $group_profile ) ) ) : ?>
						&nbsp;<span class="ccbpress-group-full">(Full Group)</span>
					<?php elseif ( $spots_available != 'unlimited' ) : ?>
						&nbsp;<span class="ccbpress-group-spots-available">(<?php echo $spots_available; ?> spots available)</span>
					<?php endif; ?>
					<div class="ccbpress-group-search-meta ccbpress-group-leader">
						<?php if (isset($contactHtml)): ?>
						<span class="dashicons dashicons-admin-links"></span> <?php echo $contactHtml; ?>
						<?php else: ?>
						<span class="dashicons dashicons-email"></span> <a href="<?php echo ccbpress_get_easy_email_url( $item->owner_name['ccb_id'], $item->item_id, $item->owner_name ); ?>" target="_blank"<?php echo $ccbpress['lightbox_code']; ?>><?php echo $item->owner_name; ?></a>
						<?php endif; ?>
					</div>
				</div>

				<div class="ccbpress-group-search-meta-container">
					<?php if ( $item->area_name != '' ) : ?>
						<div class="ccbpress-group-search-meta" title="<?php _e('Area', 'ccbpress'); ?>">
							<span class="dashicons dashicons-location"></span> <?php echo $item->area_name; ?> <?php echo ccbpress_group_search_result_campus( $ccbpress['campus_list_dropdown'], $group_profile, '(', ')' ); ?>
						</div>
					<?php endif; ?>

					<?php if ( $item->group_type_name != '' ) : ?>
						<div class="ccbpress-group-search-meta" title="<?php _e('Group Type', 'ccbpress'); ?>">
							<span class="dashicons dashicons-tag"></span> <?php echo $item->group_type_name; ?>
						</div>
Пример #2
0
	 */
	if ( ccbpress_group_info_widget_show_group_leader( $group ) ) : ?>
		<div class="ccbpress-group-leader">
			<div class="ccbpress-group-leader-name"><?php echo $group->main_leader->full_name; ?></div>
			<?php
			/**
			 * Check the widget settings to see if it should be displayed.
			 */
			if ( ccbpress_group_info_widget_show_group_leader_email( $group ) || ccbpress_group_info_widget_show_group_leader_phone( $group ) ) : ?>
				<ul>
				<?php
				/**
				 * Check the widget settings to see if it should be displayed.
				 */
				if ( ccbpress_group_info_widget_show_group_leader_email( $group ) ) : ?>
					<li class="ccbpress-group-leader-email"><a href="<?php echo ccbpress_get_easy_email_url( (string)$group->main_leader['id'], (string)$group['id'], $group->main_leader->full_name ); ?>" target="_blank" class="<?php echo ccbpress_lightbox_class(); ?>">Email Leader</a></li>
				<?php endif; ?>
				<?php
				/**
				 * Check the widget settings to see if it should be displayed.
				 */
				if ( ccbpress_group_info_widget_show_group_leader_phone( $group ) ) : ?>
					<?php
					/**
					 * Loop through all of the phone numbers.
					 */
					foreach ( $group->main_leader->phones->phone as $phone ) : ?>
						<?php
						/**
						 * Check that the phone number is not blank.
						 */