365c0f66 by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent cab73a25
...@@ -16877,7 +16877,7 @@ a[target=_blank]:after { ...@@ -16877,7 +16877,7 @@ a[target=_blank]:after {
16877 appearance: none; 16877 appearance: none;
16878 background-color: transparent; 16878 background-color: transparent;
16879 border: 0.0625rem solid #bebebe !important; 16879 border: 0.0625rem solid #bebebe !important;
16880 width: 6.875rem; 16880 width: 7.875rem;
16881 height: 1.875rem; 16881 height: 1.875rem;
16882 display: inline-block; 16882 display: inline-block;
16883 font-size: 0.75rem; 16883 font-size: 0.75rem;
...@@ -16886,6 +16886,7 @@ a[target=_blank]:after { ...@@ -16886,6 +16886,7 @@ a[target=_blank]:after {
16886 padding: 0.3125rem 0.875rem; 16886 padding: 0.3125rem 0.875rem;
16887 text-decoration: none; 16887 text-decoration: none;
16888 margin-top: 0.125rem; 16888 margin-top: 0.125rem;
16889 text-align: center;
16889 } 16890 }
16890 @media screen and (max-width: 90.625rem) { 16891 @media screen and (max-width: 90.625rem) {
16891 #search-wrapper .search-filter-reset { 16892 #search-wrapper .search-filter-reset {
...@@ -17658,6 +17659,17 @@ ul.sf_date_field .sf-datepicker { ...@@ -17658,6 +17659,17 @@ ul.sf_date_field .sf-datepicker {
17658 top: 32px; 17659 top: 32px;
17659 } 17660 }
17660 17661
17662 :lang(fr-FR) #search-wrapper .sf-field-submit .top-go, :lang(fr-FR) #search-wrapper .sf-field-submit input[name=_sf_submit] {
17663 font-size: 0.9rem;
17664 height: 3rem;
17665 width: 3rem;
17666 }
17667 @media screen and (max-width: 56.25rem) {
17668 :lang(fr-FR) #search-wrapper .sf-field-search {
17669 width: calc(100% - 9rem) !important;
17670 }
17671 }
17672
17661 .search-results .search-field { 17673 .search-results .search-field {
17662 border: 0; 17674 border: 0;
17663 border-bottom: 0.0625rem solid #707070; 17675 border-bottom: 0.0625rem solid #707070;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 <?php
2
3 require_once( ABSPATH . 'wp-admin/admin.php' );
4
5 //add_action('init','register_country_taxonomy');
6 function register_country_taxonomy() {
7 error_log('dddd');
8 $counties = array(
9 "Afghanistan",
10 "Albania",
11 "Algeria",
12 "Andorra",
13 "Angola",
14 "Antigua and Barbuda",
15 "Argentina",
16 "Armenia",
17 "Australia",
18 "Austria",
19 "Azerbaijan",
20 "Bahamas",
21 "Bahrain",
22
23 "Barbados",
24 "Belarus",
25 "Belgium",
26 "Belize",
27 "Benin",
28 "Bhutan",
29 "Bolivia",
30 "Bosnia and Herzegovina",
31 "Botswana",
32 "Brazil",
33 "Brunei",
34 "Bulgaria",
35 "Burkina Faso",
36 "Burundi",
37 "Cabo Verde",
38 "Cambodia",
39
40 "Canada",
41 "Central African Republic",
42
43 "Chile",
44 "China",
45 "Columbia",
46 "Comoros",
47 "Congo",
48 "Costa Rica",
49 "Croatia",
50 "Cuba",
51 "Cyprus",
52 "Czech Republic",
53
54 "Denmark",
55 "Djibouti",
56 "Dominica",
57 "Dominican Republic",
58 "East Timor",
59 "Ecuador",
60
61 "El Salvador",
62 "Equatorial Guinea",
63 "Eritrea",
64 "Estonia",
65 "Eswatini",
66 "Ethiopia",
67 "Fiji",
68 "Finland",
69 "France",
70 "Gabon",
71 "Gambia",
72 "Georgia",
73 "Germany",
74 "Ghana",
75 "Greece",
76 "Grenada",
77 "Guatemala",
78 "Guinea",
79 "Guinea",
80 "Guyana",
81
82
83 "Hungary",
84 "Iceland",
85
86 "Indonesia",
87 "Iran",
88 "Iraq",
89 "Ireland",
90 "Israel",
91 "Italy",
92 "Jamaica",
93 "Japan",
94 "Jordan",
95 "Kazakhstan",
96 "Kenya",
97
98 "North Korea",
99 "South Korea",
100 "Kuwait",
101 "Kyrgyzstan",
102 "Laos",
103
104 "Latvia",
105 "Lesotho",
106 "Libya",
107 "Liberia",
108 "Liechtenstein",
109 "Lithuania",
110 "Luxembourg",
111 "Madagascar",
112 "Malawi",
113 "Malaysia",
114 "Maldives",
115 "Mali",
116 "Malta",
117 "Marshall Islands",
118 "Mauritania",
119 "Mauritius",
120 "Mexico",
121 "Micronesia",
122 "Moldova",
123 "Monaco",
124 "Mongolia",
125 "Montenegro",
126 "Morocco",
127 "Mozambique",
128 "Myanmar",
129 "Namibia",
130 "Nauru",
131 "Nepal",
132 "Netherlands",
133 "New Zealand",
134 "Nicaragua",
135 "Nepal",
136 "Nigeria",
137 "North Macedonia",
138 "Norway",
139 "Oman",
140
141 "Palau",
142 "Panama",
143 "Papua New Guinea",
144 "Paraguay",
145 "Peru",
146 "Philippines",
147 "Poland",
148 "Portugal",
149 "Qatar",
150 "Romania",
151 "Russia",
152 "Rwanda",
153 "Saint Kitts and Nevis",
154 "Saint Lucia",
155 "Saint Vincent and the Grenadines",
156 "Samoa",
157 "San Marino",
158 "Sao Tome and Principe",
159 "Saudi Arabia",
160 "Senegal",
161 "Serbia",
162 "Seychelles",
163 "Sierra Leone",
164 "Singapore",
165 "Slovakia",
166 "Slovenia",
167 "Solomon Islands",
168 "Somalia",
169 "South Africa",
170
171 "Spain",
172 "Sri Lanka",
173 "Sudan",
174 "Suriname",
175 "Sweden",
176 "Switzerland",
177 "Syria",
178 "Taiwan",
179 "Tajikistan",
180 "Tanzania",
181 "Thailand",
182 "Togo",
183 "Tonga",
184 "Trinidad and Tobago",
185 "Tunisia",
186 "Turkey",
187 "Turkmenistan",
188 "Tuvalu",
189 "Uganda",
190 "Ukraine",
191 "United Arab Emirates",
192 "United Kingdom",
193 "United States",
194 "Uruguay",
195 "Uzbekistan",
196 "Vanuatu",
197 "Vatican City",
198 "Venezuela",
199 "Vietnam",
200 "Yemen",
201 "Zambia");
202
203
204
205 foreach($counties as $country) {
206
207 register_taxonomy('country', 'attachment', array(
208 'hierarchical' => true,
209 'label' => $country,
210 'query_var' => clean($country),
211 ));
212
213
214 register_taxonomy('country', 'documents', array(
215 'hierarchical' => true,
216 'label' => $country,
217 'query_var' => clean($country),
218 ));
219
220 }
221 }
222
223 function clean($string) {
224 $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.
225
226 return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.
227 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
240 appearance: none; 240 appearance: none;
241 background-color: transparent; 241 background-color: transparent;
242 border: 0.0625rem solid #bebebe !important; 242 border: 0.0625rem solid #bebebe !important;
243 width: 6.875rem; 243 width: 7.875rem;
244 height: 1.875rem; 244 height: 1.875rem;
245 display: inline-block; 245 display: inline-block;
246 font-size: 0.75rem; 246 font-size: 0.75rem;
...@@ -249,6 +249,8 @@ ...@@ -249,6 +249,8 @@
249 padding: 0.3125rem 0.875rem; 249 padding: 0.3125rem 0.875rem;
250 text-decoration: none; 250 text-decoration: none;
251 margin-top: 0.125rem; 251 margin-top: 0.125rem;
252 text-align: center;
253
252 @media screen and (max-width: 90.625rem) { 254 @media screen and (max-width: 90.625rem) {
253 width: 40%; 255 width: 40%;
254 line-height: 1.25rem; 256 line-height: 1.25rem;
...@@ -1085,4 +1087,18 @@ ul.sf_date_field { ...@@ -1085,4 +1087,18 @@ ul.sf_date_field {
1085 1087
1086 .admin-bar .select2-container--open .select2-dropdown{ 1088 .admin-bar .select2-container--open .select2-dropdown{
1087 top:32px; 1089 top:32px;
1090 }
1091
1092 :lang(fr-FR){
1093 #search-wrapper .sf-field-submit .top-go, #search-wrapper .sf-field-submit input[name=_sf_submit]{
1094 font-size: 0.9rem;
1095 height: 3rem;
1096 width: 3rem;
1097 }
1098 @media screen and (max-width: 56.25rem){
1099 #search-wrapper .sf-field-search {
1100 width: calc(100% - 9rem) !important;
1101 }
1102 }
1103
1088 } 1104 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
2 Theme Name: MSF CA Child 2 Theme Name: MSF CA Child
3 Author: Tenzing Communications 3 Author: Tenzing Communications
4 Template: msf-ca 4 Template: msf-ca
5 Version: 1.0.16 5 Version: 1.0.17
6 */ 6 */
...\ No newline at end of file ...\ No newline at end of file
......