83e1bea4 by Jeremy Groot

final fixes

1 parent 694630b5
......@@ -23,7 +23,7 @@ $events = get_field('events', 'options');
</div>
<div class='be-info'>
<div class="be-title"><?= $event['title'] ?></div>
<div class="be-date">Date: <?= $month . ' ' . $day . ", " . date('Y', $time) ?> | Time: <?= date('g:i A') ?> </div>
<div class="be-date">Date: <?= $month . ' ' . $day . ", " . date('Y', $time) ?> | Time: <?= date('g:i A', $time) ?> </div>
<div class="be-desc"><?= $event['description'] ?></div>
</div>
<div class='be-btn'>
......
......@@ -8701,7 +8701,7 @@ p > a:before {
left: -0.3rem !important;
}
p > a.mailto:before {
top: 10px !important;
display: none !important;
}
.wp-block-file > a {
......@@ -14515,7 +14515,7 @@ a.pdf:hover, a.extern:hover, a.xls:hover, a.mailto:hover {
.sidebar > h2 {
margin-top: 0;
font-size: 20px;
text-transform: capitalize;
text-transform: uppercase;
margin-bottom: 10px;
font-family: "Helvetica-Bold";
}
......
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 {
left:-0.3rem !important;
}
&.mailto:before {
top:10px !important;
display: none !important;
}
}
......
......@@ -296,7 +296,7 @@ a.pdf, a.extern, a.xls, a.mailto {
& > h2 {
margin-top:0;
font-size: 20px;
text-transform: capitalize;
text-transform: uppercase;
margin-bottom:10px;
font-family: "Helvetica-Bold";
}
......
......@@ -154,20 +154,25 @@
*/
// if($sub_cat && $sub_cat['value'] !== 'na') {
// //Specific Person
// } else {
$full_name = $staff_contact['full_name'];
$email = $staff_contact['email'];
$phone = $staff_contact['phone'];
if($sub_cat && strpos(strtolower($sub_cat['value']), 'writer') !== false) {
//General Contact
fillStaffContact($assignment_arr, 'commercial', ['label'=>'','title'=>"Field Underwriter",
'full_name'=>$full_name,'email'=>$email,'phone'=>$phone]);
} else if($sub_cat && strpos(strtolower($sub_cat['value']), 'leader') !== false) {
//General Contact
fillStaffContact($assignment_arr, 'commercial', ['label'=>'','title'=>"Team Leader",
'full_name'=>$full_name,'email'=>$email,'phone'=>$phone]);
} else {
fillStaffContact($assignment_arr, 'commercial', ['title'=>"",
'full_name'=>$full_name,'email'=>$email,'phone'=>$phone,'label'=>'']);
// }
}
}
......@@ -328,7 +333,6 @@
<?php if(!empty($tl['phone'])) { ?>
<li><?= $tl['phone'] ?></li>
<?php } ?>
<li></li>
<?php } ?>
</ul>
</address>
......@@ -343,11 +347,13 @@
</div>
<div class="accordian_body">
<?php
foreach($assignment_arr['commercial'] as $aa) { ?>
foreach($assignment_arr['commercial'] as $aa) {
?>
<address>
<ul>
<?php if(!empty($aa['label'])) { ?>
<li><b><?= $aa['label'] ?></b></li>
<?php if(!empty($aa['title'])) { ?>
<li><b><?= $aa['title'] ?></b></li>
<?php } ?>
<?php if(!empty($aa['full_name'])) { ?>
<li><?= $aa['full_name'] ?></li>
......@@ -378,14 +384,6 @@
foreach($assignment_arr['farm'] as $aa) { ?>
<?php if(!empty($aa['label'])) { ?>
<?php if(!$team_labeled) { $team_labeled = true; ?> <b><?= ucwords(__($aa['label'])) ?></b> <?php } ?>
<?php } ?>
<?php if(empty($aa['label']) && !$team_labeled) {
$backlogged_infos[] = $aa;
}
?>
<address>
<ul>
<?php if(!empty($aa['title'])) { ?>
......