1: using System;
2: using System.Configuration;
3: using System.Web;
4:
5: namespace Ia.Cl.Model
6: {
7: ////////////////////////////////////////////////////////////////////////////
8:
9: /// <summary publish="true">
10: /// Search Engine Optimization (SEO) support class.
11: /// </summary>
12: /// <remarks>
13: /// Copyright © 2001-2015 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
14: ///
15: /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
16: /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
17: ///
18: /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
19: /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
20: ///
21: /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
22: ///
23: /// Copyright notice: This notice may not be removed or altered from any source distribution.
24: /// </remarks>
25: public abstract class Seo
26: {
27: ////////////////////////////////////////////////////////////////////////////
28:
29: /// <summary>
30: ///
31: /// </summary>
32: public Seo() { }
33:
34: ////////////////////////////////////////////////////////////////////////////
35:
36: /// <summary>
37: ///
38: /// </summary>
39: public static string Title()
40: {
41: string s;
42:
43: s = null;
44:
45: try
46: {
47: s = ConfigurationManager.AppSettings["siteName"].ToString() + ": " + ConfigurationManager.AppSettings["companyName"].ToString() + " - "
48: + ConfigurationManager.AppSettings["legalCountry"].ToString() + " " + SiteMap.CurrentNode.Title.ToString();
49: }
50: catch (NullReferenceException)
51: {
52: try
53: {
54: s = ConfigurationManager.AppSettings["siteName"].ToString() + ": " + ConfigurationManager.AppSettings["companyName"].ToString() + " - "
55: + ConfigurationManager.AppSettings["legalCountry"].ToString();
56: }
57: catch (Exception)
58: {
59: }
60: }
61:
62: return s;
63: }
64:
65: ////////////////////////////////////////////////////////////////////////////
66:
67: /// <summary>
68: ///
69: /// </summary>
70: public static string ArabicTitle()
71: {
72: string s;
73:
74: s = null;
75:
76: try
77: {
78:
79: s = ConfigurationManager.AppSettings["arabicSiteName"].ToString() + ": " + ConfigurationManager.AppSettings["arabicCompanyName"].ToString() + " - "
80: + ConfigurationManager.AppSettings["arabicLegalCountry"].ToString() + " " + SiteMap.CurrentNode.Title.ToString();
81: }
82: catch (NullReferenceException)
83: {
84: try
85: {
86: s = ConfigurationManager.AppSettings["arabicSiteName"].ToString() + ": " + ConfigurationManager.AppSettings["arabicCompanyName"].ToString() + " - "
87: + ConfigurationManager.AppSettings["arabicLegalCountry"].ToString();
88: }
89: catch (Exception)
90: {
91: }
92: }
93:
94: return s;
95: }
96:
97: ////////////////////////////////////////////////////////////////////////////
98:
99: /// <summary>
100: ///
101: /// </summary>
102: public static string Link()
103: {
104: string s;
105:
106: s = "https://*";
107:
108: return s;
109: }
110:
111: ////////////////////////////////////////////////////////////////////////////
112: ////////////////////////////////////////////////////////////////////////////
113:
114: }
115: }