<?php
/*
Plugin Name: Brands Show Plugin
Plugin URI: http://www.zhuzh.info/
Description: Brands and Manufacures List Show
Version: 2010.10.24
Author: zhuzh
Author URI: http://www.zhuzh.info
License:
*/
function show_brands_manufactures_list($content){
    $links = get_bookmarks(array("orderby"=>"id"));
    $c = '<ul id="brands_manufactures_list">';
    foreach ($links as $link){
        $c.= '<li>';
        $c.= ' <a class="imagelink" href="' . $link->link_url . '" target="' . $link->link_target . '"><img src="' . $link->link_image . '" alt="' . $link->link_name . '" /></a>';
        $c.= ' <div class="detail">';
        $c.= '   <div class="desc">' . $link->link_description . '</div>';
        $c.= '   <p class="link">Visit them at: <a href="' . $link->link_url . '" target="' . $link->link_target . '">' . $link->link_url . '</a></p>';
        $c.= ' </div>';
        $c.= '</li>';
    }
    $c.= '</ul>';
    $c.= '<p style="margin-bottom:0px;">&nbsp;</p>';
    return str_replace('[brands]', $c, $content);
}

add_filter ( 'the_content', 'show_brands_manufactures_list');