public void Init(MvcContext ctx, String appName, String fUrl) { base.AddMenu(ctx, appName, PhotoLink.ToHome(), fUrl); // 初始化基本效果图片 addPhotoPosts(ctx); }
public void Init(MvcContext ctx) { base.AddMenuToHome(ctx, PhotoLink.ToHome(), "首页"); // 初始化基本效果图片 addPhotoPosts(ctx); }
public override void Layout() { set("lnkHome", PhotoLink.ToHome()); set("lnkFollowing", to(new HomeController().Following)); set("lnkHot", PhotoLink.ToHot()); set("lnkPick", PhotoLink.ToPick()); set("lnkAdd", to(new HomeController().Add)); bindCategories(); bindAdminCmd(); bindSysAdminLink(); }
public void Links() { set("addMenu", to(new Admin.MenuController().AddMenu)); set("addFooterMenuLink", to(new FooterMenuController().Add)); set("groupLink", lnkFull(to(new Web.Controller.Groups.MainController().Index))); set("userLink", lnkFull(to(new Users.MainController().Index))); set("blogLink", lnkFull(to(new Blog.MainController().Index))); set("photoLink", lnkFull(to(new Photo.MainController().Index))); set("photoWfLink", lnkFull(PhotoLink.ToHome())); set("microblogLink", lnkFull(alink.ToMicroblog())); set("tagLink", lnkFull(to(new TagController().Index))); set("myHomeLink", lnkFull(to(new LinkController().MyHome))); set("mySpaceLink", lnkFull(to(new LinkController().MySpace))); set("myMicroblogLink", lnkFull(to(new LinkController().MyMicroblog))); set("myFriendsLink", lnkFull(to(new LinkController().MyFriends))); set("myMsgLink", lnkFull(to(new LinkController().MyMsg))); set("myAppLink", lnkFull(to(new LinkController().MyApp))); set("myMenuLink", lnkFull(to(new LinkController().MyMenu))); set("myProfileEditLink", lnkFull(to(new LinkController().MyProfile))); set("myPicLink", lnkFull(to(new LinkController().MyPic))); set("myPwdLink", lnkFull(to(new LinkController().MyPwd))); set("myContactLink", lnkFull(to(new LinkController().MyContact))); set("myInterestLink", lnkFull(to(new LinkController().MyInterest))); set("myTagLink", lnkFull(to(new LinkController().MyTag))); set("myPrivacyLink", lnkFull(to(new LinkController().MyPrivacy))); set("myCreditLink", lnkFull(to(new LinkController().MyCredit))); set("myInviteLink", lnkFull(to(new LinkController().MyInvite))); set("myGroupLink", lnkFull(to(new LinkController().MyGroup))); set("myNotificationLink", lnkFull(to(new LinkController().MyNotification))); set("mySkinLink", lnkFull(to(new LinkController().MySkin))); IList apps = siteAppService.GetByMember(Site.Instance.Id); IBlock block = getBlock("list"); bindAppList(apps, block); }