This file contains hidden or 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
| add_filter('bbp_reply_is_private',function($return,$reply_id){ | |
| $api = Vibe_HelpDesk_API::init(); | |
| if(!empty($api->user)){ | |
| $forum_id = get_post_meta($reply_id,'_bbp_forum_id',true); | |
| global $wpdb; | |
| $course_id = $wpdb->get_var($wpdb->prepare("SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key='vibe_forum' AND meta_value = %d",$forum_id)); | |
| if(!empty($course_id)){ | |
| if(bp_course_is_member($course_id,$api->user->id)){ | |
| return false; | |
| } |
This file contains hidden or 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
| add_shortcode('certificate_batch_details',function($atts,$content=null){ | |
| extract(shortcode_atts(array( | |
| 'student_id' => '', | |
| 'course_id' =>'', | |
| 'detail'=>'0' //name, administartor, | |
| ), $atts)); | |
| if(!isset($course_id) || !is_numeric($course_id)){ | |
| $course_id=$_GET['c']; | |
| } |
This file contains hidden or 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
| add_filter('wplms_get_featured_cards',function($cards){ | |
| $cards['custom_block']='CUSTOM BLOCK'; | |
| return $cards; | |
| }); |
This file contains hidden or 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
| add_shortcode('isotope',function($atts,$content=null){ | |
| wp_enqueue_script('isotope-js','https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js',array(),true); | |
| $query = new WP_Query(array( | |
| 'post_type'=>'post', | |
| 'posts_per_page'=>9 | |
| )); | |
This file contains hidden or 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
| .pratice_questions >div:before { | |
| content: attr(data-question); | |
| margin-top: 20px; | |
| position: absolute; | |
| right: 20px; | |
| font-size: 2rem; | |
| opacity:0.5; | |
| } | |
| .pratice_questions >div { |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Assignment 2 Flexbox</title> | |
| <style> | |
| :root{ | |
| --border:rgba(0,0,0,0.1); | |
| --background:#fff; | |
| --shadow:rgba(0,0,0,0.2); | |
| } | |
| .container { |
This file contains hidden or 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
| add_filter('vibe_zoom_script_args',function($tabs){ | |
| $tabs['shared_tabs']=array( | |
| 'course'=>_x('Course','vibe-zoom'), | |
| 'shared'=>_x('Shared ','vibe-zoom'), | |
| 'group'=>_x('Group','vibe-zoom'), | |
| ); | |
| return $tabs; | |
| }); |
This file contains hidden or 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
| add_filter('wplms_get_element_icon',function($icon,$component_name){ | |
| //print_r($component_name); //find out component names | |
| if($component_name == 'jitsi'){ | |
| return '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>'; | |
| } | |
| return $icon; | |
| },10,2); |
This file contains hidden or 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
| add_filter('vibe_zoom_script_args',function($args){ | |
| $args['shared_tabs']['custom_key']='Membership Tab'; //Show in Tabs | |
| $args['shared_types']['custom_key']='Membership Level'; //For assigning while creating meeting | |
| return $args; | |
| }); | |
| add_filter('vibe_zoom_search_sharing_values',function($return,$request,$user){ | |
| $args = json_decode($request->get_body(),true); |
This file contains hidden or 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
| add_filter('wplms-zoom_script_args',function($args){ | |
| $args['sorters']['date']='XXX'; | |
| $args['sorters']['name']='YYY'; | |
| $args['shared_types']['shared']='AAA'; | |
| $args['shared_types']['group']='BBB'; | |
| $args['shared_types']['course']='CCC'; | |
| return $args; | |
| }); |