posts.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * Theme options / General / Posts
  4. *
  5. * @package vamtam/consulting
  6. */
  7. return array(
  8. array(
  9. 'label' => esc_html__( 'Pagination Type', 'vamtam-consulting' ),
  10. 'description' => esc_html__( 'Also used for portfolio', 'vamtam-consulting' ),
  11. 'id' => 'pagination-type',
  12. 'type' => 'select',
  13. 'choices' => array(
  14. 'paged' => esc_html__( 'Paged', 'vamtam-consulting' ),
  15. 'load-more' => esc_html__( 'Load more button', 'vamtam-consulting' ),
  16. 'infinite-scrolling' => esc_html__( 'Infinite scrolling', 'vamtam-consulting' ),
  17. ),
  18. ),
  19. array(
  20. 'label' => esc_html__( 'Show "Related Posts" in Single Post View', 'vamtam-consulting' ),
  21. 'description' => esc_html__( 'Enabling this option will show more posts from the same category when viewing a single post.', 'vamtam-consulting' ),
  22. 'id' => 'show-related-posts',
  23. 'type' => 'switch',
  24. 'transport' => 'postMessage',
  25. ),
  26. array(
  27. 'label' => esc_html__( '"Related Posts" title', 'vamtam-consulting' ),
  28. 'id' => 'related-posts-title',
  29. 'type' => 'text',
  30. 'transport' => 'postMessage',
  31. ),
  32. array(
  33. 'label' => esc_html__( 'Meta Information', 'vamtam-consulting' ),
  34. 'id' => 'post-meta',
  35. 'type' => 'multicheck',
  36. 'transport' => 'postMessage',
  37. 'choices' => array(
  38. 'author' => esc_html__( 'Post Author', 'vamtam-consulting' ),
  39. 'tax' => esc_html__( 'Categories and Tags', 'vamtam-consulting' ),
  40. 'date' => esc_html__( 'Timestamp', 'vamtam-consulting' ),
  41. 'comments' => esc_html__( 'Comment Count', 'vamtam-consulting' ),
  42. ),
  43. ),
  44. array(
  45. 'label' => esc_html__( 'Show Featured Image on Single Posts', 'vamtam-consulting' ),
  46. 'id' => 'show-single-post-image',
  47. 'description' => esc_html__( 'Please note, that this option works only for Blog Post Format Image.', 'vamtam-consulting' ),
  48. 'type' => 'switch',
  49. 'transport' => 'postMessage',
  50. ),
  51. array(
  52. 'label' => esc_html__( 'Post Archive Layout', 'vamtam-consulting' ),
  53. 'description' => '',
  54. 'id' => 'archive-layout',
  55. 'type' => 'radio',
  56. 'choices' => array(
  57. 'normal' => esc_html__( 'Large', 'vamtam-consulting' ),
  58. 'mosaic' => esc_html__( 'Small', 'vamtam-consulting' ),
  59. ),
  60. ),
  61. );