shortcode-vc-row-inner.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. return array(
  6. 'name' => esc_html__( 'Inner Row', 'js_composer' ),
  7. 'content_element' => false,
  8. 'is_container' => true,
  9. 'icon' => 'icon-wpb-row',
  10. 'weight' => 1000,
  11. 'show_settings_on_create' => false,
  12. 'description' => esc_html__( 'Place content elements inside the inner row', 'js_composer' ),
  13. 'params' => array(
  14. array(
  15. 'type' => 'el_id',
  16. 'heading' => esc_html__( 'Row ID', 'js_composer' ),
  17. 'param_name' => 'el_id',
  18. 'description' => sprintf( esc_html__( 'Enter optional row ID. Make sure it is unique, and it is valid as w3c specification: %s (Must not have spaces)', 'js_composer' ), '<a target="_blank" href="https://www.w3schools.com/tags/att_global_id.asp">' . esc_html__( 'link', 'js_composer' ) . '</a>' ),
  19. ),
  20. array(
  21. 'type' => 'checkbox',
  22. 'heading' => esc_html__( 'Equal height', 'js_composer' ),
  23. 'param_name' => 'equal_height',
  24. 'description' => esc_html__( 'If checked columns will be set to equal height.', 'js_composer' ),
  25. 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
  26. ),
  27. array(
  28. 'type' => 'checkbox',
  29. 'heading' => esc_html__( 'Reverse columns in RTL', 'js_composer' ),
  30. 'param_name' => 'rtl_reverse',
  31. 'description' => esc_html__( 'If checked columns will be reversed in RTL.', 'js_composer' ),
  32. 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
  33. ),
  34. array(
  35. 'type' => 'dropdown',
  36. 'heading' => esc_html__( 'Content position', 'js_composer' ),
  37. 'param_name' => 'content_placement',
  38. 'value' => array(
  39. esc_html__( 'Default', 'js_composer' ) => '',
  40. esc_html__( 'Top', 'js_composer' ) => 'top',
  41. esc_html__( 'Middle', 'js_composer' ) => 'middle',
  42. esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
  43. ),
  44. 'description' => esc_html__( 'Select content position within columns.', 'js_composer' ),
  45. ),
  46. array(
  47. 'type' => 'dropdown',
  48. 'heading' => esc_html__( 'Columns gap', 'js_composer' ),
  49. 'param_name' => 'gap',
  50. 'value' => array(
  51. '0px' => '0',
  52. '1px' => '1',
  53. '2px' => '2',
  54. '3px' => '3',
  55. '4px' => '4',
  56. '5px' => '5',
  57. '10px' => '10',
  58. '15px' => '15',
  59. '20px' => '20',
  60. '25px' => '25',
  61. '30px' => '30',
  62. '35px' => '35',
  63. ),
  64. 'std' => '0',
  65. 'description' => esc_html__( 'Select gap between columns in row.', 'js_composer' ),
  66. ),
  67. array(
  68. 'type' => 'checkbox',
  69. 'heading' => esc_html__( 'Disable row', 'js_composer' ),
  70. 'param_name' => 'disable_element',
  71. // Inner param name.
  72. 'description' => esc_html__( 'If checked the row won\'t be visible on the public side of your website. You can switch it back any time.', 'js_composer' ),
  73. 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
  74. ),
  75. array(
  76. 'type' => 'textfield',
  77. 'heading' => esc_html__( 'Extra class name', 'js_composer' ),
  78. 'param_name' => 'el_class',
  79. 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
  80. ),
  81. array(
  82. 'type' => 'css_editor',
  83. 'heading' => esc_html__( 'CSS box', 'js_composer' ),
  84. 'param_name' => 'css',
  85. 'group' => esc_html__( 'Design Options', 'js_composer' ),
  86. ),
  87. ),
  88. 'js_view' => 'VcRowView',
  89. );