Changeset 1887408
- Timestamp:
- 06/05/2018 11:05:07 AM (8 years ago)
- Location:
- buddypress-learndash
- Files:
-
- 39 added
- 12 edited
-
tags/1.2.5 (added)
-
tags/1.2.5/Gruntfile.js (added)
-
tags/1.2.5/assets (added)
-
tags/1.2.5/assets/css (added)
-
tags/1.2.5/assets/css/admin.css (added)
-
tags/1.2.5/assets/css/admin.min.css (added)
-
tags/1.2.5/assets/css/buddypress-learndash.css (added)
-
tags/1.2.5/assets/css/buddypress-learndash.min.css (added)
-
tags/1.2.5/assets/js (added)
-
tags/1.2.5/assets/js/admin.js (added)
-
tags/1.2.5/assets/js/admin.min.js (added)
-
tags/1.2.5/buddypress-learndash.php (added)
-
tags/1.2.5/includes (added)
-
tags/1.2.5/includes/admin.php (added)
-
tags/1.2.5/includes/bp-learndash-activity.php (added)
-
tags/1.2.5/includes/bp-learndash-courses.php (added)
-
tags/1.2.5/includes/bp-learndash-functions.php (added)
-
tags/1.2.5/includes/bp-learndash-group-experiences.php (added)
-
tags/1.2.5/includes/bp-learndash-group-settings.php (added)
-
tags/1.2.5/includes/bp-learndash-groups.php (added)
-
tags/1.2.5/includes/bp-learndash-loader.php (added)
-
tags/1.2.5/includes/bp-learndash-template.php (added)
-
tags/1.2.5/includes/bp-learndash-users-enrollment.php (added)
-
tags/1.2.5/includes/main-class.php (added)
-
tags/1.2.5/includes/requirements-class.php (added)
-
tags/1.2.5/index.php (added)
-
tags/1.2.5/languages (added)
-
tags/1.2.5/languages/buddypress-learndash- fr_FR.mo (added)
-
tags/1.2.5/languages/buddypress-learndash- fr_FR.po (added)
-
tags/1.2.5/languages/buddypress-learndash-en_US.mo (added)
-
tags/1.2.5/languages/buddypress-learndash-en_US.po (added)
-
tags/1.2.5/languages/buddypress-learndash.pot (added)
-
tags/1.2.5/license.txt (added)
-
tags/1.2.5/package-lock.json (added)
-
tags/1.2.5/package.json (added)
-
tags/1.2.5/readme.txt (added)
-
tags/1.2.5/templates (added)
-
tags/1.2.5/templates/courses.php (added)
-
tags/1.2.5/uninstall.php (added)
-
trunk/assets/js/admin.js (modified) (1 diff)
-
trunk/assets/js/admin.min.js (modified) (1 diff)
-
trunk/buddypress-learndash.php (modified) (2 diffs)
-
trunk/includes/bp-learndash-functions.php (modified) (23 diffs)
-
trunk/includes/bp-learndash-group-settings.php (modified) (10 diffs)
-
trunk/includes/bp-learndash-groups.php (modified) (13 diffs)
-
trunk/includes/bp-learndash-loader.php (modified) (34 diffs)
-
trunk/includes/bp-learndash-users-enrollment.php (modified) (2 diffs)
-
trunk/languages/buddypress-learndash- fr_FR.po (modified) (6 diffs)
-
trunk/languages/buddypress-learndash-en_US.po (modified) (5 diffs)
-
trunk/languages/buddypress-learndash.pot (modified) (5 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-learndash/trunk/assets/js/admin.js
r1713334 r1887408 1 1 if ( typeof jq == "undefined" ) { 2 var jq = jQuery;2 var jq = jQuery; 3 3 } 4 4 5 jq(document).on( 'ready', function($) { 5 /** 6 * Course enrollment class 7 * @param ld_vars 8 * @returns {{init: init}} 9 * @constructor 10 */ 11 var BuddyPress_Learndash_Group_Edit = function( ld_vars ) { 6 12 7 /** 8 * Learndash group edit screen JS 9 */ 10 var BuddyPress_Learndash_Group_Edit = { 13 var $enrollmentNotice = jq('#enrollment-notice'), 14 startPos = 0, 15 endPos = 10, 16 noticeMessage = 'BuddyPress for Learndash enrolling users to the course buddypress groups. This can take a while if you have many students(members). Do not navigate away from this page until this is done.'; 11 17 12 vars: { 13 $enrollmentNotice: jq('#enrollment-notice'), 14 startPos: 0, 15 endPos: 10, 16 }, 18 function init() { 19 if ( ld_vars.courses != null && ld_vars.users!= null ) { 17 20 18 init: function() { 19 if ( typeof buddypress_learndash_vars != 'undefined' ) { 20 BuddyPress_Learndash_Group_Edit.vars.$enrollmentNotice.toggleClass('hidden'); 21 this.user_enrollment(buddypress_learndash_vars.users.slice(BuddyPress_Learndash_Group_Edit.vars.startPos, BuddyPress_Learndash_Group_Edit.vars.endPos)); 22 } 23 }, 21 // Add enrollment progress notice in class editor 22 $enrollmentNotice.toggleClass('hidden'); 24 23 25 user_enrollment: function( users ) { 24 // Add enrollment progress notice in gutenberg editor 25 if ( 'undefined' !== typeof wp.data ) { 26 wp.data.dispatch( 'core/editor' ).createInfoNotice( noticeMessage, {id : 'ldEnrollment' } ); 27 } 28 user_enrollment(ld_vars.users.slice(startPos, endPos)); 29 } 30 } 26 31 27 if ( 0 == users.length ) { 28 BuddyPress_Learndash_Group_Edit.vars.$enrollmentNotice.toggleClass('hidden'); 29 return 0; 30 } 32 function user_enrollment( users ) { 31 33 32 jq.ajax({ 33 type: 'POST', 34 url: ajaxurl, 35 data: { action: "mass_group_join", users: users, courses: buddypress_learndash_vars.courses }, 36 success: function( response ) { 37 if ( response !== Object( response ) || ( typeof response.success === "undefined" && typeof response.error === "undefined" ) ) { 38 response = new Object; 39 response.success = false; 40 return; 41 } 34 if ( 0 === users.length ) { 42 35 43 BuddyPress_Learndash_Group_Edit.vars.startPos = BuddyPress_Learndash_Group_Edit.vars.endPos; 44 BuddyPress_Learndash_Group_Edit.vars.endPos = BuddyPress_Learndash_Group_Edit.vars.endPos + 10; 45 BuddyPress_Learndash_Group_Edit.user_enrollment( buddypress_learndash_vars.users.slice( BuddyPress_Learndash_Group_Edit.vars.startPos, BuddyPress_Learndash_Group_Edit.vars.endPos ) ); 46 } 47 }); 48 } 36 // Add enrollment progress notice in class editor 37 $enrollmentNotice.toggleClass('hidden'); 49 38 50 }; 39 // Remove enrollment progress notice in gutenberg editor 40 if ( 'undefined' !== typeof wp.data ) { 41 wp.data.dispatch( 'core/editor' ).removeNotice( 'ldEnrollment' ); 42 } 43 return 0; 44 } 51 45 52 BuddyPress_Learndash_Group_Edit.init(); 46 jq.ajax({ 47 type: 'POST', 48 url: ajaxurl, 49 data: { action: "mass_group_join", users: users, courses: ld_vars.courses }, 50 success: function( response ) { 51 if ( response !== Object( response ) || ( typeof response.success === "undefined" && typeof response.error === "undefined" ) ) { 52 response = new Object; 53 response.success = false; 54 return; 55 } 53 56 57 startPos = endPos; 58 endPos = endPos + 10; 59 user_enrollment( ld_vars.users.slice( startPos, endPos ) ); 60 } 61 }); 62 } 63 64 return { 65 init: init 66 } 67 }; 68 69 jq(function($) { 70 71 // Run enrollment after course update from classic editor 72 if ( buddypress_learndash_vars.proceed_enrollment ) { 73 new BuddyPress_Learndash_Group_Edit(buddypress_learndash_vars).init(); 74 } 75 76 // Run enrollment after course update from gutenberg editor 77 jq( document ).ajaxComplete(function( event, xhr, settings ) { 78 79 if ( settings.url.indexOf('/sfwd-courses/') === -1 80 && settings.url.indexOf('/groups/') === -1 ) { 81 return false; 82 } 83 84 // The condition runs only on the Course Edit Screen: 85 // No need to go further if, course has not been attached with buddypress group 86 if ( settings.url.indexOf('/sfwd-courses/') !== -1 87 && document.getElementById('bp-course-group').value === '-1' ) { 88 return false; 89 } 90 91 jq.ajax({ 92 type: 'POST', 93 url: ajaxurl, 94 data: { 95 action: "get_enrollment_data", 96 screen_id: buddypress_learndash_vars.screen_id, 97 post_ID: $('#post_ID')[0].value 98 }, 99 success: function (response) { 100 var ld_vars = response.data; 101 new BuddyPress_Learndash_Group_Edit(ld_vars).init(); 102 } 103 }); 104 }); 54 105 }); -
buddypress-learndash/trunk/assets/js/admin.min.js
r1713334 r1887408 1 if("undefined"==typeof jq)var jq=jQuery; jq(document).on("ready",function(a){var b={vars:{$enrollmentNotice:jq("#enrollment-notice"),startPos:0,endPos:10},init:function(){"undefined"!=typeof buddypress_learndash_vars&&(b.vars.$enrollmentNotice.toggleClass("hidden"),this.user_enrollment(buddypress_learndash_vars.users.slice(b.vars.startPos,b.vars.endPos)))},user_enrollment:function(a){return 0==a.length?(b.vars.$enrollmentNotice.toggleClass("hidden"),0):void jq.ajax({type:"POST",url:ajaxurl,data:{action:"mass_group_join",users:a,courses:buddypress_learndash_vars.courses},success:function(a){return a!==Object(a)||"undefined"==typeof a.success&&"undefined"==typeof a.error?(a=new Object,void(a.success=!1)):(b.vars.startPos=b.vars.endPos,b.vars.endPos=b.vars.endPos+10,void b.user_enrollment(buddypress_learndash_vars.users.slice(b.vars.startPos,b.vars.endPos)))}})}};b.init()});1 if("undefined"==typeof jq)var jq=jQuery;var BuddyPress_Learndash_Group_Edit=function(a){function b(){null!=a.courses&&null!=a.users&&(d.toggleClass("hidden"),"undefined"!=typeof wp.data&&wp.data.dispatch("core/editor").createInfoNotice(g,{id:"ldEnrollment"}),c(a.users.slice(e,f)))}function c(b){return 0===b.length?(d.toggleClass("hidden"),"undefined"!=typeof wp.data&&wp.data.dispatch("core/editor").removeNotice("ldEnrollment"),0):void jq.ajax({type:"POST",url:ajaxurl,data:{action:"mass_group_join",users:b,courses:a.courses},success:function(b){return b!==Object(b)||"undefined"==typeof b.success&&"undefined"==typeof b.error?(b=new Object,void(b.success=!1)):(e=f,f+=10,void c(a.users.slice(e,f)))}})}var d=jq("#enrollment-notice"),e=0,f=10,g="BuddyPress for Learndash enrolling users to the course buddypress groups. This can take a while if you have many students(members). Do not navigate away from this page until this is done.";return{init:b}};jq(function(a){buddypress_learndash_vars.proceed_enrollment&&new BuddyPress_Learndash_Group_Edit(buddypress_learndash_vars).init(),jq(document).ajaxComplete(function(b,c,d){return(d.url.indexOf("/sfwd-courses/")!==-1||d.url.indexOf("/groups/")!==-1)&&((d.url.indexOf("/sfwd-courses/")===-1||"-1"!==document.getElementById("bp-course-group").value)&&void jq.ajax({type:"POST",url:ajaxurl,data:{action:"get_enrollment_data",screen_id:buddypress_learndash_vars.screen_id,post_ID:a("#post_ID")[0].value},success:function(a){var b=a.data;new BuddyPress_Learndash_Group_Edit(b).init()}}))})}); -
buddypress-learndash/trunk/buddypress-learndash.php
r1800376 r1887408 6 6 * Author: BuddyBoss 7 7 * Author URI: http://buddyboss.com 8 * Version: 1.2. 48 * Version: 1.2.5 9 9 */ 10 10 // Exit if accessed directly … … 19 19 // Codebase version 20 20 if (!defined( 'BUDDYPRESS_LEARNDASH_PLUGIN_VERSION' ) ) { 21 define( 'BUDDYPRESS_LEARNDASH_PLUGIN_VERSION', '1.2. 4' );21 define( 'BUDDYPRESS_LEARNDASH_PLUGIN_VERSION', '1.2.5' ); 22 22 } 23 23 -
buddypress-learndash/trunk/includes/bp-learndash-functions.php
r1800376 r1887408 19 19 function bp_learndash_profile_courses_slug() 20 20 { 21 return LearnDash_Custom_Label::label_to_slug('courses' );21 return apply_filters( 'bp_learndash_profile_courses_slug', 'courses' ); 22 22 } 23 23 … … 37 37 function bp_learndash_profile_my_courses_slug() 38 38 { 39 return sprintf( __( 'my-%s', 'buddypress-learndash' ), LearnDash_Custom_Label::label_to_slug( 'courses' ));39 return apply_filters( 'bp_learndash_profile_my_courses_slug', 'my-courses' ); 40 40 } 41 41 … … 45 45 46 46 function bp_learndash_profile_create_courses_slug() { 47 return sprintf( __( 'create-%s', 'buddypress-learndash' ), LearnDash_Custom_Label::label_to_slug( 'courses' ));47 return apply_filters( 'bp_learndash_profile_create_courses_slug', 'create-courses' ); 48 48 } 49 49 … … 88 88 global $wpdb; 89 89 90 if ( empty( $type_id ) ) return ;90 if ( empty( $type_id ) ) return array(); 91 91 92 92 $student_ids = $wpdb->get_col("SELECT u.ID FROM {$wpdb->users} u INNER JOIN {$wpdb->prefix}term_relationships r ON u.ID = r.object_id WHERE u.user_status = 0 AND r.term_taxonomy_id = ".$type_id); 93 return $student_ids; 93 94 return (array) $student_ids; 94 95 } 95 96 … … 109 110 $type_id = bp_learndash_sql_member_type_id($type_name); 110 111 $student_ids = bp_learndash_sql_members_by_type($type_id); 111 $members_count = count($student_ids);112 $members_count = is_array( $student_ids ) ? count($student_ids) : 0; 112 113 return $members_count; 113 114 } … … 151 152 function bp_learndash_get_course_members( $course_id ) { 152 153 $meta = get_post_meta( $course_id, '_sfwd-courses', true ); 153 154 if ( !empty( $meta['sfwd-courses_course_access_list'] ) ) 154 155 if ( !empty( $meta['sfwd-courses_course_access_list'] ) ) 155 156 $course_access_list = explode( ',', $meta['sfwd-courses_course_access_list'] ); 156 else 157 else 157 158 $course_access_list = array(); 158 159 159 160 return $course_access_list; 160 161 } … … 168 169 169 170 $course_students = bp_learndash_get_course_members( $course_id ); 170 171 171 172 if ( empty( $course_students ) ) { 172 173 return; … … 223 224 global $wpdb; 224 225 225 if ( class_exists('bbPress') && bp_is_group_forums_active()) {226 if ( class_exists('bbPress') && groups_get_group( $group_id )->enable_forum ) { 226 227 227 228 $group = groups_get_group( array( 'group_id' => $group_id ) ); … … 298 299 299 300 $attached_media_id = get_post_thumbnail_id( $course_id, $group_id ); 300 301 301 302 if ( empty($attached_media_id) ) { 302 303 return; 303 304 } 304 305 305 306 $attachment_src = wp_get_attachment_image_src( $attached_media_id, 'full' ); 306 307 … … 389 390 extract( $r ); 390 391 391 $activity_id = bp_activity_add( array(392 $activity_id = groups_record_activity( array( 392 393 'id' => $id, 393 394 'user_id' => $user_id, … … 402 403 'hide_sitewide' => $hide_sitewide 403 404 ) ); 404 405 405 406 bp_activity_add_meta( $activity_id, 'bp_learndash_group_activity_markup', 'true' ); 406 407 407 408 return $activity_id; 408 409 } … … 443 444 } 444 445 445 add_action( 'bp_has_activities', 'bp_learndash_activity_filter', 110, 2 );446 446 // add_action( 'bp_has_activities', 'bp_learndash_activity_filter', 110, 2 ); 447 447 448 /** 448 449 * Learndash menu items … … 451 452 function learndash_add_custom_menu_items() { 452 453 global $pagenow; 453 454 454 455 if( 'nav-menus.php' == $pagenow ) { 455 456 add_meta_box( 'add-learndash-links', 'Learndash', 'wp_nav_menu_item_learndash_links_meta_box', 'nav-menus', 'side', 'low' ); … … 502 503 <?php 503 504 } 504 505 505 506 /** 506 507 * learndash_setup_nav_menu_item function. … … 543 544 544 545 } // End learndash_setup_nav_menu_item() 545 546 546 547 add_filter( 'wp_setup_nav_menu_item', 'learndash_setup_nav_menu_item' ); 547 548 … … 549 550 * Hide lessons and topics from users if they dont have access to its parent course. 550 551 * Prevent those from appearing in bp-global-search results. 551 * 552 * 552 553 * @param string $sql 553 554 * @param mixed $args … … 559 560 return $sql; 560 561 } 561 562 562 563 $filtered_post_ids = array( 1 );//dummy, to return no results 563 564 /** … … 567 568 $user_courses = ld_get_mycourses( get_current_user_id() ); 568 569 if( !empty( $user_courses ) && is_array( $user_courses ) ){ 569 $args = array( 570 $args = array( 570 571 'post_type' => $args['post_type'], 571 572 'posts_per_page' => -1, 573 'fields' => 'ids', 572 574 'meta_query' => array( 573 575 array( … … 579 581 ); 580 582 $pi_q = new WP_Query( $args ); 581 583 582 584 if( $pi_q->have_posts() ){ 583 585 $filtered_post_ids = array(); … … 589 591 wp_reset_postdata(); 590 592 } 591 593 592 594 $post_ids_csv = implode( ',', $filtered_post_ids ); 593 595 $sql .= " AND id IN ( {$post_ids_csv} ) "; 594 596 595 597 return $sql; 596 598 } … … 601 603 $group_id = bp_get_group_id(); 602 604 } 603 605 604 606 $retval = $default_true; 605 607 $bp_sensei_course_activity = groups_get_groupmeta( $group_id, 'group_extension_course_setting_activities' ); … … 607 609 $retval = isset( $bp_sensei_course_activity[$key] ); 608 610 } 609 611 610 612 return $retval; 611 613 } … … 714 716 'item_id' => $group_attached, 715 717 'secondary_item_id' => $course_id, 716 'component' => $bp->groups->id, 717 'hide_sitewide' => true 718 'component' => $bp->groups->id 718 719 ); 719 720 $activity_recorded = bp_learndash_record_activity($args); -
buddypress-learndash/trunk/includes/bp-learndash-group-settings.php
r1800376 r1887408 14 14 15 15 /** 16 * Your __construct() method will contain configuration options for 16 * Your __construct() method will contain configuration options for 17 17 * your extension, and will pass them to parent::init() 18 18 */ … … 28 28 function display( $group_id = null ) { 29 29 } 30 30 31 31 /** 32 * settings_screen() is the catch-all method for displaying the content 32 * settings_screen() is the catch-all method for displaying the content 33 33 * of the edit, create, and Dashboard admin panels 34 34 */ … … 40 40 'post_status' => 'publish' 41 41 ) ); 42 42 43 43 if ( !empty($courses) ) { ?> 44 44 <div class="bp-learndash-group-course"> … … 58 58 </div><br><br/><br/><?php 59 59 } 60 60 61 61 if ( !empty($group_status) && ( '-1' != $group_status ) ) { 62 62 $bp_learndash_course_activity = groups_get_groupmeta( $group_id, 'group_extension_course_setting_activities' ); … … 85 85 86 86 /** 87 * settings_screen_save() contains the catch-all logic for saving 87 * settings_screen_save() contains the catch-all logic for saving 88 88 * settings from the edit, create, and Dashboard admin panels 89 89 */ 90 90 function settings_screen_save( $group_id = NULL ) { 91 91 92 92 $bp_learndash_course_activity = array(); 93 93 $old_course_id = groups_get_groupmeta( $group_id, 'bp_course_attached', true ); 94 94 95 95 if ( isset( $_POST[ 'bp_group_course' ] ) && ( $_POST[ 'bp_group_course' ] ) != '-1' ) { 96 96 97 97 if ( ! empty( $old_course_id ) && $old_course_id != $_POST['bp_group_course'] ) { 98 98 delete_post_meta($old_course_id, 'bp_course_group'); … … 100 100 bp_learndash_remove_members_group( $old_course_id, $group_id ); 101 101 } 102 102 103 103 update_post_meta( $_POST[ 'bp_group_course' ], 'bp_course_group', $group_id ); 104 104 groups_add_groupmeta( $group_id, 'bp_course_attached', $_POST[ 'bp_group_course' ] ); 105 105 106 106 bp_learndash_attach_forum($group_id); 107 108 //Updating visibilty of group 109 $group = groups_get_group( array( 'group_id' => $group_id ) ); 110 if ( 'public' == $group->status ) { 111 $group->status = 'private'; 112 } elseif ( 'hidden' == $group->status ) { 113 $group->status = 'hidden'; 107 108 //Updating visibility of group if course is not open or free 109 $course_price_type = get_course_meta_setting( $_POST[ 'bp_group_course' ], 'course_price_type' ); 110 111 if ( 'open' !== $course_price_type && 'free' !== $course_price_type ) { 112 $group = groups_get_group( array( 'group_id' => $group_id ) ); 113 if ( 'public' == $group->status ) { 114 $group->status = 'private'; 115 } elseif ( 'hidden' == $group->status ) { 116 $group->status = 'hidden'; 117 } 118 $group->save(); 114 119 } 115 $group->save(); 116 120 117 121 //Updating group avatar 118 122 bp_learndash_update_group_avatar( $_POST[ 'bp_group_course' ], $group_id ); … … 121 125 //Adding teacher as admin of group 122 126 bp_learndash_course_teacher_group_admin($_POST[ 'bp_group_course' ], $group_id ); 123 127 124 128 } else { 125 129 delete_post_meta($old_course_id, 'bp_course_group'); 126 130 groups_delete_groupmeta( $group_id, 'bp_course_attached' ); 127 131 } 128 132 129 133 if ( !isset($_POST['activity-checkbox-enable'] ) ) { 130 134 $bp_learndash_course_activity = array( … … 141 145 ); 142 146 } 143 147 144 148 if ( isset( $_POST[ 'user_course_start' ] ) ) { 145 149 $bp_learndash_course_activity['user_course_start'] = $_POST[ 'user_course_start' ]; … … 175 179 groups_update_groupmeta( $group_id, 'group_extension_course_setting_activities', $bp_learndash_course_activity ); 176 180 } 177 181 178 182 public function bp_is_checked( $value , $array ) { 179 183 if ( array_key_exists( $value, $array ) ) { … … 185 189 return $checked; 186 190 } 187 191 188 192 } 189 193 190 194 endif; // if ( class_exists( 'BP_Group_Extension' ) ) -
buddypress-learndash/trunk/includes/bp-learndash-groups.php
r1713334 r1887408 44 44 add_action( 'save_post', array ( $this, 'bp_learndash_save_postdata' ), 10, 2 ); 45 45 add_action( 'body_class', array ( $this, 'bp_learndash_group_body_class' ) ); 46 46 47 47 add_filter('the_content', array( $this,'bp_learndash_group_discussion_button' ),9999 ); 48 48 49 49 add_filter( 'bp_get_group_type', array( $this, 'bp_learndash_course_group_text' ) ); 50 50 } 51 51 } 52 52 53 53 /** 54 54 * course metabox … … 63 63 add_meta_box( 'bp_course_group', sprintf( __( '%s Group', 'buddypress-learndash' ), LearnDash_Custom_Label::get_label( 'course' ) ), array( $this, 'bp_learndash_metabox_function' ), 'sfwd-courses', 'side', 'core' ); 64 64 } 65 65 66 66 /** 67 67 * metabox html … … 88 88 continue; 89 89 } 90 90 91 91 ?><option value="<?php echo $group->id; ?>" <?php echo (( $course_group == $group->id )) ? 'selected' : ''; ?>><?php _e( $group->name, 'buddypress-learndash' ); ?></option><?php 92 92 } … … 95 95 <h4><a href="<?php echo ( home_url() .'/'. buddypress()->{'groups'}->root_slug .'/create' ); ?>" target="_blank"><?php _e( '+ Create New Group', 'buddypress-learndash' ); ?></a></h4><?php 96 96 } 97 97 98 98 /** 99 99 * Courses save postadata … … 101 101 */ 102 102 public function bp_learndash_save_postdata( $post_id, $post ) { 103 // verify if this is an auto save routine. 103 // verify if this is an auto save routine. 104 104 // If it is our form has not been submitted, so we dont want to do anything 105 105 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) … … 135 135 //Add members to group, we are doing this with ajax batches to prevent timeout 136 136 //bp_learndash_add_members_group($post_id, $_POST[ 'bp_course_group' ] ); 137 137 138 138 //Adding teacher as admin of group 139 139 bp_learndash_course_teacher_group_admin($post_id, $_POST[ 'bp_course_group' ] ); 140 140 141 141 //Attach forum 142 142 bp_learndash_attach_forum( $_POST[ 'bp_course_group' ] ); 143 143 144 144 //Set group visibility 145 bp_learndash_alter_group_status( $_POST[ 'bp_course_group' ] ); 146 145 $course_price_type = get_course_meta_setting( $post_id, 'course_price_type' ); 146 147 if ( 'open' !== $course_price_type && 'free' !== $course_price_type ) { 148 bp_learndash_alter_group_status( $_POST[ 'bp_course_group' ] ); 149 } 150 147 151 //Update Group avatar 148 152 bp_learndash_update_group_avatar( $post_id, $_POST[ 'bp_course_group' ] ); … … 154 158 } 155 159 } 156 160 157 161 /** 158 162 * group class … … 161 165 */ 162 166 public function bp_learndash_group_body_class( $classes = '' ) { 163 167 164 168 if ( in_array( 'group-settings', $classes ) ) { 165 169 $group = groups_get_current_group(); … … 168 172 $classes[] = 'bp-hidepublic'; 169 173 } 170 174 171 175 } 172 176 return $classes; … … 179 183 */ 180 184 public function bp_learndash_user_course_reset( $user_id, $course_id ) { 181 185 182 186 $group_attached = get_post_meta( $course_id, 'bp_course_group', true ); 183 187 184 188 if ( !empty( $group_attached ) ) { 185 189 groups_remove_member( $user_id, $group_attached ); 186 190 } 187 188 } 189 191 192 } 193 190 194 /** 191 195 * change course group text … … 196 200 public function bp_learndash_course_group_text( $type ) { 197 201 global $groups_template; 198 202 199 203 if ( empty( $group ) ) 200 204 $group =& $groups_template->group; 201 205 202 206 $group_id = $group->id; 203 207 $course_attached = groups_get_groupmeta( $group_id, 'bp_course_attached', true ); 204 208 205 209 if ( empty( $course_attached ) ) { 206 210 return apply_filters( 'bp_learndash_course_group_text', $type ); 207 211 } 208 212 209 213 if ( 'Private Group' == $type ) { 210 214 $type = __( "Private Course Group", "buddypress-learndash" ); … … 213 217 $type = __( "Hidden Course Group", "buddypress-learndash" ); 214 218 } 215 219 216 220 return apply_filters( 'bp_learndash_course_group_text', $type ); 217 221 } 218 222 219 223 public function bp_learndash_group_discussion_button( $content ) { 220 224 221 225 if ( ( is_singular( array('sfwd-courses', 'sfwd-lessons', 'sfwd-topic') ) ) ) { 222 226 223 227 $html = ''; 224 228 225 229 if ( get_post_type() == 'sfwd-courses' ) { 226 230 $course_id = get_the_ID(); 227 231 } 228 232 229 233 if ( get_post_type() == 'sfwd-lessons' ) { 230 234 $course_id = get_post_meta(get_the_ID(),'course_id',true); 231 235 } 232 236 233 237 if ( get_post_type() == 'sfwd-topic' ) { 234 238 $lesson_id = get_post_meta(get_the_ID(),'lesson_id',true); 235 239 $course_id = get_post_meta($lesson_id,'course_id',true); 236 240 } 237 241 238 242 if ( sfwd_lms_has_access_fn( $course_id ) || current_user_can( 'manage_options' ) ) { 239 243 $group_attached = get_post_meta( $course_id, 'bp_course_group', true ); … … 248 252 } 249 253 } 250 254 251 255 return $content; 252 256 } -
buddypress-learndash/trunk/includes/bp-learndash-loader.php
r1800376 r1887408 74 74 } 75 75 } 76 76 77 77 /** 78 78 * lesson create activity … … 99 99 // if already displayed 100 100 $attached_course_id = get_post_meta( $lesson_id, 'attached_course_id', true ); 101 101 102 102 if( $attached_course_id == $course_id ) return; 103 103 104 104 $group_attached = get_post_meta( $course_id, 'bp_course_group', true ); 105 105 106 106 if ( empty( $group_attached ) ) { 107 107 return; … … 110 110 return; 111 111 } 112 112 113 113 global $bp; 114 114 $user_link = bp_core_get_userlink( $user_id ); … … 127 127 'item_id' => $group_attached, 128 128 'secondary_item_id' => $lesson_id, 129 'component' => $bp->groups->id, 130 'hide_sitewide' => true 129 'component' => $bp->groups->id 131 130 ); 132 131 133 132 $activity_recorded = bp_learndash_record_activity( $args ); 134 133 if($activity_recorded) { … … 137 136 } 138 137 } 139 138 140 139 /** 141 140 * topic create activity … … 156 155 157 156 $lesson_id = $lesson_id_obj['sfwd-topic_lesson']; 158 157 159 158 $course_id_obj = get_post_meta( $lesson_id, '_sfwd-lessons', true ); 160 159 … … 162 161 163 162 $course_id = $course_id_obj['sfwd-lessons_course']; 164 163 165 164 if( ( '0' == $topic_id ) ) return; 166 165 167 166 // if already displayed 168 167 $attached_lesson_id = get_post_meta( $topic_id, 'attached_lesson_id', true ); 169 168 170 169 if( $attached_lesson_id == $lesson_id ) return; 171 170 172 171 $group_attached = get_post_meta( $course_id, 'bp_course_group', true ); 173 172 174 173 if ( empty( $group_attached ) ) { 175 174 return; … … 178 177 return; 179 178 } 180 179 181 180 global $bp; 182 181 $user_link = bp_core_get_userlink( $user_id ); … … 195 194 'item_id' => $group_attached, 196 195 'secondary_item_id' => $topic_id, 197 'component' => $bp->groups->id, 198 'hide_sitewide' => true 196 'component' => $bp->groups->id 199 197 ); 200 198 201 199 $activity_recorded = bp_learndash_record_activity( $args ); 202 200 if($activity_recorded) { … … 211 209 public function bp_learndash_user_lesson_end_activity( $course_arr ) { 212 210 global $bp; 213 211 214 212 $user_id = $course_arr['user']->ID; 215 213 $lesson_id = $course_arr['lesson']->ID; 216 214 $course_id = $course_arr['course']->ID; 217 215 218 216 $group_attached = get_post_meta( $course_id, 'bp_course_group', true ); 219 217 if ( empty( $group_attached ) ) { … … 235 233 'item_id' => $group_attached, 236 234 'secondary_item_id' => $lesson_id, 237 'component' => $bp->groups->id, 238 'hide_sitewide' => true 235 'component' => $bp->groups->id 239 236 ); 240 237 $activity_recorded = bp_learndash_record_activity( $args ); … … 243 240 } 244 241 } 245 242 246 243 /** 247 244 * user lesson end activity … … 249 246 public function bp_learndash_user_topic_end_activity( $course_arr ) { 250 247 global $bp; 251 248 252 249 $user_id = $course_arr['user']->ID; 253 250 $topic_id = $course_arr['topic']->ID; 254 251 $lesson_id = $course_arr['lesson']->ID; 255 252 $course_id = $course_arr['course']->ID; 256 253 257 254 $group_attached = get_post_meta( $course_id, 'bp_course_group', true ); 258 255 if ( empty( $group_attached ) ) { … … 274 271 'item_id' => $group_attached, 275 272 'secondary_item_id' => $topic_id, 276 'component' => $bp->groups->id, 277 'hide_sitewide' => true 273 'component' => $bp->groups->id 278 274 ); 279 275 $activity_recorded = bp_learndash_record_activity( $args ); … … 282 278 } 283 279 } 284 280 285 281 /** 286 282 * User course end activity … … 288 284 public function bp_learndash_user_course_end_activity( $course_arr ) { 289 285 global $bp; 290 286 291 287 $user_id = $course_arr['user']->ID; 292 288 $course_id = $course_arr['course']->ID; 293 289 294 290 $group_attached = get_post_meta( $course_id, 'bp_course_group', true ); 295 291 if ( empty( $group_attached ) ) { … … 299 295 return; 300 296 } 301 297 302 298 $user_link = bp_core_get_userlink( $user_id ); 303 299 $course_title = get_the_title( $course_id ); … … 312 308 'item_id' => $group_attached, 313 309 'secondary_item_id' => $course_id, 314 'component' => $bp->groups->id, 315 'hide_sitewide' => true 310 'component' => $bp->groups->id 316 311 ); 317 312 $activity_recorded = bp_learndash_record_activity( $args ); … … 332 327 $post_id = $comment_obj->comment_post_ID; 333 328 $post_type = get_post_type( $post_id ); 334 329 335 330 if ( 'sfwd-lessons' == $post_type && 'approve' == $comment_status ) { 336 331 337 332 global $bp; 338 333 $course_id = get_post_meta($post_id,'attached_course_id',true); … … 355 350 'secondary_item_id' => $post_id, 356 351 'component' => $bp->groups->id, 357 'hide_sitewide' => true,358 352 'content' => $comment_obj->comment_content 359 353 ); … … 364 358 } 365 359 } 366 360 367 361 /** 368 362 * Record topic comment preapproved … … 386 380 return; 387 381 } 388 382 389 383 $user_link = bp_core_get_userlink( $comment_obj->user_id ); 390 384 $lesson_title = get_the_title( $post_id ); … … 396 390 'item_id' => $group_attached, 397 391 'component' => $bp->groups->id, 398 'hide_sitewide' => true,399 392 'content' => $comment_obj->comment_content 400 393 ); … … 405 398 } 406 399 } 407 400 408 401 /** 409 402 * Record lesson comment preapproved … … 417 410 $post_id = $comment_obj->comment_post_ID; 418 411 $post_type = get_post_type( $post_id ); 419 412 420 413 if ( 'sfwd-lessons' == $post_type && $commentdata ) { 421 414 422 415 global $bp; 423 416 $course_id = get_post_meta($post_id,'attached_course_id',true); … … 440 433 'component' => $bp->groups->id, 441 434 'secondary_item_id' => $post_id, 442 'hide_sitewide' => true,443 435 'content' => $comment_obj->comment_content 444 436 ); … … 449 441 } 450 442 } 451 443 452 444 /** 453 445 * Record course comment … … 461 453 $post_id = $course_id = $comment_obj->comment_post_ID; 462 454 $post_type = get_post_type( $post_id ); 463 455 464 456 if ( 'sfwd-courses' == $post_type && $commentdata ) { 465 457 466 458 global $bp; 467 459 $group_attached = get_post_meta( $course_id, 'bp_course_group', true ); … … 483 475 'secondary_item_id' => $post_id, 484 476 'component' => $bp->groups->id, 485 'hide_sitewide' => true,486 477 'content' => $comment_obj->comment_content 487 478 ); … … 492 483 } 493 484 } 494 485 495 486 /** 496 487 * Record quiz activity … … 498 489 */ 499 490 public function bp_learndash_complete_quiz_activity( $quizdata, $user ) { 500 491 501 492 global $bp; 502 493 503 494 $quiz_passesd = $quizdata['pass']; 504 495 505 496 if ( $quiz_passesd != '1' ) return; 506 497 507 498 $quiz_id = $quizdata['quiz']->ID; 508 499 $quiz_grade = $quizdata['score']; … … 526 517 'secondary_item_id' => $quiz_id, 527 518 'component' => $bp->groups->id, 528 'hide_sitewide' => true529 519 ); 530 520 $activity_recorded = bp_learndash_record_activity( $args ); … … 691 681 ) 692 682 ); 693 683 694 684 if( current_user_can( 'manage_options' ) ) { 695 685 $all_post_types[] = … … 701 691 ); 702 692 } 703 693 704 694 foreach($all_post_types as $single){ 705 695 $this->bp_learndash_setup_admin_bar($single['name'], $single['slug'], $single['parent'], $single['nav_link']); -
buddypress-learndash/trunk/includes/bp-learndash-users-enrollment.php
r1722193 r1887408 19 19 add_action( 'wp_ajax_mass_group_join', array( $this, 'mass_group_join' ) ); 20 20 add_action( 'edit_form_top', array( $this, 'notice'), 10 ); 21 add_action( 'wp_ajax_get_enrollment_data', array( $this, 'get_enrollment_data_ajax_callback' ) ); 21 22 } 22 23 … … 60 61 if ( ! isset( $current_screen->id ) || ! in_array( $current_screen->id , array( 'sfwd-courses', 'groups') ) ) return; 61 62 62 if ( $current_screen->action == 'add' ) return;63 //if ( $current_screen->action == 'add' ) return; 63 64 64 65 wp_enqueue_script( 'bp-ld-admin-script', BUDDYPRESS_LEARNDASH_PLUGIN_URL .'assets/js/admin.min.js', array( 'jquery' ), BUDDYPRESS_LEARNDASH_PLUGIN_VERSION ); 65 66 wp_enqueue_style( 'bp-ld-admin-style', BUDDYPRESS_LEARNDASH_PLUGIN_URL .'assets/css/admin.min.css', array(), BUDDYPRESS_LEARNDASH_PLUGIN_VERSION ); 66 67 67 $post_ID = $post->ID; 68 $enrollment_data = $this->get_enrollment_data( $current_screen->post_type, $post->ID ); 69 $enrollment_data['screen_id'] = $current_screen->post_type; 68 70 69 // Learndah group edit screen 70 if ( $current_screen->post_type == 'groups' ) { 71 $courses = learndash_group_enrolled_courses( $post_ID ); 72 $users = learndash_get_groups_user_ids( $post_ID ); 73 } 71 if ( 'sfwd-courses' === $current_screen->id ) { 72 $group_attached = get_post_meta( $post->ID, 'bp_course_group', true ); 73 if ( ! empty( $_GET['message'] ) && ! empty( $group_attached ) ) { 74 $enrollment_data['proceed_enrollment'] = true; 75 } 76 } 74 77 75 // Learndash course edit screen 76 if ( $current_screen->post_type == 'sfwd-courses' ) { 78 wp_localize_script( 'bp-ld-admin-script', 'buddypress_learndash_vars', apply_filters( 'buddypress_learndash_vars', $enrollment_data ) ); 77 79 78 $courses = array( $post_ID ); 79 $users = array(); 80 $course_user_query = learndash_get_users_for_course( $post_ID, array( 'count_total' => false ) ); 80 } 81 81 82 if ( is_object( $course_user_query ) && $course_user_query instanceof WP_User_Query ) { 83 $users = $course_user_query->get_results(); 84 } 85 } 82 function get_enrollment_data( $current_screen, $post_ID ) { 86 83 87 if ( ! empty( $_GET['message'] ) ) { 84 // Learndah group edit screen 85 if ( $current_screen == 'groups' ) { 86 $courses = learndash_group_enrolled_courses( $post_ID ); 87 $users = learndash_get_groups_user_ids( $post_ID ); 88 } 88 89 89 wp_localize_script( 'bp-ld-admin-script', 'buddypress_learndash_vars', apply_filters( 'buddypress_learndash_vars', array( 90 'courses' => $courses, 91 'users' => $users 92 ))); 93 } 90 // Learndash course edit screen 91 if ( $current_screen == 'sfwd-courses' ) { 92 93 $courses = array( $post_ID ); 94 $users = array(); 95 $course_user_query = learndash_get_users_for_course( $post_ID, array( 'count_total' => false ) ); 96 97 if ( is_object( $course_user_query ) && $course_user_query instanceof WP_User_Query ) { 98 $users = $course_user_query->get_results(); 99 } 100 } 101 102 return array( 103 'courses' => $courses, 104 'users' => $users 105 ); 106 } 107 108 function get_enrollment_data_ajax_callback() { 109 $current_screen = $_POST['screen_id']; 110 $post_ID = $_POST['post_ID']; 111 $enrollment_data = $this->get_enrollment_data( $current_screen, $post_ID ); 112 wp_send_json_success($enrollment_data); 94 113 } 95 114 -
buddypress-learndash/trunk/languages/buddypress-learndash- fr_FR.po
r1800376 r1887408 3 3 "Project-Id-Version: BuddyPress for LearnDash\n" 4 4 "Report-Msgid-Bugs-To: https://www.buddyboss.com/contact/\n" 5 "POT-Creation-Date: 2018-0 1-09 13:23:00+00:00\n"5 "POT-Creation-Date: 2018-06-05 10:06:40+00:00\n" 6 6 "PO-Revision-Date: 2017-08-14 20:19+0530\n" 7 7 "Last-Translator: jean-pierre michaud <[email protected]>\n" … … 177 177 #: includes/bp-learndash-activity.php:125 178 178 #: includes/bp-learndash-activity.php:149 includes/bp-learndash-loader.php:125 179 #: includes/bp-learndash-loader.php:19 3179 #: includes/bp-learndash-loader.php:192 180 180 msgid "%1$s added the %2$s %3$s to the %4$s %5$s" 181 181 msgstr "%1$s ajouté le %2$s %3$s à %4$s %5$s" 182 182 183 183 #: includes/bp-learndash-activity.php:169 184 #: includes/bp-learndash-activity.php:189 includes/bp-learndash-loader.php:23 3185 #: includes/bp-learndash-loader.php:2 72184 #: includes/bp-learndash-activity.php:189 includes/bp-learndash-loader.php:231 185 #: includes/bp-learndash-loader.php:269 186 186 msgid "%1$s completed the %2$s %3$s" 187 187 msgstr "%1$s completé le %2$s %3$s" 188 188 189 #: includes/bp-learndash-activity.php:209 includes/bp-learndash-loader.php:3 10189 #: includes/bp-learndash-activity.php:209 includes/bp-learndash-loader.php:306 190 190 msgid "%1$s completed the course %2$s" 191 191 msgstr "%1$s a complété le cours %2$s" 192 192 193 #: includes/bp-learndash-activity.php:229 includes/bp-learndash-loader.php:3 53194 #: includes/bp-learndash-loader.php:3 95 includes/bp-learndash-loader.php:438193 #: includes/bp-learndash-activity.php:229 includes/bp-learndash-loader.php:348 194 #: includes/bp-learndash-loader.php:389 includes/bp-learndash-loader.php:431 195 195 msgid "%1$s commented on %2$s %3$s" 196 196 msgstr "%1$s commenté sur le %2$s, %3$s" 197 197 198 #: includes/bp-learndash-activity.php:249 includes/bp-learndash-loader.php:4 81198 #: includes/bp-learndash-activity.php:249 includes/bp-learndash-loader.php:473 199 199 msgid "%1$s commented on course %2$s" 200 200 msgstr "%1$s a commenté le cours %2$s" 201 201 202 #: includes/bp-learndash-activity.php:272 includes/bp-learndash-loader.php:5 24202 #: includes/bp-learndash-activity.php:272 includes/bp-learndash-loader.php:515 203 203 msgid "%1$s has passed the %2$s %3$s with score %4$s" 204 204 msgstr "%1$s a passé le %2$s %3$s avec le score %4$s" 205 205 206 206 #: includes/bp-learndash-activity.php:292 207 #: includes/bp-learndash-functions.php:71 2207 #: includes/bp-learndash-functions.php:714 208 208 msgid "%1$s started taking the course %2$s" 209 209 msgstr "%1$s a commencé à prendre le cours %2$s" … … 226 226 227 227 #: includes/bp-learndash-functions.php:30 228 #: includes/bp-learndash-functions.php:46 4228 #: includes/bp-learndash-functions.php:465 229 229 msgid "My %s" 230 230 msgstr "Mes %s" 231 232 #: includes/bp-learndash-functions.php:39233 msgid "my-%s"234 msgstr "my-%s"235 231 236 232 #: includes/bp-learndash-functions.php:43 … … 238 234 msgstr "Créer un %s" 239 235 240 #: includes/bp-learndash-functions.php:47 241 msgid "create-%s" 242 msgstr "create-%s" 243 244 #: includes/bp-learndash-functions.php:497 236 #: includes/bp-learndash-functions.php:498 245 237 msgid "Add to Menu" 246 238 msgstr "Ajouter au menu" … … 308 300 msgstr "+ Créer un Nouveau Groupe" 309 301 310 #: includes/bp-learndash-groups.php:21 0302 #: includes/bp-learndash-groups.php:214 311 303 msgid "Private Course Group" 312 304 msgstr "Groupe de Cours Privé" 313 305 314 #: includes/bp-learndash-groups.php:21 3306 #: includes/bp-learndash-groups.php:217 315 307 msgid "Hidden Course Group" 316 308 msgstr "Groupe de Cours Caché" 317 309 318 #: includes/bp-learndash-groups.php:24 5310 #: includes/bp-learndash-groups.php:249 319 311 msgid "%s Discussion" 320 312 msgstr "Groupe de discussion du %s" 321 313 322 #: includes/bp-learndash-loader.php:7 26314 #: includes/bp-learndash-loader.php:716 323 315 msgid "Students" 324 316 msgstr "Etudiants" 325 317 326 #: includes/bp-learndash-loader.php:7 27318 #: includes/bp-learndash-loader.php:717 327 319 msgid "Student" 328 320 msgstr "Étudiant(e)" 329 321 330 #: includes/bp-learndash-loader.php:7 32322 #: includes/bp-learndash-loader.php:722 331 323 msgid "Group Leaders" 332 324 msgstr "Responsables de groupe" 333 325 334 #: includes/bp-learndash-loader.php:7 33326 #: includes/bp-learndash-loader.php:723 335 327 msgid "Group Leader" 336 328 msgstr "Chef de Groupe" 337 329 338 #: includes/bp-learndash-loader.php:7 40330 #: includes/bp-learndash-loader.php:730 339 331 msgid "Group Leaders <span>%s</span>" 340 332 msgstr "Chef du Groupe <span>%s</span>" 341 333 342 #: includes/bp-learndash-loader.php:7 41334 #: includes/bp-learndash-loader.php:731 343 335 msgid "Students <span>%s</span>" 344 336 msgstr "Étudiants de <span>%s</span>" 345 337 346 #: includes/bp-learndash-users-enrollment.php:3 3338 #: includes/bp-learndash-users-enrollment.php:34 347 339 #, fuzzy 348 340 msgid "" … … 415 407 msgstr "" 416 408 409 #~ msgid "my-%s" 410 #~ msgstr "my-%s" 411 412 #~ msgid "create-%s" 413 #~ msgstr "create-%s" 414 417 415 #~ msgid "Mass Group Enrollment" 418 416 #~ msgstr "Inscription de Masse" -
buddypress-learndash/trunk/languages/buddypress-learndash-en_US.po
r1800376 r1887408 5 5 "Project-Id-Version: BuddyPress Learndash\n" 6 6 "Report-Msgid-Bugs-To: https://www.buddyboss.com/contact/\n" 7 "POT-Creation-Date: 2018-0 1-09 13:23:00+00:00\n"7 "POT-Creation-Date: 2018-06-05 10:06:40+00:00\n" 8 8 "PO-Revision-Date: 2017-08-14 20:20+0530\n" 9 9 "Last-Translator: BuddyBoss <[email protected]>\n" … … 164 164 #: includes/bp-learndash-activity.php:125 165 165 #: includes/bp-learndash-activity.php:149 includes/bp-learndash-loader.php:125 166 #: includes/bp-learndash-loader.php:19 3166 #: includes/bp-learndash-loader.php:192 167 167 msgid "%1$s added the %2$s %3$s to the %4$s %5$s" 168 168 msgstr "" 169 169 170 170 #: includes/bp-learndash-activity.php:169 171 #: includes/bp-learndash-activity.php:189 includes/bp-learndash-loader.php:23 3172 #: includes/bp-learndash-loader.php:2 72171 #: includes/bp-learndash-activity.php:189 includes/bp-learndash-loader.php:231 172 #: includes/bp-learndash-loader.php:269 173 173 msgid "%1$s completed the %2$s %3$s" 174 174 msgstr "" 175 175 176 #: includes/bp-learndash-activity.php:209 includes/bp-learndash-loader.php:3 10176 #: includes/bp-learndash-activity.php:209 includes/bp-learndash-loader.php:306 177 177 msgid "%1$s completed the course %2$s" 178 178 msgstr "" 179 179 180 #: includes/bp-learndash-activity.php:229 includes/bp-learndash-loader.php:3 53181 #: includes/bp-learndash-loader.php:3 95 includes/bp-learndash-loader.php:438180 #: includes/bp-learndash-activity.php:229 includes/bp-learndash-loader.php:348 181 #: includes/bp-learndash-loader.php:389 includes/bp-learndash-loader.php:431 182 182 msgid "%1$s commented on %2$s %3$s" 183 183 msgstr "" 184 184 185 #: includes/bp-learndash-activity.php:249 includes/bp-learndash-loader.php:4 81185 #: includes/bp-learndash-activity.php:249 includes/bp-learndash-loader.php:473 186 186 msgid "%1$s commented on course %2$s" 187 187 msgstr "" 188 188 189 #: includes/bp-learndash-activity.php:272 includes/bp-learndash-loader.php:5 24189 #: includes/bp-learndash-activity.php:272 includes/bp-learndash-loader.php:515 190 190 msgid "%1$s has passed the %2$s %3$s with score %4$s" 191 191 msgstr "" 192 192 193 193 #: includes/bp-learndash-activity.php:292 194 #: includes/bp-learndash-functions.php:71 2194 #: includes/bp-learndash-functions.php:714 195 195 msgid "%1$s started taking the course %2$s" 196 196 msgstr "" … … 213 213 214 214 #: includes/bp-learndash-functions.php:30 215 #: includes/bp-learndash-functions.php:46 4215 #: includes/bp-learndash-functions.php:465 216 216 msgid "My %s" 217 msgstr ""218 219 #: includes/bp-learndash-functions.php:39220 msgid "my-%s"221 217 msgstr "" 222 218 … … 225 221 msgstr "" 226 222 227 #: includes/bp-learndash-functions.php:47 228 msgid "create-%s" 229 msgstr "" 230 231 #: includes/bp-learndash-functions.php:497 223 #: includes/bp-learndash-functions.php:498 232 224 msgid "Add to Menu" 233 225 msgstr "" … … 295 287 msgstr "" 296 288 297 #: includes/bp-learndash-groups.php:21 0289 #: includes/bp-learndash-groups.php:214 298 290 msgid "Private Course Group" 299 291 msgstr "" 300 292 301 #: includes/bp-learndash-groups.php:21 3293 #: includes/bp-learndash-groups.php:217 302 294 msgid "Hidden Course Group" 303 295 msgstr "" 304 296 305 #: includes/bp-learndash-groups.php:24 5297 #: includes/bp-learndash-groups.php:249 306 298 msgid "%s Discussion" 307 299 msgstr "" 308 300 309 #: includes/bp-learndash-loader.php:7 26301 #: includes/bp-learndash-loader.php:716 310 302 msgid "Students" 311 303 msgstr "" 312 304 313 #: includes/bp-learndash-loader.php:7 27305 #: includes/bp-learndash-loader.php:717 314 306 msgid "Student" 315 307 msgstr "" 316 308 317 #: includes/bp-learndash-loader.php:7 32309 #: includes/bp-learndash-loader.php:722 318 310 msgid "Group Leaders" 319 311 msgstr "" 320 312 321 #: includes/bp-learndash-loader.php:7 33313 #: includes/bp-learndash-loader.php:723 322 314 msgid "Group Leader" 323 315 msgstr "" 324 316 325 #: includes/bp-learndash-loader.php:7 40317 #: includes/bp-learndash-loader.php:730 326 318 msgid "Group Leaders <span>%s</span>" 327 319 msgstr "" 328 320 329 #: includes/bp-learndash-loader.php:7 41321 #: includes/bp-learndash-loader.php:731 330 322 msgid "Students <span>%s</span>" 331 323 msgstr "" 332 324 333 #: includes/bp-learndash-users-enrollment.php:3 3325 #: includes/bp-learndash-users-enrollment.php:34 334 326 msgid "" 335 327 "<strong>BuddyPress for Learndash</strong> enrolling users to the course " -
buddypress-learndash/trunk/languages/buddypress-learndash.pot
r1800376 r1887408 5 5 "Project-Id-Version: \n" 6 6 "Report-Msgid-Bugs-To: https://www.buddyboss.com/contact/\n" 7 "POT-Creation-Date: 2018-0 1-10 10:46:50+00:00\n"7 "POT-Creation-Date: 2018-06-05 10:13:10+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 166 166 #: includes/bp-learndash-activity.php:125 167 167 #: includes/bp-learndash-activity.php:149 includes/bp-learndash-loader.php:125 168 #: includes/bp-learndash-loader.php:19 3168 #: includes/bp-learndash-loader.php:192 169 169 msgid "%1$s added the %2$s %3$s to the %4$s %5$s" 170 170 msgstr "" 171 171 172 172 #: includes/bp-learndash-activity.php:169 173 #: includes/bp-learndash-activity.php:189 includes/bp-learndash-loader.php:23 3174 #: includes/bp-learndash-loader.php:2 72173 #: includes/bp-learndash-activity.php:189 includes/bp-learndash-loader.php:231 174 #: includes/bp-learndash-loader.php:269 175 175 msgid "%1$s completed the %2$s %3$s" 176 176 msgstr "" 177 177 178 #: includes/bp-learndash-activity.php:209 includes/bp-learndash-loader.php:3 10178 #: includes/bp-learndash-activity.php:209 includes/bp-learndash-loader.php:306 179 179 msgid "%1$s completed the course %2$s" 180 180 msgstr "" 181 181 182 #: includes/bp-learndash-activity.php:229 includes/bp-learndash-loader.php:3 53183 #: includes/bp-learndash-loader.php:3 95 includes/bp-learndash-loader.php:438182 #: includes/bp-learndash-activity.php:229 includes/bp-learndash-loader.php:348 183 #: includes/bp-learndash-loader.php:389 includes/bp-learndash-loader.php:431 184 184 msgid "%1$s commented on %2$s %3$s" 185 185 msgstr "" 186 186 187 #: includes/bp-learndash-activity.php:249 includes/bp-learndash-loader.php:4 81187 #: includes/bp-learndash-activity.php:249 includes/bp-learndash-loader.php:473 188 188 msgid "%1$s commented on course %2$s" 189 189 msgstr "" 190 190 191 #: includes/bp-learndash-activity.php:272 includes/bp-learndash-loader.php:5 24191 #: includes/bp-learndash-activity.php:272 includes/bp-learndash-loader.php:515 192 192 msgid "%1$s has passed the %2$s %3$s with score %4$s" 193 193 msgstr "" 194 194 195 195 #: includes/bp-learndash-activity.php:292 196 #: includes/bp-learndash-functions.php:71 2196 #: includes/bp-learndash-functions.php:714 197 197 msgid "%1$s started taking the course %2$s" 198 198 msgstr "" … … 215 215 216 216 #: includes/bp-learndash-functions.php:30 217 #: includes/bp-learndash-functions.php:46 4217 #: includes/bp-learndash-functions.php:465 218 218 msgid "My %s" 219 msgstr ""220 221 #: includes/bp-learndash-functions.php:39222 msgid "my-%s"223 219 msgstr "" 224 220 … … 227 223 msgstr "" 228 224 229 #: includes/bp-learndash-functions.php:47 230 msgid "create-%s" 231 msgstr "" 232 233 #: includes/bp-learndash-functions.php:497 225 #: includes/bp-learndash-functions.php:498 234 226 msgid "Add to Menu" 235 227 msgstr "" … … 297 289 msgstr "" 298 290 299 #: includes/bp-learndash-groups.php:21 0291 #: includes/bp-learndash-groups.php:214 300 292 msgid "Private Course Group" 301 293 msgstr "" 302 294 303 #: includes/bp-learndash-groups.php:21 3295 #: includes/bp-learndash-groups.php:217 304 296 msgid "Hidden Course Group" 305 297 msgstr "" 306 298 307 #: includes/bp-learndash-groups.php:24 5299 #: includes/bp-learndash-groups.php:249 308 300 msgid "%s Discussion" 309 301 msgstr "" 310 302 311 #: includes/bp-learndash-loader.php:7 26303 #: includes/bp-learndash-loader.php:716 312 304 msgid "Students" 313 305 msgstr "" 314 306 315 #: includes/bp-learndash-loader.php:7 27307 #: includes/bp-learndash-loader.php:717 316 308 msgid "Student" 317 309 msgstr "" 318 310 319 #: includes/bp-learndash-loader.php:7 32311 #: includes/bp-learndash-loader.php:722 320 312 msgid "Group Leaders" 321 313 msgstr "" 322 314 323 #: includes/bp-learndash-loader.php:7 33315 #: includes/bp-learndash-loader.php:723 324 316 msgid "Group Leader" 325 317 msgstr "" 326 318 327 #: includes/bp-learndash-loader.php:7 40319 #: includes/bp-learndash-loader.php:730 328 320 msgid "Group Leaders <span>%s</span>" 329 321 msgstr "" 330 322 331 #: includes/bp-learndash-loader.php:7 41323 #: includes/bp-learndash-loader.php:731 332 324 msgid "Students <span>%s</span>" 333 325 msgstr "" 334 326 335 #: includes/bp-learndash-users-enrollment.php:3 3327 #: includes/bp-learndash-users-enrollment.php:34 336 328 msgid "" 337 329 "<strong>BuddyPress for Learndash</strong> enrolling users to the course " -
buddypress-learndash/trunk/readme.txt
r1800376 r1887408 4 4 Tags: buddypress, learndash, lms, learning management system, learning, courses, courseware, education, social networking, activity, profiles, messaging, friends, groups, forums, notifications, settings, social, community, networks, networking 5 5 Requires at least: 3.8 6 Tested up to: 4.9. 17 Stable tag: 1.2. 46 Tested up to: 4.9.6 7 Stable tag: 1.2.5 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 109 109 110 110 == Changelog == 111 112 = 1.2.5 = 113 * Fix - Gutenberg editor compatibility 114 * Fix - Cannot set a group public when it is linked with the Course 115 * Fix - Leave off group enrollment if course has no buddypress group attached 116 * Fix - If group is public then Course Activity are not appearing on Site- wide Activity page 117 * Fix - Forbid translation of the buddypress profile courses menu slugs 118 * Fix - Global Search out of memory issue fix 119 * Fix - FATAL error occurs while saving/updating the course if course has group attached 120 * Fix - FATAL error on single group page after BuddyPress 3.0 update 121 * Fix - PHP Warnings 111 122 112 123 = 1.2.4 = … … 123 134 = 1.2.2 = 124 135 * Tweak - Student access list update logic tweak 125 * Fix - Single activity page is blank for some group activities 136 * Fix - Single activity page is blank for some group activities 126 137 * Fix - Course settings inside group should not be accessible for the student 127 138 * Fix - removed group activation check … … 170 181 = 1.0.6 = 171 182 * Fix - Duplicate forum getting created when updating course 172 * Fix - Group/forum registration not working with group enrollment 183 * Fix - Group/forum registration not working with group enrollment 173 184 * Fix - BP Reorder Tabs compatibility 174 185
Note: See TracChangeset
for help on using the changeset viewer.