service_information.html.twig 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {% autoescape false %}
  2. <div id="service-information">
  3. <div class="row">
  4. <div class="col-xs-12">
  5. <h3 class="text-uppercase buy-courses-title-color">{{ service.name }}</h3>
  6. </div>
  7. {% if service.video_url %}
  8. <div class="col-sm-6 col-md-7 col-xs-12">
  9. <div class="embed-responsive embed-responsive-16by9">
  10. {{ essence.replace(service.video_url) }}
  11. </div>
  12. </div>
  13. {% endif %}
  14. <div class="{{ service.video_url ? 'col-sm-6 col-md-5 col-xs-12' : 'col-sm-12 col-xs-12' }}">
  15. <div class="block">
  16. <div class="panel panel-default">
  17. <div class="panel-heading">
  18. <h4>{{ "Description"|get_lang }}</h4>
  19. </div>
  20. <div class="panel-body">
  21. <p><em class="fa fa-flag-o"></em> <b>{{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }}</b> :
  22. {% if service.applies_to == 1 %}
  23. {{ 'User' | get_lang }}
  24. {% elseif service.applies_to == 2 %}
  25. {{ 'Course' | get_lang }}
  26. {% elseif service.applies_to == 3 %}
  27. {{ 'Session' | get_lang }}
  28. {% endif %}
  29. </p>
  30. <p><em class="fa fa-money"></em> <b>{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</b> : {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price }}</p>
  31. <p><em class="fa fa-align-justify"></em> <b>{{ 'Details' | get_lang }}</b> : {{ service.description }}</p>
  32. <div class="text-right" style="padding-bottom: 20px;">
  33. <a href="{{ url('legacy_plugin', {'name' :'buycourses/src/service_process.ajax.php', 't' : 4, 'i': service.id }) }}" class="btn btn-success btn-lg">
  34. <em class="fa fa-shopping-cart"></em> {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}
  35. </a>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </br>
  43. </br>
  44. <div class="row info-course">
  45. <div class="col-xs-12 col-md-7">
  46. <div class="panel panel-default">
  47. <div class="panel-heading">
  48. <h4>{{ 'ServiceInformation'|get_plugin_lang('BuyCoursesPlugin') }}</h4>
  49. </div>
  50. <div class="panel-body">
  51. {{ service.service_information }}
  52. </div>
  53. </div>
  54. </div>
  55. <div class="col-xs-12 col-md-5">
  56. <div class="panel panel-default social-share">
  57. <div class="panel-heading">
  58. <h4>{{ "ShareWithYourFriends"|get_lang }}</h4>
  59. </div>
  60. <div class="panel-body">
  61. <div class="icons-social text-center">
  62. <a href="https://www.facebook.com/sharer/sharer.php?{{ {'u': pageUrl}|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
  63. <em class="fa fa-facebook fa-2x"></em>
  64. </a>
  65. <a href="https://twitter.com/home?{{ {'status': session.getName() ~ ' ' ~ pageUrl}|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
  66. <em class="fa fa-twitter fa-2x"></em>
  67. </a>
  68. <a href="https://www.linkedin.com/shareArticle?{{ {'mini': 'true', 'url': pageUrl, 'title': session.getName() }|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
  69. <em class="fa fa-linkedin fa-2x"></em>
  70. </a>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. {% endautoescape %}