| "); bullet.renderHere(out,rdat); out.write(" | \n\n" + link_font + "" + StringUtil.encodeHTML(comm.getName()) + "\n"); if (comm.isAdmin()) { // write the host tag at the end out.write(" "); host.renderHere(out,rdat); } // end if out.write(" | \n
" + rdat.getStdFontTag(SIDEBOX_CONTENT_FOREGROUND,1) + "[ " + hilite + manage_link + " "); if (uc.canCreateCommunity()) out.write("| " + hilite + create_new_link + " "); out.write("]"); } // end if } // end renderHere } // end class CommunityBoxImpl /*-------------------------------------------------------------------------------- * Attributes *-------------------------------------------------------------------------------- */ private ImageHandler title_image; // title image for sidebox for logged-in users private ImageHandler anon_title_image; // title image for sidebox for not-logged-in users private String title; // title of sidebox for logged-in users private String anon_title; // title of sidebox for not-logged-in users private String null_message; // message if they're not a member of any communities private String manage_link; // "Manage" link text private String create_new_link; // "Create New" link text private ImageHandler bullet; // bullet image private ImageHandler host; // host image /*-------------------------------------------------------------------------------- * Constructor *-------------------------------------------------------------------------------- */ public CommunityBox() { // do nothing } // end constructor /*-------------------------------------------------------------------------------- * Implementations from interface SideBoxFactory *-------------------------------------------------------------------------------- */ public void setConfiguration(Element cfg) throws ConfigException { DOMElementHelper cfg_h = new DOMElementHelper(cfg); title_image = new ImageHandler(cfg_h.getSubElement("title-image")); if (title_image.isDefined()) { // we're using image titles... title = anon_title = null; anon_title_image = new ImageHandler(cfg_h.getSubElement("anon-title-image")); if (!(anon_title_image.isDefined())) anon_title_image = title_image; } // end if else { // standard textual title title_image = anon_title_image = null; title = cfg_h.getSubElementText("title"); if (title==null) throw new ConfigException("no