Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. Fatal error: Call to undefined function vc_path_dir() in D:Hosting12783180htmlwp-contentthemesfashionsubvc_shortcodesclassall_products.php on line 3
  2.  
  3. <?php
  4. // require_once vc_path_dir('SHORTCODES_DIR', 'vc-posts-grid.php');
  5. class WPBakeryShortCode_Wpo_All_Products extends WPBakeryShortCode {
  6.  
  7. public function getListQuery(){
  8. $list_query = array();
  9. $types = explode(',', $this->atts['show_tab']);
  10. foreach ($types as $type) {
  11. $list_query[$type] = $this->getTabTitle($type);
  12. }
  13. return $list_query;
  14. }
  15.  
  16. public function getTabTitle($type){
  17. switch ($type) {
  18. case 'recent':
  19. return array('title'=>__('Latest Products',TEXTDOMAIN),'title_tab'=>__('Latest',TEXTDOMAIN));
  20. case 'featured_product':
  21. return array('title'=>__('Featured Products',TEXTDOMAIN),'title_tab'=>__('Featured',TEXTDOMAIN));
  22. case 'top_rate':
  23. return array('title'=> __('Top Rated Products',TEXTDOMAIN),'title_tab'=>__('Top Rated', TEXTDOMAIN));
  24. case 'best_selling':
  25. return array('title'=>__('BestSeller Products',TEXTDOMAIN),'title_tab'=>__('BestSeller',TEXTDOMAIN));
  26. case 'on_sale':
  27. return array('title'=>__('Special Products',TEXTDOMAIN),'title_tab'=>__('Special',TEXTDOMAIN));
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement