Created
January 23, 2011 02:20
-
-
Save azcoov/791744 to your computer and use it in GitHub Desktop.
Weighted Tag Class
This file contains 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
public static class BlogHelper | |
{ | |
public static string GetTagClass(int id) | |
{ | |
if (id % 2 == 0) | |
{ | |
return "post-tag pop1"; | |
} | |
else | |
{ | |
return "post-tag pop2"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment