当前位置: 首页>>代码示例>>PHP>>正文


PHP vibe_get_option函数代码示例

本文整理汇总了PHP中vibe_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP vibe_get_option函数的具体用法?PHP vibe_get_option怎么用?PHP vibe_get_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了vibe_get_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_header

<?php

/**
 * BuddyPress - Blogs Directory
 *
 * @package BuddyPress
 * @subpackage bp-default
 */
get_header('buddypress');
$id = 0;
$page_array = get_option('bp-pages');
if (isset($page_array['blogs'])) {
    $id = $page_array['blogs'];
}
$flag = 1;
$capability = vibe_get_option('blog_create');
if (isset($capability)) {
    $flag = 0;
    switch ($capability) {
        case 1:
            $flag = 1;
            break;
        case 2:
            if (current_user_can('edit_posts')) {
                $flag = 1;
            }
            break;
        case 3:
            if (current_user_can('manage_options')) {
                $flag = 1;
            }
开发者ID:akshayxhtmljunkies,项目名称:brownglock,代码行数:31,代码来源:index.php

示例2: delete_cache_transition

 function delete_cache_transition($new_status, $old_status, $post)
 {
     global $wpdb;
     $cache_duration = vibe_get_option('cache_duration');
     if (!isset($cache_duration)) {
         $cache_duration = 0;
     }
     if ($cache_duration) {
         $key = 'kposts_' . $post->post_type;
         $instructor_content_privacy = vibe_get_option('instructor_content_privacy');
         if ($instructor_content_privacy) {
             $user_id = get_current_user_id();
             $key .= '_' . $user_id;
         }
         $linkage = vibe_get_option('linkage');
         if (isset($linkage) && $linkage) {
             $linkage_terms = get_the_terms($post_id, 'linkage');
             if (isset($linkage_terms) && is_array($linkage_terms)) {
                 foreach ($linkage_terms as $term) {
                     $key .= '_' . $term->name;
                 }
             }
         }
         delete_transient($key);
         if ($post->post_type == 'course') {
             global $wpdb;
             $wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE '%wplms_%_course%'");
         }
     }
 }
开发者ID:nikitansk,项目名称:devschool,代码行数:30,代码来源:caching.php

示例3: the_quiz_button

 function the_quiz_button($button, $quiz_id)
 {
     global $post;
     $quiz_id = get_the_ID();
     $user_id = get_current_user_id();
     $flag = 1;
     if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
         $pid = get_post_meta($quiz_id, 'vibe_quiz_product', true);
         if (isset($pid) && is_numeric($pid) && get_post_type($pid) == 'product') {
             $product_taken = wc_customer_bought_product('', $user_id, $pid);
             if (!$product_taken) {
                 $pid = get_permalink($pid);
                 $check = vibe_get_option('direct_checkout');
                 $check = intval($check);
                 if (isset($check) && $check) {
                     $pid .= '?redirect';
                 }
                 $flag = 0;
                 $html = '<a href="' . $pid . '"class="button create-group-button full"> ' . __('Take this Quiz', 'vibe') . '</a>';
             } else {
                 $flag = 1;
             }
         }
     }
     if (in_array('paid-memberships-pro/paid-memberships-pro.php', apply_filters('active_plugins', get_option('active_plugins'))) && is_user_logged_in()) {
         $membership_ids = vibe_sanitize(get_post_meta($quiz_id, 'vibe_quiz_membership', false));
         if (!pmpro_hasMembershipLevel($membership_ids, $user_id) && isset($membership_ids) && count($membership_ids) >= 1) {
             $membership_taken = get_user_meta($user_id, $quiz_id, true);
             if (!$membership_taken) {
                 $pmpro_levels_page_id = get_option('pmpro_levels_page_id');
                 $link = get_permalink($pmpro_levels_page_id);
                 $html = '<a href="' . $link . '"class="button create-group-button full"> ' . __('Take this Quiz', 'vibe') . '</a>';
                 $flag = 0;
             } else {
                 $flag = 1;
             }
         }
     }
     if (in_array('wplms-mycred-addon/wplms-mycred-addon.php', apply_filters('active_plugins', get_option('active_plugins')))) {
         $points = get_post_meta($quiz_id, 'vibe_quiz_mycred_points', true);
         $mycred = mycred();
         $balance = $mycred->get_users_cred($user_id);
         if ($balance < $points) {
             $flag = 0;
             $html = '<a href="#"class="button create-group-button full"> ' . __('Take this Quiz', 'vibe') . '<span>' . __('<br/>Not enough points.', 'vibe') . '</span></a>';
         }
         if (!$mycred->has_entry('purchase_quiz', $quiz_id, $user_id)) {
             $flag = 1;
             $deduct = -1 * $points;
             $mycred->update_users_balance($user_id, $deduct);
             $mycred->add_to_log('purchase_quiz', $user_id, $deduct, __('Student subscibed to quiz', 'wplms-mycred'), $quiz_id);
         } else {
             $flag = 1;
         }
     }
     if (!$flag) {
         return $html;
     }
     return $button;
 }
开发者ID:VibeThemes,项目名称:wplms_sell_quiz,代码行数:60,代码来源:sell_quiz.php

示例4: bp_course_add_js

function bp_course_add_js()
{
    global $bp;
    if (!function_exists('vibe_logo_url')) {
        return;
    }
    // Checks if WPLMS is active in current site in WP Multisite
    wp_enqueue_script('bp-extras-js', plugins_url('/vibe-course-module/includes/js/course-module-js.min.js'), array('jquery'), bp_course_version(), true);
    if (function_exists('vibe_get_option')) {
        if (is_singular('unit') || is_singular('question') || is_singular('quiz') || is_singular('wplms-assignment') || is_page(vibe_get_option('take_course_page')) || is_page(vibe_get_option('create_course')) || isset($_GET['edit'])) {
            wp_enqueue_script('jquery-ui-core');
            wp_enqueue_script('jquery-ui-sortable');
            wp_enqueue_script('jquery-ui-droppable');
            wp_enqueue_script('jquery-ui-datepicker');
            wp_enqueue_script('knob-js', plugins_url('/vibe-course-module/includes/js/jquery.knob.min.js'));
        }
    }
    if (function_exists('bp_is_directory')) {
        if (bp_is_directory() && bp_current_component() == 'course') {
            wp_enqueue_script('jquery-ui-datepicker');
        }
    }
    $action = bp_current_action();
    if (isset($_GET['action'])) {
        $action = $_GET['action'];
    }
    if (in_array($action, array('admin', 'submissions', 'stats'))) {
        wp_enqueue_script('knob-js', plugins_url('/vibe-course-module/includes/js/jquery.knob.min.js'));
    }
    wp_enqueue_script('bp-course-js', plugins_url('/vibe-course-module/includes/js/course.js'), array('jquery', 'wp-mediaelement', 'buddypress-js'), bp_course_version(), true);
    $color = bp_wplms_get_theme_color();
    $single_dark_color = bp_wplms_get_theme_single_dark_color();
    $translation_array = array('too_fast_answer' => _x('Too Fast or Answer not marked.', 'Quiz answer being marked very fast', 'vibe'), 'answer_saved' => _x('Answer Saved.', 'Save answer on every question, confirmation message', 'vibe'), 'processing' => _x('Processing...', 'Quiz question anwer save under progress', 'vibe'), 'saving_answer' => _x('Saving Answer...please wait', 'Saving quiz answers under progress', 'vibe'), 'remove_user_text' => __('This step is irreversible. Are you sure you want to remove the User from the course ?', 'vibe'), 'remove_user_button' => __('Confirm, Remove User from Course', 'vibe'), 'confirm' => _x('Confirm', 'Confirm button for various popup confirmation messages', 'vibe'), 'cancel' => _x('Cancel', 'Cancel button for various popup confirmation messages', 'vibe'), 'reset_user_text' => __('This step is irreversible. All Units, Quiz results would be reset for this user. Are you sure you want to Reset the Course for this User?', 'vibe'), 'reset_user_button' => __('Confirm, Reset Course for this User', 'vibe'), 'quiz_reset' => __('This step is irreversible. All Questions answers would be reset for this user. Are you sure you want to Reset the Quiz for this User? ', 'vibe'), 'quiz_reset_button' => __('Confirm, Reset Quiz for this User', 'vibe'), 'marks_saved' => __('Marks Saved', 'vibe'), 'quiz_marks_saved' => __('Quiz Marks Saved', 'vibe'), 'submit_quiz' => __('Submit Quiz', 'vibe'), 'sending_messages' => __('Sending Messages ...', 'vibe'), 'adding_students' => __('Adding Students to Course ...', 'vibe'), 'successfuly_added_students' => __('Students successfully added to Course', 'vibe'), 'unable_add_students' => __('Unable to Add students to Course', 'vibe'), 'select_fields' => __('Please select fields to download', 'vibe'), 'download' => __('Download', 'vibe'), 'timeout' => __('TIMEOUT', 'vibe'), 'theme_color' => $color, 'single_dark_color' => $single_dark_color, 'for_course' => __('for Course', 'vibe'), 'active_filters' => __('Active Filters', 'vibe'), 'clear_filters' => __('Clear all filters', 'vibe'), 'remove_comment' => __('Are you sure you want to remove this note?', 'vibe'), 'remove_comment_button' => __('Confirm, remove note', 'vibe'), 'private_comment' => __('Make Private', 'vibe'), 'add_comment' => __('Add your note', 'vibe'), 'submit_quiz_error' => __('Please add questions or retake the quiz !', 'vibe'), 'remove_announcement' => __('Are you sure you want to remove this Annoucement?', 'vibe'), 'start_quiz_notification' => __('You\'re about to start the Quiz. Please click confirm to begin the quiz.', 'vibe'), 'submit_quiz_notification' => __('Are you sure you want to submit the quiz. Submitting the quiz will freeze all your answers, you can not change them.  Please confirm.', 'vibe'), 'check_results' => __('Check results', 'vibe'), 'correct' => __('Correct', 'vibe'), 'incorrect' => __('Incorrect', 'vibe'), 'confirm_apply' => _x('Are you sure you want to apply for this Course ?', 'confirmation message when user clicks on apply for course', 'vibe'), 'instructor_uncomplete_unit' => _x('Are you sure you want mark this unit "uncomplete" for the user ?', 'Popup confirmation message when instructor marks the unit uncomplete for the user.', 'vibe'), 'instructor_complete_unit' => _x('Are you sure you want to mark this unit "complete" for the user ?', 'Popup confirmation message ', 'vibe'), 'unanswered_questions' => __('You have few unanswered questions. Are you sure you want to continue ?', 'vibe'));
    wp_localize_script('bp-course-js', 'vibe_course_module_strings', $translation_array);
}
开发者ID:nikitansk,项目名称:devschool,代码行数:35,代码来源:bp-course-cssjs.php

示例5: initialize

 function initialize()
 {
     $this->endpoint = vibe_get_option('tincan_endpoint');
     $user = vibe_get_option('tincan_user');
     $pass = vibe_get_option('tincan_pass');
     $cred = $user . ':' . $pass;
     $this->auth = base64_encode($cred);
 }
开发者ID:nikitansk,项目名称:devschool,代码行数:8,代码来源:tincan.php

示例6: wplms_course_news_menu

 function wplms_course_news_menu($links)
 {
     if (function_exists('vibe_get_option')) {
         $show_news = vibe_get_option('show_news');
         if (isset($show_news) && $show_news) {
             $links['news'] = array('id' => 'news', 'label' => __('News', 'wplms-dashboard'), 'action' => 'news', 'link' => bp_get_course_permalink());
         }
     }
     return $links;
 }
开发者ID:akshayxhtmljunkies,项目名称:brownglock,代码行数:10,代码来源:dashboard.php

示例7: widget

 /** @see WP_Widget::widget -- do not rename this */
 function widget($args, $instance)
 {
     extract($args);
     //Our variables from the widget settings.
     $title = apply_filters('widget_title', $instance['title']);
     $width = $instance['width'];
     $number = $instance['number'];
     echo '<div class="' . $width . '">
         <div class="dash-widget">' . $before_widget;
     // Display the widget title
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     $unit_comments = vibe_get_option('unit_comments');
     if (isset($unit_comments) && is_numeric($unit_comments)) {
         $link = get_permalink($unit_comments);
     } else {
         $link = '#';
     }
     echo '<div id="vibe-tabs-notes_discussion" class="tabs tabbable">   
          <a href="' . $link . '" class="view_all_notes">' . __('SEE ALL', 'wplms-dashboard') . '</a>
           <ul class="nav nav-tabs clearfix">
             <li><a href="#tab-notes" data-toggle="tab">' . __('My Notes', 'wplms-dashboard') . '</a></li>
             <li><a href="#tab-discussion" data-toggle="tab">' . __('My Discussions', 'wplms-dashboard') . '</a></li>
         </ul><div class="tab-content">';
     echo '<div id="tab-notes" class="tab-pane">';
     $user_id = get_current_user_id();
     $args = apply_filters('wplms_notes_dicussion_dashboard_args', array('number' => $number, 'post_status' => 'publish', 'post_type' => 'unit', 'status' => 'approve', 'type' => 'note', 'user_id' => $user_id));
     echo '<div id="notes_query">' . json_encode($args) . '</div>
                 <div id="notes_discussions">';
     $comments_query = new WP_Comment_Query();
     $comments = $comments_query->query($args);
     // Comment Loop
     $vibe_notes_discussions = new vibe_notes_discussions();
     $vibe_notes_discussions->comments_loop($comments);
     echo '</div></div>';
     echo '<div id="tab-discussion" class="tab-pane">';
     $args = apply_filters('wplms_notes_dicussion_dashboard_args', array('number' => $number, 'post_status' => 'publish', 'post_type' => 'unit', 'status' => 'approve', 'type' => 'public', 'user_id' => $user_id));
     echo '<div id="notes_query">' . json_encode($args) . '</div>
                 <div id="notes_discussions">';
     $comments_query = new WP_Comment_Query();
     $comments = $comments_query->query($args);
     // Comment Loop
     $vibe_notes_discussions = new vibe_notes_discussions();
     $vibe_notes_discussions->comments_loop($comments);
     echo '</div></div>';
     echo '</div></div>';
     echo $after_widget . '
     </div>
     </div>';
 }
开发者ID:nikitansk,项目名称:devschool,代码行数:52,代码来源:notes_discussions.php

示例8: __construct

 function __construct()
 {
     //require_once( plugin_dir_path( __FILE__ ) .'shortcodes.php' );
     define('VIBE_TINYMCE_URI', VIBE_PLUGIN_URL . '/vibe-shortcodes/tinymce');
     if (function_exists('vibe_get_option')) {
         $this->create_course = vibe_get_option('create_course');
         if (!empty($this->create_course)) {
             add_action('wp_enqueue_scripts', array($this, 'shortcodes_front_end'));
         }
     }
     add_action('init', array($this, 'init'));
     add_action('admin_enqueue_scripts', array($this, 'admin_icons'), 10, 1);
     add_action('admin_enqueue_scripts', array($this, 'admin_init'), 10, 1);
     add_action('wp_enqueue_scripts', array($this, 'frontend'));
 }
开发者ID:nikitansk,项目名称:devschool,代码行数:15,代码来源:vibeshortcodes.class.php

示例9: wplms_front_end_enqueue_scripts

function wplms_front_end_enqueue_scripts()
{
    if (function_exists('vibe_get_option')) {
        $edit_course = vibe_get_option('create_course');
        if (is_numeric($edit_course) && is_page($edit_course)) {
            wp_enqueue_media($edit_course);
        }
    }
    wp_enqueue_style('liveedit-css', plugins_url('css/jquery-liveedit.css', __FILE__));
    wp_enqueue_style('wplms-front-end-css', plugins_url('css/wplms_front_end.css', __FILE__));
    wp_enqueue_script('liveedit-js', plugins_url('js/jquery-liveedit.js', __FILE__));
    wp_enqueue_script('wplms-front-end-js', plugins_url('js/wplms_front_end.js', __FILE__), array('jquery-ui-core', 'jquery-ui-sortable', 'jquery-ui-slider', 'jquery-ui-datepicker'));
    $translation_array = array('course_title' => __('Please change the course title', 'wplms-front-end'), 'create_course_confirm' => __('This will create a new course in the site, do you want to continue ?', 'wplms-front-end'), 'create_course_confirm_button' => __('Yes, create a new course', 'wplms-front-end'), 'save_course_confirm' => __('Are you sure you want to save and continue ?', 'wplms-front-end'), 'save_course_confirm_button' => __('Save course', 'wplms-front-end'), 'create_unit_confirm' => __('This will create a new unit in the site, do you want to continue ?', 'wplms-front-end'), 'create_unit_confirm_button' => __('Yes, create a new unit', 'wplms-front-end'), 'save_unit_confirm' => __('This will overwrite the existing unit settings, do you want to continue ?', 'wplms-front-end'), 'save_unit_confirm_button' => __('Yes, save unit settings', 'wplms-front-end'), 'create_question_confirm' => __('This will create a new question in the site, do you want to continue ?', 'wplms-front-end'), 'create_question_confirm_button' => __('Yes, create a new question', 'wplms-front-end'), 'create_quiz_confirm' => __('This will create a new quiz in the site, do you want to continue ?', 'wplms-front-end'), 'create_quiz_confirm_button' => __('Yes, create a new quiz', 'wplms-front-end'), 'save_quiz_confirm' => __('This will overwrite the existing quiz settings, do you want to continue ?', 'wplms-front-end'), 'save_quiz_confirm_button' => __('Yes, save quiz settings', 'wplms-front-end'), 'delete_confirm' => __('This will delete the unit/quiz from your site, do you want to continue ?', 'wplms-front-end'), 'delete_confirm_button' => __('Continue', 'wplms-front-end'), 'save_confirm' => __('This will overwrite the previous settings, do you want to continue ?', 'wplms-front-end'), 'save_confirm_button' => __('Save', 'wplms-front-end'), 'create_assignment_confirm' => __('This will create a new assignment in the site, do you want to continue ?', 'wplms-front-end'), 'create_assignment_confirm_button' => __('Yes, create a new assignment', 'wplms-front-end'), 'course_offline' => __('Are you sure you want to take course offline, this will remove the course from course directory and it will not be visible to your students', 'wplms-front-end'), 'delete_course_confirm' => __('Are you sure you want to delete this course ?', 'wplms-front-end'), 'delete_button' => __('DELETE COURSE', 'wplms-front-end'));
    wp_localize_script('wplms-front-end-js', 'wplms_front_end_messages', $translation_array);
}
开发者ID:emiisor1,项目名称:mm1,代码行数:15,代码来源:wplms-front-end.php

示例10: wplms_front_end_enqueue_scripts

function wplms_front_end_enqueue_scripts()
{
    if (function_exists('vibe_get_option')) {
        $edit_course = vibe_get_option('create_course');
        if (function_exists('icl_object_id')) {
            $edit_course = icl_object_id($edit_course, 'page', true);
        }
        if (is_numeric($edit_course) && is_page($edit_course)) {
            //adhoc fix
        } else {
            global $wp_query;
            if (!isset($_GET['edit']) && !isset($wp_query->query_vars['edit']) || !current_user_can('edit_posts')) {
                return;
            }
        }
    }
    wplms_front_end_loadscripts();
}
开发者ID:nikitansk,项目名称:devschool,代码行数:18,代码来源:wplms-front-end.php

示例11: vibe_sell_content

 function vibe_sell_content($atts, $content = null)
 {
     extract(shortcode_atts(array('product_id' => ''), $atts));
     if (is_user_logged_in() && is_numeric($product_id)) {
         $user_id = get_current_user_id();
         $check = wc_customer_bought_product('', $user_id, $product_id);
         if ($check) {
             echo apply_filters('the_content', $content);
         } else {
             $product = get_product($product_id);
             if (is_object($product)) {
                 $link = get_permalink($product_id);
                 $check = vibe_get_option('direct_checkout');
                 if (isset($check) && $check) {
                     $link .= '?redirect';
                 }
                 $price_html = str_replace('class="amount"', 'class="amount" itemprop="price"', $product->get_price_html());
                 echo '<div class="message info">' . sprintf(__('You do not have access to this content. <a href="%s" class="button"> Puchase </a> content for %s', 'vibe-shortcodes'), $link, $price_html) . '</div>';
             } else {
                 echo '<div class="message info">' . __('You do not have access to this content', 'vibe-shortcodes') . '</div>';
             }
         }
     } else {
         $product = get_product($product_id);
         if (is_object($product)) {
             $link = get_permalink($product_id);
             $check = vibe_get_option('direct_checkout');
             if (isset($check) && $check) {
                 $link .= '?redirect';
             }
             $price_html = $product->get_price_html();
             echo '<div class="message info">' . sprintf(__('You do not have access to this content. <a href="%s" class="button"> Puchase </a> content for %s', 'vibe-shortcodes'), $link, $price_html) . '</div>';
         } else {
             echo '<div class="message info">' . __('You do not have access to this content', 'vibe-shortcodes') . '</div>';
         }
     }
     return $return;
 }
开发者ID:akshayxhtmljunkies,项目名称:brownglock,代码行数:38,代码来源:shortcodes.php

示例12: wplms_coauthor_plus_instructor

 function wplms_coauthor_plus_instructor($instructor, $id)
 {
     if (function_exists('get_coauthors')) {
         $coauthors = get_coauthors($id);
         $instructor = '';
         foreach ($coauthors as $k => $inst) {
             $instructor_id = $inst->ID;
             $displayname = bp_core_get_user_displayname($instructor_id);
             if (function_exists('vibe_get_option')) {
                 $field = vibe_get_option('instructor_field');
             }
             $special = '';
             if (bp_is_active('xprofile')) {
                 $special = bp_get_profile_field_data('field=' . $field . '&user_id=' . $instructor_id);
             }
             $r = array('item_id' => $instructor_id, 'object' => 'user');
             $instructor .= '<div class="instructor_course"><div class="item-avatar">' . bp_core_fetch_avatar($r) . '</div>';
             $instructor .= '<h5 class="course_instructor"><a href="' . bp_core_get_user_domain($instructor_id) . '">' . $displayname . '<span>' . $special . '</span></a></h5>';
             $instructor .= apply_filters('wplms_instructor_meta', '', $instructor_id);
             $instructor .= '</div>';
         }
     }
     return $instructor;
 }
开发者ID:nikitansk,项目名称:devschool,代码行数:24,代码来源:wplms-coauthor-plus.php

示例13: vibe_get_option

<?php

if (function_exists('vibe_get_option')) {
    $loop_number = vibe_get_option('loop_number');
}
if (!isset($loop_number) || !is_numeric($loop_number)) {
    $loop_number = 5;
}
$appended = '&per_page=' . $loop_number;
if (bp_group_has_members(bp_ajax_querystring('group_members') . $appended)) {
    ?>

	<?php 
    do_action('bp_before_group_members_content');
    ?>

	<div id="pag-top" class="pagination no-ajax">

		<div class="pag-count" id="member-count-top">

			<?php 
    bp_members_pagination_count();
    ?>

		</div>

		<div class="pagination-links" id="member-pag-top">

			<?php 
    bp_members_pagination_links();
    ?>
开发者ID:Juni4567,项目名称:meritscholarship,代码行数:31,代码来源:members.php

示例14: _e

echo $students;
?>
</span></h4>
<h3><?php 
_e('Students Currently taking this course', 'vibe');
?>
</h3>
<?php 
$students_undertaking = bp_course_get_students_undertaking();
//vibe_sanitize(get_post_meta(get_the_ID(),'vibe_students_undertaking',false));
if (count($students_undertaking) > 0) {
    echo '<ul class="course_students">';
    foreach ($students_undertaking as $student) {
        if (function_exists('bp_get_profile_field_data')) {
            $bp_name = bp_core_get_userlink($student);
            $sfield = vibe_get_option('student_field');
            if (!isset($sfield) || $sfield == '') {
                $sfield = 'Location';
            }
            $bp_location = '';
            if (bp_is_active('xprofile')) {
                $bp_location = bp_get_profile_field_data('field=' . $sfield . '&user_id=' . $student);
            }
            if ($bp_name) {
                echo '<li>';
                echo get_avatar($student);
                echo '<h6>' . $bp_name . '</h6>';
                if ($bp_location) {
                    echo '<span>' . $bp_location . '</span>';
                }
                echo '</li>';
开发者ID:akshayxhtmljunkies,项目名称:brownglock,代码行数:31,代码来源:members.php

示例15: bp_core_get_user_domain

</div>
						<h5 class="course_instructor">
						<a href="<?php 
            echo bp_core_get_user_domain($instructor_id);
            ?>
"><?php 
            echo $displayname;
            ?>
<span><?php 
            echo $special;
            ?>
</span></a>
						</h5>
						<?php 
            echo apply_filters('wplms_instructor_meta', '', $instructor_id);
            $instructor_about = vibe_get_option('instructor_about');
            if (bp_is_active('xprofile')) {
                $data = apply_filters('the_content', bp_get_profile_field_data('field=' . $instructor_about . '&user_id=' . $instructor_id));
                echo '<div class="instructor_more">' . $data . '<a class="more_description link" data-default="' . __('Show Less', 'wplms_modern') . '">' . __('Show More', 'wplms_modern') . '</a></div>';
            }
            ?>
					</div>
						<?php 
        }
        the_course_details();
        ?>
				</div>
				<div class="students_undertaking">
					<?php 
        $students_undertaking = $vibe->get_students_undertaking(array('number' => 9));
        $students = get_post_meta(get_the_ID(), 'vibe_students', true);
开发者ID:nikitansk,项目名称:devschool,代码行数:31,代码来源:single-course.php


注:本文中的vibe_get_option函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。