Skip to content

Instantly share code, notes, and snippets.

@jsalinas
Created July 12, 2018 03:29
Show Gist options
  • Save jsalinas/1ab1a9d6191179916508e0a6aaebf9a2 to your computer and use it in GitHub Desktop.
Save jsalinas/1ab1a9d6191179916508e0a6aaebf9a2 to your computer and use it in GitHub Desktop.
$view = new view();
$view->name = 'qrk_staff';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Staff';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '0';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['style_plugin'] = 'views_column_class';
$handler->display->display_options['style_options']['row_class'] = 'grid-5';
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
$handler->display->display_options['style_options']['columns'] = '3';
$handler->display->display_options['style_options']['class'] = 'clearfix';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
/* Field: Content: Staff Photo */
$handler->display->display_options['fields']['field_staff_photo']['id'] = 'field_staff_photo';
$handler->display->display_options['fields']['field_staff_photo']['table'] = 'field_data_field_staff_photo';
$handler->display->display_options['fields']['field_staff_photo']['field'] = 'field_staff_photo';
$handler->display->display_options['fields']['field_staff_photo']['label'] = '';
$handler->display->display_options['fields']['field_staff_photo']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_staff_photo']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_staff_photo']['element_wrapper_class'] = 'option-image-wrapper';
$handler->display->display_options['fields']['field_staff_photo']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_staff_photo']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_staff_photo']['settings'] = array(
'image_style' => 'qrk_fpsc_300x200',
'image_link' => 'content',
);
$handler->display->display_options['fields']['field_staff_photo']['field_api_classes'] = TRUE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_type'] = 'h3';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: Job title */
$handler->display->display_options['fields']['field_job_title']['id'] = 'field_job_title';
$handler->display->display_options['fields']['field_job_title']['table'] = 'field_data_field_job_title';
$handler->display->display_options['fields']['field_job_title']['field'] = 'field_job_title';
$handler->display->display_options['fields']['field_job_title']['label'] = '';
$handler->display->display_options['fields']['field_job_title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_job_title']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_job_title']['field_api_classes'] = TRUE;
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = '';
$handler->display->display_options['fields']['body']['exclude'] = TRUE;
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['body']['type'] = 'text_trimmed';
$handler->display->display_options['fields']['body']['settings'] = array(
'trim_length' => '150',
);
$handler->display->display_options['fields']['body']['field_api_classes'] = TRUE;
/* Field: Content: Phone Number Extension */
$handler->display->display_options['fields']['field_phone_number_extension']['id'] = 'field_phone_number_extension';
$handler->display->display_options['fields']['field_phone_number_extension']['table'] = 'field_data_field_phone_number_extension';
$handler->display->display_options['fields']['field_phone_number_extension']['field'] = 'field_phone_number_extension';
$handler->display->display_options['fields']['field_phone_number_extension']['label'] = '';
$handler->display->display_options['fields']['field_phone_number_extension']['element_type'] = '0';
$handler->display->display_options['fields']['field_phone_number_extension']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_phone_number_extension']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['field_phone_number_extension']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_phone_number_extension']['field_api_classes'] = TRUE;
/* Field: Field: Phone Number */
$handler->display->display_options['fields']['field_phone_number']['id'] = 'field_phone_number';
$handler->display->display_options['fields']['field_phone_number']['table'] = 'field_data_field_phone_number';
$handler->display->display_options['fields']['field_phone_number']['field'] = 'field_phone_number';
$handler->display->display_options['fields']['field_phone_number']['label'] = '';
$handler->display->display_options['fields']['field_phone_number']['element_type'] = '0';
$handler->display->display_options['fields']['field_phone_number']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_phone_number']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['field_phone_number']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_phone_number']['field_api_classes'] = TRUE;
/* Sort criterion: Field: Last Name (field_last_name) */
$handler->display->display_options['sorts']['field_last_name_value']['id'] = 'field_last_name_value';
$handler->display->display_options['sorts']['field_last_name_value']['table'] = 'field_data_field_last_name';
$handler->display->display_options['sorts']['field_last_name_value']['field'] = 'field_last_name_value';
/* Sort criterion: Field: First Name (field_first_name) */
$handler->display->display_options['sorts']['field_first_name_value']['id'] = 'field_first_name_value';
$handler->display->display_options['sorts']['field_first_name_value']['table'] = 'field_data_field_first_name';
$handler->display->display_options['sorts']['field_first_name_value']['field'] = 'field_first_name_value';
/* Contextual filter: Content: Has taxonomy term ID */
$handler->display->display_options['arguments']['tid']['id'] = 'tid';
$handler->display->display_options['arguments']['tid']['table'] = 'taxonomy_index';
$handler->display->display_options['arguments']['tid']['field'] = 'tid';
$handler->display->display_options['arguments']['tid']['default_action'] = 'default';
$handler->display->display_options['arguments']['tid']['default_argument_type'] = 'taxonomy_tid';
$handler->display->display_options['arguments']['tid']['default_argument_options']['term_page'] = FALSE;
$handler->display->display_options['arguments']['tid']['default_argument_options']['node'] = TRUE;
$handler->display->display_options['arguments']['tid']['default_argument_options']['anyall'] = '+';
$handler->display->display_options['arguments']['tid']['default_argument_options']['limit'] = TRUE;
$handler->display->display_options['arguments']['tid']['default_argument_options']['vocabularies'] = array(
'staff_roles' => 'staff_roles',
);
$handler->display->display_options['arguments']['tid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['tid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['tid']['summary_options']['items_per_page'] = '25';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'staff_member' => 'staff_member',
);
/* Display: Sales Agents Pane */
$handler = $view->new_display('panel_pane', 'Sales Agents Pane', 'sales_agents_by_staff_pane');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['style_options']['row_class'] = ' col-md-4';
$handler->display->display_options['style_options']['class'] = 'row list-unstyled';
$handler->display->display_options['style_options']['wrapper_class'] = '';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Staff Photo */
$handler->display->display_options['fields']['field_staff_photo']['id'] = 'field_staff_photo';
$handler->display->display_options['fields']['field_staff_photo']['table'] = 'field_data_field_staff_photo';
$handler->display->display_options['fields']['field_staff_photo']['field'] = 'field_staff_photo';
$handler->display->display_options['fields']['field_staff_photo']['label'] = '';
$handler->display->display_options['fields']['field_staff_photo']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_staff_photo']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_staff_photo']['element_wrapper_class'] = 'option-image-wrapper';
$handler->display->display_options['fields']['field_staff_photo']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_staff_photo']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_staff_photo']['settings'] = array(
'image_style' => 'qrk_fpsc_300x200',
'image_link' => 'content',
);
$handler->display->display_options['fields']['field_staff_photo']['field_api_classes'] = TRUE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_type'] = 'h3';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: Job title */
$handler->display->display_options['fields']['field_job_title']['id'] = 'field_job_title';
$handler->display->display_options['fields']['field_job_title']['table'] = 'field_data_field_job_title';
$handler->display->display_options['fields']['field_job_title']['field'] = 'field_job_title';
$handler->display->display_options['fields']['field_job_title']['label'] = '';
$handler->display->display_options['fields']['field_job_title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_job_title']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_job_title']['field_api_classes'] = TRUE;
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = '';
$handler->display->display_options['fields']['body']['exclude'] = TRUE;
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['body']['type'] = 'text_trimmed';
$handler->display->display_options['fields']['body']['settings'] = array(
'trim_length' => '150',
);
$handler->display->display_options['fields']['body']['field_api_classes'] = TRUE;
/* Field: Field: Email Address */
$handler->display->display_options['fields']['field_email_address']['id'] = 'field_email_address';
$handler->display->display_options['fields']['field_email_address']['table'] = 'field_data_field_email_address';
$handler->display->display_options['fields']['field_email_address']['field'] = 'field_email_address';
$handler->display->display_options['fields']['field_email_address']['label'] = '';
$handler->display->display_options['fields']['field_email_address']['element_type'] = 'div';
$handler->display->display_options['fields']['field_email_address']['element_class'] = 'email-link';
$handler->display->display_options['fields']['field_email_address']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_email_address']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_email_address']['element_default_classes'] = FALSE;
/* Field: Field: Phone Number */
$handler->display->display_options['fields']['field_phone_number']['id'] = 'field_phone_number';
$handler->display->display_options['fields']['field_phone_number']['table'] = 'field_data_field_phone_number';
$handler->display->display_options['fields']['field_phone_number']['field'] = 'field_phone_number';
$handler->display->display_options['fields']['field_phone_number']['label'] = 'Tel';
$handler->display->display_options['fields']['field_phone_number']['element_type'] = '0';
$handler->display->display_options['fields']['field_phone_number']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['field_phone_number']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_phone_number']['hide_empty'] = TRUE;
$handler->display->display_options['fields']['field_phone_number']['field_api_classes'] = TRUE;
/* Field: Content: Phone Number Extension */
$handler->display->display_options['fields']['field_phone_number_extension']['id'] = 'field_phone_number_extension';
$handler->display->display_options['fields']['field_phone_number_extension']['table'] = 'field_data_field_phone_number_extension';
$handler->display->display_options['fields']['field_phone_number_extension']['field'] = 'field_phone_number_extension';
$handler->display->display_options['fields']['field_phone_number_extension']['label'] = 'ext.';
$handler->display->display_options['fields']['field_phone_number_extension']['element_type'] = '0';
$handler->display->display_options['fields']['field_phone_number_extension']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_phone_number_extension']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['field_phone_number_extension']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_phone_number_extension']['hide_empty'] = TRUE;
$handler->display->display_options['fields']['field_phone_number_extension']['field_api_classes'] = TRUE;
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Content: Has taxonomy term ID */
$handler->display->display_options['arguments']['tid']['id'] = 'tid';
$handler->display->display_options['arguments']['tid']['table'] = 'taxonomy_index';
$handler->display->display_options['arguments']['tid']['field'] = 'tid';
$handler->display->display_options['arguments']['tid']['default_action'] = 'default';
$handler->display->display_options['arguments']['tid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['tid']['default_argument_options']['argument'] = '107';
$handler->display->display_options['arguments']['tid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['tid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['tid']['summary_options']['items_per_page'] = '25';
$translatables['qrk_staff'] = array(
t('Master'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('Items per page'),
t('- All -'),
t('Offset'),
t('« first'),
t('‹ previous'),
t('next ›'),
t('last »'),
t('All'),
t('Sales Agents Pane'),
t('Tel'),
t('ext.'),
t('View panes'),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment