Skip to content

Commit

Permalink
Merge pull request #259 from wikitongues/main
Browse files Browse the repository at this point in the history
Staging Deployment
  • Loading branch information
FredericoAndrade authored Dec 2, 2024
2 parents 70cbdad + 042b184 commit 42d44e7
Show file tree
Hide file tree
Showing 18 changed files with 245 additions and 213 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ function render_gallery_items($query, $atts, $gallery_id, $paged, $data_attribut

wp_reset_postdata();

return ob_get_clean();
$output = ob_get_clean();
return $output;
}

function generate_gallery_pagination($query, $gallery_id, $paged) {
Expand Down
1 change: 0 additions & 1 deletion wp-content/plugins/wt-gallery/wt-gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ function custom_gallery($atts) {

$output = '<div class="' . $classes . '">';

// Set up title
if ($query->have_posts()) {
if ($atts['title']) {
$output .= '<h2 class="wt_sectionHeader">'.$atts['title'].'</h2>';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,98 @@
"bidirectional_target": []
}
]
},
{
"key": "field_674b0e404f609",
"label": "Custom FAQ posts",
"name": "custom_faq_posts",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_674b1039182a8",
"label": "Custom Gallery ID",
"name": "custom_gallery_id",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_674b1040182a9",
"label": "Custom Gallery Title",
"name": "custom_gallery_title",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_674b1045182aa",
"label": "Custom Gallery Post",
"name": "custom_gallery_post",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"faq"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "object",
"multiple": 1,
"allow_null": 0,
"bidirectional": 0,
"ui": 1,
"bidirectional_target": []
}
]
}
],
"location": [
[
{
"param": "post_template",
"param": "page_template",
"operator": "==",
"value": "template-archive-success.php"
}
Expand All @@ -194,5 +280,5 @@
"active": true,
"description": "",
"show_in_rest": 0,
"modified": 1727352801
"modified": 1732980478
}
108 changes: 0 additions & 108 deletions wp-content/themes/blankslate-child/acf-json/group_66f52c6b91b45.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function format_event_date_with_proximity($date_string) {
elseif ($days_difference < 0) $proximity = " Last $day_of_week, ";
else $proximity = " Today, ";
}

return $proximity . $event_date->format('j F Y, gA');
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
<div class="wt_archive__faq">
<h1>Frequently Asked Questions</h1>
<section>
<article>
<p><strong>When will my video by available on the website?</strong><br>
We typically archive videos within one week of submission. You will receive an email when your video has been archived. After that, your video should be viewable on the website within 24-48 hours!</p>
</article>
<article>
<p><strong>Will my video by published on YouTube?</strong><br>
All videos are added to our website, but not all are added to our YouTube channel. We prioritize videos that have good audio quality and limited background noise.</p>
</article>
<article>
<p><strong>Can I change my video information after submission?</strong><br>
Yes, if you would like to change your licensing selection or submit subtitles for your video, please send us an email at <a href="mailto:[email protected]">[email protected]</a>.</p>
</article>
</section>
</div>
<?php
if (have_rows('custom_faq_posts')) {
echo '<div class="wt_archive__faq">';
echo '<h1>Frequently Asked Questions</h1>';
echo '<ul>';
while (have_rows('custom_faq_posts')) {
the_row();
$custom_posts = get_sub_field('custom_gallery_post');

if ($custom_posts) {
foreach ($custom_posts as $post) {
setup_postdata($post);

echo '<li>';
echo '<h2>'.esc_html(get_the_title($post)).'</h2>';
echo '<p>'.apply_filters('the_content', get_the_content($post)).'</p>';
echo '</li>';
}

wp_reset_postdata();
}
}
echo '</ul>';
echo '</div>';
}
?>
1 change: 1 addition & 0 deletions wp-content/themes/blankslate-child/single-careers.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@
endwhile;
endif;

include('modules/newsletter.php');
get_footer();
Loading

0 comments on commit 42d44e7

Please sign in to comment.