Skip to content

Commit 810918e

Browse files
committed
Merge branch 'develop'
2 parents 3e50c1f + cffd3b4 commit 810918e

28 files changed

+1192
-479
lines changed
Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
import { B as s, C as e, v as D, A as o, D as l, b as i, c as n, e as r, f as c, a as p, u, z as C, g as M, w as T, h as x, i as S, j as d, x as g, k as m, t as B, r as h, l as A, m as L, n as b, o as v, p as f, y as w, q as y, d as F } from "./index-BoIbfJ3r.js";
1+
import { E as s, C as e, w as D, B as o, D as i, b as l, c as n, e as r, f as c, g as p, a as u, v as C, A as M, h as T, x as m, i as x, j as S, k as d, y as g, l as B, u as h, t as A, m as L, n as b, o as v, p as f, q as w, z as y, r as F, d as j } from "./index-40k-d_ZT.js";
22
export {
33
s as ApiService,
44
e as ComponentService,
55
D as DtAlert,
66
o as DtBase,
7-
l as DtButton,
8-
i as DtChurchHealthCircle,
7+
i as DtButton,
8+
l as DtChurchHealthCircle,
99
n as DtConnection,
1010
r as DtCopyText,
1111
c as DtDate,
12-
p as DtDropdown,
13-
u as DtFormBase,
14-
C as DtIcon,
15-
M as DtLabel,
16-
T as DtList,
12+
p as DtDatetime,
13+
u as DtDropdown,
14+
C as DtFormBase,
15+
M as DtIcon,
16+
T as DtLabel,
17+
m as DtList,
1718
x as DtLocation,
1819
S as DtLocationMap,
1920
d as DtMapModal,
2021
g as DtModal,
21-
m as DtMultiSelect,
22-
B as DtMultiSelectButtonGroup,
23-
h as DtMultiText,
24-
A as DtNumberField,
25-
L as DtSingleSelect,
26-
b as DtTags,
27-
v as DtText,
28-
f as DtTextArea,
29-
w as DtTile,
30-
y as DtToggle,
31-
F as DtUsersConnection
22+
B as DtMultiSelect,
23+
h as DtMultiSelectButtonGroup,
24+
A as DtMultiText,
25+
L as DtNumberField,
26+
b as DtSingleSelect,
27+
v as DtTags,
28+
f as DtText,
29+
w as DtTextArea,
30+
y as DtTile,
31+
F as DtToggle,
32+
j as DtUsersConnection
3233
};

dt-assets/build/components/index.js

Lines changed: 114 additions & 77 deletions
Large diffs are not rendered by default.

dt-assets/build/components/index.umd.cjs

Lines changed: 114 additions & 77 deletions
Large diffs are not rendered by default.

