<?php
namespace core_next;
global $core_next_set;
?>
<div class="container">
    <div class="friends-warp">
        <div class="box-title-warp">
            <div class="friends-title">友情链接 <span
                    class="friends-description"><?php echo $core_next_set['friends_description'] ?></span></div>
            <?php
            if ($core_next_set['friends_application_url'] != '') {
                echo '<div class="application-url"><a target="_blank" href="' . $core_next_set['friends_application_url'] . '">申请友链</a></div>';
            }
            ?>
        </div>
        <div class="friends-list-warp" id="friends-list-warp">
            <?php
            if ($core_next_set['friends_theme'] === 'link') {
                $arr['plane_name'] = 'div';
                $arr['plane_class_name'] = 'friends-list-link';
                Template::echoListTemplateHtml('friends-list-link', $core_next_set['friends_list'], $arr);
            } else {
                $arr['plane_name'] = 'div';
                $arr['plane_class_name'] = 'friends-list-card';
                Template::echoListTemplateHtml('friends-list-card', $core_next_set['friends_list'], $arr);
            }
            ?>
        </div>
    </div>
</div>
