vc-gitem-post-excerpt.php 589 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. require_once vc_path_dir( 'SHORTCODES_DIR', 'vc-gitem-post-data.php' );
  6. /**
  7. * Class WPBakeryShortCode_Vc_Gitem_Post_Excerpt
  8. */
  9. class WPBakeryShortCode_Vc_Gitem_Post_Excerpt extends WPBakeryShortCode_Vc_Gitem_Post_Data {
  10. /**
  11. * @return mixed|string
  12. */
  13. protected function getFileName() {
  14. return 'vc_gitem_post_data';
  15. }
  16. /**
  17. * Get data_source attribute value
  18. *
  19. * @param array $atts - list of shortcode attributes
  20. *
  21. * @return string
  22. */
  23. public function getDataSource( array $atts ) {
  24. return 'post_excerpt';
  25. }
  26. }