-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-corporate-learning-partners.php
137 lines (131 loc) · 7.36 KB
/
page-corporate-learning-partners.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
/**
* The template for displaying all Learning Partners
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage Twenty_Twenty_One
* @since Twenty Twenty-One 1.0
*/
get_header();
?>
<div id="content">
<div class="d-flex p-4 p-md-5 align-items-center bg-gov-green bg-gradient" style="height: 12vh; min-height: 100px;">
<div class="container-lg px-0 px-md-3 py-4 py-md-5">
<h1 class="mb-0 text-white">Corporate Learning Partners</h1>
</div>
</div>
<div class="bg-light-subtle">
<div class="container-lg p-lg-5 p-4">
<h2>Learning together</h2>
<p>In the BC Public Service, Corporate Learning is a shared space. Corporate Learning Partners are all committed to offering learning, development and growth opportunities for all our employees.</p>
<div class="card topic-card">
<div class="card-body">
<h3 class="card-title">Are you interested in becoming a partner?</h3>
<p>To be a Corporate Learning partner, you must have developed or designed a course that is aligned with the Corporate Learning Framework and beneficial to all BC Public Service employees regardless of their ministry.</p>
<details>
<summary class="fs-6 text-primary ms-3">
More info</summary>
<h4 class="mt-3">What Corporate Learning partners do</h4>
<p>We meet virtually bi-monthly to identify, prioritize, track, and improve alignment of corporate learning priorities for the BC Public Service. They also collaborate asynchronously through a Microsoft TEAMS page.</p>
<h4>What's in it for you</h4>
<p>As a partner, you will gain access to a wealth of shared resources, including best practices and innovative ideas for developing corporate learning. Your involvement will not only provide you with timely updates and materials but also offer a voice in shaping the strategic direction of corporate learning within the BC Public Service Agency.</p>
<p>We highly value the time and effort that goes into developing corporate learning. We would love to include you and your amazing courses in the LearningHUB.</p>
<p><a href="/learninghub/new-partner-request/" target="_blank" rel="noreferrer noopener">Request Partnership</a></p>
</details>
</div>
</div>
</div>
</div>
<div class="bg-secondary-subtle pt-4">
<div class="container-lg p-lg-5 p-4 bg-light-subtle">
<h2>Meet the partners</h2>
<p class="mb-4">Curious about our existing partners and which courses they offer? You're in the right spot.</p>
<?php
$terms = get_terms(array(
'taxonomy' => 'learning_partner',
'hide_empty' => false,
'orderby' => 'count',
'order' => 'DESC',
'exclude' => [121, 372, 144]
)); // 121 = Office of Compt General, 372 = unknown, 144 = labour relations
?>
<div id="partnerlist">
<div class="row row-cols-1 row-cols-md-2 g-4">
<!-- <div class="entry-content searchbox" style="text-align: center">
<input class="search form-control mb-3" placeholder="Type here to filter partners">
</div> -->
<?php $count = 1 ?>
<?php foreach ($terms as $category) : ?>
<?php
$pcount = $category->count . ' course';
if ($category->count > 1) $pcount = $category->count . ' courses';
$category_link = sprintf(
'<a href="%1$s" title="%2$s" class="partnerofferings">View %3$s from this partner</a>',
esc_url(get_category_link($category->term_id)),
esc_attr(sprintf(__('View all posts in %s', 'textdomain'), $category->name)),
esc_html($pcount)
);
$partnerurl = '';
$partnerlogo = '';
$term_vals = get_term_meta($category->term_id);
foreach ($term_vals as $key => $val) {
//echo $val[0] . '<br>';
if ($key == 'partner-url') {
$partnerurl = $val[0];
}
if ($key == 'category-image-id') {
$partnerlogo = $val[0];
}
}
?>
<div class="col">
<div class="card bg-body-tertiary">
<div class="card-body" style="font-size: 1.125rem;">
<div class="card-title">
<h3 class="h4 text-primary fw-semibold"><?= esc_html($category->name) ?> </h3>
</div>
<div class="card-text">
<?= sprintf(esc_html__('%s', 'textdomain'), $category->description) ?>
</div>
<?php if (!empty($partnerurl)) : ?>
<div class="partner-url mt-2">
<a target="_blank" rel="noopener" href="<?= $partnerurl ?>">
View partner website<span class="visually-hidden"> (Opens in a new tab)</span>
</a>
</div>
<?php endif ?>
<div class="hublink">
<?php if ($category->count > 0) : ?>
<?= sprintf(esc_html__('%s', 'textdomain'), $category_link) ?>
<?php else : ?>
<div class="bg-warning-subtle mt-2 p-2">
This partner does not currently have any courses listed in the LearningHUB.
</div>
<?php endif ?>
</div>
</div>
</div>
</div>
<?php endforeach ?>
</div>
</div>
</div>
</div>
</div>
<!-- / -->
<!-- <script src="//cdnjs.cloudflare.com/ajax/libs/list.js/2.3.1/list.min.js"></script>
<script>
var courseoptions = {
valueNames: [ 'partnername', 'partnerdesc' ]
};
var partners = new List('partnerlist', courseoptions);
document.getElementById('pcount').innerHTML = partners.update().matchingItems.length;
partners.on('searchComplete', function(){
//console.log(upcomingClasses.update().matchingItems.length);
//console.log(courses.update().matchingItems.length);
document.getElementById('pcount').innerHTML = partners.update().matchingItems.length;
});
</script> -->
<?php get_footer() ?>