Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $view = new view;
- $view->name = 'Mobile_faq_page';
- $view->description = 'Mobile FAQ view each section';
- $view->tag = '';
- $view->view_php = '';
- $view->base_table = 'node';
- $view->is_cacheable = FALSE;
- $view->api_version = 2;
- $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
- $handler = $view->new_display('default', 'Defaults', 'default');
- $handler->override_option('fields', array(
- 'field_question_value' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'link_to_node' => 0,
- 'label_type' => 'none',
- 'format' => 'default',
- 'multiple' => array(
- 'group' => TRUE,
- 'multiple_number' => '',
- 'multiple_from' => '',
- 'multiple_reversed' => FALSE,
- ),
- 'exclude' => 1,
- 'id' => 'field_question_value',
- 'table' => 'node_data_field_question',
- 'field' => 'field_question_value',
- 'relationship' => 'none',
- 'override' => array(
- 'button' => 'Override',
- ),
- ),
- 'body' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'exclude' => 1,
- 'id' => 'body',
- 'table' => 'node_revisions',
- 'field' => 'body',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'phpcode' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'value' => '<?php $node = node_load($data->nid);
- if ($_GET[\'print\'] == TRUE):
- // Create one for print friendly. (Note: legend tag occured word wrap issue.)
- ?>
- <div class="section">
- <h2><?php echo $node->title; ?></h2>
- <p><?php echo $node->body; ?></p>
- </div>
- <?php
- else:
- ?>
- <fieldset class="collapsible collapsed">
- <legend> <?php echo $node->title; ?> </legend>
- <div> <?php echo $node->body; ?></div>
- </fieldset>
- <?
- endif;',
- 'exclude' => 0,
- 'id' => 'phpcode',
- 'table' => 'customfield',
- 'field' => 'phpcode',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'edit_node' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'text' => 'Edit this faq',
- 'exclude' => 0,
- 'id' => 'edit_node',
- 'table' => 'node',
- 'field' => 'edit_node',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('arguments', array(
- 'nid' => array(
- 'default_action' => 'ignore',
- 'style_plugin' => 'default_summary',
- 'style_options' => array(),
- 'wildcard' => 'all',
- 'wildcard_substitution' => 'All',
- 'title' => '',
- 'breadcrumb' => '',
- 'default_argument_type' => 'fixed',
- 'default_argument' => '',
- 'validate_type' => 'none',
- 'validate_fail' => 'not found',
- 'break_phrase' => 0,
- 'not' => 0,
- 'id' => 'nid',
- 'table' => 'node',
- 'field' => 'nid',
- 'validate_user_argument_type' => 'uid',
- 'validate_user_roles' => array(
- '2' => 0,
- '3' => 0,
- ),
- 'relationship' => 'none',
- 'default_options_div_prefix' => '',
- 'default_argument_fixed' => '',
- 'default_argument_user' => 0,
- 'default_argument_php' => '',
- 'validate_argument_node_type' => array(
- 'article' => 0,
- 'current_situation' => 0,
- 'faq' => 0,
- 'investment' => 0,
- 'overview' => 0,
- 'page' => 0,
- 'related_links' => 0,
- 'section_quote' => 0,
- 'slide_culturesociety' => 0,
- 'slide_economy' => 0,
- 'slide_global_citizen' => 0,
- 'slide_monarchy' => 0,
- 'slide_politics' => 0,
- 'story' => 0,
- 'video' => 0,
- ),
- 'validate_argument_node_access' => 0,
- 'validate_argument_nid_type' => 'nid',
- 'validate_argument_vocabulary' => array(
- '4' => 0,
- '1' => 0,
- '5' => 0,
- ),
- 'validate_argument_type' => 'tid',
- 'validate_argument_transform' => 0,
- 'validate_user_restrict_roles' => 0,
- 'validate_argument_php' => '',
- 'override' => array(
- 'button' => 'Override',
- ),
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'none',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'FAQ');
- $handler->override_option('css_class', 'faq-page-section');
- $handler->override_option('header', 'xxxc');
- $handler->override_option('header_format', '2');
- $handler->override_option('header_empty', 1);
- $handler->override_option('footer', '<div class="box">
- <div class="box-inner">
- <div class="box-content">
- <span class="print_html"><?php print l("Print this page", \'print/\' . $_GET[\'q\'], array(\'attributes\' => array(\'rel\' => \'nofollow\', \'onclick\' => \'window.open(this.href); return false\', \'class\' => \'print-page\', \'title\' => \'Display a printer-friendly version of this page.\'))); ?></span>
- </div>
- </div>
- </div>');
- $handler->override_option('footer_format', '3');
- $handler->override_option('footer_empty', 0);
- $handler->override_option('items_per_page', 0);
- $handler->override_option('style_plugin', 'list');
- $handler->override_option('style_options', array(
- 'grouping' => '',
- 'type' => 'ol',
- ));
- $handler = $view->new_display('page', 'Mobile_FAQ-Page', 'page_1');
- $handler->override_option('filters', array(
- 'type' => array(
- 'operator' => 'in',
- 'value' => array(
- 'faq' => 'faq',
- ),
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'type',
- 'table' => 'node',
- 'field' => 'type',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'status_extra' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'status_extra',
- 'table' => 'node',
- 'field' => 'status_extra',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('css_class', 'faq-page-all faq-page-section');
- $handler->override_option('path', 'faq');
- $handler->override_option('menu', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler = $view->new_display('page', 'Mobile_FAQ-monarchy-Page', 'page_2');
- $handler->override_option('fields', array(
- 'field_question_value' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'link_to_node' => 0,
- 'label_type' => 'none',
- 'format' => 'default',
- 'multiple' => array(
- 'group' => TRUE,
- 'multiple_number' => '',
- 'multiple_from' => '',
- 'multiple_reversed' => FALSE,
- ),
- 'exclude' => 1,
- 'id' => 'field_question_value',
- 'table' => 'node_data_field_question',
- 'field' => 'field_question_value',
- 'relationship' => 'none',
- 'override' => array(
- 'button' => 'Use default',
- ),
- ),
- 'body' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'exclude' => 0,
- 'id' => 'body',
- 'table' => 'node_revisions',
- 'field' => 'body',
- 'override' => array(
- 'button' => 'Use default',
- ),
- 'relationship' => 'none',
- ),
- 'phpcode' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => 'xx<fieldset class="collapsible collapsed">
- <legend>[field_question_value]</legend>
- <div>[body]</div>
- </fieldset>
- yy
- <h1>[field_question_value]</h1>',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'value' => '<?php $node = node_load($data->nid);
- if ($_GET[\'print\'] == TRUE):
- // Create one for print friendly. (Note: legend tag occured word wrap issue.)
- ?>
- <div class="section">
- <h2><?php echo $node->title; ?></h2>
- <p><?php echo $node->body; ?></p>
- </div>
- <?php
- else:
- ?>
- <fieldset class="collapsible collapsed">
- <legend> <?php echo $node->title; ?> </legend>
- <div> <?php echo $node->body; ?></div>
- </fieldset>
- <?
- endif;',
- 'exclude' => 1,
- 'id' => 'phpcode',
- 'table' => 'customfield',
- 'field' => 'phpcode',
- 'override' => array(
- 'button' => 'Use default',
- ),
- 'relationship' => 'none',
- ),
- 'edit_node' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'text' => 'Edit this faq',
- 'exclude' => 0,
- 'id' => 'edit_node',
- 'table' => 'node',
- 'field' => 'edit_node',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('path', 'm/monarchy/faq/%');
- $handler->override_option('menu', array(
- 'type' => 'normal',
- 'title' => 'FAQ',
- 'description' => '',
- 'weight' => '0',
- 'name' => 'primary-links',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler = $view->new_display('page', 'FAQ-politics-Page', 'page_3');
- $handler->override_option('filters', array(
- 'type' => array(
- 'operator' => 'in',
- 'value' => array(
- 'faq' => 'faq',
- ),
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'type',
- 'table' => 'node',
- 'field' => 'type',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'status_extra' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'status_extra',
- 'table' => 'node',
- 'field' => 'status_extra',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'tid' => array(
- 'operator' => 'or',
- 'value' => array(
- '2' => '2',
- ),
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'type' => 'select',
- 'limit' => TRUE,
- 'vid' => '1',
- 'id' => 'tid',
- 'table' => 'term_node',
- 'field' => 'tid',
- 'hierarchy' => 0,
- 'override' => array(
- 'button' => 'Use default',
- ),
- 'relationship' => 'none',
- 'reduce_duplicates' => 0,
- ),
- ));
- $handler->override_option('path', 'politics/faq/%');
- $handler->override_option('menu', array(
- 'type' => 'normal',
- 'title' => 'FAQ',
- 'description' => '',
- 'weight' => '0',
- 'name' => 'primary-links',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler = $view->new_display('page', 'FAQ-economy-Page', 'page_4');
- $handler->override_option('filters', array(
- 'type' => array(
- 'operator' => 'in',
- 'value' => array(
- 'faq' => 'faq',
- ),
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'type',
- 'table' => 'node',
- 'field' => 'type',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'status_extra' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'status_extra',
- 'table' => 'node',
- 'field' => 'status_extra',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'tid' => array(
- 'operator' => 'or',
- 'value' => array(
- '3' => '3',
- ),
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'type' => 'select',
- 'limit' => TRUE,
- 'vid' => '1',
- 'id' => 'tid',
- 'table' => 'term_node',
- 'field' => 'tid',
- 'hierarchy' => 0,
- 'override' => array(
- 'button' => 'Use default',
- ),
- 'relationship' => 'none',
- 'reduce_duplicates' => 0,
- ),
- ));
- $handler->override_option('path', 'economy/faq/%');
- $handler->override_option('menu', array(
- 'type' => 'normal',
- 'title' => 'FAQ',
- 'description' => '',
- 'weight' => '0',
- 'name' => 'primary-links',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler = $view->new_display('page', 'FAQ-culture_society-Page', 'page_5');
- $handler->override_option('filters', array(
- 'type' => array(
- 'operator' => 'in',
- 'value' => array(
- 'faq' => 'faq',
- ),
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'type',
- 'table' => 'node',
- 'field' => 'type',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'status_extra' => array(
- 'operator' => '=',
- 'value' => '',
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'status_extra',
- 'table' => 'node',
- 'field' => 'status_extra',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'tid' => array(
- 'operator' => 'or',
- 'value' => array(
- '4' => '4',
- ),
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'type' => 'select',
- 'limit' => TRUE,
- 'vid' => '1',
- 'id' => 'tid',
- 'table' => 'term_node',
- 'field' => 'tid',
- 'hierarchy' => 0,
- 'override' => array(
- 'button' => 'Use default',
- ),
- 'relationship' => 'none',
- 'reduce_duplicates' => 0,
- ),
- ));
- $handler->override_option('path', 'culture-and-society/faq/%');
- $handler->override_option('menu', array(
- 'type' => 'normal',
- 'title' => 'FAQ',
- 'description' => '',
- 'weight' => '0',
- 'name' => 'primary-links',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler = $view->new_display('page', 'FAQ-global_citizen-Page', 'page_6');
- $handler->override_option('path', 'global-citizen/faq/%');
- $handler->override_option('menu', array(
- 'type' => 'normal',
- 'title' => 'FAQ',
- 'description' => '',
- 'weight' => '0',
- 'name' => 'primary-links',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
Add Comment
Please, Sign In to add comment