vc-message.php 808 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. /**
  6. * Class WPBakeryShortCode_Vc_Message
  7. */
  8. class WPBakeryShortCode_Vc_Message extends WPBakeryShortCode {
  9. /**
  10. * @param $atts
  11. * @return mixed
  12. */
  13. public static function convertAttributesToMessageBox2( $atts ) {
  14. if ( isset( $atts['style'] ) ) {
  15. if ( '3d' === $atts['style'] ) {
  16. $atts['message_box_style'] = '3d';
  17. $atts['style'] = 'rounded';
  18. } elseif ( 'outlined' === $atts['style'] ) {
  19. $atts['message_box_style'] = 'outline';
  20. $atts['style'] = 'rounded';
  21. } elseif ( 'square_outlined' === $atts['style'] ) {
  22. $atts['message_box_style'] = 'outline';
  23. $atts['style'] = 'square';
  24. }
  25. }
  26. return $atts;
  27. }
  28. /**
  29. * @param $title
  30. * @return string
  31. */
  32. public function outputTitle( $title ) {
  33. return '';
  34. }
  35. }