diff options
author | root <root@migration.vz.lan> | 2012-10-23 09:04:43 +0000 |
---|---|---|
committer | root <root@migration.vz.lan> | 2012-10-23 09:04:43 +0000 |
commit | 074dc8fda6f634cc8c024a913d8033600b336b3a (patch) | |
tree | 1a9959d61e9f308b0a3443d9d67c00d26421581c /views/default/beechat/beechat.php | |
download | elgg-074dc8fda6f634cc8c024a913d8033600b336b3a.tar.gz elgg-074dc8fda6f634cc8c024a913d8033600b336b3a.tar.bz2 |
initial commit.
Diffstat (limited to 'views/default/beechat/beechat.php')
-rw-r--r-- | views/default/beechat/beechat.php | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/views/default/beechat/beechat.php b/views/default/beechat/beechat.php new file mode 100644 index 000000000..d1e9e17be --- /dev/null +++ b/views/default/beechat/beechat.php @@ -0,0 +1,84 @@ +<?php + /** + * Beechat + * + * @package beechat + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Beechannels <contact@beechannels.com> + * @copyright Beechannels 2007-2010 + * @link http://beechannels.com/ + */ + +if (isloggedin() && get_loggedin_user()->chatenabled && elgg_get_context() != 'admin') { +?> +<div id="beechat"> + <div id="beechat_left"> + <a id="beechat_tooltip_trigger" href="<?php echo $vars['url']; ?>"><img src="<?php echo $vars['config']->wwwroot; ?>favicon.ico" /></a> + <div class="tooltip tooltipchat"> + <h3><?php echo elgg_echo('beechat:icons:home'); ?></h3> + </div> + </div> + <div id="beechat_center"> + <span id="beechat_center_prev" class="prev"></span> + <div id="beechat_scrollboxes"><ul></ul></div> + <span id="beechat_center_next" class="next"></span> + </div> + <div id="beechat_right"> + <span id="beechat_contacts_button" class="offline"> + <?php echo elgg_echo('beechat:contacts:button'); ?> + </span> + </div> + <div id="beechat_contacts"> + <div id="beechat_contacts_top"> + <span class="beechat_label"><?php echo elgg_echo('beechat:contacts:button'); ?></span> + <div id="beechat_contacts_controls"> + <span id="beechat_contacts_control_minimize" class="beechat_control" title="<?php echo elgg_echo('beechat:box:minimize'); ?>">_</span> + </div> + <br clear="all" /> + </div> + <div id="beechat_availability_switcher"> + <span id="beechat_current_availability"></span> + <span class="beechat_availability_switcher_control_down" id="beechat_availability_switcher_control"></span> + </div> + <div id="beechat_contacts_content"> + <ul id="beechat_contacts_list"></ul> + <ul id="beechat_availability_switcher_list"> + <li class="beechat_left_availability_chat"><?php echo elgg_echo('beechat:availability:available'); ?></li> + <li class="beechat_left_availability_dnd"><?php echo elgg_echo('beechat:availability:dnd'); ?></li> + <li class="beechat_left_availability_away"><?php echo elgg_echo('beechat:availability:away'); ?></li> + <li class="beechat_left_availability_xa"><?php echo elgg_echo('beechat:availability:xa'); ?></li> + <li class="beechat_left_availability_offline"><?php echo elgg_echo('beechat:availability:offline'); ?></li> + </ul> + </div> + <div id="beechat_contacts_bottom"> + <span id="beechat_contacts_bottom_bar"></span> + </div> + </div> + <div id="beechat_chatboxes"></div> +</div> +<!-- SOUNDS --> +<!-- +<embed src="<?php echo $vars['config']->staticurl; ?>mod/beechat/sounds/newmessage.wav" autostart=false width=0 height=0 + id="beechat_sounds_new_message" + enablejavascript="true" /> +--> + +<?php + $ts = time(); + $token = generate_action_token($ts); +?> + +<script> + $(function () { + var e = document.createElement('script'); + e.async = true; + e.type = 'text/javascript'; + e.text = 'init_beechat("<?php echo $ts; ?>","<?php echo $token; ?>");'; + document.getElementById('beechat').appendChild(e); + + }) +</script> + +<?php + } +?> |