Skip to:
Content

BuddyPress.org

Changeset 3386


Ignore:
Timestamp:
11/10/2010 09:35:54 PM (15 years ago)
Author:
djpaul
Message:

Remove used of deprecated theme functions in bp-default

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

Legend:

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

    r3306 r3386  
    2323                    <?php do_action( 'bp_before_blog_post' ) ?>
    2424
    25                     <div class="post" id="post-<?php the_ID(); ?>">
     25                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    2626
    2727                        <div class="author-box">
  • trunk/bp-themes/bp-default/attachment.php

    r2425 r3386  
    1313                    <?php do_action( 'bp_before_blog_post' ) ?>
    1414
    15                     <?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?>
     15                    <?php $attachment_link = wp_get_attachment_link($post->ID, array(450, 800)); // This also populates the iconsize for the next line ?>
    1616                    <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?>
    1717
    18                     <div class="post" id="post-<?php the_ID(); ?>">
     18                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1919
    2020                        <h2 class="posttitle"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &rarr; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  • trunk/bp-themes/bp-default/functions.php

    r3380 r3386  
    33if ( !class_exists( 'BP_Core_User' ) )
    44    return false;
     5
     6add_theme_support( 'automatic-feed-links' );
    57
    68// Register the widget columns
  • trunk/bp-themes/bp-default/header.php

    r3325 r3386  
    2626            <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
    2727        <?php endif; ?>
    28 
    29         <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
    30         <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
    3128
    3229        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  • trunk/bp-themes/bp-default/index.php

    r3306 r3386  
    1414                    <?php do_action( 'bp_before_blog_post' ) ?>
    1515
    16                     <div class="post" id="post-<?php the_ID(); ?>">
     16                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1717
    1818                        <div class="author-box">
  • trunk/bp-themes/bp-default/links.php

    r2170 r3386  
    1717
    1818            <ul id="links-list">
    19                 <?php get_links_list(); ?>
     19                <?php wp_list_bookmarks(); ?>
    2020            </ul>
    2121
  • trunk/bp-themes/bp-default/page.php

    r3334 r3386  
    1212                <h2 class="pagetitle"><?php the_title(); ?></h2>
    1313
    14                 <div class="post" id="post-<?php the_ID(); ?>">
     14                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1515
    1616                    <div class="entry">
  • trunk/bp-themes/bp-default/search.php

    r3306 r3386  
    2323                    <?php do_action( 'bp_before_blog_post' ) ?>
    2424
    25                     <div class="post" id="post-<?php the_ID(); ?>">
     25                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    2626
    2727                        <div class="author-box">
    28                             <?php echo get_avatar( get_the_author_email(), '50' ); ?>
     28                            <?php echo get_avatar( get_the_author_meta( 'email' ), '50' ); ?>
    2929                            <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
    3030                        </div>
  • trunk/bp-themes/bp-default/searchform.php

    r2170 r3386  
    11<?php do_action( 'bp_before_blog_search_form' ) ?>
    22
    3 <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
     3<form method="get" id="searchform" action="<?php echo home_url() ?>/">
    44    <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    55    <input type="submit" id="searchsubmit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
  • trunk/bp-themes/bp-default/single.php

    r3306 r3386  
    1717                </div>
    1818
    19                 <div class="post" id="post-<?php the_ID(); ?>">
     19                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    2020
    2121                    <div class="author-box">
Note: See TracChangeset for help on using the changeset viewer.