public static string RenderCustomNavigation(Page page)
        {
            if (!VoipEnabled) return string.Empty;

            page.RegisterBodyScripts(VirtualPathUtility.ToAbsolute("~/js/asc/core/voip.countries.js"));
            page.RegisterBodyScripts(VirtualPathUtility.ToAbsolute("~/js/asc/core/voip.phone.js"));
            page.RegisterClientScript(typeof(VoipNumberData));

            return
                string.Format(@"<li class=""top-item-box voip"">
                                  <a class=""voipActiveBox inner-text"" title=""{0}"">
                                      <span class=""inner-label"">{1}</span>
                                  </a>
                                </li>",
                              "VoIP",
                              0);
        }
Exemple #2
0
        public string RenderCustomNavigation(Page page)
        {
            var func = string.Empty;

            if (!page.AppRelativeTemplateSourceDirectory.Contains(BaseVirtualPath) && HubUrl == string.Empty)
            {
                func = string.Format(@"

                     setTimeout(function () {{ Teamlab.getMailFolders(); }}, {0}); 
                     {1}", MailCountGetFirstInMillisecond,
                           MailCountGetEnableInterval ? string.Format(
                           "setInterval(function () {{ Teamlab.getMailFolders(); }}, {0});",
                           MailCountGetIntervalInMillisecond)
                           : string.Empty);
            }

            page.RegisterBodyScripts(VirtualPathUtility.ToAbsolute("~/js/asc/core/asc.mailreader.js"));
            if (func != string.Empty)
            {
                page.RegisterInlineScript(func);
            }
            return string.Format(@"<li class=""top-item-box mail"">
                                     <a class=""inner-text mailActiveBox"" href=""{0}"" title=""{1}"">
                                       <span id=""TPUnreadMessagesCount"" class=""inner-label""></span>
                                     </a>
                                   </li>",
                                 VirtualPathUtility.ToAbsolute(BaseVirtualPath + "/"),
                                 MailResource.MailTitle);
        }