Skip to content

Commit

Permalink
Merge pull request #292 from wikitongues/main
Browse files Browse the repository at this point in the history
Staging deploy
  • Loading branch information
FredericoAndrade authored Feb 4, 2025
2 parents 1d3d702 + 4fcd72e commit 475732f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 8 deletions.
2 changes: 1 addition & 1 deletion wp-content/plugins/wt-gallery/wt-gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function custom_gallery($atts) {
if ($atts['title']) {
$output .= '<h2 class="wt_sectionHeader">'.$atts['title'].'</h2>';
}
$output .= '<p>There are no other '.$atts['post_type'].'s to display—<a href="'.home_url('/submit-a-lexicon'.rtrim($atts['post_type'], 's'), 'relative').'">yet</a>.</p>';
$output .= '<p>There are no other '.$atts['post_type'].'s to display—<a href="'.home_url('/submit-a-'.rtrim($atts['post_type'], 's'), 'relative').'">yet</a>.</p>';
}

}
Expand Down
8 changes: 3 additions & 5 deletions wp-content/themes/blankslate-child/single-languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
$external_resources_count = count($external_resources);
$nations_of_origin = get_field('nations_of_origin');

// $linguistic_genealogy = get_field('linguistic_genealogy');

// ====================
// Manage Language Page Titles
// ====================
Expand All @@ -36,11 +34,11 @@
'title' => 'Other languages from '.$nations_of_origin,
'post_type' => 'languages',
'custom_class' => 'full',
'columns' => 4,
'posts_per_page' => 8,
'columns' => 5,
'posts_per_page' => 5,
'orderby' => 'rand',
'order' => 'asc',
'pagination' => 'false',
'pagination' => 'true',
'meta_key' => 'nations_of_origin',
'meta_value' => $nations_of_origin,
'selected_posts' => '',
Expand Down
14 changes: 13 additions & 1 deletion wp-content/themes/blankslate-child/stylus/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1790,6 +1790,8 @@ body .wt_single-languages__content {
}
body .wt_single-languages__contents {
margin-bottom: 6rem;
display: flex;
flex-direction: column;
}
body .wt_single-languages__contents:last-of-type {
margin-bottom: 0;
Expand Down Expand Up @@ -3978,8 +3980,8 @@ text
.custom-gallery h2 a,
.custom-gallery p a {
text-decoration: none;
font-weight: bold;
color: #3814a5;
font-style: italic;
}
.custom-gallery .gallery-container {
margin-top: 12px;
Expand Down Expand Up @@ -4171,6 +4173,12 @@ text
.custom-gallery.lexicons .wt_sectionHeader {
border-bottom: none;
}
.custom-gallery.lexicons .gallery-container {
border-top: none;
}
.custom-gallery.lexicons .gallery-container .gallery-list {
gap: 32px 16px;
}
.custom-gallery.lexicons .gallery-container .gallery-list .gallery-item a {
background: #fffcef;
color: #101010;
Expand Down Expand Up @@ -4269,6 +4277,10 @@ text
line-height: 1.3;
pointer-events: none;
}
#wt_single-languages__lexicons .custom-gallery:first-of-type {
padding-bottom: 16px;
border-bottom: 2px solid #d4cce0;
}
.custom-gallery-fellows-navigation {
width: 100%;
display: inline-block;
Expand Down
12 changes: 11 additions & 1 deletion wp-content/themes/blankslate-child/stylus/require/gallery.styl
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ $aspect-ratio = 16/9
h2,p
a
text-decoration none
font-weight bold
color $blue
font-style italic

.gallery-container
margin-top 12px
Expand Down Expand Up @@ -252,7 +252,11 @@ $aspect-ratio = 16/9
border-bottom none

.gallery-container
border-top none

.gallery-list
gap 32px 16px

.gallery-item
a
background $parchment
Expand Down Expand Up @@ -339,6 +343,12 @@ $aspect-ratio = 16/9
text--strong($blue)
pointer-events none

#wt_single-languages__lexicons
.custom-gallery
&:first-of-type
padding-bottom 16px
border-bottom 2px solid $lightPurple

.custom-gallery-fellows-navigation
width 100%
display inline-block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ body

&__contents
margin-bottom 6rem
display flex
flex-direction column

&:last-of-type
margin-bottom 0
Expand Down

0 comments on commit 475732f

Please sign in to comment.