Skip to:
Content

BuddyPress.org

Changeset 3306


Ignore:
Timestamp:
10/25/2010 08:20:48 PM (11 years ago)
Author:
djpaul
Message:

Don't reinvent core template functions. Fixes #2643.

Location:
trunk/bp-themes/bp-default
Files:
19 edited

Legend:

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

    r2170 r3306  
    2525    </div><!-- #content -->
    2626
    27     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     27    <?php get_sidebar() ?>
    2828
    2929<?php get_footer(); ?>
  • trunk/bp-themes/bp-default/activity/index.php

    r3300 r3306  
    107107    </div><!-- #content -->
    108108
    109     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     109    <?php get_sidebar() ?>
    110110
    111111<?php get_footer() ?>
  • trunk/bp-themes/bp-default/archive.php

    r3300 r3306  
    5858
    5959                <h2 class="center"><?php _e( 'Not Found', 'buddypress' ) ?></h2>
    60                 <?php locate_template( array( 'searchform.php' ), true ) ?>
     60                <?php get_search_form() ?>
    6161
    6262            <?php endif; ?>
     
    6969    </div><!-- #content -->
    7070
    71     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     71    <?php get_sidebar() ?>
    7272
    7373<?php get_footer(); ?>
  • trunk/bp-themes/bp-default/blogs/create.php

    r3235 r3306  
    2929    </div><!-- #content -->
    3030
    31     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     31    <?php get_sidebar() ?>
    3232
    3333    <?php do_action( 'bp_after_directory_blogs_content' ) ?>
  • trunk/bp-themes/bp-default/blogs/index.php

    r2908 r3306  
    5555    </div><!-- #content -->
    5656
    57     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     57    <?php get_sidebar() ?>
    5858
    5959<?php get_footer() ?>
  • trunk/bp-themes/bp-default/forums/index.php

    r3300 r3306  
    118118    </div><!-- #content -->
    119119
    120     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     120    <?php get_sidebar() ?>
    121121
    122122<?php get_footer() ?>
  • trunk/bp-themes/bp-default/groups/create.php

    r3300 r3306  
    258258    </div><!-- #content -->
    259259
    260     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     260    <?php get_sidebar() ?>
    261261
    262262<?php get_footer() ?>
  • trunk/bp-themes/bp-default/groups/index.php

    r3300 r3306  
    5353    </div><!-- #content -->
    5454
    55     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     55    <?php get_sidebar() ?>
    5656
    5757<?php get_footer() ?>
  • trunk/bp-themes/bp-default/groups/single/home.php

    r3300 r3306  
    6969    </div><!-- #content -->
    7070
    71     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     71    <?php get_sidebar() ?>
    7272
    7373<?php get_footer() ?>
  • trunk/bp-themes/bp-default/groups/single/plugins.php

    r3300 r3306  
    3737    </div><!-- #content -->
    3838
    39     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     39    <?php get_sidebar() ?>
    4040
    4141<?php get_footer() ?>
  • trunk/bp-themes/bp-default/index.php

    r3300 r3306  
    5151                <p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'buddypress' ) ?></p>
    5252
    53                 <?php locate_template( array( 'searchform.php' ), true ) ?>
     53                <?php get_search_form() ?>
    5454
    5555            <?php endif; ?>
     
    6161    </div><!-- #content -->
    6262
    63     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     63    <?php get_sidebar() ?>
    6464
    6565<?php get_footer() ?>
  • trunk/bp-themes/bp-default/members/index.php

    r3300 r3306  
    5656    </div><!-- #content -->
    5757
    58     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     58    <?php get_sidebar() ?>
    5959
    6060<?php get_footer() ?>
  • trunk/bp-themes/bp-default/members/single/home.php

    r3300 r3306  
    5757    </div><!-- #content -->
    5858
    59     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     59    <?php get_sidebar() ?>
    6060
    6161<?php get_footer() ?>
  • trunk/bp-themes/bp-default/members/single/plugins.php

    r3300 r3306  
    4444    </div><!-- #content -->
    4545
    46     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     46    <?php get_sidebar() ?>
    4747
    4848<?php get_footer() ?>
  • trunk/bp-themes/bp-default/page.php

    r2284 r3306  
    3434    </div><!-- #content -->
    3535
    36     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     36    <?php get_sidebar() ?>
    3737
    3838<?php get_footer(); ?>
  • trunk/bp-themes/bp-default/registration/activate.php

    r2635 r3306  
    5454    </div><!-- #content -->
    5555
    56     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     56    <?php get_sidebar() ?>
    5757
    5858<?php get_footer(); ?>
  • trunk/bp-themes/bp-default/registration/register.php

    r3300 r3306  
    293293    </div><!-- #content -->
    294294
    295     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     295    <?php get_sidebar() ?>
    296296
    297297    <?php do_action( 'bp_after_directory_activity_content' ) ?>
  • trunk/bp-themes/bp-default/search.php

    r3300 r3306  
    5656
    5757                <h2 class="center"><?php _e( 'No posts found. Try a different search?', 'buddypress' ) ?></h2>
    58                 <?php locate_template( array( '/searchform.php'), true ) ?>
     58                <?php get_search_form() ?>
    5959
    6060            <?php endif; ?>
     
    6767    </div><!-- #content -->
    6868
    69     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     69    <?php get_sidebar() ?>
    7070
    7171<?php get_footer() ?>
  • trunk/bp-themes/bp-default/single.php

    r3300 r3306  
    5555    </div><!-- #content -->
    5656
    57     <?php locate_template( array( 'sidebar.php' ), true ) ?>
     57    <?php get_sidebar() ?>
    5858
    5959<?php get_footer() ?>
Note: See TracChangeset for help on using the changeset viewer.