function twitter_editor($link) { $is_registered = twitter_configured($link); ?> <div id="infoBoxTitle"><?php echo __("Register with Twitter"); ?> </div> <div class="infoBoxContents"> <div id="mini-notice" style='display : none'> </div> <div class="dlgSec"><?php echo __('Authentication'); ?> </div> <?php if (!$is_registered) { echo __("You'll need to register with Twitter.com before you'll be able to send tweets from Tiny Tiny IRC."); } else { echo __("You have been successfully registered with Twitter.com.."); } ?> <p> <div class="dlgButtons"> <button onclick="window.location.href = 'twitter.php?op=register'"> <?php echo __("Register with Twitter.com"); ?> </button> <button type="submit" onclick="show_prefs()"><?php echo __('Go back'); ?> </button></div> </div> </div> <?php }
<div id="topic"><div class="wrapper"> <input disabled onkeypress="change_topic(this, event)" id="topic-input" value=""></div> </div> <div id="log"><ul id="log-list"></ul></div> <div id="sidebar"> </div> <div id="connect"><button onclick="toggle_connection(this)" id="connect-btn">Connect</button></div> <div id="userlist"> <div id="userlist-inner"><ul id="userlist-list"></ul></div> <?php if (CONSUMER_KEY != '' && twitter_configured($link)) { ?> <div title="<?php echo __('Tweet selected text'); ?> " id="tweet-button"><button href="#" onclick="tweet_selection()"><?php echo __('Tweet'); ?> </button></div> <?php } ?>