我正在使用社交媒体网络,在我的帖子中,我正试图在Bootstrap 3中找到的图标添加到帖子中。现在,我已经设置了与用户名同一行上的图标,但我无法弄清楚如何获取用户名,然后是图形。下面是我的代码:Div类订单问题
<div class="media well single-post" id="post-<?php echo $post['post_id'];?>">
<div class="avatar large pull-left">
<?php if ($this->profile_type === 'page' || $post['post_wall_profile_type'] === 'page'):?>
<a href="<?php echo $this->baseUrl()?>/<?php echo $post['post_wall_name'];?>">
<img src="<?php echo $this->GetStorageUrl('avatar') . $post['post_wall_avatar'];?>">
</a>
<?php elseif ($this->profile_type === 'feed' && $post['post_wall_profile_type'] === 'group'):?>
<a href="<?php echo $this->baseUrl()?>/<?php echo $post['post_wall_name'];?>">
<img src="<?php echo $this->GetStorageUrl('avatar') . $post['post_wall_avatar'];?>">
</a>
<?php else:?>
<div class="pull-right"><?php if (isset($post['author_meta']['badges'])):?>
<div class="network-badges vertical">
<?php echo $this->partial('/partial/badges.phtml', array('badges' => $post['author_meta']['badges']));?>
</div>
<?php endif;?><div class="pull-left"><a href="<?php echo $this->baseUrl()?>/<?php echo $post['user_name'];?>"></div></div>
<div class="pull-left"><img src="<?php echo $this->GetStorageUrl('avatar') . $post['user_avatar'];?>">
</a></div>
<?php endif;?>
</div>
下面是它目前的样子:http://www.startrekrisa.com/Picture1.png
我知道这会是一个简单的修复,但我不知道如何做到这一点。
在此先感谢
如何添加字形图标?我无法在您发布的代码中看到它们。 – Toothbrush
的代码是:
OK,但我没有看到任何HTML类或任何的字形,图标。 – Toothbrush