vc-gitem-image.php 466 B

12345678910111213141516171819202122
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. require_once vc_path_dir( 'SHORTCODES_DIR', 'vc-custom-heading.php' );
  6. /**
  7. * Class WPBakeryShortCode_Vc_Gitem_Image
  8. */
  9. class WPBakeryShortCode_Vc_Gitem_Image extends WPBakeryShortCode_Vc_Gitem_Post_Data {
  10. /**
  11. * Get data_source attribute value
  12. *
  13. * @param array $atts - list of shortcode attributes
  14. *
  15. * @return string
  16. */
  17. public function getDataSource( array $atts ) {
  18. return 'post_image';
  19. }
  20. }