portfolio-formats.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?php
  2. /**
  3. * Vamtam Project Format Options
  4. *
  5. * @package vamtam/consulting
  6. */
  7. return array(
  8. array(
  9. 'name' => esc_html__( 'Document', 'vamtam-consulting' ),
  10. 'type' => 'separator',
  11. 'tab_class' => 'vamtam-post-format-document',
  12. ),
  13. array(
  14. 'name' => esc_html__( 'How do I use document project format?', 'vamtam-consulting' ),
  15. 'desc' => esc_html__( 'Use the standard Featured Image option for the project image. Use the editor below for your content. The image will only be shown in the portfolio.You will need "Link" post format if you need the featured image to appear in the post itself.', 'vamtam-consulting' ),
  16. 'type' => 'info',
  17. 'visible' => true,
  18. ),
  19. // --
  20. array(
  21. 'name' => esc_html__( 'Image', 'vamtam-consulting' ),
  22. 'type' => 'separator',
  23. 'tab_class' => 'vamtam-post-format-image',
  24. ),
  25. array(
  26. 'name' => esc_html__( 'How do I use image project format?', 'vamtam-consulting' ),
  27. 'desc' => esc_html__( 'Use the standard Featured Image option for the project image. Use the editor below for your content. Clicking on the image in the portfolio page will open up the image in a lightbox. You will need "Link" post format if you want clicking on the image to lead to the project post.', 'vamtam-consulting' ),
  28. 'type' => 'info',
  29. 'visible' => true,
  30. ),
  31. // --
  32. array(
  33. 'name' => esc_html__( 'Gallery', 'vamtam-consulting' ),
  34. 'type' => 'separator',
  35. 'tab_class' => 'vamtam-post-format-gallery',
  36. ),
  37. array(
  38. 'name' => esc_html__( 'How do I use gallery project format?', 'vamtam-consulting' ),
  39. 'desc' => esc_html__( 'Use the "Add Media" button in a text/image block element to create a gallery.This button is also found in the top left side of the visual and text editors.Please note that when the media manager opens up in the lightbox, you have to click on "Create Gallery" on the left and then select the images for your gallery.', 'vamtam-consulting' ),
  40. 'type' => 'info',
  41. 'visible' => true,
  42. ),
  43. // --
  44. array(
  45. 'name' => esc_html__( 'Video', 'vamtam-consulting' ),
  46. 'type' => 'separator',
  47. 'tab_class' => 'vamtam-post-format-video',
  48. ),
  49. array(
  50. 'name' => esc_html__( 'How do I use video project format?', 'vamtam-consulting' ),
  51. 'desc' => esc_html__( 'Put the url of the video below. You must use an oEmbed provider supported by WordPress or a file supported by the [video] shortcode which comes with WordPress. Vimeo and Youtube are supported.', 'vamtam-consulting' ),
  52. 'type' => 'info',
  53. 'visible' => true,
  54. ),
  55. array(
  56. 'name' => esc_html__( 'Link', 'vamtam-consulting' ),
  57. 'id' => 'vamtam-portfolio-format-video',
  58. 'type' => 'text',
  59. 'only' => 'jetpack-portfolio',
  60. 'default' => '',
  61. ),
  62. // --
  63. array(
  64. 'name' => esc_html__( 'Link', 'vamtam-consulting' ),
  65. 'type' => 'separator',
  66. 'tab_class' => 'vamtam-post-format-link',
  67. ),
  68. array(
  69. 'name' => esc_html__( 'How do I use link project format?', 'vamtam-consulting' ),
  70. 'desc' => esc_html__( 'Use the standard Featured Image option for the project image. Use the editor below for your content. Put the link in the option below if you want the image in the portfolio to lead to a particular link. If you leave the link field blank, clicking on the image in the portfolio page will open up the project.', 'vamtam-consulting' ),
  71. 'type' => 'info',
  72. 'visible' => true,
  73. ),
  74. array(
  75. 'name' => esc_html__( 'Link', 'vamtam-consulting' ),
  76. 'id' => 'vamtam-portfolio-format-link',
  77. 'type' => 'text',
  78. 'only' => 'jetpack-portfolio',
  79. 'default' => '',
  80. ),
  81. // --
  82. array(
  83. 'name' => esc_html__( 'HTML', 'vamtam-consulting' ),
  84. 'type' => 'separator',
  85. 'tab_class' => 'vamtam-post-format-html',
  86. ),
  87. array(
  88. 'name' => esc_html__( 'How do I use HTML project format?', 'vamtam-consulting' ),
  89. 'desc' => esc_html__( 'Use the standard Featured Image option for the project image. Use the editor below for your content.', 'vamtam-consulting' ),
  90. 'type' => 'info',
  91. 'visible' => true,
  92. ),
  93. array(
  94. 'name' => esc_html__( 'HTML Content Used for the "HTML" project Type', 'vamtam-consulting' ),
  95. 'id' => 'portfolio-top-html',
  96. 'type' => 'textarea',
  97. 'only' => 'jetpack-portfolio',
  98. 'default' => '',
  99. ),
  100. // --
  101. array(
  102. 'name' => esc_html__( 'Logo', 'vamtam-consulting' ),
  103. 'id' => 'portfolio-logo',
  104. 'type' => 'upload',
  105. 'only' => 'jetpack-portfolio',
  106. 'default' => '',
  107. 'class' => 'vamtam-all-formats',
  108. ),
  109. array(
  110. 'name' => esc_html__( 'Client', 'vamtam-consulting' ),
  111. 'id' => 'portfolio-client',
  112. 'type' => 'text',
  113. 'only' => 'jetpack-portfolio',
  114. 'default' => '',
  115. 'class' => 'vamtam-all-formats',
  116. ),
  117. );