drupal_add_css(path_to_theme() . '/css/newstyle.css'); // This replaces the /style.css file, because referenced gif files are easier to put here drupal_add_css(path_to_theme() . '/css/sectionpage.css'); drupal_add_css(path_to_theme() . '/css/group.css'); drupal_add_css(path_to_theme() . '/css/social.css'); drupal_add_js(path_to_theme() . '/js/navigation.js'); //drupal_add_js(path_to_theme() . '/js/table.js'); drupal_add_js(path_to_theme() . '/js/jquery.history_remote.pack.js'); drupal_add_js(path_to_theme() . '/js/jquery.tabs.js'); drupal_add_js(path_to_theme() . '/js/jquery.tabs.min.js'); drupal_add_js(path_to_theme() . '/js/jquery.tabs.pack.js'); drupal_add_js(path_to_theme() . '/js/jquery.corner.js'); //drupal_add_js(path_to_theme() . "/js/blocks/views_filterblock-2.js"); function jc_regions() { return array( 'left' => t('left sidebar'), 'right' => t('right sidebar'), 'topright' => t('right top sidebar'), 'center' => t('center sidebar'), 'navbar' => t('navigation bar'), 'content_bottom' => t('content bottom'), 'pre_header' => t('pre header'), 'header' => t('header'), 'footer' => t('footer'), 'closure_region' => t('closure'), 'center_content_right' => t('content right'), 'first_tab' => t('Newest blogs'), 'second_tab' => t('Most active'), 'image_ads' => t('Gallery Ads'), 'leaderboard' => t('Leaderboard'), 'skyscraper' => t('Skyscraper'), 'simchah_IMU_region' => t('Simchah IMU Region') ); } /** * Sets the body-tag class attribute. * * Adds 'sidebar-left', 'sidebar-right' or 'sidebars' classes as needed. */ function phptemplate_body_class($sidebar_left, $sidebar_right, $content) { if ($sidebar_left != '' && $sidebar_right != '') { $class = 'sidebars'; } else { if ($sidebar_left != '') { $class = 'sidebar-left'; } if ($sidebar_right != '' || $first_tab != '' || $second_tab != '' || $image_ads != '') { $class = 'sidebar-right'; } } if ($sidebar_left == '' && $sidebar_right == '') { $class = 'main'; } if (arg(0) == 'admin' && arg(1) == 'build') { $class .= ' administration'; } if (isset($class)) { print $class; } } /** * Intercept template variables * * @param $hook * The name of the theme function being executed (name of the .tpl.php file) * @param $vars * A copy of the array containing the variables for the hook. * @return * The array containing additional variables to merge with $vars. */ function _phptemplate_variables($hook, $vars = array()) { // Get the currently logged in user global $user; $information = '

PAYING SUBSCRIBERS & ARCHIVE SUBSCRIBERS PLEASE NOTE:' .'


We have two levels of log-ins. The above log-in relates ONLY to' .' free access to TheJC.com, available to anyone who registers, for posting' .' comments and user content.

Premium subscribers, who have paid' .' for access to the whole site including the JC archive, will have been' .' issued with a separate and unique log-in.

To log in as a paid subscriber,' .' please click here. To' .' register as a paid subscriber, please ' .'click here. For help, please ' .'click here.

'; // Set a new $is_admin variable. This is determined by looking at the // currently logged in user and seeing if they are in the role 'admin'. The // 'admin' role will need to have been created manually for this to work this // variable is available to all templates. $vars['is_admin'] = in_array('admin', $user->roles); switch ($hook) { case 'page': global $theme, $theme_key; // Add page template suggestions based on node type, if we aren't editing the node. if ($vars['node'] && arg(2) != 'edit') { $vars['template_files'][] = 'page-'. $vars['node']->type; } // If we're in the main theme if ($theme == $theme_key) { // Avoid IE5 bug that always loads @import print stylesheets $vars['head'] = jc_add_print_css($vars['directory'] .'/print.css'); } break; case 'node': $node_type = !empty($vars['node']->type) ? $vars['node']->type : ''; if ($node_type && empty($vars['node']->teaser) && is_readable(path_to_theme() . "/css/node/$node_type.css")) { drupal_add_css(path_to_theme() . "/css/node/$node_type.css"); } /* Auto include any CSS files specific to this template/path name */ if (is_readable(path_to_theme() . '/css/' . drupal_get_path_alias($_GET['q']) . '.css')) { drupal_add_css(path_to_theme() . '/css/'. drupal_get_path_alias($_GET['q']) . '.css'); } elseif (! empty($vars['language'])) { $fallback = preg_replace("/{$vars['language']}\//", '', drupal_get_path_alias($_GET['q'])); if (is_readable(path_to_theme() . "/css/$fallback.css")) { drupal_add_css(path_to_theme() . "/css/$fallback.css"); } } /** * Add page template suggestions based on the aliased path. * For instance, if the current page has an alias of about/history/early, * we'll have templates of: * page-about-history-early.tpl.php * page-about-history.tpl.php * page-about.tpl.php * Whichever is found first is the one that will be used. */ if (module_exists('path')) { $alias = drupal_get_path_alias($_GET['q']); if ($alias != $_GET['q']) { $suggestions = array(); $template_filename = 'pages/page'; foreach (explode('/', $alias) as $path_part) { $template_filename = $template_filename . '-' . $path_part; $suggestions[] = $template_filename; } } $vars['template_files'] = $suggestions; } if ($vars['node']->type == 'story') { $vars['center_content_right'] = theme('blocks', 'center_content_right'); } if ($vars['node']->type == 'user_gallery' || $vars['node']->type == 'user_image' || $vars['node']->type == 'editorial_gallery' || $vars['node']->type == 'image_gallery') { // drupal_add_js(path_to_theme() . '/js/gallery.js'); drupal_add_css(path_to_theme() . '/css/gallery.css'); } if ($vars['page'] /* the equivolent of $page in node.tpl.php */ != 0) { $vars['skyscraper']= theme_blocks('skyscraper'); } break; case 'block' : global $user; $block_type = $vars['block']->module; $block_delta = $vars['block']->delta; if (is_readable(path_to_theme() . "/js/blocks/$block_type-$block_delta.js")) { drupal_add_js(path_to_theme() . "/js/blocks/$block_type-$block_delta.js"); } $vars['theme_url_path'] = base_path() . path_to_theme(); return $vars; break; } switch (drupal_get_path_alias($_GET['q'])) { case (preg_match('/user/', drupal_get_path_alias($_GET['q'])) ? TRUE : FALSE): case (preg_match('/users/', drupal_get_path_alias($_GET['q'])) ? TRUE : FALSE): drupal_add_css(path_to_theme() . '/css/profile.css'); break; } if (drupal_get_path_alias($_GET['q']) == 'user' || drupal_get_path_alias($_GET['q']) == 'user/login') { $vars['info'] = $information; } return $vars; } /** * Adds a print stylesheet to the page's $head variable. * * This is a work-around for a serious bug in IE5 in which it loads print * stylesheets for screen display when using an @import method, Drupal's default * method when using drupal_add_css(). * * @param string $url * The URL of the print stylesheet * @return * All the rendered links for the $head variable */ function jc_add_print_css($url) { global $base_path; return drupal_set_html_head( ' 'stylesheet', 'href' => $base_path . $url, 'type' => 'text/css', 'media' => 'print', ) ) ." />\n" ); } function phptemplate_views_view_list_user_find_me($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['facebook'] = $node->profile_facebook_value; $vars['lastfm'] = $node->profile_lastfm_value; $vars['myspace'] = $node->profile_myspace_value; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-user_find_me', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_my_buddylist($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-my_buddylist', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_links_my_profile($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-links_my_profile', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_all_groups($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-all_groups', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_og_ghp_ron($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-og_ghp_ron', $vars); } if ($items) { return theme('item_list', $items); } } /** * Display a view. * If there is only one node and one empty field, we use empty text */ function phptemplate_views_view($view, $type, $nodes, $level = NULL, $args = NULL) { $num_nodes = count($nodes); $fields = _views_get_fields(); $empty = true; foreach ($nodes as $node) { foreach ($view->field as $field) { $value = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if ((!empty($value)) && ($value != 'n/a')) { $empty = false; break; } } } if ($empty) { $num_nodes = 0; } // $value = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if ($type == 'page') { drupal_set_title(filter_xss_admin(views_get_title($view, 'page'))); views_set_breadcrumb($view); } if ($num_nodes) { $output .= views_get_textarea($view, $type, 'header'); } if ($type != 'block' && $view->exposed_filter) { $output .= views_theme('views_display_filters', $view); } $plugins = _views_get_style_plugins(); $view_type = ($type == 'block') ? $view->block_type : $view->page_type; if ($num_nodes || $plugins[$view_type]['even_empty']) { if ($level !== NULL) { $output .= "
name) ."'>". views_theme($plugins[$view_type]['summary_theme'], $view, $type, $level, $nodes, $args) . '
'; } else { $output .= "
name) ."'>". views_theme($plugins[$view_type]['theme'], $view, $nodes, $type) . '
'; } $output .= views_get_textarea($view, $type, 'footer'); if ($type == 'block' && $view->block_more && $num_nodes >= $view->nodes_per_block) { $output .= theme('views_more', $view->real_url); } } else { $use_page = "block_use_page_empty"; $var = ($type != 'block' || $view->$use_page ? 'page_' : 'block_') .'empty'; $format = $var . '_format'; if ($view->$var && check_markup($view->$var, $view->$format, false)) { $output .= views_get_textarea($view, $type, 'empty'); } } if ($view->use_pager) { $output .= theme('pager', '', $view->pager_limit, $view->use_pager - 1); } if ($output) { $output = "
name) ."'>$output
\n"; } return $output; } /** * Display the nodes of a view as a list. */ function phptemplate_views_view_list_my_profile_picture($view, $nodes, $type) { $fields = _views_get_fields(); foreach ($nodes as $node) { $item = ''; foreach ($view->field as $field) { if (!isset($fields[$field['id']]['visible']) && $fields[$field['id']]['visible'] !== FALSE) { if ($field['label']) { $item .= "
" . $field['label'] . "
"; } $value = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (empty($value) && ($field['fullname'] == 'usernode_users.picture')) { $value = views_get_textarea($view, 'block', 'empty'); } $item .= "
" . $value . "
"; } } $items[] = "
name) ."'>$item
\n"; // l($node->title, "node/$node->nid"); } if ($items) { return theme('item_list', $items); } } /** * Allow themable wrapping of all comments. */ function phptemplate_comment_wrapper($content, $type = null) { static $node_type; if (isset($type)) $node_type = $type; if (!$content || $node_type == 'forum' || arg(0) == 'user' || arg(0) == 'users') { return '
'. $content . '
'; } else { return '

