Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.73 KB | None | 0 0
  1.  
  2.  
  3. $output = '';
  4. $output .= '<div id="pricing" class="thm-pricing-wrap">';
  5.  
  6. // Single
  7. $output .= '<div class="thm-pricing-single">';
  8. $output .= '<div class="thm-pricing-duration">';
  9. $output .= '<h3 class="single-price">$' .$settings['single_price'] .'</h3> <span>' . $settings['duration'].'</span>';
  10. $output .= '</div>';
  11.  
  12. $output .= '<div class="thm-pricing-title-wrap">';
  13. $output .= '<h3 class="thm-pricing-title">';
  14. $output .= $settings['single_title'];
  15. $output .= '</h3>';
  16. $output .= '<span class="thm-pricing-subtitle">';
  17. $output .= $settings['single_subtitle'];
  18. $output .= '</span>';
  19. $output .= '</div>';//thm-pricing-title-wrap
  20.  
  21. $output .= '<div class="thm-pricing-desc-wrap">';
  22. $output .= $settings['single_description'];
  23. $output .= '</div>';//thm-pricing-desc-wrap
  24.  
  25. if( is_array($settings['single_plugin']) ){
  26. $output .= '<div class="row thm-pricing-single-item-wrap">';
  27. foreach( $settings['single_plugin'] as $value ){
  28. $output .= '<div class="col-md-6">';
  29. $output .= '<div class="thm-pricing-single-item">';
  30. $output .= '<img src="'.$value['logo']['url'].'" alt="image">';
  31. $output .= '<h4><a href="'.$value['link']['link'].'" >'. $value['title']. '</a></h4>';
  32. $output .= '</div>';//thm-pricing-single-item
  33. $output .= '</div>';//col-md-6
  34. }
  35. $output .= '</div>';//thm-pricing-desc-wrap
  36. }
  37. if( function_exists('wc_get_product') && $settings['product_id'] ){
  38. $product = wc_get_product( $settings['product_id'] );
  39. $dataURL = $product->add_to_cart_url();
  40. $output .= '<div><a href="'.$dataURL.'" class="btn btn-classic btn-block download-count" data-productid="">Purchase</a></div>';
  41. }
  42. $output .= '</div>';//thm-pricing-single
  43.  
  44. $output .= '<div class="thm-pricing-club">';
  45. $output .= '<h2>Club Membership</h2>';
  46.  
  47. // Themes
  48. $output .= '<div class="thm-pricing-theme">';
  49. $output .= '<div class="thm-pricing-check"><input type="checkbox" checked class="themes-checkin" id="themes-checkinid"><label class="label-themes-checkin" for="themes-checkinid"></label></div>';
  50. $output .= '<div class="pricing-theme">';
  51. $output .= '<h4>'.$settings['theme_title'].'</h4>';
  52. $output .= $settings['theme_description'];
  53. $output .= '</div>';
  54. $output .= '<div class="thm-pricing-duration">';
  55. $output .= '<h3 class="single-price themes">$' .$settings['theme_price'] .'</h3> <span>' . $settings['duration'].'</span>';
  56. $output .= '</div>';
  57. $output .= '</div>';
  58.  
  59. // Plugins
  60. $output .= '<div class="thm-pricing-theme thm-pricing-plugin">';
  61. $output .= '<div class="thm-pricing-check"><input type="checkbox" checked class="plugins-checkin" id="plugin-checkinid"><label class="label-themes-checkin" for="plugin-checkinid"></label></div>';
  62. $output .= '<div class="pricing-theme">';
  63. $output .= '<h4>'.$settings['plugin_title'].'</h4>';
  64. $output .= $settings['plugin_description'];
  65. $output .= '</div>';
  66. $output .= '<div class="thm-pricing-duration">';
  67. $output .= '<h3 class="single-price plugins">$' .$settings['plugin_price'] .'</h3> <span>' . $settings['duration'].'</span>';
  68. $output .= '</div>';
  69. $output .= '</div>';
  70.  
  71. // All
  72. $output .= '<div class="thm-pricing-all">';
  73. $output .= '<div class="thm-pricing-title-wrap">';
  74. $output .= '<h4 class="total-pricing-title">';
  75. $output .= $settings['total_title'];
  76. $output .= '</h4>';
  77. $output .= '<span class="total-pricing-subtitle">';
  78. $output .= $settings['total_description'];
  79. $output .= '</span>';
  80. $output .= '</div>';
  81. $output .= '<div class="thm-pricing-info-wrap">';
  82. $output .= ' <span class="total-discount">$' .$settings['total_discount'] .'</span> <h3 class="total-price">$' .$settings['total_price'] .'</h3> <span>' . $settings['duration'].'</span>';
  83. $output .= '</div>';
  84. $output .= '</div>';
  85.  
  86. // Button
  87. if( $settings['all'] && $settings['themes'] && $settings['plugins'] ){
  88. $product = wc_get_product( $settings['all'] );
  89. $dataURL = $product->add_to_cart_url();
  90. $output .= '<a data-themes="'.$settings['themes'].'" data-themes-label="'.urlencode($settings['themes_label']).'" data-plugins="'.$settings['plugins'].'" data-plugins-label="'.urlencode($settings['plugins_label']).'" data-all="'.$settings['all'].'" data-all-label="'.urlencode($settings['all_label']).'" href="'.$dataURL.'" class="btn btn-style btn-block download-count bundle-user">'.$settings['button_text'].'</a>';
  91. }
  92.  
  93. $output .= '</div>';//thm-pricing-club
  94. $output .= '</div>';//thm-pricing-wrap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement