* * Available variables: * * @var $account: The user account. * @var $subscriptions_html: The rendered subscriptions html. * @var $purchase_links: The purchase links for subscriptions, if the user has * permission to view them. */ ?> <?php global $user; $node = node_load(31); $article = entity_load('field_collection_item', array($node->field_elements['und'][1]['value'])); $banner_iamge = entity_load('field_collection_item', array($node->field_elements['und'][0]['value'])); $memberships = asfitness_load_memberships_for_user($user); ?> <ul class="bxslider"> <li class="slider-three"> <img src="<?php echo file_create_url($banner_iamge[465]->field_banner_images['und']['0']['uri']); ?> " alt="" /> <div class=""> <h2 class="">Welcome</h2> </div> </li> </ul> <?php
<?php include 'includes/header.tpl.php'; ?> <?php #dont cache this page (going to this page via Back button would show the "old" status of the days, thus no cache to fully reload it). drupal_add_http_header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', FALSE); ####### $month_strings = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); $main = $variables['page']['content']['system_main']['term_heading']['term']['field_calendar_items']; $lang = $main['#language']; global $user; $plan = $main['#object']; $membership = asfitness_load_memberships_for_user($user, $plan->field_plan_key['und'][0]['value']); $plan_banner = $plan->field_plan_banner[$lang][0]; $intro_header = $plan->field_plan_intro_header[$lang][0]['safe_value']; $intro_text = $plan->field_plan_intro[$lang][0]['safe_value']; $is_monthly_plan = is_monthly_plan($plan, $lang); #determine if the user has valid subscription for this plan; //$plan_mb_name = $plan->field_membersify_name[$lang][0]['safe_value']; //$mb_plan = load_sub_by_name($user->uid, $plan_mb_name); //$start_date_ts = intval($mb_plan['start_date']); //$start_month = date('n', $start_date_ts); //$next_payment_ts = intval($mb_plan['next_payment']); $current_ts = time(); ########## $fb_group_id = $plan->field_facebook_group_id[$lang][0]['safe_value']; $_SESSION['last_visited_plan'] = $plan->tid; $has_valid_sub = $membership->membership_state == 1;