'. t('Comments') .'

'. $content .'
'; } } /** * views template to output a view. * This code was generated by the views theming wizard * Date: Mon, 07/07/2008 - 09:06 * View: new_groups_latest * * This function goes in your template.php file */ function phptemplate_views_view_list_new_groups_latest($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-new_groups_latest', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_latest_staff_blogs($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); $user_blog = array(); $users_count = 0; foreach ($nodes as $i => $node) { if (!in_array($node->users_uid, $user_blog) && $users_count < 10) { $users_count++; $user_blog[] = $node->users_uid; $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['users_count'] = $users_count + 1; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-latest_staff_blogs', $vars); } } if ($items) { return theme('item_list', $items); } } /*This is the LAtest User Blogs */ function phptemplate_views_view_list_latest_user_blogs($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); $user_blog = array(); $users_count = 0; foreach ($nodes as $i => $node) { if (!in_array($node->users_uid, $user_blog)) { $users_count++; $user_blog[] = $node->users_uid; $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['users_count'] = $users_count + 1; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-latest_user_blogs', $vars); } } if ($items) { return theme('item_list', $items); } } /** * Return information about autor node * * @param unknown_type $nid * @return unknown */ function author_info($uid) { $about_user = user_load(array('uid'=>$uid)); $output = '
'. $about_user->name. '
'; $output .= '
'; /*foreach ($about_user->roles as $value) { if (!empty($roles)) { $roles .= ','; } if ($value != 'authenticated user' && $value != 'anonymous user') { $roles .= ' '. $value; } } if ($roles != '') { $output .= '
'. $about_user->name .' is the JC\'s'. $roles .'.
'; }*/ $result = db_query('SELECT fid FROM {profile_fields} WHERE name = "%s"', 'profile_job_title'); $db_fid = db_fetch_object($result); $fid = $db_fid->fid; $db_job_title = db_query('SELECT value FROM {profile_values} WHERE uid = %d AND fid = %d', $about_user->uid, $fid); $job_title = db_fetch_array($db_job_title); if (isset($job_title['value']) && $job_title['value'] != '') { $job = $job_title['value']; } if (trim($job) != '' && in_array('reporter', $GLOBALS['user']->roles) && in_array('reporter', $about_user->roles)) { $output .= '
'. /*$about_user->name .' is the JC\'s '.*/ $job .'
'; } //$output .= '
'. $job .'
'; return $output; } /** * views template to output a view. * This code was generated by the views theming wizard * Date: Wed, 07/16/2008 - 07:55 * View: new_groups */ function phptemplate_views_view_list_new_groups($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-popular_groups_new', $vars); } if ($items) { return theme('item_list', $items); } } /** * views template to output a view. * This code was generated by the views theming wizard * Date: Wed, 07/16/2008 - 09:35 * View: popular_groups * * This function goes in your template.php file */ function phptemplate_views_view_list_popular_groups($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); $members_count_sort = array(); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $members_count_sort[$i]['value'] = (int)$vars['count']; $members_count_sort[$i]['list'] = _phptemplate_callback('views/views-list-popular_groups_new', $vars); //$items[] = _phptemplate_callback('views/views-list-popular_groups_new', $vars); } rsort($members_count_sort); reset($members_count_sort); foreach ($members_count_sort as $key => $value) { $items[] = $value['list']; } if ($items) { return theme('item_list', $items); } } /** * views template to output a view. * This code was generated by the views theming wizard * Date: Thu, 07/17/2008 - 07:55 * View: my_group */ function phptemplate_views_view_list_my_group($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-popular_groups_new', $vars); } if ($items) { return theme('item_list', $items); } } /** * views template to output a view. * This code was generated by the views theming wizard * Date: Sun, 07/27/2008 - 19:14 * View: all_simchas * * This function goes in your template.php file */ function phptemplate_views_view_list_all_simchas($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { if ($field['queryname'] == 'node_data_field_image_field_image_fid') { $field['handler'] = 'simchach_field_handler_group'; } $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $real_node = node_load($node->nid); $vars['body'] = $real_node->body; $items[] = _phptemplate_callback('views/views-list-all_simchas', $vars); } if ($items) { return theme('item_list', $items); } } /** * Determined only one image on the view properties */ function simchach_field_handler_group($field_info, $field_data, $value, $data) { $field = $field_info['content_field']; $items = array(); if ($field['multiple']) { foreach ($field_info['content_db_info']['columns'] as $column => $attributes) { $query_columns[] = "node_data_{$field['field_name']}.{$attributes['column']} AS {$column}"; } $query = "SELECT ". implode(', ', $query_columns) ." FROM {node} node" ." LEFT JOIN {{$field_info['content_db_info']['table']}} node_data_{$field['field_name']}" ." ON node.vid = node_data_{$field['field_name']}.vid" ." WHERE node.nid = {$data->nid}" ." ORDER BY node_data_{$field['field_name']}.delta LIMIT 1"; $result = db_query(db_rewrite_sql($query, 'node')); while ($item = db_fetch_array($result)) { $items[] = content_format($field, $item, $field_data['options'], $data); } return theme('content_view_multiple_field', $items, $field, $data); } else { return content_views_field_handler_ungroup($field_info, $field_data, $value, $data); } } function phptemplate_views_view_list_most_active_groups($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); $post_count_sort = array(); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $post_count_sort[$i]['value'] = (int)$vars['post_count']; $post_count_sort[$i]['list'] = _phptemplate_callback('views/views-list-popular_groups_new', $vars); //$items[$i] = _phptemplate_callback('views/views-list-most_active_groups', $vars); } rsort($post_count_sort); reset($post_count_sort); foreach ($post_count_sort as $key => $value) { $items[] = $value['list']; } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_my_friends_comments($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-my_friends_comments', $vars); } if ($items) { return theme('item_list', $items); } } /** * Implementation of theme_username() * Provides profile_full_name instead of username if it was supplied by the user */ function phptemplate_username($object) { if ($object->uid && $object->name) { $author = user_load(array('uid' => $object->uid)); if ($author->profile_real_name) { $name = $author->profile_real_name; } else { $name = $object->name; } /* Shorten the name when it is too long or it will break many tables. */ if (drupal_strlen($name) > 20) { $name = drupal_substr($name, 0, 15) .'...'; } if (user_access('access user profiles')) { $output = l($name, 'user/'. $object->uid, array('title' => t('View user profile.'))); } else { $output = check_plain($name); } } else if ($object->name) { /** * Sometimes modules display content composed by people who are * not registered members of the site (e.g. mailing list or news * aggregator modules). This clause enables modules to display * the TRUE author of the content. */ if ($object->homepage) { $output = l($object->name, $object->homepage); } else { $output = check_plain($object->name); } $output .= ' ('. t('not verified') .')'; } else { $output = variable_get('anonymous', t('Anonymous')); } return $output; } function phptemplate_item_list($items = array(), $title = NULL, $type = 'ul', $attributes = NULL) { $output = '
'; if (isset($title)) { $output .= '

