vc-button.php 497 B

12345678910111213141516171819202122
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. /**
  6. * WPBakery WPBakery Page Builder shortcodes
  7. *
  8. * @package WPBakeryPageBuilder
  9. *
  10. */
  11. class WPBakeryShortCode_Vc_Button extends WPBakeryShortCode {
  12. /**
  13. * @param $title
  14. * @return string
  15. */
  16. protected function outputTitle( $title ) {
  17. $icon = $this->settings( 'icon' );
  18. return '<h4 class="wpb_element_title"><span class="vc_general vc_element-icon' . ( ! empty( $icon ) ? ' ' . esc_attr( $icon ) : '' ) . '"></span></h4>';
  19. }
  20. }