Skip to content

Commit 8d71478

Browse files
dd32debciriaocclaude
committed
Add Campus Connect and Student Club base themes (#1646)
* Add Campus Connect and Student Club base themes * Use WPCC themes for new Campus Connect and Student Club sites Co-Authored-By: debciriaoc <debciriaoc@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 42a03b2 commit 8d71478

File tree

181 files changed

+5295
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+5295
-1
lines changed

public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,14 @@ protected function configure_new_site( $wordcamp_id, $wordcamp ) {
587587

588588
$lead_organizer = $this->get_user_or_current_user( $meta['WordPress.org Username'][0] );
589589

590-
switch_theme( 'twentytwentyfour' );
590+
$event_subtype = $wordcamp->event_subtype ?: 'wordcamp';
591+
if ( 'campusconnect' === $event_subtype ) {
592+
switch_theme( 'campus-connect' );
593+
} elseif ( 'student-club' === $event_subtype ) {
594+
switch_theme( 'student-clubs' );
595+
} else {
596+
switch_theme( 'twentytwentyfour' );
597+
}
591598

592599
$this->set_default_options( $wordcamp, $meta );
593600
$this->create_post_stubs( $wordcamp, $meta, $lead_organizer );
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
98.5 KB
388 KB
903 Bytes
895 Bytes

0 commit comments

Comments
 (0)