global-styles.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Theme options / Styles / Global Colors and Backgrounds
  4. *
  5. * @package vamtam/consulting
  6. */
  7. return array(
  8. array(
  9. 'label' => esc_html__( 'Page Background', 'vamtam-consulting' ),
  10. 'hint' => array(
  11. 'content' => esc_html__( "Please note that this option is used only in boxed layout mode.<br> In full width layout mode the page background is covered by the header, slider, body and footer backgrounds respectively. If the color opacity of these areas is 1 or an opaque image is used, the page background won't be visible.<br> 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.<br> You can override this option on a page by page basis.", 'vamtam-consulting' ),
  12. ),
  13. 'id' => 'body-background',
  14. 'type' => 'background',
  15. 'compiler' => true,
  16. 'transport' => 'postMessage',
  17. ),
  18. array(
  19. 'label' => esc_html__( 'Accent Colors', 'vamtam-consulting' ),
  20. 'description' => esc_html__( 'Most of the design elements are attached to the accent colors below. You can easily create your own skin by changing these colors.', 'vamtam-consulting' ) . ( vamtam_use_accent_preview() ? '' : '<p style="color: red; font-weight: bold">' . esc_html__( 'We have detected that your browser does not support CSS variables. This has a serious impact on performance and changing the accent color will require a full preview refresh. Please consider using Firefox, Chrome or Safari when using the Theme Customizer.', 'vamtam-consulting' ) . '</p>' ),
  21. 'id' => 'accent-color',
  22. 'type' => 'color-row',
  23. 'choices' => array(
  24. 1 => esc_html__( 'Accent 1', 'vamtam-consulting' ),
  25. 2 => esc_html__( 'Accent 2', 'vamtam-consulting' ),
  26. 3 => esc_html__( 'Accent 3', 'vamtam-consulting' ),
  27. 4 => esc_html__( 'Accent 4', 'vamtam-consulting' ),
  28. 5 => esc_html__( 'Accent 5', 'vamtam-consulting' ),
  29. 6 => esc_html__( 'Accent 6', 'vamtam-consulting' ),
  30. 7 => esc_html__( 'Accent 7', 'vamtam-consulting' ),
  31. 8 => esc_html__( 'Accent 8', 'vamtam-consulting' ),
  32. ),
  33. 'compiler' => true,
  34. 'transport' => vamtam_use_accent_preview() ? 'postMessage' : 'refresh',
  35. ),
  36. array(
  37. 'id' => 'info-menu-styles',
  38. 'type' => 'info',
  39. 'label' => esc_html__( 'Menu Styles', 'vamtam-consulting' ),
  40. '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' ) ) ),
  41. ),
  42. array(
  43. 'id' => 'info-booked-styles',
  44. 'type' => 'info',
  45. 'label' => esc_html__( 'Booked Styles', 'vamtam-consulting' ),
  46. 'description' => wp_kses_post( sprintf( __( 'Booked styling options are available <a href="%s" title="Booked" target="_blank">here</a> if you have the Booked plugin installed.', 'vamtam-consulting' ), admin_url( 'admin.php?page=booked-settings' ) ) ),
  47. ),
  48. array(
  49. 'id' => 'info-ninja-styles',
  50. 'type' => 'info',
  51. 'label' => esc_html__( 'Ninja Forms Styles', 'vamtam-consulting' ),
  52. 'description' => wp_kses_post( sprintf( __( 'Ninja Forms styling options are available <a href="%s" title="Ninja Forms" target="_blank">here</a> if you have the Ninja Forms plugin installed.', 'vamtam-consulting' ), admin_url( 'admin.php?page=ninja-forms&tab=styles' ) ) ),
  53. ),
  54. );