-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from wikitongues/main
Prod Deploy
- Loading branch information
Showing
9 changed files
with
232 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
wp-content/themes/blankslate-child/modules/flexible-content--text-layout.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
echo '<section class="main-content">'; | ||
echo wpautop(wp_kses_post(get_sub_field('text_area'))); | ||
echo '</section>'; |
16 changes: 16 additions & 0 deletions
16
wp-content/themes/blankslate-child/modules/flexible-content--video-layout.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
$video = get_sub_field('video'); | ||
$video_title = get_sub_field('video_title'); | ||
$dropbox_link_raw = str_replace("dl=0", "raw=1", $video); | ||
if ( $dropbox_link_raw ) { | ||
?> | ||
<div class="wt_single-videos__embed"> | ||
<video width="320" height="240" controls> | ||
<source src="<?php echo $dropbox_link_raw ?>" type="video/mp4">Your browser does not support the video tag. | ||
</video> | ||
<?php | ||
if ( $video_title ) { | ||
echo '<h3>' . $video_title . '</h3>'; | ||
}; | ||
echo '</div>'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.