protected function _test() { $customers = array(); foreach ($this->orders as $order) { $uid = $order['commerce_order']->uid; if (empty($customers[$uid])) { $customers[$uid] = array('orders' => 0, 'products' => 0, 'revenue' => 0); } $customers[$uid]['orders']++; foreach ($order['products'] as $product_id => $quantity) { $customers[$uid]['products'] += $quantity; $customers[$uid]['revenue'] += $quantity * $this->products[$product_id]->commerce_price[LANGUAGE_NONE][0]['amount']; } } $report = views_get_view_result('commerce_reports_customers', 'page'); $this->assertEqual(count($report), min(count($customers), 10), t('The amount of customers (%reported) that is reported (%generated) upon is correct.', array('%reported' => count($report), '%generated' => count($customers)))); foreach ($report as $line) { $uid = $line->uid; $orders = $line->commerce_order_users_order_id; $revenue = $line->commerce_order_users__field_data_commerce_order_total_commer; $average = $line->commerce_order_users__field_data_commerce_order_total_commer_2; $this->assertFalse(empty($customers[$uid]), t('The customer %uid that is reported upon exists.', array('%uid' => $uid))); if (!empty($customers[$uid])) { $this->assertEqual($customers[$uid]['orders'], $orders, t('The reported amount of orders %reported matches the generated amount of orders %generated.', array('%reported' => $orders, '%generated' => $customers[$uid]['orders']))); // $this->assertEqual($customers[$uid]['products'], $products, t('The reported amount of line items %reported matches the generated amount of line items %generated.', array('%reported' => $products, '%generated' => $customers[$uid]['products']))); $this->assertEqual($customers[$uid]['revenue'], $revenue, t('The reported revenue %reported matches the generated revenue %generated.', array('%reported' => $revenue, '%generated' => $customers[$uid]['revenue']))); } } }
protected function _test() { $sales = array(); foreach ($this->orders as $order) { $created = $order['commerce_order']->created; if (empty($sales[$created])) { $sales[$created] = array('orders' => 0, 'revenue' => 0); } $sales[$created]['orders']++; foreach ($order['products'] as $product_id => $quantity) { $sales[$created]['revenue'] += $quantity * $this->products[$product_id]->commerce_price[LANGUAGE_NONE][0]['amount']; } } $report = views_get_view_result('commerce_reports_sales', 'page'); foreach ($report as $line) { $created = $this->getOrderCreated($line); if (empty($sales[$created])) { $this->assertTrue(empty($line->order_id) && empty($line->commerce_order_total) && empty($line->commerce_order_total_1), t('There was no unintented activity.')); } else { $orders = $sales[$created]['orders']; $revenue = $sales[$created]['revenue']; $average = (int) floor($revenue / $orders); $this->assertEqual($line->order_id, $orders, t('The right amount of orders was reported.')); $this->assertEqual($line->field_data_commerce_order_total_commerce_order_total_amount, $revenue, t('The right amount of revenue was reported.')); $this->assertEqual((int) floor($line->field_data_commerce_order_total_commerce_order_total_amount_1), $average, t('The right average of revenue was reported.')); } } }
protected function _test() { $products = array(); foreach ($this->orders as $order) { foreach ($order['products'] as $product_id => $quantity) { $sku = $this->products[$product_id]->sku; if (empty($products[$sku])) { $products[$sku] = array('quantity' => 0, 'revenue' => 0); } $products[$sku]['quantity'] += $quantity; $products[$sku]['revenue'] += $quantity * $this->products[$product_id]->commerce_price[LANGUAGE_NONE][0]['amount']; } } $report = views_get_view_result('commerce_reports_products', 'default'); $this->assertEqual(count($report), min(count($products), 10), t('The amount of products (%reported) that is reported (%generated) upon is correct.', array('%reported' => count($report), '%generated' => count($products)))); foreach ($report as $line) { $sku = $line->commerce_product_field_data_commerce_product_sku; $quantity = $line->commerce_line_item_quantity; $revenue = $line->field_data_commerce_total_commerce_total_amount; $this->assertFalse(empty($products[$sku]), t('The product %sku that is reported upon exists.', array('%sku' => $sku))); if (!empty($products[$sku])) { $this->assertEqual($products[$sku]['quantity'], $quantity, t('The reported quantity %reported matches the generated quantity %generated.', array('%sku' => $sku, '%reported' => $quantity, '%generated' => $products[$sku]['quantity']))); $this->assertEqual($products[$sku]['revenue'], $revenue, t('The reported revenue %reported matches the generated revenue %generated.', array('%sku' => $sku, '%reported' => $revenue, '%generated' => $products[$sku]['revenue']))); } } }
/** * */ public function getNodequeueView($id) { $viewName = 'nodequeue_' . $id; $view = \views_get_view_result($viewName); $nodes = array(); foreach ($view as $node) { $nodes[] = $this->getNode($node->nid); } return $nodes; }
/** * */ public function getNodequeueView($id) { $viewName = 'nodequeue_' . $id; $view = \views_get_view_result($viewName); $nodes = array(); foreach ($view as $node) { $nodes[] = $this->getNode($node->nid); // error_log('node: '.print_r($node->nid, true)); } // print_r($nodes); return $nodes; // $node = node_load($rows->nid); // return \views_get_view($viewName); }
public function testExampleMethod() { $this->createOrders(10, TRUE); $transactions = 0; $revenue = 0; foreach ($this->orders as $order) { $transactions++; $revenue += $order['commerce_transaction']->amount; } $report = views_get_view_result('commerce_reports_payment_methods', 'default'); $this->assertEqual(count($report), 1, t('Exactly one payment method was reported upon.')); foreach ($report as $line) { $this->assertEqual($line->commerce_payment_transaction_payment_method, 'commerce_payment_example', t('The example payment method was used for this transaction.')); $this->assertEqual($line->transaction_id, $transactions, t('The right amount of transactions were reported.')); $this->assertEqual($line->commerce_payment_transaction_amount, $revenue, t('The right amount of revenue was reported.')); } }
protected function _test($data = array()) { foreach ($data as $display => $information) { $report = views_get_view_result('commerce_reports_sales_overview', $display); $line = reset($report); foreach ($information as &$metric) { if (empty($metric)) { $metric = NULL; } } if (empty($line->field_data_commerce_order_total_commerce_order_total_amount)) { $amount = 0; } else { $amount = $line->field_data_commerce_order_total_commerce_order_total_amount; } if (empty($line->order_id)) { $sales = NULL; } else { $sales = $line->order_id; } $this->assertEqual($information['count'], $sales, t('The expected amount of orders is equal to the derived amount of orders.')); $this->assertEqual($information['amount'], $amount, t('The expected total amount is equal to the derived total amount.')); } }
/** * Determine if user would have at least 1 submission returned from View. * * Depending on the View used the user might not have submission returned. * @param \Drupal\eform\Entity\EFormType $eform_type * * @return bool */ function userHasViewSubmissions(EFormType $eform_type) { if ($view_name = $eform_type->getUserView()) { $display_ids = $this->getViewDisplays($view_name); $display_id = array_shift($display_ids); $results = views_get_view_result($view_name, $display_id, $eform_type->type); return !empty($results); } return FALSE; }
* .view-dom-id-[dom_id] * - $classes: A string version of $classes_array for use in the class attribute * - $css_name: A css-safe version of the view name. * - $css_class: The user-specified classes names, if any * - $header: The view header * - $footer: The view footer * - $rows: The results of the view query, if any * - $empty: The empty text to display if the view is empty * - $pager: The pager next/prev links to display, if any * - $exposed: Exposed widget form/info to display * - $feed_icon: Feed icon to display, if any * - $more: A link to view more, if any * * @ingroup views_templates */ $view = views_get_view_result('featured_brewery_image'); //print_r($view); $title = $view['0']->_field_data['nid']['entity']->title; $body = $view['0']->_field_data['nid']['entity']->body['und']['0']['value']; $body_str = ""; $body = explode(' ', $body); $counter = 0; foreach ($body as $row) { $body_str = $body_str . ' ' . $row; if ($counter == 50) { break; } $counter++; } $body = $body_str . '...'; $address = $view['0']->_field_data['nid']['entity']->field_address['und']['0']['value'];
function devis_comptable_entityform_edit_form_validate($form, &$form_state) { $values = $form_state['values']; $legal_status = $values['field_legal_status'][$form['field_legal_status']['#language']][0]['value']; // Do not go forward if there are no providers to contact and is being accepted. $lang = $form['field_approval']['#language']; if ($values['field_approval'][$lang][0]['value'] == 'approved') { $lang = key($values['field_adresse']); $postal_code = $values['field_adresse'][$lang][0]['postal_code']; $regions = trois_devis_get_region_by_postal_code($postal_code) . '+BEL'; $result = views_get_view_result('provider', 'accountants_to_contact_new', $legal_status, $regions); if (empty($result)) { form_set_error('field_approval][' . $lang . '][0][value', t('This budget request cannot be approved yet. There are no providers to contact which match the specified parameters.')); } } // E-mail check. $lang = $form['field_email']['#language']; if (!valid_email_address($form_state['values']['field_email'][$lang][0]['email'])) { form_set_error('field_email][' . $lang . '][0][email', t('The specified email is not a valid email.')); } devis_field_phone_belgium_validate($form, $form_state); if ($legal_status == 'society' || $legal_status == 'independent') { devis_field_tva_validate($form, $form_state); } // Postal code validation. if (module_exists('postal_code_validation')) { $lang = $form['field_adresse']['#language']; $address = $values['field_adresse'][$lang][0]; $postal_code = $address['postal_code']; $country = $address['country']; $result = postal_code_validation_validate($postal_code, $country); if ($result['error']) { form_set_error('field_adresse][' . $lang . '][0][postal_code', $result['error']); } } $lang = $form['field_estimated_annual_revenue']['#language']; $value = $values['field_estimated_annual_revenue'][$lang][0]['value']; if (isset($value)) { $value = trim($value); } if ($values['field_annual_revenue'][$form['field_annual_revenue']['#language']][0]['value'] == 'nonexistent' && !$value) { $label = $form['field_estimated_annual_revenue'][$lang]['#title']; form_set_error('field_estimated_annual_revenue][' . $lang . '][0][value', t('Le champ !label est requis.', array('!label' => $label))); } $lang = $form['field_estimated_annual_invoice']['#language']; $value = $values['field_estimated_annual_invoice'][$lang][0]['value']; if (isset($value)) { $value = trim($value); } if ($values['field_annual_invoice'][$form['field_annual_invoice']['#language']][0]['value'] == 'nonexistent' && !$value) { $label = $form['field_estimated_annual_invoice'][$lang]['#title']; form_set_error('field_estimated_annual_invoice][' . $lang . '][0][value', t('Le champ !label est requis.', array('!label' => $label))); } $lang = $form['field_estimated_number_employees']['#language']; $value = $values['field_estimated_number_employees'][$lang][0]['value']; if (isset($value)) { $value = trim($value); } if ($values['field_number_employees'][$form['field_number_employees']['#language']][0]['value'] == 'nonexistent' && !$value) { $label = $form['field_estimated_number_employees'][$lang]['#title']; form_set_error('field_estimated_number_employees][' . $lang . '][0][value', t('Le champ !label est requis.', array('!label' => $label))); } // If it has accountant, make mandatory the dependee. $lang = $form['field_has_accountant']['#language']; if ($values['field_has_accountant'][$lang][0]['value']) { $lang = $form['field_change_accountant_reason']['#language']; $value = $values['field_change_accountant_reason'][$lang][0]['value']; if (!$value) { $label = $form['field_change_accountant_reason'][$lang]['#title']; form_set_error('field_change_accountant_reason][' . $lang . '][0][value', t('Le champ !label est requis.', array('!label' => $label))); } elseif ($value == 'other') { $lang = $form['field_change_accountant_other']['#language']; if (!trim($values['field_change_accountant_other'][$lang][0]['value'])) { $label = $form['field_change_accountant_other'][$lang]['#title']; form_set_error('field_change_accountant_other][' . $lang . '][0][value', t('Le champ !label est requis.', array('!label' => $label))); } } } $lang = $form['field_company_name']['#language']; $lang_tva = $form['field_tva']['#language']; $company = $values['field_company_name'][$lang][0]['value']; if (isset($company)) { $company = trim($company); } $tva = $values['field_tva'][$lang_tva][0]['value']; if (isset($tva)) { $tva = trim($tva); } $company_error = $tva_error = FALSE; $company_label = $form['field_company_name'][$lang]['#title']; $tva_label = $form['field_tva'][$lang_tva]['#title']; switch ($legal_status) { case 'association': if (!$company) { $company_label = 'Nom de votre association'; $company_error = TRUE; } /* It seems TVA for association is not mandatory. if (!$tva) { $tva_label = 'Numéro de TVA de votre association'; $tva_error = TRUE; }*/ if ($tva) { devis_field_tva_validate($form, $form_state); } break; case 'society': if (!$company) { $company_error = TRUE; } if (!$tva) { $tva_error = TRUE; } break; case 'independent': case 'independent_comp': if (!$tva) { $tva_error = TRUE; } break; } if ($company_error) { form_set_error('field_company_name][' . $lang . '][0][value', t('Le champ !label est requis.', array('!label' => $company_label))); } if ($tva_error) { form_set_error('field_tva][' . $lang_tva . '][0][value', t('Le champ !label est requis.', array('!label' => $tva_label))); } // If it's new, update the admin fields with the normal field values. if (isset($form_state['build_info']['args'][0]->is_new)) { $lang = $form['field_activity_admin']['#language']; $lang_act = $form['field_activity']['#language']; $new_value = array($lang => array(0 => array('value' => $values['field_activity'][$lang_act][0]['value']))); $value = array('#parents' => array('field_activity_admin')); form_set_value($value, $new_value, $form_state); $lang = $form['field_info_extra_admin']['#language']; $lang_act = $form['field_info_extra']['#language']; $new_value = array($lang => array(0 => array('value' => $values['field_info_extra'][$lang_act][0]['value']))); $value = array('#parents' => array('field_info_extra_admin')); form_set_value($value, $new_value, $form_state); } // If the form was submitted and there are errors, // scroll the browser to the messages box. // Add some variables to jQuery. $error = isset($_SESSION['messages']['error']) ? TRUE : FALSE; $data = array('submitted' => TRUE, 'error' => $error); drupal_add_js(array('form_info' => $data), 'setting'); }
</div> <?php } ?> <?php if ($attachment_before) { ?> <div class="attachment attachment-before"> <?php print $attachment_before; ?> </div> <?php } $result = views_get_view_result('Catalogs_Search'); if ($result) { print '<div id="big-catalog-panel" class="fRight">'; global $base_url; $this_page = $_GET['filter']; $search_title = 'Browse Datasets'; drupal_set_title('Datasets'); if (strlen(strstr($this_page, "catalog_type")) > 0) { drupal_set_title('Datasets'); if (strlen(strstr($this_page, "catalog_type_data_apps")) > 0) { drupal_set_title('Apps'); $search_title = 'Browse Apps'; } else { if (strstr($this_page, "catalog_type_raw_data")) { drupal_set_title('Raw Data'); $search_title = 'Browse Raw Data';
$contenidoArt = $view[0]->_field_data[nid][entity]; /*Imagen nutrición*/ $imagenNut = toArray($contenidoArt); $imagenNutricion = $imagenNut['field_image']['und'][0]; /*Link nutrición*/ $linkNutricion = $imagenNut['field_linkarticulo']['und'][0]['value']; //Campos vista salud $viewsalud = views_get_view_result('view_salud', 'default', array(arg(0))); $contenidoSalud = $viewsalud[0]->_field_data[nid][entity]; /*Imagen salud*/ $imagenSal = toArray($contenidoSalud); $imagenSalud = $imagenSal['field_image']['und'][0]; /*Link salud*/ $linkSalud = $imagenSal['field_linkarticulo']['und'][0]['value']; //Campos vista bienestar $viewbienestar = views_get_view_result('view_bienestar', 'default', array(arg(0))); $contenidoBienestar = $viewbienestar[0]->_field_data[nid][entity]; /*Imagen bienestar*/ $imagenBie = toArray($contenidoBienestar); $imagenBienestar = $imagenBie['field_image']['und'][0]; /*Link bienstar*/ $linkBienestar = $imagenBie['field_linkarticulo']['und'][0]['value']; ?> <div class="container-fluid u-no-border article-head"> <!--Titulo del artículo--> <?php if ($tipoContenido == 'Nutrición') { ?> <div class="row max-width titular titular-nutricion">
} ?> <?php if ($attachment_before) { ?> <div class="attachment attachment-before"> <?php print $attachment_before; ?> </div> <?php } ?> <?php $result = views_get_view_result('Catalogs_Search', 'page_1'); if ($result) { ?> </div><div id="big-catalog-panel" class="fRight"> <?php global $base_url; $this_page = $_GET['filter']; $search_title = 'Browse Datasets'; drupal_set_title('Datasets'); if (strlen(strstr($this_page, "catalog_type")) > 0) { drupal_set_title('Datasets'); if (strlen(strstr($this_page, "catalog_type_data_apps")) > 0) { drupal_set_title('Apps'); $search_title = 'Browse Apps'; } else { if (strstr($this_page, "catalog_type_raw_data")) {
<input name="optinform$Field5649560" id="optinform_Field5649560" type="text" placeholder="Last Name (required)" maxlength="68"> </div> <a href="#" class="candy_blue_button"><span> <input type="submit" id="optinform_btnSubscribe" name="optinform$btnSubscribe" class="form-submit" value="Subscribe" /></span></a> </form> </div> </div> </div> </div> <footer></footer> </article> <?php $results = array(); $view = views_get_view_result('featurednewsarticles'); foreach ($view as $key => $vnode) { $nid = $vnode->nid; $anode = node_load($nid); $results[$key] = $anode; } ?> <script type="text/javascript"> $(function() { var slides = [ <?php for ($slide = 0; $slide < 3; $slide++) { ?> { title: "<?php
$face_tw='<div style="margin-top:20px">'. '<h3>'.t('User Settings').'</h3>'.$fb_tw.'</div>'; print $face_tw; } ?> </div> </div> <div id="user-right-container"> <?php $block_1=views_embed_view('celebrity_rankings','block_1',$account->uid); $block_2=views_embed_view('celebrity_rankings','block_2',$account->uid); $block_3=views_embed_view('celebrity_rankings','block_3',$account->uid); $block_4=views_embed_view('celebrity_rankings','block_4',$account->uid); $block_5=views_get_view_result('celebrity_rankings','block_3',$account->uid); $block_6=views_get_view_result('celebrity_rankings','block_4',$account->uid); $validate_vote = views_get_view_result('validate_vote','block_1',$account->uid); if (count($validate_vote)<1): print t('<h1 style="font-size:25px;padding:21px 0 0 15px;">This user has revealed no Pulse</h1>'); else : ?> <h1 style="font-size:25px;padding:21px 0 0 15px;"><?php if(isset($account_profile->field_first_name[0]['value']) || isset($account_profile->field_last_name[0]['value'])) { print $account_profile->field_first_name[0]['value'].' '.$account_profile->field_last_name[0]['value']; } else { print $account->name; } ?><?php print t('\'s Celebrity Rankings')?></h1> <h3><?php print t('Most Liked / Least Liked')?></h3> <div id="user-top-liked-container1" class="user-ranking-container"> <div class="user-top-list"> <table style="table-layout: fixed;" width="100%"> <tr> <?php print $block_1 ?> </tr> <tr> <?php print $block_2 ?> </tr>
<?php $taxon = get_title_data(); global $user; global $base_url; global $base_path; $dataportal_base_url = theme_get_setting('vizz2_dataportal_base_url', 'vizz2'); $results = array(); $view = views_get_view_result('newsarticles'); foreach ($view as $key => $vnode) { $nid = $vnode->nid; $anode = node_load($nid); $results[$key] = $anode; // $results[$nid]['fields'] = field_attach_view('node', $anode,'full' ) ; // print render ( $result[$nid]->field_featured ) ; } // dpm($page); print $messages ; ?> <body class="search"> <header> <div id="top"> <div class="content"> <div class="account"> <?php if (!$logged_in) { ?> <a href="<?php print $base_url; ?> /user/login" title='Login'>Login</a> or <a href="<?php
<div id="sidebar-wrapper"> <img class="logo" src="/sites/default/files/red_dig_in_logo_with_asf-01.png"/> <nav> <?php $menu = menu_tree('menu-sidebar-menu-desktop'); $menuhtml = drupal_render($menu); print_r($menuhtml); ?> </nav> </div> <div id="page-content-wrapper"> <div class="front container-fluid"> <div class="row"> <div class="col-md-12 front-header panel-panel"> <?php $view = views_get_view_result('announcments', $display_id = 'announcment_block'); $result = count($view); if ($result) { ?> <div id="announcment"> <div class="alert alert-warning alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <?php echo views_embed_view('announcments', $display_id = 'announcment_block'); ?> </div> </div> <?php } ?>
function beats_preprocess_node_celebrity(&$vars) { global $user; $node = node_load(arg(1)); /* * Clelebrity Image */ if(is_array($node->taxonomy)) { foreach($node->taxonomy as $termID => $termData) { if($termData->vid == 1) { $category = $termData->name; } } } $CelebImageUrl = three_beats_celebrity_imagecache('189x245', $node); $vars['celebrity_image'] = "<img src='$CelebImageUrl' class='celeb_img' />"; /** * Chart */ $rating_data = _beats_get_rating_data($node, '2d'); $rating_chart = _beats_get_rating_chart($rating_data); $vars['chart'] = theme('beats_chart_theme', array( 'celebrity_node' => $node, 'rating_data' => $rating_data, 'rating_chart' => $rating_chart, )); /** * RSS Feed */ $url = $node->field_rss[0]['url']; $feeds = array(); if(!empty($url)) { $rss = simplexml_load_file($url); if ($rss->channel->item) { foreach ($rss->channel->item as $item) { $feeds[] = array( 'title' => $item->title, 'link' => $item->link, 'description' => strip_tags($item->description), ); break; } !empty($feeds[0]) ? $vars['feed'] = $feeds[0] : $vars['feed'] = NULL; } } /** * View Celebrity * @todo if anonymous user voting is allowed, than how do we achive it. IP Address? */ $view = views_get_view_result('celebrity', 'block_2', $user->id, arg(1)); if ($user->uid > 0 && is_array($view) && !count($view) > 0) { $vars['form_rating'] = theme('beats_rating_theme', array( 'form' => drupal_get_form('beats_form_rating'), )); } /** * Last User Comments */ if ($user->uid > 0 && is_array($view) && count($view) > 0) { $node = array_shift($view); $node = node_load($node->nid); $vars['form_vote_comment'] = $node->field_vote_comment[0]['value']; } /** * Celebrity User Comments */ $vars['celebrity_comments'] = views_embed_view('celebrity', 'block_3', arg(1)); /** * Celebrity Articles */ $vars['celebrity_articles'] = views_embed_view('article', 'block_2', arg(1)); /** * Similar Celebrities */ $similar_celebrities = array(); $celebrities_node = node_load(arg(1)); if (!empty($celebrities_node->field_related_celebrities) && is_array($celebrities_node->field_related_celebrities)) { foreach ($celebrities_node->field_related_celebrities as $value) { if (!array_key_exists($value['nid'], $similar_celebrities)) { $similar_celebrities[$value['nid']] = node_load($value['nid']); } } } $tmp = similarterms_list(2, arg(1)); if (!empty($tmp) && is_array($tmp)) { foreach ($tmp as $value) { if (!array_key_exists($value->nid, $similar_celebrities)) { $similar_celebrities[$value->nid] = $value; } } } $vars['similar_celebrities'] = $similar_celebrities; }
<div class="left"> <h2>Featured GBIF data use</h2> </div> <div class="right seeall"> See all <a href="<?php print $base_url; ?> /newsroom/uses">GBIF data use stories</a> </div> </div> <div class="inner"> <ul> <?php $results = array(); $view = views_get_view_result('usesofdatafeaturedarticles'); foreach ($view as $key => $vnode) { $nid = $vnode->nid; $anode = node_load($nid); $results[$key] = $anode; } ?> <?php for ($td = 0; $td < 3; $td++) { ?> <li class="<?php if (($td + 1) % 3 == 0) { echo 'last'; } ?> ">
<?php $taxon = get_title_data(); global $user; global $base_url; global $base_path; $dataportal_base_url = theme_get_setting('vizz2_dataportal_base_url', 'vizz2'); $results = array(); $view = views_get_view_result('viewallresources'); foreach ($view as $key => $vnode) { $nid = $vnode->nid; $anode = node_load($nid); $results[$key] = $anode; // $results[$nid]['fields'] = field_attach_view('node', $anode,'full' ) ; // print render ( $result[$nid]->field_featured ) ; } ?> <body class="news"> <header> <div id="top"> <div class="content"> <div class="account"> <?php if (!$logged_in) { ?> <a href="<?php print $base_url; ?> /user/login" title='Login'>Login</a> or <a href="<?php print $base_url;
<?php if ($node) { $tags = field_attach_view('node', $node, 'full'); } $taxon = get_title_data(); global $user; global $base_url; global $base_path; $dataportal_base_url = theme_get_setting('vizz2_dataportal_base_url', 'vizz2'); $results = array(); $view = views_get_view_result('viewallevents', 'page_1'); foreach ($view as $key => $vnode) { $nid = $vnode->nid; $anode = node_load($nid); $results[$key] = $anode; // $results[$nid]['fields'] = field_attach_view('node', $anode,'full' ) ; // print render ( $result[$nid]->field_featured ) ; } // dpm($page) ; //newsroom/events ?> <body class="search"> <header> <div id="top"> <div class="content"> <div class="account"> <?php if (!$logged_in) { ?> <a href="<?php
</div> <div class="row"> <div class="col-sm-12 col-md-12 col-lg-12"> <?php print render($content['body']); ?> </div> </div> <?php $view = views_get_view_result('more_like_this_kb', 'block'); $result = count($view); if ($result > 0) { ?> <div class="row"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="well well-lg kb-related"> <h3>More KB Articles Like This</h3> <?php print views_embed_view('more_like_this_kb', 'block', $node->nid); ?> </div> </div> </div>