Changeset 3454946
- Timestamp:
- 02/05/2026 08:58:10 PM (4 weeks ago)
- Location:
- bp-group-sites/trunk
- Files:
-
- 3 edited
-
bp-group-sites.php (modified) (3 diffs)
-
languages/bp-group-sites.pot (modified) (27 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bp-group-sites/trunk/bp-group-sites.php
r3173019 r3454946 7 7 * Plugin URI: https://github.com/christianwach/bp-group-sites 8 8 * GitHub Plugin URI: https://github.com/christianwach/bp-group-sites 9 * Version: 0. 3.39 * Version: 0.4.0 10 10 * Author: Christian Wach 11 11 * Author URI: https://haystack.co.uk … … 37 37 38 38 // Set our version here. 39 define( 'BPGSITES_VERSION', '0. 3.3' );39 define( 'BPGSITES_VERSION', '0.4.0' ); 40 40 41 41 // Store reference to this file. … … 375 375 376 376 // CommentPress theme compat. 377 if ( function_exists( 'commentpress_get_comments_by_para' ) ) { 378 379 // Enqueue common js. 377 if ( ! function_exists( 'commentpress_get_comments_by_para' ) ) { 378 return; 379 } 380 381 // Set dependency for original CommentPress-based theme. 382 $dependency = 'jquery_commentpress'; 383 384 // Try to discover the current CommentPress-based theme. 385 $theme_slug = ''; 386 $current_theme = wp_get_theme(); 387 if ( $current_theme->exists() ) { 388 if ( ! empty( $current_theme->parent() ) ) { 389 $parent_theme = $current_theme->parent(); 390 if ( $parent_theme->exists() ) { 391 $theme_slug = $parent_theme->get_stylesheet(); 392 } 393 } else { 394 $theme_slug = $current_theme->get_stylesheet(); 395 } 396 } 397 398 /* 399 * Maybe add the jQuery Cookie plugin bundled with CommentPress. 400 * 401 * Version 4.0.0 of CommentPress removed this for all but the original theme, 402 * but the "Filter Comments by Group" selector uses it to retain state so we 403 * need to enqueue it for other CommentPress-based themes. 404 */ 405 if ( in_array( $theme_slug, [ 'commentpress-modern', 'commentpress-flat' ], true ) ) { 406 407 // Enqueue cookie Javascript. 380 408 wp_enqueue_script( 381 'bpgsites_cp_j s',382 BPGSITES_URL . 'assets/js/bpgsites-commentpress.js',409 'bpgsites_cp_jquery_cookie', 410 plugins_url( 'includes/core/assets/js/jquery.biscuit.js', COMMENTPRESS_PLUGIN_FILE ), 383 411 [ 'cp_common_js' ], 384 BPGSITES_VERSION,385 true 412 COMMENTPRESS_VERSION, // Version. 413 true // In footer. 386 414 ); 387 415 388 // Get vars. 389 $vars = [ 390 'show_public' => $this->admin->option_get( 'bpgsites_public' ), 391 ]; 392 393 // Localise with wp function. 394 wp_localize_script( 'bpgsites_cp_js', 'BpgsitesSettings', $vars ); 416 // Switch dependency. 417 $dependency = 'bpgsites_cp_jquery_cookie'; 395 418 396 419 } 420 421 // Enqueue this plugin's Javascript. 422 wp_enqueue_script( 423 'bpgsites_cp_js', 424 BPGSITES_URL . 'assets/js/bpgsites-commentpress.js', 425 [ $dependency ], 426 BPGSITES_VERSION, 427 true // In footer. 428 ); 429 430 // Get vars. 431 $vars = [ 432 'show_public' => $this->admin->option_get( 'bpgsites_public' ), 433 ]; 434 435 // Localise with wp function. 436 wp_localize_script( 'bpgsites_cp_js', 'BpgsitesSettings', $vars ); 397 437 398 438 } -
bp-group-sites/trunk/languages/bp-group-sites.pot
r3173019 r3454946 1 # Copyright (C) 202 4Christian Wach1 # Copyright (C) 2026 Christian Wach 2 2 # This file is distributed under the GPLv2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: BP Group Sites 0. 3.3a\n"5 "Project-Id-Version: BP Group Sites 0.4.0a\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bp-group-sites\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 4-10-21T14:41:27+00:00\n"12 "POT-Creation-Date: 2026-02-05T20:55:09+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 1.0\n"14 "X-Generator: WP-CLI 2.12.0\n" 15 15 "X-Domain: bp-group-sites\n" 16 16 … … 96 96 #: assets/templates/bpgsites/index.php:31 97 97 #: assets/templates/twentysixteen/index.php:30 98 #, php-format 98 99 msgid "%s Directory" 99 100 msgstr "" … … 102 103 #: assets/templates/bpgsites/index.php:53 103 104 #: assets/templates/twentysixteen/index.php:61 105 #, php-format 104 106 msgid "All %1$s %2$s" 105 107 msgstr "" … … 127 129 #. translators: %s: The plural name for Group Sites. 128 130 #: includes/bp-bpgsites-component.php:88 131 #, php-format 129 132 msgid "Search %s..." 130 133 msgstr "" … … 132 135 #. translators: %s The link to the Group. 133 136 #: includes/bpgsites-activity.php:195 137 #, php-format 134 138 msgid "Posted in: %s" 135 139 msgstr "" … … 145 149 #. translators: %s The name of the Group. 146 150 #: includes/bpgsites-activity.php:268 151 #, php-format 147 152 msgid "This comment appears in the group %s." 148 153 msgstr "" … … 163 168 #. translators: 1: The User link, 2: The link to the comment, 3: The activity name, 4: The link to the post, 5: The link to the group. 164 169 #: includes/bpgsites-activity.php:499 170 #, php-format 165 171 msgid "%1$s left a %2$s on a %3$s %4$s in the group %5$s:" 166 172 msgstr "" … … 172 178 #. translators: %s: The plural name for Group Sites. 173 179 #: includes/bpgsites-activity.php:606 180 #, php-format 174 181 msgid "Comments in %s" 175 182 msgstr "" … … 200 207 #: includes/bpgsites-activity.php:1001 201 208 #: includes/bpgsites-activity.php:1017 209 #, php-format 202 210 msgid "<a href=\"%1$s\">%2$s</a>" 203 211 msgstr "" … … 209 217 #. translators: %s: The paragraph text. 210 218 #: includes/bpgsites-activity.php:1054 219 #, php-format 211 220 msgid "Join a group to leave a comment on %s" 212 221 msgstr "" … … 214 223 #. translators: %s: The singular name of a Group Site. 215 224 #: includes/bpgsites-activity.php:1290 225 #, php-format 216 226 msgid "Groups reading this %s" 217 227 msgstr "" … … 260 270 #. translators: %s: The plural name of the User's Group Sites. 261 271 #: includes/bpgsites-activity.php:2350 272 #, php-format 262 273 msgid "All Recent Activity in your %s" 263 274 msgstr "" … … 265 276 #. translators: %s: The plural name of the public Group Sites. 266 277 #: includes/bpgsites-activity.php:2368 278 #, php-format 267 279 msgid "Recent Activity in Public %s" 268 280 msgstr "" … … 270 282 #. translators: %s: The plural name of Group Sites. 271 283 #: includes/bpgsites-activity.php:2420 284 #, php-format 272 285 msgid "Friends Activity in your %s" 273 286 msgstr "" … … 275 288 #. translators: %s: The singular name of a Group Site. 276 289 #: includes/bpgsites-activity.php:2514 290 #, php-format 277 291 msgid "Recent Comments in this %s" 278 292 msgstr "" … … 304 318 #. translators: %s: The singular name for Group Sites. 305 319 #: includes/bpgsites-blogs.php:242 320 #, php-format 306 321 msgid "Viewing 1 %s" 307 322 msgstr "" … … 309 324 #. translators: 1: The site from number, 2: The site to number, 3: The total number of sites, 4: The singular name for Group Sites, 5: The plural name for Group Sites. 310 325 #: includes/bpgsites-blogs.php:248 326 #, php-format 311 327 msgid "Viewing %1$s - %2$s of %3$s %4$s" 312 328 msgid_plural "Viewing %1$s - %2$s of %3$s %5$s" … … 324 340 #. translators: %s: The singular name for Group Sites. 325 341 #: includes/bpgsites-groups.php:176 342 #, php-format 326 343 msgid "%s successfully added to Group" 327 344 msgstr "" … … 329 346 #. translators: %s: The singular name for Group Sites. 330 347 #: includes/bpgsites-groups.php:192 348 #, php-format 331 349 msgid "%s successfully removed from Group" 332 350 msgstr "" … … 350 368 #. translators: 1: The name of the site, 2: The name of the Group. 351 369 #: includes/bpgsites-groups.php:260 370 #, php-format 352 371 msgid "Your group is no longer reading \"%1$s\" with %2$s" 353 372 msgstr "" … … 355 374 #. translators: 1: The name of the invited group. 356 375 #: includes/bpgsites-groups.php:474 376 #, php-format 357 377 msgid "You are receiving this message because you are an administrator of the group \"%1$s\"" 358 378 msgstr "" … … 360 380 #. translators: 2: The singular name for Group Sites, 3: The name of the site, 4: The name of the inviting group, 5: The plural name for Group Sites. 361 381 #: includes/bpgsites-groups.php:476 382 #, php-format 362 383 msgid "Your group has been invited to read the %2$s \"%3$s\" with the group \"%4$s\". To accept or decline the invitation, click the link below to visit the %5$s admin page for your group." 363 384 msgstr "" … … 365 386 #. translators: 1: The blog name, 2: The name of the inviting group. 366 387 #: includes/bpgsites-groups.php:494 388 #, php-format 367 389 msgid "An invitation to read \"%1$s\" with the group \"%2$s\"" 368 390 msgstr "" … … 378 400 #. translators: 1: The name of the blog, 2: The name of the inviting group. 379 401 #: includes/bpgsites-groups.php:819 402 #, php-format 380 403 msgid "Read \"%1$s\" with \"%2$s\"" 381 404 msgstr "" … … 424 447 #: includes/bpgsites-widgets.php:31 425 448 #: includes/bpgsites-widgets.php:140 449 #, php-format 426 450 msgid "List of %s" 427 451 msgstr "" … … 429 453 #. translators: %s: The plural name of Group Sites. 430 454 #: includes/bpgsites-widgets.php:39 455 #, php-format 431 456 msgid "Use this widget to show a list of %s." 432 457 msgstr "" -
bp-group-sites/trunk/readme.txt
r3173019 r3454946 4 4 Tags: buddypress, groups, sites, reading groups 5 5 Requires at least: 4.9 6 Tested up to: 6. 67 Stable tag: 0. 3.36 Tested up to: 6.9 7 Stable tag: 0.4.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 46 46 47 47 == Changelog == 48 49 = 0.4.0 = 50 51 * Fixes the "Filter Comments by Group" filter 48 52 49 53 = 0.3.3 =
Note: See TracChangeset
for help on using the changeset viewer.