Skip to content

Commit

Permalink
add whoisonline.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
aragonc committed Aug 6, 2015
1 parent 55349cf commit 24a4aa1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions main/template/default/social/whoisonline.tpl
@@ -0,0 +1,12 @@
{% extends template ~ "/layout/layout_1_col.tpl" %}

{% block content %}
<div class="row">
<div class="col-md-12">

{{ social_right_content }}


</div>
</div>
{% endblock %}
3 changes: 1 addition & 2 deletions whoisonline.php
Expand Up @@ -150,9 +150,8 @@ function hide_icon_edit(element_html) {
$tpl = new Template(get_lang('UsersOnLineList'));

if (api_get_setting('allow_social_tool') == 'true' && !api_is_anonymous()) {
$tpl->assign('social_avatar_block', $social_left_content);
$tpl->assign('social_search_block', $social_right_content);
$social_layout = $tpl->get_template('social/home.tpl');
$social_layout = $tpl->get_template('social/whoisonline.tpl');
$tpl->display($social_layout);
} else {
$content = $social_right_content;
Expand Down

0 comments on commit 24a4aa1

Please sign in to comment.