All pages in the custom themes as well as pre-defined pages in the root must inherit from this class.
The class is responsible for assigning the theme to all derived pages as well as adding RSS, RSD, tracking script and a whole lot more.
Inheritance: System.Web.UI.Page
        private static void PreparePrettyPhoto(BlogBasePage basePage)
        {
            var litLinks = new LiteralControl {ID = "ppControl"};

            if (basePage.Header.FindControl("ppControl") == null)
            {
                var scriptLinks = new StringBuilder();
            
                const string js = "<script type=\"text/javascript\" src=\"{0}{1}\"></script>";
                const string css = "<link type=\"text/css\" href=\"{0}\" rel=\"stylesheet\" />";

                scriptLinks.Append(string.Format(css, Utils.RelativeWebRoot + PrettyPhotoFolder + "/css/prettyPhoto.css"));
                scriptLinks.Append(string.Format(js, Utils.RelativeWebRoot, "Scripts/jquery.js"));
                scriptLinks.Append(string.Format(js, Utils.RelativeWebRoot, PrettyPhotoFolder + "/js/jquery.prettyPhoto.js"));
                scriptLinks.Append(string.Format(js, Utils.RelativeWebRoot, PrettyPhotoFolder + "/js/PrettyPhotoStarter.js"));

                litLinks.Text = scriptLinks.ToString();  
                basePage.Header.Controls.Add(litLinks);
            }
        }