PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
wyz-toolkit
/
classes
/
user-dashboard
/
templates
<div class="row-fluid"> <div class="span12"> <?php $wyz_sub_pay_woo_on_off = get_option('wyz_sub_pay_woo_on_off','off'); if ( 'off' == $wyz_sub_pay_woo_on_off ) { if ( function_exists('pmpro_hasMembershipLevel') && pmpro_hasMembershipLevel() && function_exists( 'pmpro_getOption' ) ) { echo '<div style="height: 50px;"><a style="float:right;" href="' . get_the_permalink( pmpro_getOption("account_page_id") ) . '" class="action-btn btn-bg-blue btn-rounded wyz-button wyz-primary-color wyz-prim-color">' . esc_html__( 'Manage Subscription', 'wyzi-business-finder' ) . '</a></div>'; } echo do_shortcode( '[memberlite_levels]'); } else { if( function_exists('pmpro_hasMembershipLevel') && pmpro_hasMembershipLevel() ) { global $current_user; echo '<div style="height: 50px;"><a style="float:right;" href="' . get_the_permalink( pmpro_getOption("account_page_id") ) . '" class="action-btn btn-bg-blue btn-rounded wyz-button wyz-primary-color wyz-prim-color">' . esc_html__( 'Manage Subscription', 'wyzi-business-finder' ) . '</a></div>'; $current_user->membership_level = pmpro_getMembershipLevelForUser($current_user->ID); WyzHelpers::wyz_info( sprintf( esc_html__( 'Your Membership Level: %s', 'wyzi-business-finder' ),$current_user->membership_level->name ) ); } else { echo WyzHelpers::wyz_info( sprintf( esc_html__( 'You don\'t have a subscription yet', 'wyzi-business-finder' ) ) ); } // lets get products Ids with memberships assigned to it global $wpdb; $product_ids = ''; $get_product_ids_with_membership = $wpdb->get_results( "SELECT post_id FROM ".$wpdb->prefix . "postmeta where meta_key ='_membership_product_level' and meta_value != 0"); foreach ($get_product_ids_with_membership as $key ) { $product_ids .= $key->post_id .','; } if (!empty($product_ids)) echo do_shortcode('[products ids="'.$product_ids.'"]'); } ?> </div> </div>
[+]
..
[-] offer-form.php
[edit]
[-] subscription.php
[edit]
[-] table-offers.php
[edit]
[-] favorite.php
[edit]
[-] appointments.php
[edit]
[-] offers.php
[edit]
[-] jobs.php
[edit]
[-] vendor-form.php
[edit]
[-] calendars.php
[edit]
[-] table-listings.php
[edit]
[-] inbox.php
[edit]
[-] table-jobs.php
[edit]
[-] job-form.php
[edit]
[-] profile.php
[edit]
[-] products.php
[edit]
[-] table-businesses.php
[edit]
[-] shop.php
[edit]
[-] landing.php
[edit]
[-] businesses.php
[edit]
[-] business-form.php
[edit]