Guest User

Untitled

a guest
Feb 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.27 KB | None | 0 0
  1. $view = new view;
  2. $view->name = 'front_page';
  3. $view->description = '';
  4. $view->tag = '';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10. $handler = $view->new_display('default', 'Defaults', 'default');
  11. $handler->override_option('fields', array(
  12. 'field_enhanced_activity_image_fid' => array(
  13. 'label' => '',
  14. 'alter' => array(
  15. 'alter_text' => 0,
  16. 'text' => '',
  17. 'make_link' => 0,
  18. 'path' => '',
  19. 'link_class' => '',
  20. 'alt' => '',
  21. 'prefix' => '',
  22. 'suffix' => '',
  23. 'target' => '',
  24. 'help' => '',
  25. 'trim' => 0,
  26. 'max_length' => '',
  27. 'word_boundary' => 1,
  28. 'ellipsis' => 1,
  29. 'html' => 0,
  30. 'strip_tags' => 0,
  31. ),
  32. 'empty' => '',
  33. 'hide_empty' => 0,
  34. 'empty_zero' => 0,
  35. 'link_to_node' => 0,
  36. 'label_type' => 'none',
  37. 'format' => 'front_page-teasers_default',
  38. 'multiple' => array(
  39. 'group' => TRUE,
  40. 'multiple_number' => '',
  41. 'multiple_from' => '',
  42. 'multiple_reversed' => FALSE,
  43. ),
  44. 'exclude' => 0,
  45. 'id' => 'field_enhanced_activity_image_fid',
  46. 'table' => 'node_data_field_enhanced_activity_image',
  47. 'field' => 'field_enhanced_activity_image_fid',
  48. 'relationship' => 'none',
  49. ),
  50. 'title' => array(
  51. 'label' => '',
  52. 'alter' => array(
  53. 'alter_text' => 0,
  54. 'text' => '',
  55. 'make_link' => 0,
  56. 'path' => '',
  57. 'link_class' => '',
  58. 'alt' => '',
  59. 'prefix' => '',
  60. 'suffix' => '',
  61. 'target' => '',
  62. 'help' => '',
  63. 'trim' => 0,
  64. 'max_length' => '',
  65. 'word_boundary' => 1,
  66. 'ellipsis' => 1,
  67. 'html' => 0,
  68. 'strip_tags' => 0,
  69. ),
  70. 'empty' => '',
  71. 'hide_empty' => 0,
  72. 'empty_zero' => 0,
  73. 'link_to_node' => 0,
  74. 'exclude' => 0,
  75. 'id' => 'title',
  76. 'table' => 'node',
  77. 'field' => 'title',
  78. 'relationship' => 'none',
  79. ),
  80. 'field_time_value' => array(
  81. 'label' => 'Time',
  82. 'alter' => array(
  83. 'alter_text' => 0,
  84. 'text' => '',
  85. 'make_link' => 0,
  86. 'path' => '',
  87. 'link_class' => '',
  88. 'alt' => '',
  89. 'prefix' => '',
  90. 'suffix' => '',
  91. 'target' => '',
  92. 'help' => '',
  93. 'trim' => 0,
  94. 'max_length' => '',
  95. 'word_boundary' => 1,
  96. 'ellipsis' => 1,
  97. 'html' => 0,
  98. 'strip_tags' => 0,
  99. ),
  100. 'empty' => '',
  101. 'hide_empty' => 1,
  102. 'empty_zero' => 0,
  103. 'link_to_node' => 0,
  104. 'label_type' => 'widget',
  105. 'format' => 'default',
  106. 'multiple' => array(
  107. 'group' => TRUE,
  108. 'multiple_number' => '',
  109. 'multiple_from' => '',
  110. 'multiple_reversed' => FALSE,
  111. ),
  112. 'exclude' => 0,
  113. 'id' => 'field_time_value',
  114. 'table' => 'node_data_field_time',
  115. 'field' => 'field_time_value',
  116. 'relationship' => 'none',
  117. ),
  118. 'field_venue_nid' => array(
  119. 'label' => 'Location',
  120. 'alter' => array(
  121. 'alter_text' => 0,
  122. 'text' => '',
  123. 'make_link' => 0,
  124. 'path' => '',
  125. 'link_class' => '',
  126. 'alt' => '',
  127. 'prefix' => '',
  128. 'suffix' => '',
  129. 'target' => '',
  130. 'help' => '',
  131. 'trim' => 0,
  132. 'max_length' => '',
  133. 'word_boundary' => 1,
  134. 'ellipsis' => 1,
  135. 'html' => 0,
  136. 'strip_tags' => 0,
  137. ),
  138. 'empty' => '',
  139. 'hide_empty' => 1,
  140. 'empty_zero' => 0,
  141. 'link_to_node' => 0,
  142. 'label_type' => 'custom',
  143. 'format' => 'plain',
  144. 'multiple' => array(
  145. 'group' => TRUE,
  146. 'multiple_number' => '',
  147. 'multiple_from' => '',
  148. 'multiple_reversed' => FALSE,
  149. ),
  150. 'exclude' => 0,
  151. 'id' => 'field_venue_nid',
  152. 'table' => 'node_data_field_venue',
  153. 'field' => 'field_venue_nid',
  154. 'relationship' => 'none',
  155. ),
  156. 'view_node' => array(
  157. 'label' => '',
  158. 'alter' => array(
  159. 'alter_text' => 0,
  160. 'text' => '',
  161. 'make_link' => 0,
  162. 'path' => '',
  163. 'link_class' => '',
  164. 'alt' => '',
  165. 'prefix' => '',
  166. 'suffix' => '',
  167. 'target' => '',
  168. 'help' => '',
  169. 'trim' => 0,
  170. 'max_length' => '',
  171. 'word_boundary' => 1,
  172. 'ellipsis' => 1,
  173. 'html' => 0,
  174. 'strip_tags' => 0,
  175. ),
  176. 'empty' => '',
  177. 'hide_empty' => 0,
  178. 'empty_zero' => 0,
  179. 'text' => 'Read More...',
  180. 'exclude' => 0,
  181. 'id' => 'view_node',
  182. 'table' => 'node',
  183. 'field' => 'view_node',
  184. 'relationship' => 'none',
  185. ),
  186. 'nothing' => array(
  187. 'label' => '',
  188. 'alter' => array(
  189. 'text' => '',
  190. 'make_link' => 0,
  191. 'path' => '',
  192. 'link_class' => '',
  193. 'alt' => '',
  194. 'prefix' => '',
  195. 'suffix' => '',
  196. 'target' => '',
  197. 'help' => '',
  198. 'trim' => 0,
  199. 'max_length' => '',
  200. 'word_boundary' => 1,
  201. 'ellipsis' => 1,
  202. 'html' => 0,
  203. 'strip_tags' => 0,
  204. ),
  205. 'empty' => '',
  206. 'hide_empty' => 0,
  207. 'empty_zero' => 0,
  208. 'exclude' => 0,
  209. 'id' => 'nothing',
  210. 'table' => 'views',
  211. 'field' => 'nothing',
  212. 'relationship' => 'none',
  213. ),
  214. ));
  215. $handler->override_option('sorts', array(
  216. 'timestamp' => array(
  217. 'id' => 'timestamp',
  218. 'table' => 'comments',
  219. 'field' => 'timestamp',
  220. ),
  221. ));
  222. $handler->override_option('filters', array(
  223. 'type' => array(
  224. 'operator' => 'in',
  225. 'value' => array(
  226. 'activity' => 'activity',
  227. ),
  228. 'group' => '0',
  229. 'exposed' => FALSE,
  230. 'expose' => array(
  231. 'operator' => FALSE,
  232. 'label' => '',
  233. ),
  234. 'id' => 'type',
  235. 'table' => 'node',
  236. 'field' => 'type',
  237. 'relationship' => 'none',
  238. ),
  239. 'status' => array(
  240. 'operator' => '=',
  241. 'value' => '1',
  242. 'group' => '0',
  243. 'exposed' => FALSE,
  244. 'expose' => array(
  245. 'operator' => FALSE,
  246. 'label' => '',
  247. ),
  248. 'id' => 'status',
  249. 'table' => 'node',
  250. 'field' => 'status',
  251. 'relationship' => 'none',
  252. ),
  253. 'field_enhanced_activity_image_list' => array(
  254. 'operator' => '=',
  255. 'value' => '1',
  256. 'group' => '0',
  257. 'exposed' => FALSE,
  258. 'expose' => array(
  259. 'operator' => FALSE,
  260. 'label' => '',
  261. ),
  262. 'id' => 'field_enhanced_activity_image_list',
  263. 'table' => 'node_data_field_enhanced_activity_image',
  264. 'field' => 'field_enhanced_activity_image_list',
  265. 'relationship' => 'none',
  266. ),
  267. ));
  268. $handler->override_option('access', array(
  269. 'type' => 'none',
  270. ));
  271. $handler->override_option('cache', array(
  272. 'type' => 'none',
  273. ));
  274. $handler->override_option('use_ajax', TRUE);
  275. $handler->override_option('items_per_page', 6);
  276. $handler->override_option('use_pager', '0');
  277. $handler->override_option('use_more', 1);
  278. $handler->override_option('use_more_always', 1);
  279. $handler->override_option('use_more_text', 'See More Events');
  280. $handler->override_option('distinct', 1);
  281. $handler->override_option('style_plugin', 'grid');
  282. $handler->override_option('style_options', array(
  283. 'columns' => '2',
  284. 'alignment' => 'vertical',
  285. 'fill_single_line' => 1,
  286. ));
  287. $handler->override_option('row_options', array(
  288. 'inline' => array(),
  289. 'separator' => '',
  290. 'hide_empty' => 0,
  291. ));
  292. $handler = $view->new_display('page', 'Page', 'page_1');
  293. $handler->override_option('items_per_page', 10);
  294. $handler->override_option('use_pager', '1');
  295. $handler->override_option('path', 'front_45029');
  296. $handler->override_option('menu', array(
  297. 'type' => 'none',
  298. 'title' => '',
  299. 'description' => '',
  300. 'weight' => 0,
  301. 'name' => 'navigation',
  302. ));
  303. $handler->override_option('tab_options', array(
  304. 'type' => 'none',
  305. 'title' => '',
  306. 'description' => '',
  307. 'weight' => 0,
  308. 'name' => 'navigation',
  309. ));
  310. $handler = $view->new_display('block', 'Featured Event', 'block_1');
  311. $handler->override_option('sorts', array(
  312. 'timestamp' => array(
  313. 'order' => 'ASC',
  314. 'granularity' => 'second',
  315. 'id' => 'timestamp',
  316. 'table' => 'comments',
  317. 'field' => 'timestamp',
  318. 'override' => array(
  319. 'button' => 'Use default',
  320. ),
  321. 'relationship' => 'none',
  322. ),
  323. ));
  324. $handler->override_option('items_per_page', 1);
  325. $handler->override_option('use_more', 0);
  326. $handler->override_option('use_more_always', 0);
  327. $handler->override_option('style_plugin', 'default');
  328. $handler->override_option('style_options', array());
  329. $handler->override_option('block_description', '');
  330. $handler->override_option('block_caching', -1);
  331. $handler = $view->new_display('block', 'Front Events Listing', 'block_2');
  332. $handler->override_option('fields', array(
  333. 'field_enhanced_activity_image_fid' => array(
  334. 'label' => '',
  335. 'alter' => array(
  336. 'alter_text' => 0,
  337. 'text' => '',
  338. 'make_link' => 0,
  339. 'path' => '',
  340. 'link_class' => '',
  341. 'alt' => '',
  342. 'prefix' => '',
  343. 'suffix' => '',
  344. 'target' => '',
  345. 'help' => '',
  346. 'trim' => 0,
  347. 'max_length' => '',
  348. 'word_boundary' => 1,
  349. 'ellipsis' => 1,
  350. 'html' => 0,
  351. 'strip_tags' => 0,
  352. ),
  353. 'empty' => '',
  354. 'hide_empty' => 0,
  355. 'empty_zero' => 0,
  356. 'link_to_node' => 0,
  357. 'label_type' => 'none',
  358. 'format' => 'front_page-teasers_default',
  359. 'multiple' => array(
  360. 'group' => TRUE,
  361. 'multiple_number' => '',
  362. 'multiple_from' => '',
  363. 'multiple_reversed' => FALSE,
  364. ),
  365. 'exclude' => 1,
  366. 'id' => 'field_enhanced_activity_image_fid',
  367. 'table' => 'node_data_field_enhanced_activity_image',
  368. 'field' => 'field_enhanced_activity_image_fid',
  369. 'relationship' => 'none',
  370. 'override' => array(
  371. 'button' => 'Use default',
  372. ),
  373. ),
  374. 'title' => array(
  375. 'label' => '',
  376. 'alter' => array(
  377. 'alter_text' => 0,
  378. 'text' => '',
  379. 'make_link' => 0,
  380. 'path' => '',
  381. 'link_class' => '',
  382. 'alt' => '',
  383. 'prefix' => '',
  384. 'suffix' => '',
  385. 'target' => '',
  386. 'help' => '',
  387. 'trim' => 0,
  388. 'max_length' => '',
  389. 'word_boundary' => 1,
  390. 'ellipsis' => 1,
  391. 'html' => 0,
  392. 'strip_tags' => 0,
  393. ),
  394. 'empty' => '',
  395. 'hide_empty' => 0,
  396. 'empty_zero' => 0,
  397. 'link_to_node' => 0,
  398. 'exclude' => 1,
  399. 'id' => 'title',
  400. 'table' => 'node',
  401. 'field' => 'title',
  402. 'relationship' => 'none',
  403. 'override' => array(
  404. 'button' => 'Use default',
  405. ),
  406. ),
  407. 'field_time_value' => array(
  408. 'label' => 'Time',
  409. 'alter' => array(
  410. 'alter_text' => 0,
  411. 'text' => '',
  412. 'make_link' => 0,
  413. 'path' => '',
  414. 'link_class' => '',
  415. 'alt' => '',
  416. 'prefix' => '',
  417. 'suffix' => '',
  418. 'target' => '',
  419. 'help' => '',
  420. 'trim' => 0,
  421. 'max_length' => '',
  422. 'word_boundary' => 1,
  423. 'ellipsis' => 1,
  424. 'html' => 0,
  425. 'strip_tags' => 0,
  426. ),
  427. 'empty' => '',
  428. 'hide_empty' => 1,
  429. 'empty_zero' => 0,
  430. 'link_to_node' => 0,
  431. 'label_type' => 'widget',
  432. 'format' => 'default',
  433. 'multiple' => array(
  434. 'group' => TRUE,
  435. 'multiple_number' => '',
  436. 'multiple_from' => '',
  437. 'multiple_reversed' => FALSE,
  438. ),
  439. 'exclude' => 1,
  440. 'id' => 'field_time_value',
  441. 'table' => 'node_data_field_time',
  442. 'field' => 'field_time_value',
  443. 'relationship' => 'none',
  444. 'override' => array(
  445. 'button' => 'Use default',
  446. ),
  447. ),
  448. 'field_venue_nid' => array(
  449. 'label' => 'Location',
  450. 'alter' => array(
  451. 'alter_text' => 0,
  452. 'text' => '',
  453. 'make_link' => 0,
  454. 'path' => '',
  455. 'link_class' => '',
  456. 'alt' => '',
  457. 'prefix' => '',
  458. 'suffix' => '',
  459. 'target' => '',
  460. 'help' => '',
  461. 'trim' => 0,
  462. 'max_length' => '',
  463. 'word_boundary' => 1,
  464. 'ellipsis' => 1,
  465. 'html' => 0,
  466. 'strip_tags' => 0,
  467. ),
  468. 'empty' => '',
  469. 'hide_empty' => 1,
  470. 'empty_zero' => 0,
  471. 'link_to_node' => 0,
  472. 'label_type' => 'custom',
  473. 'format' => 'plain',
  474. 'multiple' => array(
  475. 'group' => TRUE,
  476. 'multiple_number' => '',
  477. 'multiple_from' => '',
  478. 'multiple_reversed' => FALSE,
  479. ),
  480. 'exclude' => 1,
  481. 'id' => 'field_venue_nid',
  482. 'table' => 'node_data_field_venue',
  483. 'field' => 'field_venue_nid',
  484. 'relationship' => 'none',
  485. 'override' => array(
  486. 'button' => 'Use default',
  487. ),
  488. ),
  489. 'view_node' => array(
  490. 'label' => '',
  491. 'alter' => array(
  492. 'alter_text' => 0,
  493. 'text' => '',
  494. 'make_link' => 0,
  495. 'path' => '',
  496. 'link_class' => '',
  497. 'alt' => '',
  498. 'prefix' => '',
  499. 'suffix' => '',
  500. 'target' => '',
  501. 'help' => '',
  502. 'trim' => 0,
  503. 'max_length' => '',
  504. 'word_boundary' => 1,
  505. 'ellipsis' => 1,
  506. 'html' => 0,
  507. 'strip_tags' => 0,
  508. ),
  509. 'empty' => '',
  510. 'hide_empty' => 0,
  511. 'empty_zero' => 0,
  512. 'text' => 'Read More...',
  513. 'exclude' => 1,
  514. 'id' => 'view_node',
  515. 'table' => 'node',
  516. 'field' => 'view_node',
  517. 'relationship' => 'none',
  518. 'override' => array(
  519. 'button' => 'Use default',
  520. ),
  521. ),
  522. 'nothing' => array(
  523. 'label' => '',
  524. 'alter' => array(
  525. 'text' => '<table border=0 height="100%">
  526. <tr><td width="53px">[field_enhanced_activity_image_fid] </td><td>
  527. <div class="event-title">[title]</div>
  528. <p class="locat">[field_venue_nid]</p>
  529. <div><span class="label">Time:</span> [field_time_value]</div>
  530. <div><span class="label">Location:</span> [field_venue_nid]</div>
  531. </td></tr>
  532. <tr><td colspan=2 class="read-more">[view_node]</td></tr>
  533. </table>',
  534. 'make_link' => 0,
  535. 'path' => '',
  536. 'link_class' => '',
  537. 'alt' => '',
  538. 'prefix' => '',
  539. 'suffix' => '',
  540. 'target' => '',
  541. 'help' => '',
  542. 'trim' => 0,
  543. 'max_length' => '',
  544. 'word_boundary' => 1,
  545. 'ellipsis' => 1,
  546. 'html' => 0,
  547. 'strip_tags' => 0,
  548. ),
  549. 'empty' => '',
  550. 'hide_empty' => 0,
  551. 'empty_zero' => 0,
  552. 'exclude' => 0,
  553. 'id' => 'nothing',
  554. 'table' => 'views',
  555. 'field' => 'nothing',
  556. 'override' => array(
  557. 'button' => 'Use default',
  558. ),
  559. 'relationship' => 'none',
  560. ),
  561. ));
  562. $handler->override_option('use_more_text', 'See More Events >>');
  563. $handler->override_option('block_description', '');
  564. $handler->override_option('block_caching', -1);
Add Comment
Please, Sign In to add comment