Skip to content

Instantly share code, notes, and snippets.

View alvinchesaro's full-sized avatar

Alvin Chesaro alvinchesaro

View GitHub Profile
@alvinchesaro
alvinchesaro / ActiveLinkTagHelper.cs
Created December 17, 2019 16:11 — forked from oguzhaneren/ActiveLinkTagHelper.cs
Asp.net Core TagHelper for adding 'active' class to current active link
[HtmlTargetElement(Attributes = ControllersAttributeName)]
[HtmlTargetElement(Attributes = ActionsAttributeName)]
[HtmlTargetElement(Attributes = RouteAttributeName)]
[HtmlTargetElement(Attributes = ClassAttributeName)]
public class ActiveLinkTagHelper : TagHelper
{
private const string ActionsAttributeName = "asp-active-actions";
private const string ControllersAttributeName = "asp-active-controllers";
private const string ClassAttributeName = "asp-active-class";
private const string RouteAttributeName = "asp-active-route";
@alvinchesaro
alvinchesaro / ActiveRouteTagHelper.cs
Created December 17, 2019 16:11 — forked from is-consulting/ActiveRouteTagHelper.cs
Asp.net Core 2.0 TagHelper for adding 'active' class to current active link. Compatible to lowercase routing, LowercaseUrls
[HtmlTargetElement(Attributes = ControllersAttributeName)]
[HtmlTargetElement(Attributes = ActionsAttributeName)]
[HtmlTargetElement(Attributes = RouteAttributeName)]
[HtmlTargetElement(Attributes = ClassAttributeName)]
public class ActiveRouteTagHelper : TagHelper
{
private const string ActionsAttributeName = "asp-active-actions";
private const string ControllersAttributeName = "asp-active-controllers";
private const string ClassAttributeName = "asp-active-class";
private const string RouteAttributeName = "asp-active-route";
@alvinchesaro
alvinchesaro / 1. Neto.md
Created September 4, 2019 10:43 — forked from philcon93/1. Neto.md
Product Page Image and Alt Images to Slick and Fancybox with alt images

Product Page Image and Alt Images to Slick and Fancybox with alt images

	$('.slider-for').slick({
	  slidesToShow: 1,
	  slidesToScroll: 1,
	  arrows: false,
	  asNavFor: '.slider-nav'
	});
	$('.slider-nav').slick({
if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed) {
System.Deployment.Application.ApplicationDeployment cd =
System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
string publishVersion = cd.CurrentVersion;
// show publish version in title or About box...
}