Skip to content

Commit

Permalink
2024 Theme: Add Online Workshop host application template
Browse files Browse the repository at this point in the history
Closes #2529
  • Loading branch information
adamwoodnz committed Jun 21, 2024
1 parent 18a8590 commit 224cbf3
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?php
/**
* Title: Apply to Facilitate or Co-host Page Content
* Slug: wporg-learn-2024/page-apply-to-facilitate-content
* Inserter: no
*/

?>

<!-- wp:heading {"level":1} -->
<h1 class="wp-block-heading">
<?php esc_html_e( 'Apply to Facilitate or Co-host', 'wporg-learn' ); ?>
</h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>
<?php echo wp_kses_post(
sprintf(
/* translators: 1: handbook online workshops link, 2: handbook online workshops co-hosting link */
__( 'Want to know more about online workshops and how they work? <a href="%1$s">Check out the handbook</a> and learn more about facilitating and <a href="%2$s">co-hosting</a> online workshops.', 'wporg-learn' ),
'https://make.wordpress.org/training/handbook/online-workshops/',
'https://make.wordpress.org/training/handbook/online-workshops/co-hosting-an-online-workshop/',
)
); ?>
</p>
<!-- /wp:paragraph -->

<!-- wp:wporg/notice {"type":"info"} -->
<div class="wp-block-wporg-notice is-info-notice">
<div class="wp-block-wporg-notice__icon"></div>
<div class="wp-block-wporg-notice__content">
<p>
<?php echo wp_kses_post(
sprintf(
/* translators: 1: Meetup.com online workshops link, 2: Learn email link */
__( 'If you are already a WordPress meetup organizer in your local community, then you can organize an <a href="%1$s">online workshop</a> as part of your meetup group! If you would like to facilitate an online workshop for the meetup group, please fill in the form below. If you have any questions, reach out to <a href="%2$s">[email protected]</a>.', 'wporg-learn' ),
'https://www.meetup.com/learn-wordpress-online-workshops/',
'mailto:[email protected]',
)
); ?>
</p>
</div>
</div>
<!-- /wp:wporg/notice -->

<!-- wp:heading {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}}}} -->
<h2 class="wp-block-heading" style="margin-top:var(--wp--preset--spacing--40)"><?php esc_html_e( 'Submission Form', 'wporg-learn' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:list {"backgroundColor":"light-grey-2"} -->
<ul class="wp-block-list has-light-grey-2-background-color has-background">

<!-- wp:list-item -->
<li><?php esc_html_e( 'All the fields are required.', 'wporg-learn' ); ?></li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><?php esc_html_e( 'Please fill this form in English.', 'wporg-learn' ); ?></li>
<!-- /wp:list-item -->

</ul>
<!-- /wp:list -->

<!-- wp:post-content {"layout":{"inherit":true}} /-->

<!-- wp:wporg/notice {"type":"alert","style":{"spacing":{"margin":{"top":"var:preset|spacing|30"}}}} -->
<div class="wp-block-wporg-notice is-alert-notice" style="margin-top:var(--wp--preset--spacing--30)">
<div class="wp-block-wporg-notice__icon"></div>
<div class="wp-block-wporg-notice__content">
<p>
<?php echo wp_kses_post(
sprintf(
/* translators: 1: Training slack channel link */
__( 'If you do not receive a response in about a week, please reach out in the <a href="%1$s">#training channel in Slack</a> to follow up.', 'wporg-learn' ),
'http://wordpress.slack.com/messages/training/',
)
); ?>
</p>
</div>
</div>
<!-- /wp:wporg/notice -->
15 changes: 15 additions & 0 deletions wp-content/themes/pub/wporg-learn-2024/src/style/_jetpack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,18 @@
.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline:not(.wp-block-jetpack-subscriptions__use-newline) p#subscribe-submit {
justify-content: start;
}

.contact-form {
.grunion-checkbox-multiple-options legend,
.grunion-radio-options legend,
label {
font-weight: 400;
}

label span.required,
.grunion-label-required {
color: var(--wp--preset--color--charcoal-4);
opacity: unset;
font-size: inherit;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!-- wp:template-part {"slug":"header","className":"has-display-contents","tagName":"div"} /-->

<!-- wp:group {"tagName":"main","layout":{"type":"constrained"},"className":"entry-content","style":{"spacing":{"blockGap":"0px"}}} -->
<main class="wp-block-group entry-content">

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"left":"var:preset|spacing|edge-space","right":"var:preset|spacing|edge-space","top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained","contentSize":"680px"}} -->
<div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--edge-space);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--edge-space)">

<!-- wp:pattern {"slug":"wporg-learn-2024/page-apply-to-facilitate-content"} /-->

</div>
<!-- /wp:group -->

</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer"} /-->

0 comments on commit 224cbf3

Please sign in to comment.