This file contains 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_action('bp_course_single_item_view','cb'); | |
function cb($post){ | |
global $post; | |
$course_post_id = $post->ID; | |
$course_author= $post->post_author; | |
$course_classes = apply_filters('bp_course_single_item','course_single_item course_id_'.$post->ID.' course_status_'.$post->post_status.' course_author_'.$post->post_author,get_the_ID()); | |
?> | |
<li class="<?php echo $course_classes; ?>"> | |
<div class="row"> | |
<div class="col-md-4 col-sm-4"> |
This file contains 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
YToxOntpOjA7YToyOntzOjQ6Im5hbWUiO3M6MTM6Im9uZUNvdXJzZUhvbWUiO3M6NzoiY29udGVudCI7czo0MDA1NjoiPGRpdiBkYXRhLXBsYWNlaG9sZGVyPSJGdWxsU2NyZWVuIFN0cmlwZSIgZGF0YS1uYW1lPSJzdHJpcGUiIGNsYXNzPSJtb2R1bGUgbV9jb2x1bW4gbV9jb2x1bW5fc3RyaXBlIHVpLWRyYWdnYWJsZSB1aS1yZXNpemFibGUgdWktZHJvcHBhYmxlIHVpLXNvcnRhYmxlIGZpcnN0IiBzdHlsZT0ib3BhY2l0eTogMTsgZGlzcGxheTogaW5saW5lLWJsb2NrOyB6LWluZGV4OiAxOyIgYXJpYS1kaXNhYmxlZD0iZmFsc2UiPjxzcGFuIGNsYXNzPSJtb2R1bGVfbmFtZSBjb2x1bW5fbmFtZSI+RnVsbFNjcmVlbiBTdHJpcGU8L3NwYW4+IDxzcGFuIGNsYXNzPSJkZWxldGVfY29sdW1uIGRlbGV0ZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyI+PC9zcGFuPjxkaXYgZGF0YS1wbGFjZWhvbGRlcj0iUGFyYWxsYXggQ29udGVudCIgZGF0YS1uYW1lPSJwYXJhbGxheF9ibG9jayIgY2xhc3M9Im1vZHVsZSBtX3BhcmFsbGF4X2Jsb2NrIHVpLWRyYWdnYWJsZSB1aS1kcmFnZ2FibGUtaGFuZGxlIiBzdHlsZT0ib3BhY2l0eTogMTsgZGlzcGxheTogaW5saW5lLWJsb2NrOyB3aWR0aDogMTAwJTsgbWFyZ2luLXJpZ2h0OiAwcHg7IHotaW5kZXg6IDE7Ij48c3BhbiBjbGFzcz0ibW9kdWxlX25hbWUiPlBhcmFsbGF4IFRpdGxlPHNwYW4gY2xhc3M9InVuc2F2ZWQiPiAoIFVuc2F2ZWQgKTwvc3Bhbj48c3BhbiBjbGFzcz0idW5zYXZlZCI+ICggVW5zYXZlZCAp |
This file contains 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
YToxOntpOjA7YToyOntzOjQ6Im5hbWUiO3M6MTM6Im9uZUNvdXJzZUhvbWUiO3M6NzoiY29udGVudCI7czo0MDA1NjoiPGRpdiBkYXRhLXBsYWNlaG9sZGVyPSJGdWxsU2NyZWVuIFN0cmlwZSIgZGF0YS1uYW1lPSJzdHJpcGUiIGNsYXNzPSJtb2R1bGUgbV9jb2x1bW4gbV9jb2x1bW5fc3RyaXBlIHVpLWRyYWdnYWJsZSB1aS1yZXNpemFibGUgdWktZHJvcHBhYmxlIHVpLXNvcnRhYmxlIGZpcnN0IiBzdHlsZT0ib3BhY2l0eTogMTsgZGlzcGxheTogaW5saW5lLWJsb2NrOyB6LWluZGV4OiAxOyIgYXJpYS1kaXNhYmxlZD0iZmFsc2UiPjxzcGFuIGNsYXNzPSJtb2R1bGVfbmFtZSBjb2x1bW5fbmFtZSI+RnVsbFNjcmVlbiBTdHJpcGU8L3NwYW4+IDxzcGFuIGNsYXNzPSJkZWxldGVfY29sdW1uIGRlbGV0ZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyI+PC9zcGFuPjxkaXYgZGF0YS1wbGFjZWhvbGRlcj0iUGFyYWxsYXggQ29udGVudCIgZGF0YS1uYW1lPSJwYXJhbGxheF9ibG9jayIgY2xhc3M9Im1vZHVsZSBtX3BhcmFsbGF4X2Jsb2NrIHVpLWRyYWdnYWJsZSB1aS1kcmFnZ2FibGUtaGFuZGxlIiBzdHlsZT0ib3BhY2l0eTogMTsgZGlzcGxheTogaW5saW5lLWJsb2NrOyB3aWR0aDogMTAwJTsgbWFyZ2luLXJpZ2h0OiAwcHg7IHotaW5kZXg6IDE7Ij48c3BhbiBjbGFzcz0ibW9kdWxlX25hbWUiPlBhcmFsbGF4IFRpdGxlPHNwYW4gY2xhc3M9InVuc2F2ZWQiPiAoIFVuc2F2ZWQgKTwvc3Bhbj48c3BhbiBjbGFzcz0idW5zYXZlZCI+ICggVW5zYXZlZCAp |
This file contains 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
// Total Unit Duration Count function starts | |
public static function get_course_unit_durations(){ | |
$course_curriculum = bp_course_get_curriculum($course_id); | |
if(!empty($course_curriculum)){ | |
$duration=0; | |
foreach($course_curriculum as $key => $item){ | |
if(is_numeric($item)){ | |
$post_type = get_post_type( $item); | |
if( $post_type == 'unit' && function_exists('bp_course_get_unit_duration')){ |
This file contains 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_unit_mark_complete','wplms_assignments_force_unit_complete1234',99,3); | |
function wplms_assignments_force_unit_complete1234($mark_unit_html,$unit_id,$course_id){ | |
$flag=0; | |
$assignment_locking = vibe_get_option('assignment_locking'); | |
if(isset($assignment_locking) && $assignment_locking){ | |
$unit_assignments = get_post_meta($unit_id,'vibe_assignment',false); | |
if(empty($unit_assignments)) | |
return $mark_unit_html; | |
if(is_Array($unit_assignments) && is_array($unit_assignments[0])) |
This file contains 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_course_details_array','wplms_custom_course_details_information'); | |
function wplms_custom_course_details_information($course_details){ | |
$course_details['custom']= array( | |
'label'=>'custom', | |
'callback'=> false, | |
); | |
$course_details['custom1']= array( | |
'label'=>'custom1', | |
'callback'=> false, | |
); |
This file contains 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
[iframevideo]<iframe width="560" height="315" src="https://www.youtube.com/embed/HH1zD1wcACg" frameborder="0" allowfullscreen></iframe>[iframevideo] |
This file contains 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_course_details_array','wplms_custom_course_details_information'); | |
function wplms_custom_course_details_information($course_details){ | |
$course_details['custom']= array( | |
'label' => 'custom', | |
'callback' => false, | |
); | |
return $course_details; | |
} | |
add_filter('wplms_course_details_widget','custom_info_course_widget',999999); |
This file contains 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
[v_stripe first_class="1"] | |
[v_text_block first_class="1" title="Content" animation_effect="" css_class="homeheading" container_css="halfblocks" custom_css=".halfblocks.stripe{ | |
margin:0 -15px; | |
background:#14272E; | |
color:#ffffff; | |
margin-top:80px;} | |
.halfblocks img{margin:-10px 0;} | |
.halfblocks h3{ color:#ffffff;} | |
.halfblocks .one_third{padding:15px;}.halfblocks .column_content{text-align:center;padding:10px;border:1px solid rgba(255,255,255,0.8);}.halfblocks .numscroller{font-size:48px;color :#ffffff;}"]<p>[v_1_2]<img class="alignleft size-full wp-image-2343" src="http://themes.vibethemes.com/wplms/skins/demo5/wp-content/uploads/2016/02/stripeimg.jpg" alt="stripeimg" width="1000" height="667"></p><p>[/v_1_2][v_1_2]</p><h3 style="text-align: center;"> </h3><h3 style="text-align: center;"> We build Awesomeness</h3><p style="text-align: center;">The most amazing theme of the year</p><hr><p style="text-align: center;">Global leaders around the world have joined hands with WPLMS. The most complete Education t |
OlderNewer