83e1bea4 by Jeremy Groot

final fixes

1 parent 694630b5
...@@ -23,7 +23,7 @@ $events = get_field('events', 'options'); ...@@ -23,7 +23,7 @@ $events = get_field('events', 'options');
23 </div> 23 </div>
24 <div class='be-info'> 24 <div class='be-info'>
25 <div class="be-title"><?= $event['title'] ?></div> 25 <div class="be-title"><?= $event['title'] ?></div>
26 <div class="be-date">Date: <?= $month . ' ' . $day . ", " . date('Y', $time) ?> | Time: <?= date('g:i A') ?> </div> 26 <div class="be-date">Date: <?= $month . ' ' . $day . ", " . date('Y', $time) ?> | Time: <?= date('g:i A', $time) ?> </div>
27 <div class="be-desc"><?= $event['description'] ?></div> 27 <div class="be-desc"><?= $event['description'] ?></div>
28 </div> 28 </div>
29 <div class='be-btn'> 29 <div class='be-btn'>
......
...@@ -8701,7 +8701,7 @@ p > a:before { ...@@ -8701,7 +8701,7 @@ p > a:before {
8701 left: -0.3rem !important; 8701 left: -0.3rem !important;
8702 } 8702 }
8703 p > a.mailto:before { 8703 p > a.mailto:before {
8704 top: 10px !important; 8704 display: none !important;
8705 } 8705 }
8706 8706
8707 .wp-block-file > a { 8707 .wp-block-file > a {
...@@ -14515,7 +14515,7 @@ a.pdf:hover, a.extern:hover, a.xls:hover, a.mailto:hover { ...@@ -14515,7 +14515,7 @@ a.pdf:hover, a.extern:hover, a.xls:hover, a.mailto:hover {
14515 .sidebar > h2 { 14515 .sidebar > h2 {
14516 margin-top: 0; 14516 margin-top: 0;
14517 font-size: 20px; 14517 font-size: 20px;
14518 text-transform: capitalize; 14518 text-transform: uppercase;
14519 margin-bottom: 10px; 14519 margin-bottom: 10px;
14520 font-family: "Helvetica-Bold"; 14520 font-family: "Helvetica-Bold";
14521 } 14521 }
......
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.
...@@ -281,7 +281,7 @@ p > a { ...@@ -281,7 +281,7 @@ p > a {
281 left:-0.3rem !important; 281 left:-0.3rem !important;
282 } 282 }
283 &.mailto:before { 283 &.mailto:before {
284 top:10px !important; 284 display: none !important;
285 } 285 }
286 } 286 }
287 287
......
...@@ -296,7 +296,7 @@ a.pdf, a.extern, a.xls, a.mailto { ...@@ -296,7 +296,7 @@ a.pdf, a.extern, a.xls, a.mailto {
296 & > h2 { 296 & > h2 {
297 margin-top:0; 297 margin-top:0;
298 font-size: 20px; 298 font-size: 20px;
299 text-transform: capitalize; 299 text-transform: uppercase;
300 margin-bottom:10px; 300 margin-bottom:10px;
301 font-family: "Helvetica-Bold"; 301 font-family: "Helvetica-Bold";
302 } 302 }
......
...@@ -154,20 +154,25 @@ ...@@ -154,20 +154,25 @@
154 154
155 */ 155 */
156 156
157 // if($sub_cat && $sub_cat['value'] !== 'na') {
158 // //Specific Person
159
160 // } else {
161
162 $full_name = $staff_contact['full_name']; 157 $full_name = $staff_contact['full_name'];
163 $email = $staff_contact['email']; 158 $email = $staff_contact['email'];
164 $phone = $staff_contact['phone']; 159 $phone = $staff_contact['phone'];
165 160
161 if($sub_cat && strpos(strtolower($sub_cat['value']), 'writer') !== false) {
162
166 //General Contact 163 //General Contact
164 fillStaffContact($assignment_arr, 'commercial', ['label'=>'','title'=>"Field Underwriter",
165 'full_name'=>$full_name,'email'=>$email,'phone'=>$phone]);
166
167 } else if($sub_cat && strpos(strtolower($sub_cat['value']), 'leader') !== false) {
168 //General Contact
169 fillStaffContact($assignment_arr, 'commercial', ['label'=>'','title'=>"Team Leader",
170 'full_name'=>$full_name,'email'=>$email,'phone'=>$phone]);
171
172 } else {
167 fillStaffContact($assignment_arr, 'commercial', ['title'=>"", 173 fillStaffContact($assignment_arr, 'commercial', ['title'=>"",
168 'full_name'=>$full_name,'email'=>$email,'phone'=>$phone,'label'=>'']); 174 'full_name'=>$full_name,'email'=>$email,'phone'=>$phone,'label'=>'']);
169 // } 175 }
170
171 176
172 177
173 } 178 }
...@@ -328,7 +333,6 @@ ...@@ -328,7 +333,6 @@
328 <?php if(!empty($tl['phone'])) { ?> 333 <?php if(!empty($tl['phone'])) { ?>
329 <li><?= $tl['phone'] ?></li> 334 <li><?= $tl['phone'] ?></li>
330 <?php } ?> 335 <?php } ?>
331 <li></li>
332 <?php } ?> 336 <?php } ?>
333 </ul> 337 </ul>
334 </address> 338 </address>
...@@ -343,11 +347,13 @@ ...@@ -343,11 +347,13 @@
343 </div> 347 </div>
344 <div class="accordian_body"> 348 <div class="accordian_body">
345 <?php 349 <?php
346 foreach($assignment_arr['commercial'] as $aa) { ?> 350 foreach($assignment_arr['commercial'] as $aa) {
351 ?>
352
347 <address> 353 <address>
348 <ul> 354 <ul>
349 <?php if(!empty($aa['label'])) { ?> 355 <?php if(!empty($aa['title'])) { ?>
350 <li><b><?= $aa['label'] ?></b></li> 356 <li><b><?= $aa['title'] ?></b></li>
351 <?php } ?> 357 <?php } ?>
352 <?php if(!empty($aa['full_name'])) { ?> 358 <?php if(!empty($aa['full_name'])) { ?>
353 <li><?= $aa['full_name'] ?></li> 359 <li><?= $aa['full_name'] ?></li>
...@@ -378,14 +384,6 @@ ...@@ -378,14 +384,6 @@
378 384
379 foreach($assignment_arr['farm'] as $aa) { ?> 385 foreach($assignment_arr['farm'] as $aa) { ?>
380 386
381 <?php if(!empty($aa['label'])) { ?>
382 <?php if(!$team_labeled) { $team_labeled = true; ?> <b><?= ucwords(__($aa['label'])) ?></b> <?php } ?>
383 <?php } ?>
384
385 <?php if(empty($aa['label']) && !$team_labeled) {
386 $backlogged_infos[] = $aa;
387 }
388 ?>
389 <address> 387 <address>
390 <ul> 388 <ul>
391 <?php if(!empty($aa['title'])) { ?> 389 <?php if(!empty($aa['title'])) { ?>
......