コード例 #1
0
 public void GetProductLocation(string currentURL, out IProduct currentProduct, out IModule currentModule)
 {
     CommonLinkUtility.GetLocationByUrl(currentURL, out currentProduct, out currentModule);
 }
コード例 #2
0
        public static void CommentsConfigure(CommentsList commentList)
        {
            commentList.DisableCtrlEnter = (SetupInfo.WorkMode == WorkMode.Promo);

            commentList.PID                    = CommonLinkUtility.GetProductID().ToString();
            commentList.InactiveMessage        = Resources.Resource.CommentRemovedMessage;
            commentList.UserProfileUrlResolver = user => CommonLinkUtility.GetUserProfile(user);
            commentList.UserPageLinkWithParam  = VirtualPathUtility.ToAbsolute("~/userprofile.aspx") + "?" + CommonLinkUtility.GetProductParamsPair(new Guid(commentList.PID)) + "&uid";
            commentList.AddCommentLink         = Resources.Resource.AddNewCommentButton;

            commentList.SaveButton = Resources.Resource.PublishButton;
            commentList.BehaviorID = "_commentObj";

            commentList.PreviewButton     = Resources.Resource.PreviewButton;
            commentList.HidePrevuewButton = Resources.Resource.CloseButton;
            commentList.CancelButton      = Resources.Resource.CancelButton;
            commentList.InactiveMessage   = Resources.Resource.CommentWasRemoved;

            commentList.RemoveCommentLink   = Resources.Resource.DeleteButton;
            commentList.ResponseCommentLink = Resources.Resource.AnswerButton;
            commentList.EditCommentLink     = Resources.Resource.EditButton;

            commentList.FCKBasePath = FCKEditorBasePath;

            commentList.CommentsTitle = Resources.Resource.Comments;

            commentList.ConfirmRemoveCommentMessage = Resources.Resource.ConfirmRemoveCommentMessage;

            commentList.AdditionalSubmitText = "<span class=\"textMediumDescribe\" style=\"margin-left:5px;\">" + Resources.Resource.OrPress + "</span> <span class=\"textBase\">" + Resources.Resource.CtrlEnterKeys + "</span>";

            commentList.FCKEditorAreaCss = WebSkin.GetUserSkin().BaseCSSFileAbsoluteWebPath;

            commentList.LoaderImage       = WebImageSupplier.GetAbsoluteWebPath("ajax_progress_loader.gif");
            commentList.CommentSendingMsg = Resources.Resource.PleaseWaitMessage;


            commentList.OnEditedCommentJS   = "FCKCommentsController.EditCommentHandler";
            commentList.OnCanceledCommentJS = "FCKCommentsController.CancelCommentHandler";
            commentList.OnRemovedCommentJS  = "FCKCommentsController.RemoveCommentHandler";

            try
            {
                AjaxPro.Utility.RegisterTypeForAjax(typeof(CommonControlsConfigurer));
            }
            catch
            {
            }
        }
コード例 #3
0
ファイル: TenantExtra.cs プロジェクト: ztcyun/CommunityServer
 public static string GetTariffPageLink()
 {
     return(EnableControlPanel
         ? CommonLinkUtility.GetFullAbsolutePath(SetupInfo.ControlPanelUrl.TrimEnd('/') + "/activate")
         : VirtualPathUtility.ToAbsolute("~/Tariffs.aspx"));
 }