'. $title .'

'; } if (!empty($items)) { $output .= "<$type". drupal_attributes($attributes) .'>'; $num_items = count($items); foreach ($items as $i => $item) { $attributes = array(); $children = array(); if (is_array($item)) { foreach ($item as $key => $value) { if ($key == 'data') { $data = $value; } elseif ($key == 'children') { $children = $value; } else { $attributes[$key] = $value; } } } else { $data = $item; } if (count($children) > 0) { $data .= theme_item_list($children, NULL, $type, $attributes); // Render nested list } if ($i == 0) { $attributes['class'] = empty($attributes['class']) ? 'first' : ($attributes['class'] .' first'); } if ($i == $num_items - 1) { $attributes['class'] = empty($attributes['class']) ? 'last' : ($attributes['class'] .' last'); } $output .= ''. $data ."\n"; } $output .= ""; } $output .= '
'; return $output; } function phptemplate_views_view_list_user_information($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-user_information', $vars); } if ($items) { return theme('item_list', $items); } } /** * views template to output a view. * This code was generated by the views theming wizard * Date: Tue, 07/29/2008 - 08:11 * View: og_my */ function phptemplate_views_view_list_og_my($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Group our nodes $set = array(); foreach ($nodes as $node) { $set[$node->node_data_field_groups_image_field_groups_image_fid][] = $node; } // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); $output = ''; foreach ($set as $label => $nodes) { $items = array(); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-og_my', $vars); } if ($items) { $output .= theme('item_list', $items); } } return $output. '
'; } function phptemplate_views_filterblock_output($form) { /* Counter for fieldsets & filters (they should have the same index) */ $i = 0; if ($form['#view_name'] == 'find_user') { if (isset($_GET['user_search'])) { $user_search = $_GET['user_search']; } else { $user_search = 'realname'; } $checked_username = $checked_realname = $checked_email = ''; switch($user_search) { case 'username' : $checked_username = 'checked="checked"'; break; case 'realname' : $checked_realname = 'checked="checked"'; break; case 'email' : $checked_email = 'checked="checked"'; break; } $form['fieldset0']['#prefix'] = ''; /* '
' // . ''. $form['fieldset0']['#title'] . ''. $form['fieldset0']['#title'] . ''. $form['fieldset1']['#title'] . '
';*/ foreach ($form as $key => $children) { if (preg_match('/^fieldset/', $key)) { /* Each fieldset should be regular, uncollapsed */ $form[$key]['#collapsed'] = false; $form[$key]['#collapsible'] = false; $form[$key]['#attributes'] = array("id" => "views-filterblock-$key"); if ($form[$key]['filter' . $i]['#type'] == 'select' && isset($form[$key]['filter' . $i]['#options']['**ALL**'])) { /* Alter "all" labels for select inputs */ $form[$key]['filter' . $i]['#options']['**ALL**'] = t('All') . ' ' . $form[$key]['#title']; } } if (isset($form[$key]['#title'])) { switch($form[$key]['#title']) { case 'or search by username': $form[$key]['filter' . $i]['#size'] = '30'; $form[$key]['filter' . $i]['#type'] = 'textfield'; /*if ($user_search != 'username') { $form[$key]['#attributes']['style'] = 'display: none;'; }*/ break; case 'Search by real name': /*if ($user_search != 'realname') { $form[$key]['#attributes']['style'] = 'display: none;'; }*/ $form[$key]['filter' . $i]['#size'] = '30'; break; case 'Email': /*if ($user_search != 'email') { $form[$key]['#attributes']['style'] = 'display: none;'; }*/ $form[$key]['filter' . $i]['#size'] = '30'; break; } } ++$i; } $form['submit']['#value'] = "Start search"; } foreach ($form as $key => $children) { if (preg_match('/^fieldset/', $key)) { /* Each fieldset should be regular, uncollapsed */ $form[$key]['#collapsed'] = false; $form[$key]['#collapsible'] = false; } /* Reconfigure certain form items */ if (isset($form[$key]['#title'])) { if (($form['#view_name'] == 'latest_staff_blogs') && (isset($form[$key]['filter' . $i]['#type']))) { $query = ''; $args = ''; $url = $form['view']['#value']->url; $k = 0; if (!empty($form[$key]['filter' . $i]['#options'])) foreach ($form[$key]['filter' . $i]['#options'] as $values) { if (!isset($values->option)) { continue; } foreach ($values->option as $vkey => $value) { if (($_GET['filter'. $i] == $vkey) || (($form[$key]['filter' . $i]['#default_value'][$i] == $vkey))) { $class = ' active'; } else { $class = ' leaf'; } if ($k == 0) { $class_li = ' first'; } else { $class_li = ''; } $categories['#value'] .= '
  • '. $value. '
  • '; } $k++; } $categories['#value'] .= ''; $form[$key]['filter' . $i] = $categories; $form[$key]['#title'] = ''; $node_blog = db_query("SELECT MIN(created) as min, MAX(created) as max FROM {node} WHERE type = '%s'", 'blog'); if ($item = db_fetch_array($node_blog)) { /* Create a lists of months for the current year, in which some news entry exists */ $min_year = format_date($item['min'], 'custom', 'Y'); $max_year = format_date($item['max'], 'custom', 'Y'); $arg = arg($form['view']['#value']->argument[1]['argdefault']); if (empty($arg)) { $this_year = date("Y"); } else { $this_year = intval(substr($arg, 0 ,4)); } if (is_numeric(arg(1))) { $real_user = user_load(array('uid' => arg(1))); } else { $real_user = user_load(array('name' => arg(1))); } $month = array( '#prefix' => '
    ', '#value' => '

    '. l(t('Archive'), 'users/'. $real_user->name) .'

    ', '#weight' => 1 ); $month_url = blogs_month_list($form['view']['#value'], $this_year, $min_year, $max_year, $real_user); $number = 0; foreach ($month_url as $arg => $title) { if ($number == 0) { $class_month = 'first'; } else { $class_month = 'leaf'; } $month['#value'] .= '
  • '. l($title, $url . '/'. $real_user->name .'/'. $arg).'
  • '; $number++; } $form[$key]['filter' . $i] = $categories; $form[$key]['month'] = $month; } unset($form['submit']); } ++$i; } } /*END foreach */ return drupal_render($form); } /** * A list of months for $this_year, in which blogs exists */ function blogs_month_list($view, $this_year, $min_year, $max_year, $user) { $month_list = array(); for ($year = $min_year; $year<=$max_year; ++$year) { for ($month =1; $month<=12; ++$month) { if ($month < 10) { $month_arg = $year .'0'. $month; } else { $month_arg = $year . $month; } $info = _views_get_query($view, array($user->name, $month_arg), array()); $total_items = db_result(db_query($info['countquery'], $info['args'])); if ($total_items > 0) { $month_list[$month_arg] = format_date(mktime(0, 0, 0, $month, 2, $year), 'custom', 'F Y'); } } } return $month_list; } function phptemplate_guestbook_form_entry_form($form) { $output = ''; $form['#type'] = 'fieldset'; $form['#title'] = t('Add guestbook entry'); $form['#collapsible'] = TRUE; $form['#collapsed'] = TRUE; $access = $form['access']['#value']; $display = $form['display']['#value']; $uid = $form['uid']['#value']; switch ($access) { case 'allowed': if ($display == 'link') { // output only a link to a page with the form $output .= '

    » '. l(t('Add guestbook entry'), "guestbook/$uid/form") .'

    '; } else { $output .= $display == 'page' ? '' : ''; $output .= drupal_render($form); } break; case 'own guestbook': $output .= ' '; break; case 'not logged in': $output .= ''; break; case 'not allowed': $output .= ''; break; } return $output; } /** * Guestbook */ function usernode_guestbook_box2($account) { $node = usernode_get_node($account); $output = ''; switch ($node->comment) { case COMMENT_NODE_READ_WRITE: // 2 //$output .= comment_form_box(array('nid' => $node->nid), NULL); case COMMENT_NODE_READ_ONLY: // 1 $output .= comment_render2($node); break; case COMMENT_NODE_DISABLED: // 0 default: $output .= t('@name\'s @guestbook is currently deactivated.', _usernode_guestbook_translations(check_plain($account->name))); } // Update the history table, stating that this user viewed the usernode. node_tag_new($node->nid); return $output; } function comment_render2($node, $cid = 0) { global $user; $output = ''; if (user_access('access comments')) { // Pre-process variables. $nid = $node->nid; if (empty($nid)) { $nid = 0; } $mode = _comment_get_display_setting('mode'); $order = _comment_get_display_setting('sort'); $comments_per_page = _comment_get_display_setting('comments_per_page'); if ($cid) { // Single comment view. $query = 'SELECT c.cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.picture, u.data, c.score, c.users, c.status FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d'; $query_args = array($cid); if (!user_access('administer comments')) { $query .= ' AND c.status = %d'; $query_args[] = COMMENT_PUBLISHED; } $result = db_query($query, $query_args); if ($comment = db_fetch_object($result)) { $comment->name = $comment->uid ? $comment->registered_name : $comment->name; $links = module_invoke_all('link', 'comment', $comment, 1); foreach (module_implements('link_alter') as $module) { $function = $module .'_link_alter'; $function($node, $links); } $output .= theme('comment_view', $comment, $links); } } else { // Multiple comment view $query_count = 'SELECT COUNT(*) FROM {comments} WHERE nid = %d'; $query = 'SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.picture, u.data, c.score, c.users, c.thread, c.status FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.nid = %d'; $query_args = array($nid); if (!user_access('administer comments')) { $query .= ' AND c.status = %d'; $query_count .= ' AND status = %d'; $query_args[] = COMMENT_PUBLISHED; } if ($order == COMMENT_ORDER_NEWEST_FIRST) { if ($mode == COMMENT_MODE_FLAT_COLLAPSED || $mode == COMMENT_MODE_FLAT_EXPANDED) { $query .= ' ORDER BY c.cid DESC'; } else { $query .= ' ORDER BY c.thread DESC'; } } else if ($order == COMMENT_ORDER_OLDEST_FIRST) { if ($mode == COMMENT_MODE_FLAT_COLLAPSED || $mode == COMMENT_MODE_FLAT_EXPANDED) { $query .= ' ORDER BY c.cid'; } else { /* ** See comment above. Analysis learns that this doesn't cost ** too much. It scales much much better than having the whole ** comment structure. */ $query .= ' ORDER BY SUBSTRING(c.thread, 1, (LENGTH(c.thread) - 1))'; } } // Start a form, for use with comment control. $result = pager_query($query, $comments_per_page, 0, $query_count, $query_args); if (db_num_rows($result) && (variable_get('comment_controls', COMMENT_CONTROLS_HIDDEN) == COMMENT_CONTROLS_ABOVE || variable_get('comment_controls', COMMENT_CONTROLS_HIDDEN) == COMMENT_CONTROLS_ABOVE_BELOW)) { $output .= drupal_get_form('comment_controls', $mode, $order, $comments_per_page); } $divs = 0; $last_depth = 0; drupal_add_css(drupal_get_path('module', 'comment') .'/comment.css'); while ($comment = db_fetch_object($result)) { $comment = drupal_unpack($comment); $comment->name = $comment->uid ? $comment->registered_name : $comment->name; $comment->depth = count(explode('.', $comment->thread)) - 1; if ($mode == COMMENT_MODE_THREADED_COLLAPSED || $mode == COMMENT_MODE_THREADED_EXPANDED) { if ($comment->depth > $last_depth) { $divs++; $output .= '
    '; $last_depth++; } else { while ($comment->depth < $last_depth) { $divs--; $output .= '
    '; $last_depth--; } } } if ($mode == COMMENT_MODE_FLAT_COLLAPSED) { $output .= theme('comment_flat_collapsed', $comment); } else if ($mode == COMMENT_MODE_FLAT_EXPANDED) { $output .= theme('comment_flat_expanded', $comment); } else if ($mode == COMMENT_MODE_THREADED_COLLAPSED) { $output .= theme('comment_thread_collapsed', $comment); } else if ($mode == COMMENT_MODE_THREADED_EXPANDED) { $output .= theme('comment_thread_expanded', $comment); } } for ($i = 0; $i < $divs; $i++) { $output .= ''; } $output .= theme('pager', NULL, $comments_per_page, 0); if (db_num_rows($result) && (variable_get('comment_controls', COMMENT_CONTROLS_HIDDEN) == COMMENT_CONTROLS_BELOW || variable_get('comment_controls', COMMENT_CONTROLS_HIDDEN) == COMMENT_CONTROLS_ABOVE_BELOW)) { $output .= drupal_get_form('comment_controls', $mode, $order, $comments_per_page); } } // If enabled, show new comment form if it's not already being displayed. $reply = arg(0) == 'comment' && arg(1) == 'reply'; if (user_access('post comments') && node_comment_mode($nid) == COMMENT_NODE_READ_WRITE && (variable_get('comment_form_location', COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_BELOW) && !$reply) { $user_profile = user_load(array('uid'=>arg(1))); $result = db_query('SELECT fid FROM {profile_fields} WHERE name = "%s"', 'profile_name'); $db_fid = db_fetch_object($result); $fid = $db_fid->fid; $db_name = db_query('SELECT value FROM {profile_values} WHERE uid = %d AND fid = %d', $user_profile->uid, $fid); $name = db_fetch_array($db_name); if (isset($name['value']) && $name['value'] != '') { $real_name = $name['value']; } else { $real_name = $user_profile->name; } if ($output == '') { $output = $real_name .' has no guest book entries.'; } $output .= comment_form_box(array('nid' => $nid), t('Write in '. $real_name .'\'s guestbook:')); } $output = theme('comment_wrapper', $output); } return $output; } function phptemplate_views_view_list_my_posts($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-my_posts', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_my_recent_post($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { if ($field['queryname'] == 'node_data_field_gallery_images_field_gallery_images_fid') { $field['handler'] = 'simchach_field_handler_group'; } if ($field['queryname'] == 'node_data_field_image_field_image_fid') { $field['handler'] = 'simchach_field_handler_group'; } $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-my_recent_post', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_user_buddylist($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-user_buddylist', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_group_info_user_description($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-group_info_user_description', $vars); } if ($items) { return theme('item_list', $items); } } /** * views template to output a view. * This code was generated by the views theming wizard * Date: Tue, 08/19/2008 - 11:59 * View: group_members * * This function goes in your template.php file */ function phptemplate_views_view_list_group_members($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-group_members', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_groupcategory($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-groupcategory', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_user_groups($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-user_groups', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_user_galleries($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { if ($field['queryname'] == 'node_data_field_gallery_images_field_gallery_images_fid') { $field['handler'] = 'simchach_field_handler_group'; } $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-user_galleries', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_judaism_sidrah($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_judaism_sidrah', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_judaism_words($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_judaism_words', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_judaism_problem($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_judaism_problem', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_judaism_features($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_judaism_features', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_travel_features($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_travel_features', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_business_features($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_business_features', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_business_moneymensch($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_business_moneymensch', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_comment_essay($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_comment_essay', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_comment_todays($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_comment_todays', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_news_people($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_news_people', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_news_diary($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_news_diary', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_lifestyle_health($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_lifestyle_health', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_lifestyle_howjewshis($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_lifestyle_howjewshis', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_news_ukreport($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_news_ukreport', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_home_travel1($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_home_travel1', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_lifestyle_recipe($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_lifestyle_recipe', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_community_news3($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_community_news3', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_gallery_simchah($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { if ($field['queryname'] == 'node_data_field_image_1_field_image_1_fid') { $field['handler'] = 'simchach_field_handler_group'; } $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $real_node = node_load($node->nid); $vars['body'] = $real_node->body; $items[] = _phptemplate_callback('views/views-list-gallery_simchah', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_user_extended_profile($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-user_extended_profile', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_buddy_received_requests($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-buddy_received_requests', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_group_image($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-group_image', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_latest_image_gallery_post($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { if ($field['queryname'] == 'node_data_field_gallery_images_field_gallery_images_fid') { $field['handler'] = 'simchach_field_handler_group'; } $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-latest_image_gallery_post', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_my_latest_post($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-my_latest_post', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_latest_simchas_events_post($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { if ($field['queryname'] == 'node_data_field_image_field_image_fid') { $field['handler'] = 'simchach_field_handler_group'; } $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views/views-list-latest_simchas_events_post', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_news_worldreport($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_news_worldreport', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_sport_caro($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_sport_caro', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_gallery_football($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_gallery_football', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_business_expert($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_business_expert', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_gallery_facesplaces($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_gallery_facesplaces', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_gallery_guestlist($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_gallery_guestlist', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_community_simchah($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_community_simchah', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_community_volunteer($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_community_volunteer', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_lifestyle_yada($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_lifestyle_yada', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_features($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_features', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_music2($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_music2', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_music1($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_music1', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_books1($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_books1', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_books2($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_books2', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_theatre1($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_theatre1', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_theatre2($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_theatre2', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_film1($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_film1', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_film2($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_film2', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_showbiz($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_showbiz', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_staffblogs($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_staffblogs', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_Video_All_test($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-Video_All_test', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_arts_interview($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_arts_interview', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_lifestyle_eating($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_lifestyle_eating', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_lifestyle_broiges($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_lifestyle_broiges', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_social_deaths($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_social_deaths', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_social_births($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_social_births', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_social_marriages($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_social_marriages', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_social_obits($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_social_obits', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_judaism_roll($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_judaism_roll', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_business_blog($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_business_blog', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_auto_sport_profile($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-auto_sport_profile', $vars); } if ($items) { return theme('item_list', $items); } } function phptemplate_views_view_list_nodequeue_3($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-nodequeue_3', $vars); } if ($items)