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
| /*-----------------------------------------------------------------------------------*/ | |
| /* Course Product | |
| /* | |
| /* USAGE : xx is course id | |
| /* [course_product id="xx" details="price"] | |
| /* [course_product id="xx" details="sku"] | |
| /* [course_product id="xx" details="sales"] | |
| /* [course_product id="xx" details="note"] | |
| /* Above shortcode can also be used on certificate pages and remove the id field: |
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
| ---------------------bp-course-functions.php | |
| global $post; | |
| $val=5839; | |
| $return ='<div class="course_details"> | |
| <ul>'; | |
| // $product_id = $post->ID; | |
| ?><div align=\"center\"><? $return .= do_shortcode('[product_sale id = "'.$val.'"]'); ?></div><? | |
| global $wp_query, $post; | |
| $post = get_post(5839); |
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
| <?php | |
| add_action( 'widgets_init', 'vibe_bp_widgets' ); | |
| function vibe_bp_widgets() { | |
| register_widget('vibe_bp_login'); | |
| register_widget('vibe_course_categories'); | |
| register_widget('vibecertificatecode'); | |
| } |
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
| $sql = array(); | |
| $total_sql = array(); | |
| $sql['select'] = "SELECT g.*, gm1.meta_value AS total_member_count, gm2.meta_value AS last_activity"; | |
| $sql['select'] = "SELECT DISTINCT g.id as not_used, g.*, gm1.meta_value AS total_member_count, gm2.meta_value AS last_activity"; | |
| $sql['from'] = " FROM {$bp->groups->table_name_groupmeta} gm1, {$bp->groups->table_name_groupmeta} gm2,"; | |
| if ( ! empty( $r['user_id'] ) ) { | |
| … … | |
| // See #5099 |
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
| <?php | |
| /*** | |
| * Deprecated Groups Functionality | |
| * | |
| * This file contains functions that are deprecated. | |
| * You should not under any circumstance use these functions as they are | |
| * either no longer valid, or have been replaced with something much more awesome. | |
| * | |
| * If you are using functions in this file you should slap the back of your head | |
| * and then use the functions or solutions that have replaced them. |
NewerOlder