BuddyPress Template Pack Fixing Alignment
-
I’m trying to convert my theme to be buddypress compatible using the BuddyPress Template Pack. Being stuck on Step 3 I am confused on to adjust the html structure of the buddypress files to match my theme. Below I have included my themes page.php and buddpress /activity/index.php. Can someone show me an example of how the files should be integrated to best match your theme’s HTML structure.
http://www.elegantthemes.com/preview/TheCorporation/
My themes page.php
‘
<?php if (is_front_page()) { ?>
<?php include(TEMPLATEPATH . ‘/home.php’); ?>
<?php } else { ?>
<?php get_header(); ?>
<?php the_post(); ?>
<div id=”content-area” class=”clearfix”>
<div class=”post clearfix”>
<?php $width = get_option(‘thecorporation_thumbnail_width_pages’);
$height = get_option(‘thecorporation_thumbnail_height_pages’);
$classtext = ‘thumbnail-post alignleft’;
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
$thumb = $thumbnail[“thumb”]; ?>
<?php if($thumb <> ” && get_option(‘thecorporation_page_thumbnails’) == ‘on’) { ?>
<?php print_thumbnail($thumb, $thumbnail[“use_timthumb”], $titletext , $width, $height, $classtext); ?>
<?php }; ?>
<?php the_content(); ?>
<?php wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
<?php edit_post_link(__(‘Edit this page’,’TheCorporation’)); ?>
<div class=”clear”></div>
</div> <!– end .post –>
<?php if (get_option(‘thecorporation_show_pagescomments’) == ‘on’) comments_template(”, true); ?>
</div> <!– end #content-area –>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<?php } ?>
‘
Buddypress /activity/index.php
‘
<?php get_header() ?>
<div id=”container”>
<div id=”content”>
<?php if ( !is_user_logged_in() ) : ?>
<h3><?php _e( ‘Site Activity’, ‘buddypress’ ) ?></h3>
<?php endif; ?>
<?php do_action( ‘bp_before_directory_activity_content’ ) ?>
<?php if ( is_user_logged_in() ) : ?>
<?php locate_template( array( ‘activity/post-form.php’), true ) ?>
<?php endif; ?>
<?php do_action( ‘template_notices’ ) ?>
<div class=”item-list-tabs activity-type-tabs”>
-
<?php do_action( ‘bp_before_activity_type_tab_all’ ) ?>
<li class=”selected” id=”activity-all”>” title=”<?php _e( ‘The public activity for everyone on this site.’, ‘buddypress’ ) ?>”><?php printf( __( ‘All Members (%s)’, ‘buddypress’ ), bp_get_total_site_member_count() ) ?>
<?php if ( is_user_logged_in() ) : ?>
<?php do_action( ‘bp_before_activity_type_tab_friends’ ) ?>
<?php if ( function_exists( ‘bp_get_total_friend_count’ ) ) : ?>
<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-friends”>” title=”<?php _e( ‘The activity of my friends only.’, ‘buddypress’ ) ?>”><?php printf( __( ‘My Friends (%s)’, ‘buddypress’ ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?>
<?php endif; ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_groups’ ) ?>
<?php if ( function_exists( ‘bp_get_total_group_count_for_user’ ) ) : ?>
<?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-groups”>” title=”<?php _e( ‘The activity of groups I am a member of.’, ‘buddypress’ ) ?>”><?php printf( __( ‘My Groups (%s)’, ‘buddypress’ ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?>
<?php endif; ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_favorites’ ) ?>
<?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-favorites”>” title=”<?php _e( “The activity I’ve marked as a favorite.”, ‘buddypress’ ) ?>”><?php printf( __( ‘My Favorites (<span>%s</span>)’, ‘buddypress’ ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_mentions’ ) ?>
<?php endif; ?>
<?php do_action( ‘bp_activity_type_tabs’ ) ?>
</div><!– .item-list-tabs –>
<div class=”item-list-tabs no-ajax” id=”subnav”>
-
<li class=”feed”>” title=”RSS Feed”><?php _e( ‘RSS’, ‘buddypress’ ) ?>
<?php do_action( ‘bp_activity_syndication_options’ ) ?>
<li id=”activity-filter-select” class=”last”>
<select>
<option value=”-1″><?php _e( ‘No Filter’, ‘buddypress’ ) ?></option>
<option value=”activity_update”><?php _e( ‘Show Updates’, ‘buddypress’ ) ?></option>
<option value=”new_blog_post”><?php _e( ‘Show Blog Posts’, ‘buddypress’ ) ?></option>
<option value=”new_blog_comment”><?php _e( ‘Show Blog Comments’, ‘buddypress’ ) ?></option>
<?php if ( bp_is_active( ‘forums’ ) ) : ?>
<option value=”new_forum_topic”><?php _e( ‘Show New Forum Topics’, ‘buddypress’ ) ?></option>
<option value=”new_forum_post”><?php _e( ‘Show Forum Replies’, ‘buddypress’ ) ?></option>
<?php endif; ?>
<?php if ( bp_is_active( ‘groups’ ) ) : ?>
<option value=”created_group”><?php _e( ‘Show New Groups’, ‘buddypress’ ) ?></option>
<option value=”joined_group”><?php _e( ‘Show New Group Memberships’, ‘buddypress’ ) ?></option>
<?php endif; ?>
<?php if ( bp_is_active( ‘friends’ ) ) : ?>
<option value=”friendship_accepted,friendship_created”><?php _e( ‘Show Friendship Connections’, ‘buddypress’ ) ?></option>
<?php endif; ?>
<option value=”new_member”><?php _e( ‘Show New Members’, ‘buddypress’ ) ?></option>
<?php do_action( ‘bp_activity_filter_options’ ) ?>
</select>
</div><!– .item-list-tabs –>
<div class=”activity”>
<?php locate_template( array( ‘activity/activity-loop.php’ ), true ) ?>
</div><!– .activity –>
<?php do_action( ‘bp_after_directory_activity_content’ ) ?>
</div><!– #content –>
</div><!– #container –>
<?php locate_template( array( ‘sidebar.php’ ), true ) ?>
<?php get_footer() ?>
‘
Thanks in advance Muzza!
- The topic ‘BuddyPress Template Pack Fixing Alignment’ is closed to new replies.