service_information.tpl 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <div id="service" class="service">
  2. <div class="page-header">
  3. <h2>{{ service.name }}</h2>
  4. </div>
  5. <section id="service-info">
  6. <div class="panel panel-default">
  7. <div class="panel-body">
  8. <div class="row">
  9. <div class="col-md-6">
  10. <div class="service-media">
  11. {% if service.video_url %}
  12. <div class="service-video">
  13. <div class="embed-responsive embed-responsive-16by9">
  14. {{ essence.replace(service.video_url) }}
  15. </div>
  16. </div>
  17. {% elseif service.image %}
  18. <div class="service-image">
  19. <a href="{{ _p.web }}service/{{ service.id }}">
  20. <img alt="{{ service.name }}" class="img-rounded img-responsive"
  21. src="{{ service.image ? service.image : 'session_default.png'|icon() }}">
  22. </a>
  23. </div>
  24. {% endif %}
  25. </div>
  26. <div class="share-social-media">
  27. <ul class="sharing-buttons">
  28. <li>
  29. {{ "ShareWithYourFriends"|get_lang }}
  30. </li>
  31. <li>
  32. <a href="https://www.facebook.com/sharer/sharer.php?{{ {'u': pageUrl}|url_encode }}"
  33. target="_blank" class="btn btn-facebook btn-inverse btn-xs">
  34. <em class="fa fa-facebook"></em> Facebook
  35. </a>
  36. </li>
  37. <li>
  38. <a href="https://twitter.com/home?{{ {'status': session.getName() ~ ' ' ~ pageUrl}|url_encode }}"
  39. target="_blank" class="btn btn-twitter btn-inverse btn-xs">
  40. <em class="fa fa-twitter"></em> Twitter
  41. </a>
  42. </li>
  43. <li>
  44. <a href="https://www.linkedin.com/shareArticle?{{ {'mini': 'true', 'url': pageUrl, 'title': session.getName() }|url_encode }}"
  45. target="_blank" class="btn btn-linkedin btn-inverse btn-xs">
  46. <em class="fa fa-linkedin"></em> Linkedin
  47. </a>
  48. </li>
  49. </ul>
  50. </div>
  51. </div>
  52. <div class="col-md-6">
  53. {% if service.description %}
  54. <div class="description">
  55. {{ service.description }}
  56. </div>
  57. {% endif %}
  58. <div class="service-details">
  59. <p><em class="fa fa-flag-o"></em> <b>{{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }}</b> :
  60. {% if service.applies_to == 1 %}
  61. {{ 'User'|get_lang }}
  62. {% elseif service.applies_to == 2 %}
  63. {{ 'Course'|get_lang }}
  64. {% elseif service.applies_to == 3 %}
  65. {{ 'Session'|get_lang }}
  66. {% elseif service.applies_to == 4 %}
  67. {{ 'TemplateTitleCertificate'|get_lang }}
  68. {% endif %}
  69. </p>
  70. <p><em class="fa fa-money"></em> <b>{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</b>
  71. {% if service.tax_enable %}
  72. : {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price_with_tax }}
  73. {% else %}
  74. : {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price }}</p>
  75. {% endif %}
  76. </div>
  77. <div class="service-buy">
  78. <div class="row">
  79. <div class="col-sm-6">
  80. <div class="price">
  81. {{ 'Total'|get_lang }}
  82. {% if service.tax_enable %}
  83. : {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price_with_tax }}
  84. {% else %}
  85. : {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price }}
  86. {% endif %}
  87. </div>
  88. </div>
  89. <div class="col-sm-6">
  90. <a href="{{ _p.web_plugin ~ 'buycourses/src/service_process.php?t=4&i=' ~ service.id }}"
  91. class="btn btn-success btn-lg btn-block">
  92. <em class="fa fa-shopping-cart"></em> {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}
  93. </a>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </section>
  102. <div class="row">
  103. <div class="col-md-12">
  104. <div class="panel panel-default">
  105. <div class="panel-body">
  106. <div class="page-header">
  107. <h3>{{ 'ServiceInformation'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  108. </div>
  109. <div class="service-information">
  110. {{ service.service_information }}
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>