metatag_views_tests.views_default.inc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. <?php
  2. /**
  3. * @file
  4. * metatag_views_tests.views_default.inc
  5. */
  6. /**
  7. * Implements hook_views_default_views().
  8. */
  9. function metatag_views_tests_views_default_views() {
  10. $export = array();
  11. $view = new view();
  12. $view->name = 'metatag_views_test';
  13. $view->description = '';
  14. $view->tag = 'default';
  15. $view->base_table = 'node';
  16. $view->human_name = 'Metatag Views test';
  17. $view->core = 7;
  18. $view->api_version = '3.0';
  19. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  20. /* Display: Master */
  21. $handler = $view->new_display('default', 'Master', 'default');
  22. $handler->display->display_options['title'] = 'Metatag Views test';
  23. $handler->display->display_options['use_more_always'] = FALSE;
  24. $handler->display->display_options['access']['type'] = 'perm';
  25. $handler->display->display_options['cache']['type'] = 'none';
  26. $handler->display->display_options['query']['type'] = 'views_query';
  27. $handler->display->display_options['exposed_form']['type'] = 'basic';
  28. $handler->display->display_options['pager']['type'] = 'full';
  29. $handler->display->display_options['pager']['options']['items_per_page'] = '5';
  30. $handler->display->display_options['style_plugin'] = 'default';
  31. $handler->display->display_options['row_plugin'] = 'node';
  32. $handler->display->display_options['row_options']['links'] = FALSE;
  33. /* Field: Content: Title */
  34. $handler->display->display_options['fields']['title']['id'] = 'title';
  35. $handler->display->display_options['fields']['title']['table'] = 'node';
  36. $handler->display->display_options['fields']['title']['field'] = 'title';
  37. $handler->display->display_options['fields']['title']['label'] = '';
  38. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  39. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  40. /* Sort criterion: Content: Post date */
  41. $handler->display->display_options['sorts']['created']['id'] = 'created';
  42. $handler->display->display_options['sorts']['created']['table'] = 'node';
  43. $handler->display->display_options['sorts']['created']['field'] = 'created';
  44. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  45. /* Filter criterion: Content: Published */
  46. $handler->display->display_options['filters']['status']['id'] = 'status';
  47. $handler->display->display_options['filters']['status']['table'] = 'node';
  48. $handler->display->display_options['filters']['status']['field'] = 'status';
  49. $handler->display->display_options['filters']['status']['value'] = 1;
  50. $handler->display->display_options['filters']['status']['group'] = 1;
  51. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  52. /* Display: Page */
  53. $handler = $view->new_display('page', 'Page', 'page');
  54. $handler->display->display_options['metatags'] = array(
  55. 'und' => array(
  56. 'title' => array(
  57. 'value' => 'Test Views page title',
  58. 'default' => '[view:title] | [current-page:pager][site:name]',
  59. ),
  60. 'description' => array(
  61. 'value' => 'Testing Metatag:Views.',
  62. 'default' => '[view:description]',
  63. ),
  64. 'abstract' => array(
  65. 'value' => '',
  66. ),
  67. 'keywords' => array(
  68. 'value' => 'Test, page, keywords',
  69. ),
  70. 'robots' => array(
  71. 'value' => array(
  72. 'index' => 0,
  73. 'follow' => 0,
  74. 'noindex' => 0,
  75. 'nofollow' => 0,
  76. 'noarchive' => 0,
  77. 'nosnippet' => 0,
  78. 'noodp' => 0,
  79. 'noydir' => 0,
  80. 'noimageindex' => 0,
  81. 'notranslate' => 0,
  82. ),
  83. ),
  84. 'news_keywords' => array(
  85. 'value' => '',
  86. ),
  87. 'standout' => array(
  88. 'value' => '',
  89. ),
  90. 'rating' => array(
  91. 'value' => '',
  92. ),
  93. 'referrer' => array(
  94. 'value' => '',
  95. ),
  96. 'rights' => array(
  97. 'value' => '',
  98. ),
  99. 'image_src' => array(
  100. 'value' => '',
  101. ),
  102. 'canonical' => array(
  103. 'value' => '[view:url]',
  104. 'default' => '[view:url]',
  105. ),
  106. 'shortlink' => array(
  107. 'value' => '[current-page:url:unaliased]',
  108. 'default' => '[current-page:url:unaliased]',
  109. ),
  110. 'publisher' => array(
  111. 'value' => '',
  112. ),
  113. 'author' => array(
  114. 'value' => '',
  115. ),
  116. 'original-source' => array(
  117. 'value' => '',
  118. ),
  119. 'prev' => array(
  120. 'value' => '',
  121. ),
  122. 'next' => array(
  123. 'value' => '',
  124. ),
  125. 'revisit-after' => array(
  126. 'value' => '',
  127. 'period' => '',
  128. ),
  129. 'content-language' => array(
  130. 'value' => '',
  131. ),
  132. 'geo.position' => array(
  133. 'value' => '',
  134. ),
  135. 'geo.placename' => array(
  136. 'value' => '',
  137. ),
  138. 'geo.region' => array(
  139. 'value' => '',
  140. ),
  141. 'icbm' => array(
  142. 'value' => '',
  143. ),
  144. 'refresh' => array(
  145. 'value' => '',
  146. ),
  147. 'itemtype' => array(
  148. 'value' => '',
  149. ),
  150. 'itemprop:name' => array(
  151. 'value' => '[current-page:title]',
  152. 'default' => '[current-page:title]',
  153. ),
  154. 'itemprop:description' => array(
  155. 'value' => '',
  156. ),
  157. 'itemprop:image' => array(
  158. 'value' => '',
  159. ),
  160. 'theme-color' => array(
  161. 'value' => '',
  162. ),
  163. 'MobileOptimized' => array(
  164. 'value' => '',
  165. ),
  166. 'HandheldFriendly' => array(
  167. 'value' => '',
  168. ),
  169. 'viewport' => array(
  170. 'value' => '',
  171. ),
  172. 'cleartype' => array(
  173. 'value' => '',
  174. ),
  175. 'apple-itunes-app' => array(
  176. 'value' => '',
  177. ),
  178. 'apple-mobile-web-app-capable' => array(
  179. 'value' => '',
  180. ),
  181. 'apple-mobile-web-app-status-bar-style' => array(
  182. 'value' => '',
  183. ),
  184. 'format-detection' => array(
  185. 'value' => '',
  186. ),
  187. 'ios-app-link-alternative' => array(
  188. 'value' => '',
  189. ),
  190. 'android-app-link-alternative' => array(
  191. 'value' => '',
  192. ),
  193. 'android-manifest' => array(
  194. 'value' => '',
  195. ),
  196. 'x-ua-compatible' => array(
  197. 'value' => '',
  198. ),
  199. 'application-name' => array(
  200. 'value' => '',
  201. ),
  202. 'msapplication-allowDomainApiCalls' => array(
  203. 'value' => '',
  204. ),
  205. 'msapplication-allowDomainMetaTags' => array(
  206. 'value' => '',
  207. ),
  208. 'msapplication-badge' => array(
  209. 'value' => '',
  210. ),
  211. 'msapplication-config' => array(
  212. 'value' => '',
  213. ),
  214. 'msapplication-navbutton-color' => array(
  215. 'value' => '',
  216. ),
  217. 'msapplication-notification' => array(
  218. 'value' => '',
  219. ),
  220. 'msapplication-square150x150logo' => array(
  221. 'value' => '',
  222. ),
  223. 'msapplication-square310x310logo' => array(
  224. 'value' => '',
  225. ),
  226. 'msapplication-square70x70logo' => array(
  227. 'value' => '',
  228. ),
  229. 'msapplication-wide310x150logo' => array(
  230. 'value' => '',
  231. ),
  232. 'msapplication-starturl' => array(
  233. 'value' => '',
  234. ),
  235. 'msapplication-task' => array(
  236. 'value' => '',
  237. ),
  238. 'msapplication-task-separator' => array(
  239. 'value' => '',
  240. ),
  241. 'msapplication-tilecolor' => array(
  242. 'value' => '',
  243. ),
  244. 'msapplication-tileimage' => array(
  245. 'value' => '',
  246. ),
  247. 'msapplication-tooltip' => array(
  248. 'value' => '',
  249. ),
  250. 'msapplication-window' => array(
  251. 'value' => '',
  252. ),
  253. 'og:type' => array(
  254. 'value' => 'article',
  255. 'default' => 'article',
  256. ),
  257. 'og:url' => array(
  258. 'value' => '[current-page:url:absolute]',
  259. 'default' => '[current-page:url:absolute]',
  260. ),
  261. 'og:title' => array(
  262. 'value' => '[current-page:title]',
  263. 'default' => '[current-page:title]',
  264. ),
  265. 'og:determiner' => array(
  266. 'value' => '',
  267. ),
  268. 'og:description' => array(
  269. 'value' => '',
  270. ),
  271. 'og:updated_time' => array(
  272. 'value' => '',
  273. ),
  274. 'og:see_also' => array(
  275. 'value' => '',
  276. ),
  277. 'og:image' => array(
  278. 'value' => '',
  279. ),
  280. 'og:image:url' => array(
  281. 'value' => '',
  282. ),
  283. 'og:image:secure_url' => array(
  284. 'value' => '',
  285. ),
  286. 'og:image:type' => array(
  287. 'value' => '',
  288. ),
  289. 'og:image:width' => array(
  290. 'value' => '',
  291. ),
  292. 'og:image:height' => array(
  293. 'value' => '',
  294. ),
  295. 'og:latitude' => array(
  296. 'value' => '',
  297. ),
  298. 'og:longitude' => array(
  299. 'value' => '',
  300. ),
  301. 'og:street_address' => array(
  302. 'value' => '',
  303. ),
  304. 'og:locality' => array(
  305. 'value' => '',
  306. ),
  307. 'og:region' => array(
  308. 'value' => '',
  309. ),
  310. 'og:postal_code' => array(
  311. 'value' => '',
  312. ),
  313. 'og:country_name' => array(
  314. 'value' => '',
  315. ),
  316. 'og:email' => array(
  317. 'value' => '',
  318. ),
  319. 'og:phone_number' => array(
  320. 'value' => '',
  321. ),
  322. 'og:fax_number' => array(
  323. 'value' => '',
  324. ),
  325. 'og:locale' => array(
  326. 'value' => '',
  327. ),
  328. 'og:locale:alternate' => array(
  329. 'value' => '',
  330. ),
  331. 'article:author' => array(
  332. 'value' => '',
  333. ),
  334. 'article:publisher' => array(
  335. 'value' => '',
  336. ),
  337. 'article:section' => array(
  338. 'value' => '',
  339. ),
  340. 'article:tag' => array(
  341. 'value' => '',
  342. ),
  343. 'article:published_time' => array(
  344. 'value' => '',
  345. ),
  346. 'article:modified_time' => array(
  347. 'value' => '',
  348. ),
  349. 'article:expiration_time' => array(
  350. 'value' => '',
  351. ),
  352. 'profile:first_name' => array(
  353. 'value' => '',
  354. ),
  355. 'profile:last_name' => array(
  356. 'value' => '',
  357. ),
  358. 'profile:username' => array(
  359. 'value' => '',
  360. ),
  361. 'profile:gender' => array(
  362. 'value' => '',
  363. ),
  364. 'og:audio' => array(
  365. 'value' => '',
  366. ),
  367. 'og:audio:secure_url' => array(
  368. 'value' => '',
  369. ),
  370. 'og:audio:type' => array(
  371. 'value' => '',
  372. ),
  373. 'book:author' => array(
  374. 'value' => '',
  375. ),
  376. 'book:isbn' => array(
  377. 'value' => '',
  378. ),
  379. 'book:release_date' => array(
  380. 'value' => '',
  381. ),
  382. 'book:tag' => array(
  383. 'value' => '',
  384. ),
  385. 'og:video:url' => array(
  386. 'value' => '',
  387. ),
  388. 'og:video:secure_url' => array(
  389. 'value' => '',
  390. ),
  391. 'og:video:width' => array(
  392. 'value' => '',
  393. ),
  394. 'og:video:height' => array(
  395. 'value' => '',
  396. ),
  397. 'og:video:type' => array(
  398. 'value' => '',
  399. ),
  400. 'video:actor' => array(
  401. 'value' => '',
  402. ),
  403. 'video:actor:role' => array(
  404. 'value' => '',
  405. ),
  406. 'video:director' => array(
  407. 'value' => '',
  408. ),
  409. 'video:writer' => array(
  410. 'value' => '',
  411. ),
  412. 'video:duration' => array(
  413. 'value' => '',
  414. ),
  415. 'video:release_date' => array(
  416. 'value' => '',
  417. ),
  418. 'video:tag' => array(
  419. 'value' => '',
  420. ),
  421. 'video:series' => array(
  422. 'value' => '',
  423. ),
  424. ),
  425. );
  426. $handler->display->display_options['path'] = 'metatag-views-test';
  427. $translatables['metatag_views_test'] = array(
  428. t('Master'),
  429. t('Metatag Views i18n test'),
  430. t('more'),
  431. t('Apply'),
  432. t('Reset'),
  433. t('Sort by'),
  434. t('Asc'),
  435. t('Desc'),
  436. t('Items per page'),
  437. t('- All -'),
  438. t('Offset'),
  439. t('« first'),
  440. t('‹ previous'),
  441. t('next ›'),
  442. t('last »'),
  443. t('Page'),
  444. );
  445. $export['metatag_views_test'] = $view;
  446. return $export;
  447. }