dt-assets/functions/cleanup.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ function dt_start() {
2424
// Clean up gallery output in wp
2525
add_filter( 'gallery_style', 'dt_gallery_style' );
2626

27-
// Cleaning up excerpt
28-
add_filter( 'excerpt_more', 'dt_excerpt_more' );
29-
3027
// Removes WP sticky class in favor or foundations sticky class
3128
add_filter( 'post_class', 'dt_remove_sticky_class' );
3229

@@ -74,19 +71,6 @@ function dt_gallery_style( $css ) {
7471
return preg_replace( "!<style type='text/css'>(.*?)</style>!s", '', $css );
7572
}
7673

77-
/**
78-
* This removes the annoying […] to a Read More link
79-
*
80-
* @param $more
81-
*
82-
* @return string
83-
*/
84-
function dt_excerpt_more( $more ) {
85-
global $post;
86-
87-
// Edit here if you like
88-
return '<a class="excerpt-read-more" href="' . get_permalink( $post->ID ) . '" title="Read' . esc_html( get_the_title( $post->ID ) ) . '"> ... Read more &raquo; </a>';
89-
}
9074

9175
/**
9276
* Stop WordPress from using the sticky class (which conflicts with Foundation), and style WordPress sticky posts using the .wp-sticky class instead

dt-assets/functions/enqueue-scripts.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ function dt_site_scripts() {
185185
'hide_translation' => __( 'Hide Translation', 'disciple_tools' ),
186186
'reaction_title_1' => _x( '%1$s reacted with %2$s emoji', 'Bob reacted with heart emoji', 'disciple_tools' ),
187187
'reaction_title_many' => _x( '%3$s and %1$s reacted with %2$s emoji', 'Bob, Bill and Ben reacted with heart emoji', 'disciple_tools' ),
188+
'audio_comment_descriptions' => [
189+
'lang_enabled' => __( 'Select spoken language and click "Start Recording" to begin.', 'disciple_tools' ),
190+
'lang_disabled' => __( 'Click "Start Recording" to begin.', 'disciple_tools' ),
191+
],
188192
],
189193
'current_user_id' => get_current_user_id(),
190194
'additional_sections' => apply_filters( 'dt_comments_additional_sections', [], $post_type ),

dt-assets/js/advanced-search.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ jQuery(document).ready(function ($) {
108108
meta: $('#advanced-search-modal-filters-meta-' + location).prop(
109109
'checked',
110110
),
111+
archived: $('#advanced-search-modal-filters-archived-' + location).prop(
112+
'checked',
113+
),
111114
status: 'all',
112115
};
113116
}

dt-assets/js/comments.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,11 +854,18 @@ jQuery(document).ready(function ($) {
854854
ctx.lineTo(width, height / 2);
855855
ctx.stroke();*/
856856

857+
const description =
858+
$('select[name="locale"]').length > 0
859+
? window.commentsSettings?.translations?.audio_comment_descriptions
860+
?.lang_enabled
861+
: window.commentsSettings?.translations?.audio_comment_descriptions
862+
?.lang_disabled;
863+
857864
// Draw placeholder text
858865
ctx.fillStyle = '#6c757d';
859866
ctx.font = '14px Arial';
860867
ctx.textAlign = 'center';
861-
ctx.fillText('Click "Start Recording" to begin', width / 2, height / 2 + 5);
868+
ctx.fillText(description, width / 2, height / 2 + 5);
862869
}
863870

864871
function drawVisualization(dataArray) {
@@ -1119,6 +1126,11 @@ jQuery(document).ready(function ($) {
11191126
formData.append('audio_format', recordedAudioBlob.type);
11201127
formData.append('audio_size', recordedAudioBlob.size.toString());
11211128

1129+
const audio_language_select = $('select[name="locale"]');
1130+
if ($(audio_language_select).length > 0) {
1131+
formData.append('audio_language', $(audio_language_select).val());
1132+
}
1133+
11221134
// Show loading state
11231135
const saveBtn = $('#save-recording-btn');
11241136
const originalText = saveBtn.text();

dt-assets/js/shared-functions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ window.API = {
218218
post: filters['post'],
219219
comment: filters['comment'],
220220
meta: filters['meta'],
221+
archived: filters['archived'],
221222
status: filters['status'],
222223
},
223224
'dt-posts/v2/posts/search/',

dt-assets/parts/loop-activity-comment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
</div>
125125

126126
<div class="recording-controls">
127+
<?php do_action( 'dt_upload_audio_comment_languages' ); ?>
127128
<button id="start-recording-btn" class="button recording-btn start-btn">
128129
<i class="mdi mdi-record"></i> <?php esc_html_e( 'Start Recording', 'disciple_tools' ) ?>
129130
</button>

dt-assets/parts/modals/modal-advanced-search.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ class="advanced-search-modal-filters" checked>
101101
<label
102102
for="advanced-search-modal-filters-meta-<?php echo esc_attr( $location ); ?>"><?php echo esc_html__( 'Communication', 'disciple_tools' ); ?></label>
103103
<br>
104+
105+
<input type="checkbox" id="advanced-search-modal-filters-archived-<?php echo esc_attr( $location ); ?>"
106+
class="advanced-search-modal-filters">
107+
<label
108+
for="advanced-search-modal-filters-archived-<?php echo esc_attr( $location ); ?>"><?php echo esc_html__( 'Archived', 'disciple_tools' ); ?></label>
109+
<br>
104110
<?php
105111
}
106112
?>

0 commit comments

Comments
 (0)