#3737 closed enhancement (fixed)
Add missing hooks in blogs/create.php and groups/create.php
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Templates | Keywords: | |
Cc: |
Description
There are missing hooks in the bp-default/groups/create.php and the bp-default/blogs/create.php files which are available in the other template files of bp-default theme.
So theme authors can hook into the same location in the HTML structure even if the hooks are named differently and for the sake of consistency, attached is a proposed patch.
For blogs/index.php you have
<?php get_header( 'buddypress' ); ?> '''<?php do_action( 'bp_before_directory_blogs_page' ); ?>''' <div id="content"> <div class="padder"> '''<?php do_action( 'bp_before_directory_blogs' ); ?>'''
while in blogs/create.php
<?php get_header( 'buddypress' ); ?> '''<?php do_action( 'bp_before_directory_blogs_content' ); ?>''' <div id="content"> <div class="padder" role="main"> '''// missing hook here - added in patch''' <?php do_action( 'template_notices' ); ?>
For groups/index.php
<?php get_header( 'buddypress' ); ?> '''<?php do_action( 'bp_before_directory_groups_page' ); ?>''' <div id="content"> <div class="padder"> '''<?php do_action( 'bp_before_directory_groups' ); ?>'''
while in groups/create.php
<?php get_header( 'buddypress' ); ?> '''// missing hook here - not added in patch yet''' <div id="content"> <div class="padder"> '''// missing hook here - added in patch'''
Same goes for the required closing hooks in the bottom portion of both files.
For consideration.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Without hooks and With hooks