Beispiel #1
0
 /**
  * Register user subscription page
  * @since 2.3
  */
 public function subscription_page()
 {
     global $questions;
     if (!ap_is_user_page_public('profile') && !ap_is_my_profile()) {
         ap_get_template_part('not-found');
         return;
     }
     $questions = ap_get_questions(array('ap_query' => 'ap_subscription_query', 'user_id' => get_current_user_id(), 'sortby' => 'newest'));
     ap_get_template_part('user/subscription');
 }
Beispiel #2
0
 /**
  * Output for profile page
  * @since 2.1
  */
 public function profile_page()
 {
     if (!ap_is_user_page_public('profile') && !ap_is_my_profile()) {
         ap_get_template_part('not-found');
         return;
     }
     include ap_get_theme_location('user/profile.php');
 }
Beispiel #3
0
 /**
  * Register user subscription page
  * @since 2.3
  */
 public function subscription_page()
 {
     if (!ap_is_user_page_public('profile') && !ap_is_my_profile()) {
         ap_get_template_part('not-found');
         return;
     }
     ap_get_questions(array('ap_query' => 'ap_subscription_query', 'user_id' => get_current_user_id(), 'sortby' => 'newest'));
     include ap_get_theme_location('user/subscription.php');
 }