private void CreateAdmissionsPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), "Admissions", "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase admissionsBlock = new ContentBlockBase(); admissionsBlock.Html = @"<h1>Admissions</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), admissionsBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageChildren; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var admission_tiuImageId = SampleUtilities.GetLocalizedImageId("admission_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Applying</h3> <p>TIU believes that diversity is the key to constant growth and experiencing life. We encourage students from all over the world, from different backgrounds, ethnicities, cultures and religions to apply and to become part of our academic family, thus contributing to each other’s cultural enrichment. We travel to many different parts of the world in order to meet with potential students and to learn about ways in which to make the admissions process easier and more diversity friendly. </p> <p>Admission to TIU, however, is also highly dependent on your previous academic achievements and merits. In order to keep our reputation of a school for smart and ambitious young men and women, we are selective and inspective of your past education. We take into consideration not only your grades but also your personal goals, achievement and your ability to overcome difficulties and shine!</p>", admission_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), "Zulassung", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase admissionsBlockDE = new ContentBlockBase(); admissionsBlockDE.Html = @"<h1>Zulassung </h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), admissionsBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageChildren; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var admission_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("admission_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Bewerben </h3> <p>TIU glaubt, dass die Vielfalt ist der Schlüssel zu stetigem Wachstum und das Leben erfahren. Wir ermutigen die Schüler aus der ganzen Welt, von unterschiedlicher Herkunft, Ethnien, Kulturen und Religionen zu übernehmen und einen Teil unserer akademischen Familie zu werden, damit einen Beitrag zur gegenseitigen kulturellen Bereicherung. Wir fahren zu vielen verschiedenen Teilen der Welt, um mit potenziellen Studenten zu treffen und sich über Möglichkeiten, um die Zulassungsverfahren vereinfachen und mehr Vielfalt freundlich zu lernen.</p> <p>Zulassung zum TIU, ist aber auch stark abhängig von Ihrer bisherigen wissenschaftlichen Leistungen und Verdienste. Um unseren Ruf einer Schule für intelligente und ambitionierte junge Männer und Frauen zu halten, werden wir selektiv und inspective Ihrer Vergangenheit Bildung. Wir berücksichtigen nicht nur Ihre Noten, sondern auch Ihre persönlichen Ziele, Leistungen und Ihre Fähigkeit, Schwierigkeiten zu überwinden und Glanz!</p>", admission_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateContactForms() { var formId = new Guid(SampleConstants.ContactUsFormId); Dictionary<string, object> localizedProperties = new Dictionary<string, object>(); var result = SampleUtilities.CreateLocalizedForm(formId, SampleConstants.ContactUsFormName, SampleConstants.ContactUsFormTitle, SampleConstants.ContactUsFormSuccessMessage, "en"); if (result) { SampleUtilities.CreateLocalizedForm(new Guid(SampleConstants.ContactUsFormId), string.Empty, SampleConstants.ContactUsFormTitleGerman, SampleConstants.ContactUsFormSuccessMessageGerman, "de"); #region Instructional text FormInstructionalText instructionalText = new FormInstructionalText(); instructionalText.Html = @"Send us a message below and we will get back to you as soon as possible (* denotes required responses in the contact form)"; var controlID = SampleUtilities.AddControlToLocalizedForm(formId, instructionalText, "Body", "Instructional text", "en"); instructionalText.Html = @"Senden Sie uns eine Nachricht aus und wir werden uns umgehend mit Ihnen so bald wie möglich (* kennzeichnet erforderliche Reaktionen in das Kontaktformular)"; localizedProperties.Clear(); localizedProperties.Add("Html", @"Senden Sie uns eine Nachricht aus und wir werden uns umgehend mit Ihnen so bald wie möglich (* kennzeichnet erforderliche Reaktionen in das Kontaktformular)"); SampleUtilities.UpdateControlInLocalizedForm(controlID, formId, localizedProperties, "de"); #endregion #region Main layout LayoutControl mainLayout = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 15, 0, 0), PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 15), PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayout.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayout.ID = "Main"; SampleUtilities.AddControlToLocalizedForm(formId, mainLayout, "Body", "50% + 50% (custom)", "en"); #endregion #region Name box FormTextBox nameBox = new FormTextBox(); nameBox.Title = "Your Name*"; nameBox.TextBoxSize = FormControlSize.Medium; nameBox.ValidatorDefinition.Required = true; nameBox.ValidatorDefinition.MaxLength = 40; controlID = SampleUtilities.AddControlToLocalizedForm(formId, nameBox, "Main_Left", "Textbox", "en"); localizedProperties.Clear(); localizedProperties.Add("Title", "Ihr Name*"); SampleUtilities.UpdateControlInLocalizedForm(controlID, formId, localizedProperties, "de"); #endregion #region Email box FormTextBox emailBox = new FormTextBox(); emailBox.Title = "Your Email*"; emailBox.TextBoxSize = FormControlSize.Medium; emailBox.ValidatorDefinition.Required = true; emailBox.ValidatorDefinition.MaxLength = 40; controlID = SampleUtilities.AddControlToLocalizedForm(formId, emailBox, "Main_Left", "Textbox", "en"); localizedProperties.Clear(); localizedProperties.Add("Title", "Ihr Email*"); SampleUtilities.UpdateControlInLocalizedForm(controlID, formId, localizedProperties, "de"); #endregion #region Categories list FormDropDownList categoriesList = new FormDropDownList(); categoriesList.Title = "Category"; categoriesList.Choices.Clear(); ChoiceItem athleticsItem = new ChoiceItem() { Text = "Athletics", Value = "Athletics", Description = "Athletics" }; categoriesList.Choices.Add(athleticsItem); ChoiceItem admissionsItem = new ChoiceItem() { Text = "Admissions", Value = "Admissions", Description = "Admissions" }; categoriesList.Choices.Add(admissionsItem); ChoiceItem shopItem = new ChoiceItem() { Text = "Shop", Value = "Shop", Description = "Shop" }; categoriesList.Choices.Add(shopItem); controlID = SampleUtilities.AddControlToLocalizedForm(formId, categoriesList, "Main_Left", "Dropdown list", "en"); athleticsItem.Text = "Sport"; athleticsItem.Description = "Sport"; admissionsItem.Text = "Zulassung"; admissionsItem.Description = "Zulassung"; shopItem.Text = "E-Shop"; shopItem.Description = "E-Shop"; localizedProperties.Clear(); localizedProperties.Add("Title", "Kategorie"); localizedProperties.Add("Choices", categoriesList.Choices); SampleUtilities.UpdateControlInLocalizedForm(controlID, formId, localizedProperties, "de"); #endregion #region Message box FormParagraphTextBox messageBox = new FormParagraphTextBox(); messageBox.Title = "Message*"; messageBox.ParagraphTextBoxSize = FormControlSize.Medium; messageBox.ValidatorDefinition.Required = true; messageBox.ValidatorDefinition.MaxLength = 400; controlID = SampleUtilities.AddControlToLocalizedForm(formId, messageBox, "Main_Left", "Paragraph textbox", "en"); localizedProperties.Clear(); localizedProperties.Add("Title", "Meldung*"); SampleUtilities.UpdateControlInLocalizedForm(controlID, formId, localizedProperties, "de"); #endregion #region SubmitButton FormSubmitButton submitButton = new FormSubmitButton(); submitButton.Text = "Send"; submitButton.ButtonSize = FormControlSize.Small; controlID = SampleUtilities.AddControlToLocalizedForm(formId, submitButton, "Main_Left", "Submit button", "en"); submitButton.Text = "Senden"; localizedProperties.Clear(); localizedProperties.Add("Text", "Senden"); SampleUtilities.UpdateControlInLocalizedForm(controlID, formId, localizedProperties, "de"); #endregion #region Multiple choice FormMultipleChoice genderMultipleChoice = new FormMultipleChoice(); genderMultipleChoice.Title = "Sex"; genderMultipleChoice.Choices.Clear(); ChoiceItem maleItem = new ChoiceItem() { Text = "Male", Value = "Male", Description = "Male" }; genderMultipleChoice.Choices.Add(maleItem); ChoiceItem femaleItem = new ChoiceItem() { Text = "Female", Value = "Female", Description = "Female" }; genderMultipleChoice.Choices.Add(femaleItem); controlID = SampleUtilities.AddControlToLocalizedForm(formId, genderMultipleChoice, "Main_Right", "Multiple choice", "en"); genderMultipleChoice.Title = "Geschlecht"; maleItem.Text = "Männlich"; maleItem.Description = "Männlich"; femaleItem.Text = "Weiblich"; femaleItem.Description = "Weiblich"; localizedProperties.Clear(); localizedProperties.Add("Title", "Geschlecht"); localizedProperties.Add("Choices", genderMultipleChoice.Choices); SampleUtilities.UpdateControlInLocalizedForm(controlID, formId, localizedProperties, "de"); #endregion #region Major checkboxes FormCheckboxes majorCheckboxes = new FormCheckboxes(); majorCheckboxes.Title = "What major are you interested in?"; majorCheckboxes.Choices.Clear(); ChoiceItem artHistory = new ChoiceItem() { Text = "Art History", Value = "Art History", Description = "Art History" }; majorCheckboxes.Choices.Add(artHistory); ChoiceItem asianStudies = new ChoiceItem() { Text = "Asian Studies", Value = "Asian Studies", Description = "Asian Studies" }; majorCheckboxes.Choices.Add(asianStudies); ChoiceItem astronomy = new ChoiceItem() { Text = "Astronomy", Value = "Astronomy", Description = "Astronomy" }; majorCheckboxes.Choices.Add(astronomy); ChoiceItem biochemistry = new ChoiceItem() { Text = "Biochemistry and Molecular Biology", Value = "Biochemistry and Molecular Biology", Description = "Biochemistry and Molecular Biology" }; majorCheckboxes.Choices.Add(biochemistry); ChoiceItem biology = new ChoiceItem() { Text = "Biology", Value = "Biology", Description = "Biology" }; majorCheckboxes.Choices.Add(biology); ChoiceItem chemistry = new ChoiceItem() { Text = "Chemistry", Value = "Chemistry", Description = "Chemistry" }; majorCheckboxes.Choices.Add(chemistry); ChoiceItem chinese = new ChoiceItem() { Text = "Chinese", Value = "Chinese", Description = "Chinese" }; majorCheckboxes.Choices.Add(chinese); ChoiceItem classics = new ChoiceItem() { Text = "Classics", Value = "Classics", Description = "Classics" }; majorCheckboxes.Choices.Add(classics); ChoiceItem computerScience = new ChoiceItem() { Text = "Computer Science", Value = "Computer Science", Description = "Computer Science" }; majorCheckboxes.Choices.Add(computerScience); ChoiceItem economics = new ChoiceItem() { Text = "Economics", Value = "Economics", Description = "Economics" }; majorCheckboxes.Choices.Add(economics); controlID = SampleUtilities.AddControlToLocalizedForm(formId, majorCheckboxes, "Main_Right", "Checkboxes", "en"); majorCheckboxes.Title = "Welche Fächer interessieren Sie?"; artHistory.Text = "Kunstgeschichte"; artHistory.Description = "Kunstgeschichte"; asianStudies.Text = "Asiatische Lehren"; asianStudies.Description = "Asiatische Lehren"; astronomy.Text = "Astronomie"; astronomy.Description = "Astronomie"; biology.Text = "Biologie"; biology.Description = "Biologie"; biochemistry.Text = "Biochemie und Molekularbiologie"; biochemistry.Description = "Biochemie und Molekularbiologie"; chinese.Text = "Chinesisch"; chinese.Description = "Chinesisch"; classics.Text = "Klassische Lehren"; classics.Description = "Klassische Lehren"; computerScience.Text = "Informatik"; computerScience.Description = "Informatik"; economics.Text = "Wirtschaft"; economics.Description = "Wirtschaft"; chemistry.Text = "Chemie"; chemistry.Description = "Chemie"; localizedProperties.Clear(); localizedProperties.Add("Title", "Welche Fächer interessieren Sie?"); localizedProperties.Add("Choices", majorCheckboxes.Choices); SampleUtilities.UpdateControlInLocalizedForm(controlID, formId, localizedProperties, "de"); #endregion } }
private void CreateFacebookThemeAndTemplate() { SampleUtilities.RegisterTheme(SampleConstants.FacebookThemeName, SampleConstants.FacebookThemePath); var result = SampleUtilities.RegisterTemplate(new Guid(SampleConstants.FacebookTemplateId), SampleConstants.FacebookTemplateName, SampleConstants.FacebookTemplateName, SampleConstants.FacebookTemplateMasterPage, SampleConstants.FacebookThemeName, CultureInfo.GetCultureInfo("en")); if (result) { var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 100, PlaceholderId = "Center" }; mainLayoutColumns.Add(mainLayoutColumn1); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, "header"); mainLayoutControl.ID = "Header"; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.FacebookTemplateId), mainLayoutControl, "content_inside", "100% (custom)"); // Logo var logoBlock = new ContentBlock(); logoBlock.Html = @"<h1>Telerik International University</h1>"; logoBlock.CssClass = "sfContentBlock"; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.FacebookTemplateId), logoBlock, "Header_Center", "Content block"); // Image ImageControl universityImage = new ImageControl(); universityImage.ImageId = SampleUtilities.GetLocalizedImageId("university_520", "en"); SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.FacebookTemplateId), universityImage, "Header_Center", "Image"); var contentLayoutControl = new LayoutControl(); List<ColumnDetails> contentLayoutColumns = new List<ColumnDetails>(); ColumnDetails contentLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 100, PlaceholderId = "Center" }; contentLayoutColumns.Add(contentLayoutColumn1); contentLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(contentLayoutColumns, "content"); contentLayoutControl.ID = "Content"; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.FacebookTemplateId), contentLayoutControl, "Header_Center", "100% (custom)"); var footerLayoutControl = new LayoutControl(); List<ColumnDetails> footerLayoutColumns = new List<ColumnDetails>(); ColumnDetails footerLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 50, PlaceholderId = "Left" }; footerLayoutColumns.Add(footerLayoutColumn1); ColumnDetails footerLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 50, PlaceholderId = "Right" }; footerLayoutColumns.Add(footerLayoutColumn2); footerLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(footerLayoutColumns, "footer"); footerLayoutControl.ID = "Footer"; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.FacebookTemplateId), footerLayoutControl, "Header_Center", "50% + 50% (custom)"); } }
private void CreateCampusMapPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusMapPageId), "Campus map", new Guid(SampleConstants.CampusLifePageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase campusMapBlock = new ContentBlockBase(); campusMapBlock.Html = @"<h2>Campus map</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), campusMapBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), navigationControl, "Main_Left", "Navigation", "en"); ImageControl campusMapImage = new ImageControl(); campusMapImage.ImageId = SampleUtilities.GetLocalizedImageId("campus", "en"); campusMapImage.Width = 676; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), campusMapImage, "Main_Right", "Image", "en"); var legendHeaderLayoutControl = new LayoutControl(); List<ColumnDetails> legendHeaderLayoutColumns = new List<ColumnDetails>(); ColumnDetails legendHeaderLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 100, PlaceholderId = "Center" }; legendHeaderLayoutColumns.Add(legendHeaderLayoutColumn1); legendHeaderLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(legendHeaderLayoutColumns, string.Empty); legendHeaderLayoutControl.ID = "LegendHeader"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendHeaderLayoutControl, "Main_Right", "100%", "en"); ContentBlock legendBlock = new ContentBlock(); legendBlock.Html = @"<h3>Legend</h3>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendBlock, "LegendHeader_Center", "Content block", "en"); var legendLayoutControl = new LayoutControl(); List<ColumnDetails> legendLayoutColumns = new List<ColumnDetails>(); ColumnDetails legendLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 33, PlaceholderId = "Left33" }; legendLayoutColumns.Add(legendLayoutColumn1); ColumnDetails legendLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 34, PlaceholderId = "Middle34" }; legendLayoutColumns.Add(legendLayoutColumn2); ColumnDetails legendLayoutColumn3 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 33, PlaceholderId = "Right33" }; legendLayoutColumns.Add(legendLayoutColumn3); legendLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(legendLayoutColumns, string.Empty); legendLayoutControl.ID = "Legend"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendLayoutControl, "Main_Right", "33% + 34% + 33%", "en"); ContentBlockBase contentBlockLeft = new ContentBlockBase(); contentBlockLeft.Html = @"1. Dorm A (Ryan Mcguire)<br /> 2. Fine Arts building<br /> 3. Computing center<br /> 4. Dorm B (Tomas Newman)"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockLeft, "Legend_Left33", "Content block", "en"); ContentBlockBase contentBlockMiddle = new ContentBlockBase(); contentBlockMiddle.Html = @"5. Biology faculty<br /> 6. Chemistry building<br /> 7. Dorm C (Micheal Burgess)<br /> 8. Administration center"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockMiddle, "Legend_Middle34", "Content block", "en"); ContentBlockBase contentBlockRight = new ContentBlockBase(); contentBlockRight.Html = @"9. Athletics facilities<br /> 10.Main Building<br /> 11.Liberal arts building<br /> 12. Dorm D (Melvin Richards)"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockRight, "Legend_Right33", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusMapPageId), "Campus-Karte", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase campusMapBlockDE = new ContentBlockBase(); campusMapBlockDE.Html = @"<h2>Campus-Karte</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), campusMapBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ImageControl campusMapImageDE = new ImageControl(); campusMapImageDE.ImageId = SampleUtilities.GetLocalizedImageId("campus", "de"); campusMapImageDE.Width = 676; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), campusMapImageDE, "Main_Right", "Image", "de"); var legendHeaderLayoutControlDE = new LayoutControl(); List<ColumnDetails> legendHeaderLayoutColumns = new List<ColumnDetails>(); ColumnDetails legendHeaderLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 100, PlaceholderId = "Center" }; legendHeaderLayoutColumns.Add(legendHeaderLayoutColumn1); legendHeaderLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(legendHeaderLayoutColumns, string.Empty); legendHeaderLayoutControlDE.ID = "LegendHeader"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendHeaderLayoutControlDE, "Main_Right", "100%", "de"); ContentBlock legendBlockDE = new ContentBlock(); legendBlockDE.Html = @"<h3>Legend</h3>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendBlockDE, "LegendHeader_Center", "Content block", "de"); var legendLayoutControlDE = new LayoutControl(); List<ColumnDetails> legendLayoutColumns = new List<ColumnDetails>(); ColumnDetails legendLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 33, PlaceholderId = "Left33" }; legendLayoutColumns.Add(legendLayoutColumn1); ColumnDetails legendLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 34, PlaceholderId = "Middle34" }; legendLayoutColumns.Add(legendLayoutColumn2); ColumnDetails legendLayoutColumn3 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 33, PlaceholderId = "Right33" }; legendLayoutColumns.Add(legendLayoutColumn3); legendLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(legendLayoutColumns, string.Empty); legendLayoutControlDE.ID = "Legend"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendLayoutControlDE, "Main_Right", "33% + 34% + 33%", "de"); ContentBlockBase contentBlockLeftDE = new ContentBlockBase(); contentBlockLeftDE.Html = @"1. Dorm A (Ryan Mcguire)<br /> 2. Fine Arts building<br /> 3. Computing center<br /> 4. Dorm B (Tomas Newman)"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockLeftDE, "Legend_Left33", "Content block", "de"); ContentBlockBase contentBlockMiddleDE = new ContentBlockBase(); contentBlockMiddleDE.Html = @"5. Biology faculty<br /> 6. Chemistry building<br /> 7. Dorm C (Micheal Burgess)<br /> 8. Administration center"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockMiddleDE, "Legend_Middle34", "Content block", "de"); ContentBlockBase contentBlockRightDE = new ContentBlockBase(); contentBlockRightDE.Html = @"9. Athletics facilities<br /> 10.Main Building<br /> 11.Liberal arts building<br /> 12. Dorm D (Melvin Richards)"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockRightDE, "Legend_Right33", "Content block", "de"); } }
private void CreateShopPage() { var hasCreatedPage = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.ShopBasePageId), "TIU Shop", false, true, "en"); if (hasCreatedPage) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.ShopBasePageId), new Guid(SampleConstants.EducationTemplateId), "en"); // Add page title ContentBlockBase pageTitle = new ContentBlockBase(); pageTitle.Html = "<h1>University shop</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ShopBasePageId), pageTitle, "content", "Title", "en"); // Add layout control var mainLayoutControl = new LayoutControl(); var mainLayoutColumns = new List<ColumnDetails>(); var mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 15, 0, 0), PlaceholderId = "Left", ColumnWidthPercentage = 75 }; mainLayoutColumns.Add(mainLayoutColumn1); var mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 15), PlaceholderId = "Right", ColumnWidthPercentage = 25 }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ShopBasePageId), mainLayoutControl, "content", "75% + 25% (custom)", "en"); ProductsView productsList = new ProductsView(); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ShopBasePageId), productsList, "Main_Left", "Product list", "en"); ShoppingCartSummary shoppingCartSummary = new ShoppingCartSummary(); shoppingCartSummary.CheckoutData = @"{""Id"":""" + SampleConstants.ShopCheckoutPageId + @""",""Title"":""Checkout""}"; shoppingCartSummary.CheckoutUrl = "~/tiu-shop/checkout"; shoppingCartSummary.ContinueShoppingData = @"{""Id"":""" + SampleConstants.ShopBasePageId + @""",""Title"":""TIU Shop""}"; shoppingCartSummary.ContinueShoppingUrl = "~/tiu-shop"; shoppingCartSummary.ShoppingCartData = @"{""Id"":""" + SampleConstants.ShopShoppingCartPageId + @""",""Title"":""Shopping cart""}"; shoppingCartSummary.ShoppingCartUrl = "~/tiu-shop/shopping-cart"; // set the Simple list template! shoppingCartSummary.TemplateKey = this.GetShoppingCartSummaryTemplateKey(); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ShopBasePageId), shoppingCartSummary, "Main_Right", "Shopping cart summary", "en"); } }
private void CreatePreArrivalInformationPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), "Pre-arrival information", new Guid(SampleConstants.AdmissionsPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase titleBlock = new ContentBlockBase(); titleBlock.Html = @"<h2>Pre-arrival Information</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), titleBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlock contentBlock = new ContentBlock(); var prearrivalImageId = SampleUtilities.GetLocalizedImageId("prearrival", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{3}"" /></p> <h3>Pre-arrival</h3> <p>College is a step towards the beginning of your new life. We will try to make getting there as easy as possible for you. The information in this section of our website is intended to be used before you arrive on campus. Once you are on campus we will be here to meet and greet you and to make your experience here unforgettable and beneficial. If you have a specific question that is not answered here please feel free to contact us. We are very pleased that you are interested in studying at the Telerik International University.</p> <br /> <br style=""clear: left"" /> <p>Here are some helpful links on different topics:</p> <ul> <li><a href=""[pages]{0}"" >Contact us</a></li> <li><a href=""[pages]{1}"" >Housing opportunities</a></li> <li><a href=""[pages]{2}"" >Documents base</a></li> </ul>", SampleConstants.ContactUsPageId, SampleConstants.HousingOpportunitiesPageId, SampleConstants.DocumentsBasePageId, prearrivalImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), "Vor der Ankunft", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlock titleBlockDE = new ContentBlock(); titleBlockDE.Html = @"<h2>Vor der Ankunft</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), titleBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlock contentBlockDE = new ContentBlock(); var prearrivalImageIdDE = SampleUtilities.GetLocalizedImageId("prearrival", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{3}"" /></p> <h3>Vor der Ankunft</h3> <p>College ist ein Schritt in Richtung der Beginn Ihres neuen Lebens. Wir werden versuchen, dorthin zu gelangen so einfach wie möglich für Sie. Die Informationen in diesem Bereich unserer Website soll verwendet werden, bevor Sie auf dem Campus zu gelangen. Sobald Sie sich auf dem Campus werden wir hier zu treffen und grüßen Sie und machen Ihre Erfahrungen hier unvergessliche und nützlich. Wenn Sie eine spezifische Frage, die hier nicht beantwortet haben, zögern Sie nicht uns zu kontaktieren.</p> <br /> <br style=""clear: left"" /> <p>Hier sind einige hilfreiche Links zu verschiedenen Themen:</p> <ul> <li><a href=""[pages]{0}"" >Kontakt</a></li> <li><a href=""[pages]{1}"" >Wohnmöglichkeiten</a></li> <li><a href=""[pages]{2}"" >Downloads</a></li> </ul>", SampleConstants.ContactUsPageId, SampleConstants.HousingOpportunitiesPageId, SampleConstants.DocumentsBasePageId, prearrivalImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateCampusLifePage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusLifePageId), "Campus life", "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase campusLifeBlock = new ContentBlockBase(); campusLifeBlock.Html = @"<h1>Campus life</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), campusLifeBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageChildren; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var campuslife_tiuImageId = SampleUtilities.GetLocalizedImageId("campuslife_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> <h3>Ideal conditions for studying</h3> <p>Campus life is all about comfort, fun and interaction. We have invested in creating a “small town” atmosphere, where on the one hand you can find everything you need in order to live comfortably and on the other – you can easily get to know everyone around. </p> <p>There are many facilities, besides the educational ones, that our students can use for their everyday needs, including gyms, theater halls, shops and coffee shops, dining halls, recreation rooms, media halls and even child care facilities. </p> <p>We also very proud of our Activities Center where students can sign up for different activities, sports and hobbies or even start up their own recreational class and promote it across campus.</p>", campuslife_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusLifePageId), "Leben auf dem Campus", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase campusLifeBlockDE = new ContentBlockBase(); campusLifeBlockDE.Html = @"<h1>Leben auf dem Campus</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), campusLifeBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageChildren; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var campuslife_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("campuslife_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> <p>Campus Leben dreht sich alles um Komfort, Spaß und Interaktion. Sie können leicht für jedermann rund wissen - Wir haben bei der Schaffung einer ""Kleinstadt"" Atmosphäre, wo auf der einen Seite alles, was Sie brauchen, um bequem zu leben und auf der anderen Seite finden investiert.</p> <p>Es gibt viele Einrichtungen, neben den pädagogischen sind, dass unsere Schüler für ihre täglichen Bedürfnisse, einschließlich Turnhallen, Theatern, Geschäften und Cafés, Kantinen, Aufenthaltsräume, Medien Hallen und Einrichtungen zur Kinderbetreuung zu verwenden.</p> <p>Wir haben auch sehr stolz auf unsere Activities Center, wo die Studenten anmelden können für verschiedene Aktivitäten, Sport und Hobbys oder sogar anfangen, ihre eigenen Erholungs-Klasse und fördern es über den Campus.</p>", campuslife_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateNewsPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.NewsPageId), "News", new Guid(SampleConstants.AboutTheUniversityPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.NewsPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase newsBlock = new ContentBlockBase(); newsBlock.Html = @"<h2>News</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), newsBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), navigationControl, "Main_Left", "Navigation", "en"); NewsView latestNews = new NewsView(); latestNews.MasterViewName = SampleConstants.EducationNewsSummaryContentViewName; latestNews.DetailViewName = SampleConstants.EducationNewsItemDetailView; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), latestNews, "Main_Right", "News", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.NewsPageId), "Nachrichten", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.NewsPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase newsBlock = new ContentBlockBase(); newsBlock.Html = @"<h2>Nachrichten</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), newsBlock, "content", "Content block", "de"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), mainLayoutControl, "content", "25% + 75%", "de"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), navigationControl, "Main_Left", "Navigation", "de"); NewsView latestNews = new NewsView(); latestNews.MasterViewName = SampleConstants.EducationNewsSummaryContentViewName; latestNews.DetailViewName = SampleConstants.EducationNewsItemDetailView; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), latestNews, "Main_Right", "News", "de"); } }
private void CreateBlogPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), "Blog", new Guid(SampleConstants.AboutTheUniversityPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase tiuBlogBlock = new ContentBlockBase(); tiuBlogBlock.Html = @"<h2>TIU Blog</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), tiuBlogBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), navigationControl, "Main_Left", "Navigation", "en"); var blogsControl = new BlogPostView(); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), blogsControl, "Main_Right", "Blog posts", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), "Blog", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase tiuBlogBlockDE = new ContentBlockBase(); tiuBlogBlockDE.Html = @"<h2>TIU Blog</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), tiuBlogBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), navigationControl, "Main_Left", "Navigation", "de"); var blogsControl = new BlogPostView(); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), blogsControl, "Main_Right", "Blog posts", "de"); } }
private void CreateEventsPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.EventsPageId), "Events", new Guid(SampleConstants.AboutTheUniversityPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.EventsPageId), new Guid(SampleConstants.EducationTemplateId), "en"); var headerLayoutControl = new LayoutControl(); List<ColumnDetails> headerLayoutColumns = new List<ColumnDetails>(); ColumnDetails headerLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 100, PlaceholderId = "Center" }; headerLayoutColumns.Add(headerLayoutColumn1); headerLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(headerLayoutColumns, string.Empty); headerLayoutControl.ID = "Header"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), headerLayoutControl, "content", "100%", "en"); ContentBlockBase eventsBlock = new ContentBlockBase(); eventsBlock.Html = @"<h2>Events</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), eventsBlock, "Header_Center", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), navigationControl, "Main_Left", "Navigation", "en"); EventsView eventsControl = new EventsView(); eventsControl.DetailViewName = SampleConstants.EducationEventItemDetailView; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), eventsControl, "Main_Right", "Events", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.EventsPageId), "Veranstaltungen", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.EventsPageId), new Guid(SampleConstants.EducationTemplateId), "de"); var headerLayoutControl = new LayoutControl(); List<ColumnDetails> headerLayoutColumns = new List<ColumnDetails>(); ColumnDetails headerLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 100, PlaceholderId = "Center" }; headerLayoutColumns.Add(headerLayoutColumn1); headerLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(headerLayoutColumns, string.Empty); headerLayoutControl.ID = "Header"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), headerLayoutControl, "content", "100%", "de"); ContentBlockBase eventsBlock = new ContentBlockBase(); eventsBlock.Html = @"<h2>Veranstaltungen</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), eventsBlock, "Header_Center", "Content block", "de"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), mainLayoutControl, "content", "25% + 75%", "de"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), navigationControl, "Main_Left", "Navigation", "de"); EventsView eventsControl = new EventsView(); eventsControl.DetailViewName = SampleConstants.EducationEventItemDetailView; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), eventsControl, "Main_Right", "Events", "de"); } }
private void CreateScholarshipsPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), "Innovation scholarships", new Guid(SampleConstants.AboutTheUniversityPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase scholarshipsBlock = new ContentBlockBase(); scholarshipsBlock.Html = @"<h2>TIU Scholarships</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), scholarshipsBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var scholarship_tiuImageId = SampleUtilities.GetLocalizedImageId("scholarship_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Need-based Scholarships & Grants</h3> <p>Federal grant programs include the Federal Pell Grant and the Federal Supplemental Educational Opportunity Grant. The University also offers a number of privately endowed need-based scholarships and grant funds. </p> <h3>Federal Grant Programs for Undergraduate Students </h3> <p><em>The Federal Pell Grant </em>is financial aid based on financial need. It does not have to be repaid. It is federally funded and is considered the foundation of financial aid packages. Pell Grant awards are based on the EFC (expected family contribution), as calculated by the FAFSA formula and after the verification process is completed. </p> <h3>TIU Grants & Scholarships</h3> <p> The University offers a number of privately endowed need-based scholarship and grant funds administered by Student Financial Services. Most of these awards were established by individuals or foundations and are intended for students who meet specific criteria. </p> <p>To qualify for any University endowed or restricted scholarships, students must demonstrate outstanding academic achievement, have financial need, and meet all federal and University eligibility requirements. In most instances, students do not need to complete a separate application form but are considered automatically. </p> <p>Many scholarship awards offered to students are funded by the generous gifts of University benefactors. In addition to financial need and/or academic achievement, a number of scholarships have specific donor requirements that are not easily identifiable. Students awarded a named scholarship will receive written notification of their selection. </p> <h3>State Grants & Scholarships</h3> <p><em>Robert C. Byrd Honors Scholarship:</em> The Byrd Scholarship is awarded to students for their academic achievement and excellence. Recipients may receive up to $1,500 for their first year, and scholarships are renewable for up to three years. To apply for the scholarship, students should contact the Department of Education in their home state. </p>", scholarship_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), "Innovative Stipendien", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase stipendienBlockDE = new ContentBlockBase(); stipendienBlockDE.Html = @"<h2>TIU Stipendien</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), stipendienBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var scholarship_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("scholarship_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Stipendien & Förderungen</h3> <p>Federal Förderprogramme umfassen die Federal Pell Grant und der Bundesrepublik Supplemental Bildungschancen Grant. Die Universität bietet auch eine Reihe von privat dotiert bedarfsgerechte Stipendien und Zuschüsse.</p> <h3>Federal Stipendienprogramme für Studenten</h3> <p>Die Federal Pell Grant ist die finanzielle Hilfe auf finanzielle Notwendigkeit basiert. Es muss nicht zurückgezahlt werden. Es wird vom Bund finanziert und gilt als die Grundlage der finanziellen Hilfspakete. Pell Grant Auszeichnungen werden auf der EFC (erwartete Beitrag von Familienmitgliedern), geändert durch die FAFSA Formel berechnet und nach dem Prüfverfahren abgeschlossen ist Basis.</p> <h3>TIU Stipendien und Zuschüsse</h3> <p>Die Universität bietet eine Reihe von privat dotiert bedarfsgerechte Stipendien und Zuschüsse von Student Financial Services verwaltet. Die meisten dieser Auszeichnungen wurden von Privatpersonen oder Stiftungen gegründet und sind für Studenten, die bestimmte Kriterien erfüllen soll.</p> <p>Um in den Genuss einer Universität verleiht, oder beschränkt Stipendien, müssen die Studenten demonstrieren herausragende akademische Leistungen, haben finanzielle Not, und erfüllen alle Bundes-und Universitätsbibliothek Anspruchsvoraussetzungen. In den meisten Fällen die Schülerinnen und Schüler nicht unbedingt ein eigenes Antragsformular vollständig, sondern werden automatisch berücksichtigt.</p> <p>Viele Stipendien für Studierende werden durch die großzügige Wohltäter der Universität finanziert. Neben der finanziellen Not und / oder akademischen Leistungen, haben eine Reihe von Stipendien bestimmten Spenders Anforderungen, die nicht leicht zu identifizieren. Die Studierenden erhalten eine benannte Stipendium schriftlichen Mitteilung über die Auswahl zu erhalten.</p> <h3>Staatliche Stipendien und Zuschüsse</h3> <p>Robert C. Byrd Honors Scholarship: Die Byrd-Stipendium richtet sich an Studierende für ihre akademischen Leistungen und Exzellenz ausgezeichnet. Empfänger können bis zu $ 1.500 für das erste Jahr, und Stipendien sind verlängerbar bis zu drei Jahren. Um sich für das Stipendium sollen Studierende der Abteilung für Bildung in ihren Heimatstaat wenden.</p>", scholarship_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateWhyTIUPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), "Why TIU", new Guid(SampleConstants.AboutTheUniversityPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlock whyBlock = new ContentBlock(); whyBlock.Html = @"<h2>Why TIU?</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), whyBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlock contentBlock = new ContentBlock(); var students_tiuImageId = SampleUtilities.GetLocalizedImageId("students_tiu", "en"); contentBlock.Html = string.Format(@"<p><img class=""special"" alt=""Lorem ipsum dolor sit amet"" src=""[images]{0}"" style=""width: 350px; height: 273px; float: left; margin-right: 15px; margin-bottom: 5px;"" longdesc=""Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."" /></p> <h3>Know how to live!</h3> <p> At TIU we believe in teaching you the knowhow of life. In order to lead a good life, one must excel in education, succeed in his profession and enjoy the free time in between. This is why life at TIU encompasses not only academics, but also activities that will shape your character and lead you to success. </p> <h3>Excellence </h3> <p>In order to expect you to excel, we must excel at what we do. We believe in making a real impact on the world by constantly growing, hiring the best staff and investing in the newest technology. You will have access to an impressive range of resources to support your studies including an outstanding academic library and some of the best computing resources. </p> <h3>Careers </h3> <p>Education is the prelude to profession. What use is a diploma unless it makes you highly demanded by the world of employers? TIU’s reputation in the business world combined with its contacts and internship programs is a guarantee for your ability to land directly into your dream job right after graduation.</p>", students_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), "Warum TIU", false, "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlock whyBlockDE = new ContentBlock(); whyBlockDE.Html = @"<h2>Warum TIU?</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), whyBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlock contentBlockDE = new ContentBlock(); var students_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("students_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Wissen, wie man lebt!</h3> <p> Am TIU wir glauben, in der Lehre Sie das Know-how des Lebens. Um ein gutes Leben zu führen, muss man excel im Bildungswesen, in seinem Beruf erfolgreich zu sein und genießen die freie Zeit dazwischen. Dies ist, warum das Leben in TIU nicht nur Akademiker umfasst, sondern auch Aktivitäten, die Ihren Charakter Form und führen Sie zum Erfolg wird.</p> <h3>Exzellenzinitiative</h3> <p>Um Ihnen zu übertreffen erwarten, müssen wir, was wir tun Excel. Wir glauben an einen echten Einfluss auf die Welt durch ständig wachsende,, die besten Mitarbeiter und investieren in die neueste Technologie. Sie haben Zugriff auf eine beeindruckende Vielfalt an Ressourcen, um Ihre Studien mit einem hervorragenden akademischen Bibliothek und einige der besten IT-Ressourcen zu unterstützen.</p> <h3>Karriere</h3> <p>Bildung ist der Auftakt zu Beruf. Was nützt ein Diplom, es sei denn es macht dich stark nachgefragten durch die Welt der Arbeitgeber? TIU Ruf in der Geschäftswelt mit ihren Kontakten und Praktika in Kombination ist ein Garant für Ihre Fähigkeit, direkt Land in Ihren Traumjob nach dem Studium.</p>", students_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateAboutTheUniversityPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), "About the university", "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase aboutBlock = new ContentBlockBase(); aboutBlock.Html = @"<h1>About the university</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), aboutBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageChildren; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var about_tiuImageId = SampleUtilities.GetLocalizedImageId("about_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Tradition combined with innovation</h3> <p>Telerik International University, is the newest university in the English-speaking world. The university traces its roots back to the beginning of 2006, although the exact date of foundation remains unclear. Its founders came together after realizing that no places of higher education existed within a fifty mile radius of their home town.</p> <p>The university is dedicated to teaching a wide number of subjects and encouraging all its students to participate in the many extra-curricular pursuits that its student societies put on during term. “Work hard, play hard” is its motto and those who come to TIU couldn’t agree more. Whether you prefer extreme sports, tiddlywinks, developing software, defending people who can’t defend themselves, working for charities or running events, there is a society for you and if there isn’t, we actively support those who want to start their own.</p> <p> </p> <h3>Young, open, international </h3> <p>Admission to TIU is based equally on academic potential and your resume of sports and activities. There is no weighing in favor of any particular thing. We are interested to make sure that our students continue to develop to their true potential - academically, socially, mentally and physically. All potential students should visit us on an open day before getting application forms and starting to work through the entry process. Because of the high volume of applications and the direct involvement of the faculty in admissions, students may be called to interview any time between March and July.</p> <h3>Ideal conditions for studying</h3> <p>If it takes more than 15 minutes to get to the university from the main train station, the central bus and tram stop, then something has gone wrong somewhere. Trams leave the main station every five minutes and stop right in the middle of the campus. The university registration fee includes a “Semester Ticket” that gives students free travel on public transport within Sofia. And living in Sofia is almost as cheap: even in the charming city center, the rents are affordable. In addition to this, there are more than 2000 rooms and apartments available in the university's halls of residence.</p>", about_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), "Über uns", false, "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase aboutBlockDE = new ContentBlockBase(); aboutBlockDE.Html = @"<h1>Über die Universität</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), aboutBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageChildren; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var about_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("about_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Tradition mit Innovation</h3> <p>Telerik International University ist die jüngste Universität in der englischsprachigen Welt. Die Universität führt ihre Wurzeln zurück an den Anfang des Jahres 2006, obwohl das genaue Datum der Gründung, bleibt unklar. Die Gründer kamen zusammen, nachdem er feststellte, dass keine Plätze der Hochschulbildung in eine fünfzig Meile Radius von ihrer Heimatstadt gab.</p> <p>Die Universität ist die Lehre eine große Anzahl von Themen und die Förderung aller Schüler in den vielen außerschulischen Beschäftigungen, die ihre Schüler Gesellschaften während des Semesters gestellt teilnehmen gewidmet. ""Work hard, play hard"" ist sein Motto und diejenigen, die TIU kommen konnte nicht mehr zustimmen. Ob Extremsport, tiddlywinks, Software-Entwicklung, Verteidigung von Menschen, die sich nicht wehren können, die sich für Wohltätigkeitsorganisationen oder Laufveranstaltungen bevorzugen, gibt es eine Gesellschaft für Sie und wenn es nicht unterstützen wir aktiv die, die ihre eigenen beginnen möchten .</p> <h3>Jung, offen, international</h3> <p>Zulassung zum TIU ist gleichermaßen auf wissenschaftliche Potenzial und Ihren Lebenslauf an Sport-und Aktivitäten. Es gibt keine Wägung zu Gunsten einer bestimmten Sache. Wir sind daran interessiert, sicherzustellen, dass unsere Schüler, ihr wahres Potential weiterentwickeln - fachlich, sozial, geistig und körperlich. Alle potenziellen Studenten sollten uns auf Tag der offenen Tür, bevor sie Antragsformulare und ab durch den Eintrag Prozess der Arbeit besuchen. Aufgrund der hohen Anzahl der eingehenden Bewerbungen und die direkte Beteiligung der Fakultät bei der Zulassung können die Schüler aufgefordert, jederzeit zwischen März und Juli zu interviewen.</p> <h3>Ideale Bedingungen für ein Studium</h3> <p>Wenn es mehr als 15 Minuten dauert, bis die Universität aus dem Hauptbahnhof, dem zentralen Bus-und Straßenbahnhaltestelle zu bekommen, dann ist etwas schief gegangen ist irgendwo. Straßenbahnen verlassen den Hauptbahnhof alle fünf Minuten und halten direkt in der Mitte des Campus. Die Universität Teilnahmegebühr beinhaltet ein ""Semesterticket"", dass die Schüler freie Fahrt gibt im öffentlichen Nahverkehr innerhalb Sofia. Und er lebt in Sofia ist fast so billig: Selbst in der reizvollen Innenstadt sind die Mieten erschwinglich. Darüber hinaus gibt es mehr als 2000 Zimmer und Appartements zur Verfügung in der Universität Wohnheim.</p>", about_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
// PAGES: private void CreateHomePage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HomePageId), "Home", true, false, "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HomePageId), new Guid(SampleConstants.EducationTemplateId), "en"); var mainLayoutControl = new LayoutControl(); var mainLayoutColumns = new List<ColumnDetails>(); var mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 15, 0, 0), PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); var mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 15), PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), mainLayoutControl, "content", "50% + 50% (custom)", "en"); //Left content #region Latest News Content Block var latestNewsBlockLayout = new LayoutControl(); var latestNewsBlockLayoutColumns = new List<ColumnDetails>(); var latestNewsBlockLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; latestNewsBlockLayoutColumns.Add(latestNewsBlockLayoutColumn1); latestNewsBlockLayout.Layout = SampleUtilities.GenerateLayoutTemplate(latestNewsBlockLayoutColumns, string.Empty); latestNewsBlockLayout.ID = "LatestNewsBlockLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), latestNewsBlockLayout, "Main_Left", "100%", "en"); ContentBlockBase latestNewsBlock = new ContentBlockBase(); latestNewsBlock.Html = @"<h1>Latest university news</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), latestNewsBlock, "LatestNewsBlockLayout_Content", "Content block", "en"); #endregion #region Latest News View var latestNewsViewLayout = new LayoutControl(); var latestNewsViewLayoutColumns = new List<ColumnDetails>(); var latestNewsViewLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; latestNewsViewLayoutColumns.Add(latestNewsViewLayoutColumn1); latestNewsViewLayout.Layout = SampleUtilities.GenerateLayoutTemplate(latestNewsViewLayoutColumns, string.Empty); latestNewsViewLayout.ID = "LatestNewsViewLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), latestNewsViewLayout, "Main_Left", "100%", "en"); NewsView latestNews = new NewsView(); latestNews.MasterViewName = SampleConstants.EducationNewsSummaryContentViewName; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), latestNews, "LatestNewsViewLayout_Content", "News", "en"); #endregion #region Videos Content Block var videosBlockLayout = new LayoutControl(); var videosBlockLayoutColumns = new List<ColumnDetails>(); var videosBlockLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; videosBlockLayoutColumns.Add(videosBlockLayoutColumn1); videosBlockLayout.Layout = SampleUtilities.GenerateLayoutTemplate(videosBlockLayoutColumns, string.Empty); videosBlockLayout.ID = "VideosBlockLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), videosBlockLayout, "Main_Left", "100%", "en"); ContentBlockBase videosBlock = new ContentBlockBase(); videosBlock.Html = @"<h1>Videos</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), videosBlock, "VideosBlockLayout_Content", "Content block", "en"); #endregion #region Videos view var videosViewLayout = new LayoutControl(); var videosViewLayoutColumns = new List<ColumnDetails>(); var videosViewLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; videosViewLayoutColumns.Add(videosViewLayoutColumn1); videosViewLayout.Layout = SampleUtilities.GenerateLayoutTemplate(videosViewLayoutColumns, string.Empty); videosViewLayout.ID = "VideosViewLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), videosViewLayout, "Main_Left", "100%", "en"); VideosView videoGallery = new VideosView(); videoGallery.MasterViewName = SampleConstants.VideosEducationFrontendLightBoxViewName; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), videoGallery, "VideosViewLayout_Content", "Video gallery", "en"); #endregion #region Meet us Image var meetUsImageLayout = new LayoutControl(); var meetUsImageLayoutColumns = new List<ColumnDetails>(); var meetUsImageLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; meetUsImageLayoutColumns.Add(meetUsImageLayoutColumn1); meetUsImageLayout.Layout = SampleUtilities.GenerateLayoutTemplate(meetUsImageLayoutColumns, string.Empty); meetUsImageLayout.ID = "MeetUsImageLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), meetUsImageLayout, "Main_Left", "100%", "en"); ImageControl meetUsImage = new ImageControl(); meetUsImage.CssClass = "sfimageWrp bottomImage"; meetUsImage.ImageId = SampleUtilities.GetLocalizedImageId("1meet_us", "en"); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), meetUsImage, "MeetUsImageLayout_Content", "Image", "en"); #endregion //Right content #region Upcoming events block var upcomingEventsBlockLayout = new LayoutControl(); var upcomingEventsBlockLayoutColumns = new List<ColumnDetails>(); var upcomingEventsBlockLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; upcomingEventsBlockLayoutColumns.Add(upcomingEventsBlockLayoutColumn1); upcomingEventsBlockLayout.Layout = SampleUtilities.GenerateLayoutTemplate(upcomingEventsBlockLayoutColumns, string.Empty); upcomingEventsBlockLayout.ID = "UpcomingEventsBlockLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), upcomingEventsBlockLayout, "Main_Right", "100%", "en"); ContentBlockBase upcomingEventsBlock = new ContentBlockBase(); upcomingEventsBlock.Html = @"<h1>Upcoming events</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), upcomingEventsBlock, "UpcomingEventsBlockLayout_Content", "Content block", "en"); #endregion #region Upcoming events image var upcomingEventsImageLayout = new LayoutControl(); var upcomingEventsImageLayoutColumns = new List<ColumnDetails>(); var upcomingEventsImageLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; upcomingEventsImageLayoutColumns.Add(upcomingEventsImageLayoutColumn1); upcomingEventsImageLayout.Layout = SampleUtilities.GenerateLayoutTemplate(upcomingEventsImageLayoutColumns, string.Empty); upcomingEventsImageLayout.ID = "UpcomingEventsImageLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), upcomingEventsImageLayout, "Main_Right", "100%", "en"); ImageControl upcomingEventsImage = new ImageControl(); upcomingEventsImage.ImageId = SampleUtilities.GetLocalizedImageId("event", "en"); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), upcomingEventsImage, "UpcomingEventsImageLayout_Content", "Image", "en"); #endregion #region Welcome block var welcomeBlockLayout = new LayoutControl(); var welcomeBlockLayoutColumns = new List<ColumnDetails>(); var welcomeBlockLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; welcomeBlockLayoutColumns.Add(welcomeBlockLayoutColumn1); welcomeBlockLayout.Layout = SampleUtilities.GenerateLayoutTemplate(welcomeBlockLayoutColumns, string.Empty); welcomeBlockLayout.ID = "WelcomeBlockLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), welcomeBlockLayout, "Main_Right", "100%", "en"); ContentBlockBase welcomeBlock = new ContentBlockBase(); Guid deanImageId = SampleUtilities.GetLocalizedImageId("dadean", "en"); //string deanImageUrl = SampleUtilities.GetLocalizedImageDefaultUrl("dadean", "en"); welcomeBlock.Html = string.Format(@"<h1>Welcome from the dean</h1> <p><img alt="""" src=""[images]{0}"" /><em>Welcome to Telerik International University. As dean of the university, I am proud of what we have to offer, and I am delighted that you are interested in learning more about us. Our region has a fascinating history, a creative arts community and fantastic recreational opportunities.</em><br /> <br /> </p>", deanImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), welcomeBlock, "WelcomeBlockLayout_Content", "Content block", "en"); #endregion #region Photos block var photosBlockLayout = new LayoutControl(); var photosBlockLayoutColumns = new List<ColumnDetails>(); var photosBlockLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; photosBlockLayoutColumns.Add(photosBlockLayoutColumn1); photosBlockLayout.Layout = SampleUtilities.GenerateLayoutTemplate(photosBlockLayoutColumns, string.Empty); photosBlockLayout.ID = "PhotosBlockLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), photosBlockLayout, "Main_Right", "100%", "en"); ContentBlockBase photosBlock = new ContentBlockBase(); photosBlock.Html = @"<h1>Photos</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), photosBlock, "PhotosBlockLayout_Content", "Content block", "en"); #endregion #region Images view var photosGalleryLayout = new LayoutControl(); var photosGalleryLayoutColumns = new List<ColumnDetails>(); var photosGalleryLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; photosGalleryLayoutColumns.Add(photosGalleryLayoutColumn1); photosGalleryLayout.Layout = SampleUtilities.GenerateLayoutTemplate(photosGalleryLayoutColumns, string.Empty); photosGalleryLayout.ID = "PhotosGalleryLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), photosGalleryLayout, "Main_Right", "100%", "en"); ImagesView gallery = new ImagesView(); gallery.MasterViewName = "ImagesFrontendEducationThumbnailsListLightBox"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), gallery, "PhotosGalleryLayout_Content", "Images gallery", "en"); #endregion #region Announcements list var announcementsListLayout = new LayoutControl(); var announcementsListLayoutColumns = new List<ColumnDetails>(); var announcementsListLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), PlaceholderId = "Content" }; announcementsListLayoutColumns.Add(announcementsListLayoutColumn1); announcementsListLayout.Layout = SampleUtilities.GenerateLayoutTemplate(announcementsListLayoutColumns, string.Empty); announcementsListLayout.ID = "AnnouncementsListLayout"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), announcementsListLayout, "Main_Right", "100%", "en"); Telerik.Sitefinity.Modules.Lists.Web.UI.ListView announcements = new Telerik.Sitefinity.Modules.Lists.Web.UI.ListView(); announcements.Mode = ListViewMode.Expanded; announcements.SelectedListText = "Announcements"; announcements.SelectedListIds = string.Format(@"[""{0}""]", SampleConstants.AnnouncementsListId); announcements.CurrentMasterTemplateId = new Guid(SampleUtilities.GetControlTemplateKey(typeof(ExpandedListItemsMasterView), SampleConstants.EducationAnnouncementsTemplateName)); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), announcements, "AnnouncementsListLayout_Content", "List items", "en"); #endregion } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HomePageId), "Startseite", false, false, "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HomePageId), new Guid(SampleConstants.EducationTemplateId), "de"); var mainLayoutControl = new LayoutControl(); var mainLayoutColumns = new List<ColumnDetails>(); var mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 15, 0, 0), PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); var mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 15), PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), mainLayoutControl, "content", "50% + 50% (custom)", "de"); //Lates news block ContentBlockBase latestNewsBlock = new ContentBlockBase(); latestNewsBlock.Html = @"<h1>Universitätsnachrichten</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), latestNewsBlock, "Main_Left", "Content block", "de"); //Latest news view NewsView latestNews = new NewsView(); latestNews.MasterViewName = SampleConstants.EducationNewsSummaryContentViewName; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), latestNews, "Main_Left", "News", "de"); //Meet us image ImageControl meetUsImage = new ImageControl(); meetUsImage.ImageId = SampleUtilities.GetLocalizedImageId("besuchen", "de"); meetUsImage.CssClass = "sfimageWrp bottomImage"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), meetUsImage, "Main_Left", "Image", "de"); //Upcoming events ContentBlockBase upcomingEventsBlock = new ContentBlockBase(); upcomingEventsBlock.Html = @"<h1>Veranstaltungen</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), upcomingEventsBlock, "Main_Right", "Content block", "de"); //Upcoming events image ImageControl upcomingEventsImage = new ImageControl(); upcomingEventsImage.ImageId = SampleUtilities.GetLocalizedImageId("event", "de"); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), upcomingEventsImage, "Main_Right", "Image", "de"); //Welcome block ContentBlockBase welcomeBlock = new ContentBlockBase(); Guid deanImageId = SampleUtilities.GetLocalizedImageId("dadean", "de"); welcomeBlock.Html = string.Format(@"<h1>Begrüßung des Dekans</h1> <p><img alt="""" src=""[images]{0}"" /><em>Herzlich willkommen auf die Telerik International University. Als Dekan der Universität bin ich stolz auf das, was wir zu bieten haben, und ich freue mich, dass Sie an weiteren Informationen über uns interessiert sind. Unsere Region hat eine faszinierende Geschichte, eine kreative Kunst Community und fantastische Möglichkeiten zur Freizeitgestaltung.</em><br /><br /></p>", deanImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), welcomeBlock, "Main_Right", "Content block", "de"); Telerik.Sitefinity.Modules.Lists.Web.UI.ListView announcements = new Telerik.Sitefinity.Modules.Lists.Web.UI.ListView(); announcements.Mode = ListViewMode.Expanded; announcements.SelectedListText = "Announcements"; announcements.SelectedListIds = string.Format(@"[""{0}""]", SampleConstants.AnnouncementsListId); announcements.CurrentMasterTemplateId = new Guid(SampleUtilities.GetControlTemplateKey(typeof(ExpandedListItemsMasterView), SampleConstants.EducationAnnouncementsTemplateName)); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HomePageId), announcements, "Main_Right", "List items", "de"); } }
private void CreateHowToApplyPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), "How to apply", new Guid(SampleConstants.AdmissionsPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase howToApplyBlock = new ContentBlockBase(); howToApplyBlock.Html = @"<h2>How to apply?</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), howToApplyBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var howto_tiuImageId = SampleUtilities.GetLocalizedImageId("howto_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>No assessment tests for University Entrance</h3> <p>TIU is a modern, fast-moving environment and our energetic staff does not like to waste time with endless bureaucratic ordeals. This is why our application process is very simple, accurate and rational. There are three easy steps you need to follow in order to let yourself known to us and we will do the rest. All due dates and deadlines for the upcoming semester will be posted and updated on our website.</p> <br /> <br style=""clear: left"" /> <ul> <li>First – fill out the online Application Form in its entirety and send it to us with the click of a button. You will receive an e-mail from us, confirming that we have received your application.</li> <li>Second – you have 14 calendar days from the date of the application confirmation e-mail to send us all the original documents listed in the Application Form. You will receive an e-mail from us, confirming that we have received your documents.</li> <li>Third – we will contact you within 14 calendar days from the date of the document confirmation e-mail in order to let you know our decision. You will receive an e-mail, a phone call and a letter with our decision. </li> </ul>", howto_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), "Bewerbung", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase howToApplyBlockDE = new ContentBlockBase(); howToApplyBlockDE.Html = @"<h2>Bewerbung</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), howToApplyBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var howto_tiuImageId = SampleUtilities.GetLocalizedImageId("howto_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <p>TIU ist ein modernes, sich schnell bewegende Umwelt und unsere energetische Personal nicht gerne Zeit mit endlosen bürokratischen Prüfungen Abfall. Deshalb ist unsere Anwendung ist sehr einfach, genau und rational. Es gibt drei einfache Schritte, die Sie folgen müssen, um lassen Sie uns bekannt und wir werden den Rest erledigen. Alle fälligen Termine und Fristen für das kommende Semester wird veröffentlicht und aktualisiert werden auf unserer Website.</p> <br /> <br style=""clear: left"" /> <ul> <li> First - füllen Sie das Online-Bewerbungsformular in seiner Gesamtheit und schicken Sie es uns mit dem Klick auf eine Schaltfläche. Sie erhalten eine E-Mail von uns erhalten, die bestätigt, dass wir Ihre Anmeldung erhalten haben. </li> <li>Zweitens - Sie haben 14 Kalendertagen ab dem Datum der Antragstellung per E-Mail an uns alle Originaldokumente im Antragsformular aufgeführt. Sie erhalten eine E-Mail von uns erhalten, die bestätigt, dass wir Ihre Unterlagen erhalten. </li> <li>Drittens - wir werden Sie innerhalb von 14 Kalendertagen Kontakt ab dem Datum des Dokuments per E-Mail, um Ihnen mitzuteilen, unsere Entscheidung. Sie erhalten eine E-Mail, ein Anruf und einen Brief mit unserer Entscheidung.</li> </ul>", howto_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateAcademicsPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AcademicsPageId), "Academics", "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase academicsBlock = new ContentBlockBase(); academicsBlock.Html = @"<h1>Academics</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), academicsBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageChildren; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var academics_tiuImageId = SampleUtilities.GetLocalizedImageId("academics_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Interdisciplinary, practice-oriented, responsible </h3> <p>Striving to become a leading university, TIU invests in academics. We bring together world-renowned faculty and students from all over the region, the nation, and the world. We also count on our bright students to participate in groundbreaking research and contribute their ideas to our overall academic atmosphere.</p> <h3>Information-oriented business sciences </h3> <p>For our Undergraduate and Graduate students we have established stimulating courses in over 150 majors and programs. The courses often incorporate different activities and research projects, because we believe that doing is a major part of learning and we practice what we preach! </p> <h3>Excellent further education opportunities </h3> <p>In order to enlarge our student base and to welcome all of those who are unable to commute to our campus, we have created an innovative and highly efficient base for Distant Learning. Our online students can benefit from an extensive list of courses and contribute to our academic society just as much as the other students.</p>", academics_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AcademicsPageId), "Studieninteressenten", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase academicsBlockDE = new ContentBlockBase(); academicsBlockDE.Html = @"<h1> </h1> <h1>Studieninteressenten</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), academicsBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageChildren; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var academics_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("academics_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Interdisziplinäre, praxisorientierte, verantwortlich</h3> <p>Das Streben nach einer führenden Universität zu werden, investiert TIU in Akademiker. Wir bringen weltweit renommierten Dozenten und Studenten aus der ganzen Region, der Nation und der Welt. Wir haben auch auf unserer hellen Studenten zählen, um in bahnbrechende Forschung zu beteiligen und ihre Ideen für unsere gesamte akademische Atmosphäre.</p> <h3>Informations-orientierten Wirtschaftswissenschaften</h3> <p>Für unsere Undergraduate-und Graduate Studenten haben wir anregende Kurse in über 150 Majors und Programme etabliert. Die Kurse beinhalten häufig verschiedene Aktivitäten und Forschungsprojekte, weil wir, dass dabei ein wichtiger Teil des Lernens ist und wir glauben, was wir predigen!</p> <h3>Hervorragende Weiterbildungsmöglichkeiten</h3> <p>Um unseren Studenten Basis zu erweitern und alle diejenigen, die nicht in der Lage zu pendeln, um unseren Campus sind willkommen, haben wir eine innovative und hocheffiziente Basis für Distant Learning erstellt. Unser Online-Studenten können aus einer umfangreichen Liste von Kursen profitieren und dazu beitragen, unseren akademischen Gesellschaft ebenso wie die anderen Schüler.</p>", academics_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateDiversityStatisticsPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), "Diversity statistics", new Guid(SampleConstants.AdmissionsPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase diversityStatisticsBlock = new ContentBlockBase(); diversityStatisticsBlock.Html = @"<h2>Diversity Statistics</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), diversityStatisticsBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var diversityImageId = SampleUtilities.GetLocalizedImageId("diversity_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> <p>TIU is the Benetton of universities. Our colors are many and bright. Our diversity statistics show that we the educational institution of choice for students of 57 different nationalities. Here are our most recent stats.</p>", diversityImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), "Multikulturelle Vielfalt", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase diversityStatisticsBlockDE = new ContentBlockBase(); diversityStatisticsBlockDE.Html = @"<h2>Multikulturelle Vielfalt</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), diversityStatisticsBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var diversityImageIdDE = SampleUtilities.GetLocalizedImageId("diversity_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> TIU ist die Benetton von Universitäten. Unsere Farben sind vielfältig und hell ist. Unsere Vielfalt Statistiken zeigen, dass wir die Bildungseinrichtung der Wahl für Studenten von 57 verschiedenen Nationalitäten. Hier sind unsere jüngsten Statistik.", diversityImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateAthleticsPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AthleticsPageId), "Athletics", new Guid(SampleConstants.AcademicsPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase athleticsBlock = new ContentBlockBase(); athleticsBlock.Html = @"<h2>Athletics</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), athleticsBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var sport_tiuImageId = SampleUtilities.GetLocalizedImageId("sport_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Campus Sport </h3> <p>Just across the street from the Admission Office Building lies the Telerik Sports Center, the main building for our athletics and wellness programs on campus. At TSC, you’ll find a comprehensive lineup of aquatic, fitness, sports and wellness activities. Most of these services are available at no charge to TIU students and at highly reduced rates for TIU employees, as well as alumni and their family members.Our teams are young and we work pretty hard every season to improve our results. With the help of some generous investors we were able to attract great coaches for our Basketball and American Football teams and we are thrilled to see the results at the end of this season.</p> <h3>Sport in the city</h3> <p>The city of Sofia offers a wide range of possiblities for sports enthousiasts. The most popular sports attraction of the city is the local soccer club ""CSKA Sofia"", which won the national championships 31 times. Those who want to get active by themselves will find a wide range of sport courses at the university's Sports Institute.</p>", sport_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AthleticsPageId), "Uni-Sport", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase athleticsBlockDE = new ContentBlockBase(); athleticsBlockDE.Html = @"<h2>Uni-Sport</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), athleticsBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var sport_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("sport_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Campus-Sport </h3> <p>Nur über die Straße von der Zulassungsstelle Bürogebäude liegt die Telerik Sports Center, das Hauptgebäude für unsere Leichtathletik-und Wellness-Programme auf campus.At TSC, finden Sie eine umfassende Palette von Wasserpflanzen, Fitness-, Sport-und Wellness-Aktivitäten. Die meisten dieser Dienste sind kostenlos, um TIU Studenten und bei stark reduzierten Preise für TIU Mitarbeiter sowie Alumni und ihrer Familienangehörigen members.Our Teams verfügbar sind jung und wir arbeiten ziemlich hart zu jeder Jahreszeit, unsere Ergebnisse zu verbessern. Mit der Hilfe einiger großzügiger Investoren konnten wir tolle Trainer für unsere Basketball und American Football-Teams zu gewinnen, und wir sind begeistert, dass die Ergebnisse am Ende dieser Saison zu sehen. </p> <h3>Sport in der Stadt</h3> <p>Die Stadt Sofia bietet ein breites Spektrum an Möglichkeiten für Sport-Liebhaber alter. Die beliebtesten Sportarten Attraktion der Stadt ist die örtliche Fußballverein ""CSKA Sofia"", die den nationalen Meisterschaften 31 Mal gewonnen. Diejenigen, die sich von selbst aktiv werden wollen finden Sie eine breite Palette von Sport-Kurse an der Uni-Sport-Institut.</p>", sport_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateDocumentsBasePage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), "Document base", new Guid(SampleConstants.AdmissionsPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase documentsBaseBlock = new ContentBlockBase(); documentsBaseBlock.Html = @"<h2>Document base</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), documentsBaseBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), navigationControl, "Main_Left", "Navigation", "en"); DownloadListView downloads = new DownloadListView(); downloads.MasterViewName = "MasterTableView"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), downloads, "Main_Right", "Download list", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), "Downloads", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase documentsBaseBlockDE = new ContentBlockBase(); documentsBaseBlockDE.Html = @"<h2>Downloads</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), documentsBaseBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), navigationControlDE, "Main_Left", "Navigation", "de"); DownloadListView downloadsDE = new DownloadListView(); downloadsDE.MasterViewName = "MasterTableView"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), downloadsDE, "Main_Right", "Download list", "de"); } }
private void CreateLoginPage() { Guid parentPageID = new Guid(SampleConstants.InternalResourcesGroupPageId); var hasCreatedPage = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.LoginPageId), "Login", parentPageID, false, false, "en"); if (hasCreatedPage) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.LoginPageId), new Guid(SampleConstants.EducationTemplateId), "en"); // Add layout control var mainLayoutControl = new LayoutControl(); var mainLayoutColumns = new List<ColumnDetails>(); var mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 15, 0, 0), PlaceholderId = "Left", ColumnWidthPercentage = 50 }; mainLayoutColumns.Add(mainLayoutColumn1); var mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 15), PlaceholderId = "Right", ColumnWidthPercentage = 50 }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.LoginPageId), mainLayoutControl, "content", "50% + 50% (custom)", "en"); ContentBlockBase pageTitle = new ContentBlockBase(); pageTitle.Html = "<h1>Login</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.LoginPageId), pageTitle, "Main_Left", "Content block", "en"); LoginWidget login = new LoginWidget(); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.LoginPageId), login, "Main_Left", "Login", "en"); string registerPageUrl = string.Empty; var count = 0; App.WorkWith().Pages().Where(pN => pN.Id == new Guid(SampleConstants.RegistrationPageId)).Count(out count); if (count != 0) { PageNode node = App.WorkWith().Page(new Guid(SampleConstants.RegistrationPageId)).Get(); registerPageUrl = node.UrlName; } ContentBlock registerInfo = new ContentBlock(); registerInfo.Html = String.Format(@"<div> <div> <p>Please click on ""Register"" and complete the form on the next screen to register for our service. You will receive a confirmation email during the next few minutes. <br /> <br /> Once registered, you are ready to use our service in full mode. </p> <p><strong>You need to be logged in to:</strong></p> <ul> <li>post in forums</li> <li>manage your account</li> <li>download documents</li> </ul> <a class=""important"" href=""{0}"">Register</a></div> </div>", registerPageUrl); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.LoginPageId), registerInfo, "Main_Right", "Login", "en"); } hasCreatedPage = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.LoginPageId), "Login", parentPageID, false, false, "de"); if (hasCreatedPage) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.LoginPageId), new Guid(SampleConstants.EducationTemplateId), "de"); // Add layout control var mainLayoutControl = new LayoutControl(); var mainLayoutColumns = new List<ColumnDetails>(); var mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 15, 0, 0), PlaceholderId = "Left", ColumnWidthPercentage = 50 }; mainLayoutColumns.Add(mainLayoutColumn1); var mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 15), PlaceholderId = "Right", ColumnWidthPercentage = 50 }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.LoginPageId), mainLayoutControl, "content", "50% + 50% (custom)", "de"); ContentBlockBase pageTitle = new ContentBlockBase(); pageTitle.Html = "<h1>Login</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.LoginPageId), pageTitle, "Main_Left", "Content block", "de"); LoginWidget login = new LoginWidget(); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.LoginPageId), login, "Main_Left", "Login", "de"); string registerPageUrl = string.Empty; var count = 0; App.WorkWith().Pages().Where(pN => pN.Id == new Guid(SampleConstants.RegistrationPageId)).Count(out count); if (count != 0) { PageNode node = App.WorkWith().Page(new Guid(SampleConstants.RegistrationPageId)).Get(); registerPageUrl = node.UrlName; } ContentBlock registerInfo = new ContentBlock(); registerInfo.Html = String.Format(@"<div> <p>Bitte klicken Sie auf ""Registrieren"" und füllen Sie das Formular auf der nächsten Seite, um für unseren Service registrieren. Sie erhalten eine Bestätigung per E-Mail in den nächsten Minuten erhalten.<br /> <br /> Einmal registriert, können Sie unseren Service in Voll-Modus verwenden. </p> <p><strong>Sie müssen registriert sein, um Folgendes machen zu können:</strong></p> <ul> <li>In den Foren schreiben</li> <li>Ihr Account managen</li> <li>Dokumente herunterladen</li> </ul> <p><a href=""{0}"">Registrierung</a></p> </div>", registerPageUrl); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.LoginPageId), registerInfo, "Main_Right", "Login", "de"); } }
private void CreateCampusRulesPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), "Campus rules", new Guid(SampleConstants.CampusLifePageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase campusRulesBlock = new ContentBlockBase(); campusRulesBlock.Html = @"<h2>Campus rules</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), campusRulesBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); contentBlock.Html = @"<p>We are a fun place to be, but no one said that there will be no rules! Rules are what make us strong and durable, so we believe that in order to be the best at what we do, we must not only follow a few general rules, but also create our own. You can download our Campus Rules and Regulations brochure from here – it is an easy and fun read!</p>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), "Campus-Regeln", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase campusRulesBlockDE = new ContentBlockBase(); campusRulesBlockDE.Html = @"<h2>Campus-Regeln</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), campusRulesBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); contentBlockDE.Html = @"<p>Wir sind ein angenehmer Ort zu sein, aber niemand gesagt, dass es keine Regeln! Regeln sind das, was uns stark und langlebig, so glauben wir, dass, um die am besten, was wir tun werden, müssen wir nicht nur folgen ein paar allgemeine Regeln, sondern auch unsere eigene. Sie können unsere Campus Regeln und Vorschriften Broschüre hier herunterladen - es ist ein einfach und macht Spaß zu lesen!</p>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateAcademicFacilitiesPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), "Academic facilities", new Guid(SampleConstants.AcademicsPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase academicFacilitiesBlock = new ContentBlockBase(); academicFacilitiesBlock.Html = @"<h2>Academic facilities</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), academicFacilitiesBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var facilities_tiuImageId = SampleUtilities.GetLocalizedImageId("facilities_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Seven faculties</h3> <p>The TUI provides the ideal conditions for completing a degree program successfully and within a reasonable time frame. Ever since its foundation, the university has been committed to reform. Seven faculties have been established, each with long-term strategies for development and using the most up-to-date facilities available. </p> <p>As a student at TIU, you have direct, unfettered access to scientific resources and you can use to help your self-education plan.</p> <br style=""clear: left;""/> <p>Among the most important scientific institutions on campus are:</p> <ul> <li>Data Center</li> <li>Center for Art and Music</li> <li>Languages and Education Center</li> <li>Center for Mathematics and Science</li> <li>Law Library</li> <li>Merriam-Webster Library</li> <li>""Books and Coffee"" Internet Café</li> <li>Brook's theater</li> </ul> <p>For those of you who are involved in sports, whether professional or novice, we have invested in a state-of-the-art sports facility called The Dome. There you will find a fully equipped fitness center, basketball court, indoor pool, indoor and outdoor tennis courts and an outdoor soccer field.</p>", facilities_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), "Einrichtungen", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase academicFacilitiesBlockDE = new ContentBlockBase(); academicFacilitiesBlockDE.Html = @"<h2>Einrichtungen</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), academicFacilitiesBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var facilities_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("facilities_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Sieben Fakultäten</h3> <p>Die TUI bietet ideale Voraussetzungen für den Abschluss eines Studiengangs erfolgreich und innerhalb eines angemessenen Zeitrahmens. Seit ihrer Gründung hat die Universität begangen zu reformieren. Sieben Fakultäten wurden eingerichtet, die jeweils mit langfristigen Strategien für die Entwicklung und Nutzung der meisten up-to-date Einrichtungen zur Verfügung. </p> <p>Als Student an TIU haben Sie direkten, freien Zugang zu wissenschaftlichen Ressourcen und können Sie benutzen, um Ihre Selbst-Bildung zu planen.</p> <br style=""clear: left;""/> <p>Zu den wichtigsten wissenschaftlichen Einrichtungen auf dem Campus sind:</p> <ul> <li>Data Center</li> <li>Zentrum für Kunst und Musik</li> <li>Sprachen-und Bildungszentrum</li> <li>Center for Mathematics and Science</li> <li> Law Library</li> <li>Merriam-Webster-Bibliothek</li> <li>""Books and Coffee"" Internet Café</li> <li>Brook-Theater</li> </ul> <p>Für diejenigen unter Ihnen, die im Sport involviert sind, ob Profi oder Anfänger, wir haben in einer state-of-the-art Sportanlage investiert namens The Dome. Dort finden Sie ein voll ausgestattetes Fitness-Center, Basketballplatz, Hallenbad, Indoor-und Outdoor-Tennisplätze und ein Outdoor-Fußballfeld.</p>", facilities_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateHousingOpportunitiesPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), "Housing opportunities", new Guid(SampleConstants.CampusLifePageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase housingOpportunitiesBlock = new ContentBlockBase(); housingOpportunitiesBlock.Html = @"<h2>Housing Opportunities</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), housingOpportunitiesBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var housing_tiuImageId = SampleUtilities.GetLocalizedImageId("housing_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <p>Telerik International University offers an American-style liberal arts education with accommodation available in the surrounding area. The following accommodation is currently available to students.</p>", housing_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), "Wohnmöglichkeiten", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase housingOpportunitiesBlockDE = new ContentBlockBase(); housingOpportunitiesBlockDE.Html = @"<h2>Wohnmöglichkeiten</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), housingOpportunitiesBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var housing_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("housing_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <p>Telerik International University bietet eine American-style geisteswissenschaftliche Ausbildung mit Übernachtungsmöglichkeiten in der Umgebung. Die folgende Unterkunft ist derzeit für Studierende.</p>", housing_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateDistantLearningPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), "Distant learning", new Guid(SampleConstants.AcademicsPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase distantLearningBlock = new ContentBlockBase(); distantLearningBlock.Html = @"<h2>Distant Learning</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), distantLearningBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); var distant_tiuImageId = SampleUtilities.GetLocalizedImageId("distant_tiu", "en"); contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Cultural Studies and Educational Science</h3> <p>We believe in education and we really think that education should be accessible for everyone. This is why we started our Distant Learning program back in 2007 according to the latest standards and using the newest technologies in the telecommunications to make education affordable for people anywhere in the world.</p> <h3>Ideal conditions for studying natural sciences</h3> <p>We already support Web-based VoIP, Videoconferencing, Web conferencing, Internet radio and Live streaming. This year we invested $2.6 million in creating a much bigger asynchronous technology base to support people, who cannot use the latest technologies in their region. We transferred 94% of our materials on Audiocassettes, VHS, CD and DVD, and we are almost finished with a massive print materials section that can be ordered very easy per Mail or sent to a local copy shop and printed there!</p> <h3>Integrative environmental research</h3> <p>Our online education program offers both Undergraduate and Graduate programs for those students who are not able to joins us on campus.</p>", distant_tiuImageId); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), contentBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), "Fernstudium", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase distantLearningBlockDE = new ContentBlockBase(); distantLearningBlockDE.Html = @"<h2>Fernstudium</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), distantLearningBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); var distant_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("distant_tiu", "de"); contentBlockDE.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> <h3>Cultural Studies und Pädagogik </h3> <p>Wir glauben an Bildung und wir wirklich denken, dass Bildung für jeden zugänglich sein. Deshalb haben wir unsere Distant Learning-Programm begann im Jahr 2007 nach den neuesten Standards und mit den neuesten Technologien in der Telekommunikation, Bildung und Ausbildung erschwinglich für Menschen überall in der Welt.</p> <h3>Ideale Bedingungen für Studium der Naturwissenschaften </h3> <p>Wir unterstützen bereits Web-basierte VoIP, Videoconferencing, Web-Conferencing, Internet Radio und Live-Streaming. Dieses Jahr haben wir investiert $ 2.600.000 bei der Schaffung eines viel größeren asynchrone technologische Basis, um Menschen, die nicht die neuesten Technologien in ihrer Region unterstützen können. Wir übertragen 94% unserer Materialien auf Audiokassetten, VHS, CD und DVD, und wir sind fast mit einem massiven Druckmaterialien Abschnitt, der bestellt einfach kann per Mail oder an einen Copyshop und dort gedruckt fertig!</p> <h3>Integrative Umweltforschung </h3> <p>Unser Online-Bildungsprogramm bietet sowohl Undergraduate-und Graduate-Programme für diejenigen Studierenden, die nicht imstande sind, gesellt sich zu uns auf dem Campus.</p>", distant_tiuImageIdDE); SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), contentBlockDE, "Main_Right", "Content block", "de"); } }
private void CreateContactUsPage() { var pageId = new Guid(SampleConstants.ContactUsPageId); var result = SampleUtilities.CreateLocalizedPage(pageId, "Contact us", "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(pageId, new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase titleBlock = new ContentBlockBase(); titleBlock.Html = @"<h1>Contact us</h1>"; SampleUtilities.AddControlToLocalizedPage(pageId, titleBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 71, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 29, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(pageId, mainLayoutControl, "content", "25% + 75%", "en"); FormsControl contactUsForm = new FormsControl(); contactUsForm.FormId = new Guid(SampleConstants.ContactUsFormId); SampleUtilities.AddControlToLocalizedPage(pageId, contactUsForm, "Main_Left", "Form", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); contentBlock.Html = @"<p><strong>Address:</strong><br /> Telerik International University<br /> Malinov str. 33<br /> 8803 Sofia<br /> Phone: +359 44 724 90 90</p>"; SampleUtilities.AddControlToLocalizedPage(pageId, contentBlock, "Main_Right", "Content block", "en"); ContentBlockBase mapBlock = new ContentBlockBase(); mapBlock.Html = @"<iframe width=""250"" scrolling=""no"" height=""250"" frameborder=""0"" src=""http://maps.google.com/?ie=UTF8&t=m&vpsrc=6&ll=42.656829,23.381782&spn=0.003945,0.005386&z=16&output=embed"" marginwidth=""0"" marginheight=""0""></iframe><br /> <small><a style=""color: #0000ff; text-align: left;"" href=""http://maps.google.com/?ie=UTF8&t=m&vpsrc=6&ll=42.656829,23.381782&spn=0.003945,0.005386&z=16&source=embed"">View Larger Map</a></small>"; SampleUtilities.AddControlToLocalizedPage(pageId, mapBlock, "Main_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(pageId, SampleConstants.ContactUsPageNameGerman, "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(pageId, new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase titleBlock = new ContentBlockBase(); titleBlock.Html = @"<h1>Kontakt</h1>"; SampleUtilities.AddControlToLocalizedPage(pageId, titleBlock, "content", "Content block", "de"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 71, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 29, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(pageId, mainLayoutControl, "content", "25% + 75%", "de"); FormsControl contactUsForm = new FormsControl(); contactUsForm.FormId = new Guid(SampleConstants.ContactUsFormId); SampleUtilities.AddControlToLocalizedPage(pageId, contactUsForm, "Main_Left", "Form", "de"); ContentBlockBase contentBlock = new ContentBlockBase(); contentBlock.Html = @"<p><strong>Adresse:</strong><br /> Telerik International University<br /> Malinov Str. 33<br /> 8803 Sofia<br /> Tel.: +359 44 724 90 90</p>"; SampleUtilities.AddControlToLocalizedPage(pageId, contentBlock, "Main_Right", "Content block", "de"); ContentBlockBase mapBlock = new ContentBlockBase(); mapBlock.Html = @"<iframe width=""250"" scrolling=""no"" height=""250"" frameborder=""0"" src=""http://maps.google.com/?ie=UTF8&t=m&vpsrc=6&ll=42.656829,23.381782&spn=0.003945,0.005386&z=16&output=embed"" marginwidth=""0"" marginheight=""0""></iframe><br /> <small><a style=""color: #0000ff; text-align: left;"" href=""http://maps.google.com/?ie=UTF8&t=m&vpsrc=6&ll=42.656829,23.381782&spn=0.003945,0.005386&z=16&source=embed"">View Larger Map</a></small>"; SampleUtilities.AddControlToLocalizedPage(pageId, mapBlock, "Main_Right", "Content block", "de"); } }
private void CreateUndergraduateAndGraduate() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), "Undergraduate and Graduate", new Guid(SampleConstants.AcademicsPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), new Guid(SampleConstants.EducationTemplateId), "en"); ContentBlockBase graduateBlock = new ContentBlockBase(); graduateBlock.Html = @"<h2>Undergraduate and Graduate</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), graduateBlock, "content", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), mainLayoutControl, "content", "25% + 75%", "en"); var navigationControl = new NavigationControl(); navigationControl.NavigationMode = NavigationModes.VerticalSimple; navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControl.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), navigationControl, "Main_Left", "Navigation", "en"); ContentBlockBase contentBlock = new ContentBlockBase(); contentBlock.Html = @"Undergraduates and graduates at TIU have the opportunity to choose from a wide range of courses and to comprise their schedules in order to obtain their Majors and Minors in the different schools at TIU."; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), contentBlock, "Main_Right", "Content block", "en"); var innerLayoutControl = new LayoutControl(); List<ColumnDetails> innerLayoutColumns = new List<ColumnDetails>(); ColumnDetails innerLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 50, PlaceholderId = "Left" }; innerLayoutColumns.Add(innerLayoutColumn1); ColumnDetails innerLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 50, PlaceholderId = "Right" }; innerLayoutColumns.Add(innerLayoutColumn2); innerLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(innerLayoutColumns, string.Empty); innerLayoutControl.ID = "Inner"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), innerLayoutControl, "Main_Right", "50% + 50%", "en"); ContentBlockBase leftBlock = new ContentBlockBase(); leftBlock.Html = @"<h3>Graduate </h3> <ul> <li>Art History</li> <li>Asian Studies</li> <li>Astronomy</li> <li>Biochemistry and Molecular Biology</li> <li>Biology</li> <li>Chemistry</li> <li>Chinese</li> <li>Classics</li> <li>Computer Science</li> <li>Economics</li> <li>English</li> <li>Entrepreneurship</li> </ul>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), leftBlock, "Inner_Left", "Content block", "en"); ContentBlockBase rightBlock = new ContentBlockBase(); rightBlock.Html = @"<h3>Under graduate</h3> <ul> <li>Geography</li> <li>German</li> <li>Greek</li> <li>History</li> <li>Japanese</li> <li>Law and Society</li> <li>Mathematics</li> <li>Management</li> <li>Music</li> <li>Philosophy</li> <li>Physics</li> <li>Psychology</li> <li>Sociology</li> <li>Spanish</li> <li>Theater Arts</li> <li>Urban Development and Social Change</li> </ul>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), rightBlock, "Inner_Right", "Content block", "en"); } result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), "Bachelor und Master", "de"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), new Guid(SampleConstants.EducationTemplateId), "de"); ContentBlockBase graduateBlockDE = new ContentBlockBase(); graduateBlockDE.Html = @"<h2>Bachelor und Master</h2>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), graduateBlockDE, "content", "Content block", "de"); var mainLayoutControlDE = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 25, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 75, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControlDE.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), mainLayoutControlDE, "content", "25% + 75%", "de"); var navigationControlDE = new NavigationControl(); navigationControlDE.NavigationMode = NavigationModes.VerticalSimple; navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings; navigationControlDE.Skin = "left"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), navigationControlDE, "Main_Left", "Navigation", "de"); ContentBlockBase contentBlockDE = new ContentBlockBase(); contentBlockDE.Html = @"<p>Studenten und Absolventen bei TIU haben die Möglichkeit, aus einer breiten Palette von Kursen zu wählen und ihre Zeitpläne umfassen, um ihre Haupt und Nebenfächer in den verschiedenen Schulen in TIU erhalten.</p>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), contentBlockDE, "Main_Right", "Content block", "de"); var innerLayoutControlDE = new LayoutControl(); List<ColumnDetails> innerLayoutColumns = new List<ColumnDetails>(); ColumnDetails innerLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 50, PlaceholderId = "Left" }; innerLayoutColumns.Add(innerLayoutColumn1); ColumnDetails innerLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 50, PlaceholderId = "Right" }; innerLayoutColumns.Add(innerLayoutColumn2); innerLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(innerLayoutColumns, string.Empty); innerLayoutControlDE.ID = "Inner"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), innerLayoutControlDE, "Main_Right", "50% + 50%", "de"); ContentBlockBase leftBlockDE = new ContentBlockBase(); leftBlockDE.Html = @"<h3>Masterstudiengänge</h3> <ul> <li>Kunstgeschichte</li> <li>Asiatische Lehren</li> <li>Astronomie</li> <li>Biochemie</li> <li>Biologie</li> <li>Chemie</li> <li>Chinesisch</li> <li>Klassische Lehren </li> <li>Informatik</li> <li>Wirtschaft</li> <li>Englisch </li> <li>Entrepreneurship</li> </ul>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), leftBlockDE, "Inner_Left", "Content block", "de"); ContentBlockBase rightBlockDE = new ContentBlockBase(); rightBlockDE.Html = @"<h3>Bachelorstudiengänge</h3> <ul> <li>Geographie</li> <li>Deutsch </li> <li>Griechisch</li> <li>Geschichte </li> <li>Japanisch</li> <li>Jura</li> <li>Mathematik</li> <li>Management</li> <li>Musik</li> <li>Philosophie</li> <li>Physik</li> <li>Psychologie</li> <li>Sociologie</li> <li>Spanisch</li> <li>Kunst</li> </ul>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), rightBlockDE, "Inner_Right", "Content block", "de"); } }
private void CreateTIUFacebookPage() { var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), "TIU Facebook", new Guid(SampleConstants.FacebookFanPagesGroupPageId), "en"); if (result) { SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), new Guid(SampleConstants.FacebookTemplateId), "en"); ImageControl fansImage = new ImageControl(); fansImage.ImageId = SampleUtilities.GetLocalizedImageId("fans", "en"); fansImage.CssClass = "sfimageWrp"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), fansImage, "Content_Center", "Image", "en"); ContentBlockBase welcomeBlock = new ContentBlockBase(); welcomeBlock.Html = @"<h1>Welcome to TIU</h1>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), welcomeBlock, "Content_Center", "Content block", "en"); var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 10), ColumnWidthPercentage = 33, PlaceholderId = "Left33" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 12), ColumnWidthPercentage = 34, PlaceholderId = "Middle34" }; mainLayoutColumns.Add(mainLayoutColumn2); ColumnDetails mainLayoutColumn3 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 10, 0, 12), ColumnWidthPercentage = 33, PlaceholderId = "Right33" }; mainLayoutColumns.Add(mainLayoutColumn3); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Main"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), mainLayoutControl, "Content_Center", "33% + 34% + 33% (custom)", "en"); ContentBlockBase leftHeaderBlock = new ContentBlockBase(); leftHeaderBlock.Html = @"<h3>The Campus</h3>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), leftHeaderBlock, "Main_Left33", "Content block", "en"); ContentBlockBase middleHeaderBlock = new ContentBlockBase(); middleHeaderBlock.Html = @"<h3>The University</h3>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), middleHeaderBlock, "Main_Middle34", "Content block", "en"); ContentBlockBase rightHeaderBlock = new ContentBlockBase(); rightHeaderBlock.Html = @"<h3>Sofia</h3>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), rightHeaderBlock, "Main_Right33", "Content block", "en"); ImageControl leftImage = new ImageControl(); leftImage.ImageId = SampleUtilities.GetLocalizedImageId("campus_small", "en"); leftImage.CssClass = "sfimageWrp"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), leftImage, "Main_Left33", "Image", "en"); ImageControl middleImage = new ImageControl(); middleImage.ImageId = SampleUtilities.GetLocalizedImageId("uni_small", "en"); middleImage.CssClass = "sfimageWrp"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), middleImage, "Main_Middle34", "Image", "en"); ImageControl rightImage = new ImageControl(); rightImage.ImageId = SampleUtilities.GetLocalizedImageId("sofia1_small", "en"); rightImage.CssClass = "sfimageWrp"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), rightImage, "Main_Right33", "Image", "en"); ContentBlockBase leftBlock = new ContentBlockBase(); leftBlock.Html = @"<p>The Telerik International University campus is one of the most congenial places to study. Situated near the city centre of Sofia, the campus is spacious without being overwhelming.</p>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), leftBlock, "Main_Left33", "Content block", "en"); ContentBlockBase middleBlock = new ContentBlockBase(); middleBlock.Html = @"<p>The Telerik International University was founded in 2008. It is one of the new, modern universities in Bulgaria, and with approximately 1,500 students it is of a manageable size.</p>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), middleBlock, "Main_Middle34", "Content block", "en"); ContentBlockBase rightBlock = new ContentBlockBase(); rightBlock.Html = @"<p>Sofia is one of the oldest cities in Europe. The Romans founded the city in 29 B.C. In the late Middle Ages and the Renaissance, the city developed into a trade and finance metropolis.</p>"; SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUFacebookPageId), rightBlock, "Main_Right33", "Content block", "en"); } }
private void CreateEducationThemeAndTemplate() { SampleUtilities.RegisterTheme(SampleConstants.EducationThemeName, SampleConstants.EducationThemePath); SampleUtilities.RegisterTheme(SampleConstants.EducationInGermanThemeName, SampleConstants.EducationInGermanThemePath); SampleUtilities.RegisterTemplate(new Guid(SampleConstants.EducationTemplateId), SampleConstants.EducationTemplateName, SampleConstants.EducationTemplateName, SampleConstants.EducationTemplateMasterPage, SampleConstants.EducationThemeName, CultureInfo.GetCultureInfo("en")); var result = SampleUtilities.RegisterTemplate(new Guid(SampleConstants.EducationTemplateId), SampleConstants.EducationInGermanTemplateName, SampleConstants.EducationInGermanTemplateName, SampleConstants.EducationTemplateMasterPage, SampleConstants.EducationInGermanThemeName, CultureInfo.GetCultureInfo("de")); if (result) { // Main layout var mainLayoutControl = new LayoutControl(); List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>(); ColumnDetails mainLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 50), ColumnWidthPercentage = 70, PlaceholderId = "Left" }; mainLayoutColumns.Add(mainLayoutColumn1); ColumnDetails mainLayoutColumn2 = new ColumnDetails() { ColumnWidthPercentage = 30, PlaceholderId = "Right" }; mainLayoutColumns.Add(mainLayoutColumn2); mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty); mainLayoutControl.ID = "Header"; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), mainLayoutControl, "headerInfo", "Header"); // Logo var logoBlock = new ContentBlock(); logoBlock.Html = string.Format(@"<h1><a href=""[pages]{0}"">Telerik International University</a></h1> <h3>established 2005, Sofia</h3>", SampleConstants.HomePageId); logoBlock.CssClass = "sfContentBlock"; string logoId = SampleUtilities.AddLocalizedControlToTemplate(new Guid(SampleConstants.EducationTemplateId), logoBlock, "Header_Left", "Content block", "en"); Dictionary<string, object> logoProperties = new Dictionary<string, object>(); logoProperties.Add("Html", string.Format(@"<h1><a href=""[pages]{0}"">Internationale Universität Telerik</a></h1> <h3>gegründet im 2005, in Sofia</h3>", SampleConstants.HomePageId)); SampleUtilities.UpdateLocalizedControlInTemplate(logoId, new Guid(SampleConstants.EducationTemplateId), logoProperties, "de"); // Language/search layout var languagesSearchLayoutControl = new LayoutControl(); List<ColumnDetails> languagesSearchLayoutColumns = new List<ColumnDetails>(); ColumnDetails languagesSearchLayoutColumn1 = new ColumnDetails() { ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), ColumnWidthPercentage = 46, PlaceholderId = "Left" }; languagesSearchLayoutColumns.Add(languagesSearchLayoutColumn1); ColumnDetails languagesSearchLayoutColumn2 = new ColumnDetails() { ColumnWidthPercentage = 54, PlaceholderId = "Right" }; languagesSearchLayoutColumns.Add(languagesSearchLayoutColumn2); languagesSearchLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(languagesSearchLayoutColumns, string.Empty); languagesSearchLayoutControl.ID = "LanguageSearch"; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), languagesSearchLayoutControl, "Header_Right", "Language and Search"); // Language var languages = new LanguageSelectorControl(); languages.SelectorType = LanguageSelectorType.Vertical; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), languages, "LanguageSearch_Right", "Language selector"); // Login layout //var loginLayoutControl = new LayoutControl(); //List<ColumnDetails> loginLayoutColumns = new List<ColumnDetails>(); //ColumnDetails loginLayoutColumn1 = new ColumnDetails() //{ // ColumnSpaces = new ColumnSpaces(0, 0, 0, 0), // PlaceholderId = "Center" //}; //loginLayoutColumns.Add(loginLayoutColumn1); //loginLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(loginLayoutColumns, "login-status"); //loginLayoutControl.ID = "Login"; //SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), loginLayoutControl, "Header_Right", "Login"); //// Login name //LoginNameControl loginNameControl = new LoginNameControl(); //SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), loginNameControl, "Login_Center", "Login name"); //// Login status //LoginStatusControl loginStatusControl = new LoginStatusControl(); //SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), loginStatusControl, "Login_Center", "Login status"); // Image ImageControl headerImage = new ImageControl(); headerImage.ImageId = SampleUtilities.GetLocalizedImageId("the_building", "en"); headerImage.CssClass = "headerImage"; string controlId = SampleUtilities.AddLocalizedControlToTemplate(new Guid(SampleConstants.EducationTemplateId), headerImage, "image", "Image", "en"); Dictionary<string, object> properties = new Dictionary<string, object>(); properties.Add("ImageId", SampleUtilities.GetLocalizedImageId("headerspring1", "de")); SampleUtilities.UpdateLocalizedControlInTemplate(controlId, new Guid(SampleConstants.EducationTemplateId), properties, "de"); // Explore your potentials ContentBlockBase exploreContentBlock = new ContentBlockBase(); exploreContentBlock.Html = @"<h4>Explore your potentials</h4> <p>Share your voice and unlock your potentials while we will equip you with the skills you need for the future!</p>"; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), exploreContentBlock, "tagline", "Content block"); // Header navigation var headerNavigationControl = new NavigationControl(); headerNavigationControl.NavigationMode = NavigationModes.HorizontalSimple; headerNavigationControl.SelectionMode = PageSelectionModes.TopLevelPages; headerNavigationControl.Skin = "education"; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), headerNavigationControl, "header", "Navigation"); // Footer navigation var footerNavigationControl = new NavigationControl(); footerNavigationControl.NavigationMode = NavigationModes.SiteMapInColumns; footerNavigationControl.SelectionMode = PageSelectionModes.TopLevelPages; footerNavigationControl.Skin = "footer"; SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), footerNavigationControl, "footernavigation", "Navigation"); } }