name = 'blog_comments'; $view->description = 'Atrium > Blog comments'; $view->tag = 'atrium'; $view->base_table = 'comments'; $view->core = 0; $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('relationships', array( 'nid' => array( 'label' => 'Node', 'required' => 1, 'id' => 'nid', 'table' => 'comments', 'field' => 'nid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'name' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'comments', 'field' => 'name', 'relationship' => 'none', ), 'timestamp' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'date_format' => 'small', 'custom_date_format' => '', 'reldate' => 'reldate', 'exclude' => 0, 'id' => 'timestamp', 'table' => 'comments', 'field' => 'timestamp', 'relationship' => 'none', ), 'comment' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '150', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 1, 'html' => 0, ), 'truncate' => '0', 'exclude' => 0, 'id' => 'comment', 'table' => 'comments', 'field' => 'comment', 'relationship' => 'none', ), 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'nid', ), )); $handler->override_option('sorts', array( 'timestamp' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'timestamp', 'table' => 'comments', 'field' => 'timestamp', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'nid' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'nid', 'table' => 'node_access', 'field' => 'nid', 'relationship' => 'nid', ), 'current' => array( 'operator' => 'active', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'current', 'table' => 'spaces', 'field' => 'current', 'relationship' => 'nid', ), 'timestamp' => array( 'operator' => '>=', 'value' => array( 'type' => 'offset', 'value' => '-6 months', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'timestamp', 'table' => 'comments', 'field' => 'timestamp', 'relationship' => 'none', ), 'status_1' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status_1', 'table' => 'node', 'field' => 'status', 'relationship' => 'nid', 'override' => array( 'button' => 'Override', ), ), 'status' => array( 'operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'comments', 'field' => 'status', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Recent comments'); $handler->override_option('empty', 'No recent comments found.'); $handler->override_option('items_per_page', 5); $handler->override_option('style_plugin', 'list'); $handler->override_option('style_options', array( 'grouping' => '', 'type' => 'ul', )); $handler = $view->new_display('block', 'Recent comments', 'block_1'); $handler->override_option('block_description', 'Recent comments'); $handler->override_option('block_caching', '-1'); $translatables['blog_comments'] = array( t('Defaults'), t('No recent comments found.'), t('Recent comments'), ); $views[$view->name] = $view; // Exported view: blog_listing $view = new view; $view->name = 'blog_listing'; $view->description = 'Atrium > blog'; $view->tag = 'atrium'; $view->base_table = 'node'; $view->core = 0; $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( 'nid' => array( 'label' => 'Nid', 'link_to_node' => 0, 'exclude' => 0, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'relationship' => 'none', ), 'field_referenced_book_page_nid' => array( 'label_type' => 'widget', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'id' => 'field_referenced_book_page_nid', 'table' => 'node_data_field_referenced_book_page', 'field' => 'field_referenced_book_page_nid', ), )); $handler->override_option('sorts', array( 'sticky' => array( 'order' => 'DESC', 'id' => 'sticky', 'table' => 'node', 'field' => 'sticky', 'relationship' => 'none', ), 'created' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'uid' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '%1\'s blog', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'uid', 'table' => 'users', 'field' => 'uid', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => 'all', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'shoutbox' => 0, 'book' => 0, 'event' => 0, 'feedapi_node' => 0, 'feed_ical' => 0, 'feed_ical_item' => 0, 'group' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 1 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_is_member' => 0, 'validate_argument_php' => '', ), 'created_year_month' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Archive: %2', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'id' => 'created_year_month', 'table' => 'node', 'field' => 'created_year_month', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'shoutbox' => 0, 'book' => 0, 'event' => 0, 'feedapi_node' => 0, 'feed_ical' => 0, 'feed_ical_item' => 0, 'group' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 1 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', 'validate_argument_is_member' => 0, ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'blog' => 'blog', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'current' => array( 'operator' => 'all', 'value' => 'all', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'current', 'table' => 'spaces', 'field' => 'current', 'relationship' => 'none', ), 'created' => array( 'operator' => '>', 'value' => array( 'type' => 'offset', 'value' => '-12 months', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'spaces_feature', 'spaces_feature' => 'atrium_blog', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Blog'); $handler->override_option('use_pager', '1'); $handler->override_option('row_plugin', 'node'); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'blog'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Blog', 'description' => '', 'weight' => '0', 'name' => 'features', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('arguments', array( 'null' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'must_not_be' => 0, 'id' => 'null', 'table' => 'views', 'field' => 'null', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => 'all', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'shoutbox' => 0, 'book' => 0, 'event' => 0, 'feedapi_node' => 0, 'feed_ical' => 0, 'feed_ical_item' => 0, 'group' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 1 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_is_member' => 0, 'validate_argument_php' => '', ), 'created_year_month' => array( 'default_action' => 'summary desc', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'id' => 'created_year_month', 'table' => 'node', 'field' => 'created_year_month', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'book' => 0, 'page' => 0, 'portfolio' => 0, 'quote' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 12 => 0, 13 => 0, 8 => 0, 1 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', 'override' => array( 'button' => 'Use default', ), ), )); $handler->override_option('title', 'Archive'); $handler->override_option('items_per_page', 12); $handler->override_option('use_pager', '0'); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1); $handler = $view->new_display('feed', 'Feed', 'feed_1'); $handler->override_option('style_plugin', 'rss'); $handler->override_option('style_options', array( 'mission_description' => FALSE, 'description' => '', )); $handler->override_option('row_plugin', 'node_rss'); $handler->override_option('row_options', array( 'item_length' => 'default', )); $handler->override_option('path', 'blog/feed'); $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->override_option('displays', array()); $handler->override_option('sitename_title', 1); $handler = $view->new_display('block', 'Blog teaser', 'block_2'); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'blog' => 'blog', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'current' => array( 'operator' => 'active', 'value' => 'all', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'current', 'table' => 'spaces', 'field' => 'current', 'relationship' => 'none', 'override' => array( 'button' => 'Use default', ), ), 'created' => array( 'operator' => '>', 'value' => array( 'type' => 'offset', 'value' => '-12 months', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), )); $handler->override_option('items_per_page', 1); $handler->override_option('use_pager', '0'); $handler->override_option('use_more', 0); $handler->override_option('block_description', 'Blog teaser'); $handler->override_option('block_caching', -1); $handler = $view->new_display('attachment', 'Blog teaser (list)', 'attachment_1'); $handler->override_option('fields', array( 'feature' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_node' => 0, 'exclude' => 0, 'id' => 'feature', 'table' => 'spaces_node', 'field' => 'feature', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'created' => 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, 'date_format' => 'small', 'custom_date_format' => '', 'reldate' => 'reldate', 'exclude' => 0, 'id' => 'created', 'table' => 'node', 'field' => 'created', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'name' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'comment_count' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => ',', 'prefix' => '', 'suffix' => ' comment(s)', 'exclude' => 0, 'id' => 'comment_count', 'table' => 'node_comment_statistics', 'field' => 'comment_count', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'blog' => 'blog', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'current' => array( 'operator' => 'active', 'value' => 'all', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'current', 'table' => 'spaces', 'field' => 'current', 'relationship' => 'none', 'override' => array( 'button' => 'Use default', ), ), 'created' => array( 'operator' => '>', 'value' => array( 'type' => 'offset', 'value' => '-12 months', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), )); $handler->override_option('items_per_page', 5); $handler->override_option('offset', 1); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'nid' => 'nid', 'field_referenced_book_page_nid' => 'field_referenced_book_page_nid', ), 'info' => array( 'nid' => array( 'sortable' => 0, 'separator' => '', ), 'field_referenced_book_page_nid' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler->override_option('attachment_position', 'after'); $handler->override_option('inherit_arguments', TRUE); $handler->override_option('inherit_exposed_filters', FALSE); $handler->override_option('inherit_pager', FALSE); $handler->override_option('render_pager', TRUE); $handler->override_option('displays', array( 'block_2' => 'block_2', 'default' => 0, 'page_1' => 0, 'block_1' => 0, )); $translatables['blog_listing'] = array( t('Archive'), t('Block'), t('Blog'), t('Blog teaser'), t('Blog teaser (list)'), t('Defaults'), t('Feed'), t('Page'), t('more'), ); $views[$view->name] = $view; return $views; }