コード例 #1
0
 public void SetPageMetaData(IClimbingPlace place)
 {
     ViewData["PageTitle"]       = PageMetaInfoGenerator.GetTitle(place);
     ViewData["PageDescription"] = PageMetaInfoGenerator.GetMetaDescription(place);
     ViewData["PageKeywords"]    = PageMetaInfoGenerator.GetMetaKeywords(place);
     ViewData["PageRobots"]      = GetRobotsDefinition(PageRobots.IndexFollow);
 }
コード例 #2
0
 /// <summary>
 /// 
 /// </summary>
 public static string GetMetaKeywords(IClimbingPlace place)
 {
     if (string.IsNullOrEmpty(place.MetaKeywords))
     {
         if (place.IsIndoor) { return string.Format("Indoor climbing, rock climbing gym {0}, {1}", ((IndoorPlace)place).Address, place.Name); }
         else { return string.Format("Outdoor rock climbing, {0}", place.Name); }
     }
     else { return place.MetaKeywords; }
 }
コード例 #3
0
 /// <summary>
 /// 
 /// </summary>
 public static string GetMetaDescription(IClimbingPlace place)
 {
     if ( string.IsNullOrEmpty(place.MetaDescription ))
     {
         if (place.IsIndoor) { return string.Format("Info on indoor rock climbing at {0} in {2} including people who climb at {1}, people looking for {0} climbing partners and media related to {1}", place.Name, place.ShortName, FlagList.GetCountryName((Nation)place.CountryID)); }
         else { return string.Format("Info on outdoor rock climbing around {0} in {2} including people who climb around {1}, people looking for climbing partners in {0} and media related to {1}", place.Name, place.ShortName, FlagList.GetCountryName((Nation)place.CountryID)); }
     }
     else { return place.MetaDescription; }
 }
コード例 #4
0
 /// <summary>
 ///
 /// </summary>
 public static string GetTitle(IClimbingPlace place)
 {
     if (place.IsIndoor)
     {
         return(string.Format("Indoor rock climbing at {0} & {1} climbing partners - Climbfind.com", place.Name, place.ShortName));
     }
     else
     {
         return(string.Format("Outdoor rock climbing at {0} & {1} climbing partners - Climbfind.com", place.Name, place.ShortName));
     }
 }
コード例 #5
0
 /// <summary>
 ///
 /// </summary>
 public static string GetMetaKeywords(IClimbingPlace place)
 {
     if (string.IsNullOrEmpty(place.MetaKeywords))
     {
         if (place.IsIndoor)
         {
             return(string.Format("Indoor climbing, rock climbing gym {0}, {1}", ((IndoorPlace)place).Address, place.Name));
         }
         else
         {
             return(string.Format("Outdoor rock climbing, {0}", place.Name));
         }
     }
     else
     {
         return(place.MetaKeywords);
     }
 }
コード例 #6
0
 /// <summary>
 ///
 /// </summary>
 public static string GetMetaDescription(IClimbingPlace place)
 {
     if (string.IsNullOrEmpty(place.MetaDescription))
     {
         if (place.IsIndoor)
         {
             return(string.Format("Info on indoor rock climbing at {0} in {2} including people who climb at {1}, people looking for {0} climbing partners and media related to {1}", place.Name, place.ShortName, FlagList.GetCountryName((Nation)place.CountryID)));
         }
         else
         {
             return(string.Format("Info on outdoor rock climbing around {0} in {2} including people who climb around {1}, people looking for climbing partners in {0} and media related to {1}", place.Name, place.ShortName, FlagList.GetCountryName((Nation)place.CountryID)));
         }
     }
     else
     {
         return(place.MetaDescription);
     }
 }
コード例 #7
0
 /// <summary>
 /// 
 /// </summary>
 public static string GetTitle(IClimbingPlace place)
 {
     if (place.IsIndoor) { return string.Format("Indoor rock climbing at {0} & {1} climbing partners - Climbfind.com", place.Name, place.ShortName); }
     else { return string.Format("Outdoor rock climbing at {0} & {1} climbing partners - Climbfind.com", place.Name, place.ShortName); }
 }
コード例 #8
0
 public void SetPageMetaData(IClimbingPlace place)
 {
     ViewData["PageTitle"] = PageMetaInfoGenerator.GetTitle(place);
     ViewData["PageDescription"] = PageMetaInfoGenerator.GetMetaDescription(place);
     ViewData["PageKeywords"] = PageMetaInfoGenerator.GetMetaKeywords(place);
     ViewData["PageRobots"] = GetRobotsDefinition(PageRobots.IndexFollow);
 }