Атаман Posted April 12, 2014 Share Posted April 12, 2014 Есть такой чудный хук User Online Status in Topics но мне внешний вид его отображения не нравится. Стандартный код: <if test="postOnline:|:$author['_online']"> <span class='ipsBadge ipsBadge_green'>{$this->lang->words['online_online']}</span> <else /> <span class='ipsBadge ipsBadge_grey'>{$this->lang->words['online_offline']}</span> </if> И я захотел его преобразоваться. И получилось такое Мой код: <if test="postOnline:|:$author['_online']"> <span class='online'></span> <else /> <span class='offline'></span> </if> Ну и в css добавить строки .online { margin-left: -10px; border-left: 12px solid #ff9600; padding: 10px 0; } .offline { margin-left: -10px; border-left: 12px solid #bbbbbb; padding: 10px 0; } Вопрос, все ли я правильно сделал? Link to comment Share on other sites More sharing options...
siv1987 Posted April 12, 2014 Share Posted April 12, 2014 Ну если нравится, то почему нет. 1 Link to comment Share on other sites More sharing options...
Атаман Posted April 12, 2014 Author Share Posted April 12, 2014 Это я так для примера накидал, но поиграться с CSS получится, красивый результат. Link to comment Share on other sites More sharing options...
Атаман Posted April 14, 2014 Author Share Posted April 14, 2014 Исходя из этой темы, продолжение. <if test="postOnline:|:$msg['msg_author_id']"> <span class='online'></span> <else /> <span class='offline'></span> </if> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now