This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim eventsFilter as string = Request.QueryString("EventsCalendar_EventDateSpan") | |
If Request.QueryString.Count > 0 AndAlso Request.QueryString("EventsCalendar_EventDateSpan") IsNot Nothing Then | |
Select True | |
Case eventsFilter.Contains("All") | |
eventsFilterAll.attributes("class") = "sys_selected" | |
Case eventsFilter.Contains("Today") | |
eventsFilterToday.attributes("class") = "sys_selected" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2 class="sys_subitem-heading sys_events-subheading"><a href="@CurrentNode.Path">@CurrentNode.Title</a></h2> | |
<div class="sys_subitem-summary sys_events-summary"> | |
@if(CurrentNode.Data.Property_TaxonomyCategories.ToString() != ""){ | |
string[] eventCategoriesTax = CurrentNode.Data.Property_TaxonomyCategories.ToString().Split(','); | |
string lastCategory = eventCategoriesTax[eventCategoriesTax.Length - 1]; | |
string eventCategoriesString = ""; | |
foreach (string eventCategory in eventCategoriesTax) { | |
if(eventCategory.Contains("0/4/11/12")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Contensis.Framework.Web | |
@using Contensis.Framework.Web.Search | |
@{ | |
var newsArticlesQuery = Query.Where("SC_T_ID").IsEqualTo("-1025").OrderBy("Property_DatePublished").Descending; /* add template id for news here */ | |
var newsArticles = new NodeFinder().Find(newsArticlesQuery, selectCount:3); | |
var utils = new CMS_API.Common.BaseUtilities(); | |
} | |
<div class="sys_miniList sys_miniListNews"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Contensis.Framework.Web | |
@using Contensis.Framework.Web.Search | |
@{ | |
var newsArticlesQuery = Query.Where("SC_T_ID").IsEqualTo("-258875"); /* add template id for news here */ | |
var newsArticles = new NodeFinder().Find(newsArticlesQuery); | |
var utils = new CMS_API.Common.BaseUtilities(); | |
var currentDate = DateTime.Today; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hide a placeholder if it is empty | |
If Control.controls.count = 0 then | |
If value.trim.toLower.indexof("[add content here]") > -1 Or StripHTML(HttpUtility.HTMLDecode(value).trim).length = 0 then | |
Control.visible = false | |
End If | |
End If | |
// Hide a placeholder if it is empty, also adding in a check for images. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Linq; | |
using Contensis.Framework.Web; | |
using Zengenti.Contensis.Delivery; | |
using Zengenti.Contensis; | |
using Zengenti.Populo; |