Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/22/2011 10:13:25 AM (14 years ago)
Author:
johnjamesjacoby
Message:

First pass at normalizing bp-default template files. This includes:

A ton of code cleanup
Using new functions found in BP 1.3
Template header documentation
Improve pagination style and position on root component templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/blogs/create.php

    r3771 r3810  
    1 <?php get_header() ?>
     1<?php
    22
    3     <?php do_action( 'bp_before_directory_blogs_content' ) ?>
     3/**
     4 * BuddyPress - Create Blog
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
     12<?php get_header(); ?>
     13
     14    <?php do_action( 'bp_before_directory_blogs_content' ); ?>
    415
    516    <div id="content">
    617        <div class="padder" role="main">
    718
    8         <?php do_action( 'template_notices' ) ?>
     19        <?php do_action( 'template_notices' ); ?>
    920
    10         <h3><?php _e( 'Create a Blog', 'buddypress' ) ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_BLOGS_SLUG . '/' ?>"><?php _e( 'Blogs Directory', 'buddypress' ) ?></a></h3>
     21            <h3><?php _e( 'Create a Blog', 'buddypress' ); ?> &nbsp;<a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_blogs_root_slug() ) ?>"><?php _e( 'Blogs Directory', 'buddypress' ); ?></a></h3>
    1122
    12         <?php do_action( 'bp_before_create_blog_content' ) ?>
     23        <?php do_action( 'bp_before_create_blog_content' ); ?>
    1324
    1425        <?php if ( bp_blog_signup_enabled() ) : ?>
    1526
    16             <?php bp_show_blog_signup_form() ?>
     27            <?php bp_show_blog_signup_form(); ?>
    1728
    1829        <?php else: ?>
     
    2435        <?php endif; ?>
    2536
    26         <?php do_action( 'bp_after_create_blog_content' ) ?>
     37        <?php do_action( 'bp_after_create_blog_content' ); ?>
    2738
    2839        </div><!-- .padder -->
    2940    </div><!-- #content -->
    3041
    31     <?php get_sidebar() ?>
     42    <?php do_action( 'bp_after_directory_blogs_content' ); ?>
    3243
    33     <?php do_action( 'bp_after_directory_blogs_content' ) ?>
     44<?php get_sidebar(); ?>
     45<?php get_footer(); ?>
    3446
    35 <?php get_footer() ?>
    36 
Note: See TracChangeset for help on using the changeset viewer.