Skip to content

Commit 0d536b4

Browse files
committed
Bump base theme to 2020.11.1; bump to 2020.11.4
1 parent a468ced commit 0d536b4

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "creativecommons/creativecommons-certificate",
33
"description": "The Creative Commons Certificate Child Theme",
4-
"version": "2020.11.3",
4+
"version": "2020.11.4",
55
"type": "wordpress-theme",
66
"license": "GPL-2.0-or-later",
77
"authors": [
@@ -18,7 +18,7 @@
1818
],
1919
"require": {
2020
"composer/installers": "~1.0",
21-
"creativecommons/wp-theme-base": "2020.4.1",
21+
"creativecommons/wp-theme-base": "2020.11.1",
2222
"jakub-onderka/php-parallel-lint": "^1.0"
2323
},
2424
"scripts": {

front/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "creativecommons-certificate",
3-
"version": "2020.6.1",
3+
"version": "2020.11.4",
44
"description": "This is a child theme created for the Certificates website",
55
"main": "index.js",
66
"dependencies": {

inc/certificates-functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static function modify_breadcrumb_seperator( ) {
1414
return '<i class="icon chevron-right is-6"></i>';
1515
}
1616
public static function get_upcoming_course_events( ) {
17-
return [];
17+
return ['wow'];
1818
}
1919
public static function register_columns_shortcode( $atts, $content ) {
2020
$a = shortcode_atts( array( 'cols' => '4' ), $atts );

single-cc_course.php

+10-9
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,35 @@
99
</div>
1010
</header>
1111
<div class="container">
12-
<div class="columns margin-top-0">
12+
<div class="columns margin-top-0 is-desktop">
1313
<div class="column is-3 has-background-soft-gold course-sidebar">
14-
<div class="entry-meta">
14+
<div class="entry-meta margin-top-xxl">
1515
<?php
1616
$course_duration = get_post_meta( get_the_ID(), 'course_duration', true );
1717
$course_language = get_post_meta( get_the_ID(), 'course_language', true );
1818
$course_url = get_post_meta( get_the_ID(), 'course_apply_url', true );
1919
if ( !empty( $course_duration ) || !empty( $course_language ) || !empty( $course_url ) ) {
20-
echo '<div class="columns is-vcentered margin-vertical-big">';
2120
if ( !empty( $course_url ) ) {
2221
echo '<div class="column">';
2322
echo '<a href="'.$course_url.'" class="button is-info">Register here</a>';
2423
echo '</div>';
2524
}
2625
if ( !empty( $course_duration ) ) {
27-
echo '<div class="column">';
26+
echo '<div>';
2827
echo '<strong>Duration: </strong>';
2928
echo $course_duration;
3029
echo '</div>';
3130
}
3231
if ( !empty( $course_language ) ) {
33-
echo '<div class="column">';
32+
echo '<div>';
3433
echo '<strong>Language: </strong>';
3534
echo $course_language;
3635
echo '</div>';
3736
}
38-
echo '</div>';
3937
}
4038
?>
39+
40+
<a href="" class="button register margin-top-bigger">Register Here</a>
4141
</div>
4242
</div>
4343
<div class="column is-9">
@@ -46,10 +46,11 @@
4646
<?php the_content(); ?>
4747
</div>
4848
<?php
49-
$upcoming_events = Certificates_Website::get_upcoming_course_events( get_the_ID() );
49+
$upcoming_events = Certificates_Website::get_upcoming_course_events( get_the_ID() );
50+
5051
if ( !empty( $upcoming_events ) ) {
51-
echo '<h4>Upcoming Courses</h4>';
52-
echo '<div class="columns padding-top-large">';
52+
echo '<h3>Upcoming Dates</h3>';
53+
echo '<div class="columns padding-top-bigger">';
5354
foreach ( $upcoming_events as $event ) {
5455
$entry_date = get_post_meta( $event->ID, 'event_dtstart_date', true );
5556

style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Author: Creative Commons
55
Author URI: https://creativecommons.org/
66
Description: This is a child theme created for the CC Certificate Website
77
Template: wp-theme-base
8-
Version: 2020.11.3
8+
Version: 2020.11.4
99
License: GPL2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

0 commit comments

Comments
 (0)