header.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?php
  2. /**
  3. * Theme options /Header
  4. *
  5. * @package vamtam/consulting
  6. */
  7. return array(
  8. array(
  9. 'label' => esc_html__( 'Header Layout', 'vamtam-consulting' ),
  10. 'type' => 'image-select',
  11. 'id' => 'header-layout',
  12. 'transport' => 'postMessage',
  13. 'choices' => array(
  14. 'logo-menu' => array(
  15. 'alt' => esc_html__( 'One row, left logo, menu on the right', 'vamtam-consulting' ),
  16. 'img' => VAMTAM_ADMIN_ASSETS_URI . 'images/header-layout-1.png',
  17. ),
  18. 'logo-text-menu' => array(
  19. 'alt' => esc_html__( 'Two rows; left-aligned logo on top, right-aligned text and search', 'vamtam-consulting' ),
  20. 'img' => VAMTAM_ADMIN_ASSETS_URI . 'images/header-layout-2.png',
  21. ),
  22. 'standard' => array(
  23. 'alt' => esc_html__( 'Two rows; centered logo on top', 'vamtam-consulting' ),
  24. 'img' => VAMTAM_ADMIN_ASSETS_URI . 'images/header-layout-3.png',
  25. ),
  26. 'overlay-menu' => array(
  27. 'alt' => esc_html__( 'One row with overlay menu', 'vamtam-consulting' ),
  28. 'img' => VAMTAM_ADMIN_ASSETS_URI . 'images/header-layout-overlay.png',
  29. ),
  30. ),
  31. ),
  32. array(
  33. 'label' => esc_html__( 'Header Height', 'vamtam-consulting' ),
  34. 'description' => esc_html__( 'This is the area above the slider. Includes the height of the menu for two line header layouts.', 'vamtam-consulting' ),
  35. 'id' => 'header-height',
  36. 'type' => 'number',
  37. 'compiler' => true,
  38. 'transport' => 'postMessage',
  39. 'input_attrs' => array(
  40. 'min' => 30,
  41. 'max' => 300,
  42. ),
  43. ),
  44. array(
  45. 'label' => esc_html__( 'Sticky Header', 'vamtam-consulting' ),
  46. 'description' => esc_html__( 'This option is switched off automatically for mobile devices because the animation is not well supported by the majority of the mobile devices.', 'vamtam-consulting' ),
  47. 'id' => 'sticky-header',
  48. 'type' => 'switch',
  49. 'transport' => 'postMessage',
  50. ),
  51. array(
  52. 'label' => esc_html__( 'Enable Header Search', 'vamtam-consulting' ),
  53. 'id' => 'enable-header-search',
  54. 'type' => 'switch',
  55. 'transport' => 'postMessage',
  56. ),
  57. array(
  58. 'label' => esc_html__( 'Show Empty WooCommerce Cart in Header', 'vamtam-consulting' ),
  59. 'id' => 'show-empty-header-cart',
  60. 'type' => 'switch',
  61. 'transport' => 'postMessage',
  62. ),
  63. array(
  64. 'label' => esc_html__( 'Full Width Header', 'vamtam-consulting' ),
  65. 'description' => esc_html__( 'One row header only', 'vamtam-consulting' ),
  66. 'id' => 'full-width-header',
  67. 'type' => 'switch',
  68. 'transport' => 'postMessage',
  69. ),
  70. array(
  71. 'label' => esc_html__( 'Header Text Area', 'vamtam-consulting' ),
  72. 'description' => esc_html__( 'You can place text/HTML or any shortcode in this field. The text will appear in the header on the left hand side.', 'vamtam-consulting' ),
  73. 'id' => 'header-text-main',
  74. 'type' => 'textarea',
  75. 'transport' => 'postMessage',
  76. ),
  77. array(
  78. 'label' => esc_html__( 'Header Background', 'vamtam-consulting' ),
  79. 'description' => wp_kses_post( __( 'If you want to use an image as a background, enabling the cover button will resize and crop the image so that it will always fit the browser window on any resolution.', 'vamtam-consulting' ) ),
  80. 'id' => 'header-background',
  81. 'type' => 'background',
  82. 'compiler' => true,
  83. 'transport' => 'postMessage',
  84. 'show' => array(
  85. 'background-position' => false,
  86. ),
  87. ),
  88. array(
  89. 'label' => esc_html__( 'Sub-Header Background', 'vamtam-consulting' ),
  90. 'id' => 'sub-header-background',
  91. 'type' => 'background',
  92. 'compiler' => true,
  93. 'transport' => 'postMessage',
  94. 'show' => array(
  95. 'background-attachment' => false,
  96. 'background-position' => false,
  97. ),
  98. ),
  99. array(
  100. 'label' => esc_html__( 'Page Title Layout', 'vamtam-consulting' ),
  101. 'id' => 'page-title-layout',
  102. 'description' => esc_html__( 'The first row is the Title, the second row is the Description. The description can be added in the local option panel just below the editor.', 'vamtam-consulting' ),
  103. 'type' => 'select',
  104. 'transport' => 'postMessage',
  105. 'choices' => array(
  106. 'centered' => esc_html__( 'Two rows, Centered', 'vamtam-consulting' ),
  107. 'one-row-left' => esc_html__( 'One row, title on the left', 'vamtam-consulting' ),
  108. 'one-row-right' => esc_html__( 'One row, title on the right', 'vamtam-consulting' ),
  109. 'left-align' => esc_html__( 'Two rows, left-aligned', 'vamtam-consulting' ),
  110. 'right-align' => esc_html__( 'Two rows, right-aligned', 'vamtam-consulting' ),
  111. ),
  112. ),
  113. array(
  114. 'label' => esc_html__( 'Page Title Background', 'vamtam-consulting' ),
  115. 'id' => 'page-title-background',
  116. 'type' => 'background',
  117. 'compiler' => true,
  118. 'transport' => 'postMessage',
  119. 'show' => array(
  120. 'background-attachment' => false,
  121. 'background-position' => false,
  122. ),
  123. ),
  124. array(
  125. 'label' => esc_html__( 'Hide Page Title Background Image on Lower Resolutions', 'vamtam-consulting' ),
  126. 'id' => 'page-title-background-hide-lowres',
  127. 'type' => 'switch',
  128. 'transport' => 'postMessage',
  129. ),
  130. array(
  131. 'label' => esc_html__( 'Site Title', 'vamtam-consulting' ),
  132. 'id' => 'logo',
  133. 'type' => 'typography',
  134. 'compiler' => true,
  135. 'transport' => 'postMessage',
  136. ),
  137. array(
  138. 'label' => esc_html__( 'Text Color for Transparent Header', 'vamtam-consulting' ),
  139. 'type' => 'color',
  140. 'id' => 'main-menu-text-sticky-color',
  141. 'compiler' => true,
  142. 'transport' => 'postMessage',
  143. ),
  144. array(
  145. 'id' => 'info-menu-styles',
  146. 'type' => 'info',
  147. 'label' => esc_html__( 'Menu Styles', 'vamtam-consulting' ),
  148. 'description' => wp_kses_post( sprintf( __( 'Menu styling options are available <a href="%s" title="Max Mega Menu" target="_blank">here</a> if you have the Max Mega Menu plugin installed.', 'vamtam-consulting' ), admin_url( 'admin.php?page=maxmegamenu_theme_editor' ) ) ),
  149. ),
  150. array(
  151. 'id' => 'info-mobile-header-layout',
  152. 'type' => 'info',
  153. 'description' => wp_kses_post( sprintf( __( 'Mobile header layout options are available <a href="%s" title="Max Mega Menu" target="_blank">here</a> if you have Max Mega Menu installed.', 'vamtam-consulting' ), admin_url( 'admin.php?page=maxmegamenu' ) ) ),
  154. ),
  155. );