vc-gitem-row.php 791 B

12345678910111213141516171819202122232425
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. require_once vc_path_dir( 'SHORTCODES_DIR', 'vc-row.php' );
  6. /**
  7. * Class WPBakeryShortCode_Vc_Gitem_Row
  8. */
  9. class WPBakeryShortCode_Vc_Gitem_Row extends WPBakeryShortCode_Vc_Row {
  10. /**
  11. * @return string
  12. */
  13. public function getLayoutsControl() {
  14. global $vc_row_layouts;
  15. $controls_layout = '<span class="vc_row_layouts vc_control">';
  16. foreach ( array_slice( $vc_row_layouts, 0, 4 ) as $layout ) {
  17. $controls_layout .= '<a class="vc_control-set-column set_columns" data-cells="' . $layout['cells'] . '" data-cells-mask="' . $layout['mask'] . '" title="' . $layout['title'] . '"><i class="vc-composer-icon vc-c-icon-' . $layout['icon_class'] . '"></i></a> ';
  18. }
  19. $controls_layout .= '</span>';
  20. return $controls_layout;
  21. }
  22. }