我正在使用社交媒體網絡,在我的帖子中,我正試圖在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