service_information.tpl 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. {% if service.applies_to != 0 %}
  60. <p><em class="fa fa-flag-o"></em> <b>{{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }}</b> :
  61. {% if service.applies_to == 1 %}
  62. {{ 'User'|get_lang }}
  63. {% elseif service.applies_to == 2 %}
  64. {{ 'Course'|get_lang }}
  65. {% elseif service.applies_to == 3 %}
  66. {{ 'Session'|get_lang }}
  67. {% elseif service.applies_to == 4 %}
  68. {{ 'TemplateTitleCertificate'|get_lang }}
  69. {% endif %}
  70. </p>
  71. {% endif %}
  72. </div>
  73. <div class="service-buy">
  74. <div class="row">
  75. <div class="col-sm-6">
  76. <div class="price">
  77. {{ 'Total'|get_lang }}
  78. {{ service.total_price_formatted }}
  79. </div>
  80. </div>
  81. <div class="col-sm-6">
  82. <a href="{{ _p.web_plugin ~ 'buycourses/src/service_process.php?t=4&i=' ~ service.id }}"
  83. class="btn btn-success btn-lg btn-block">
  84. <em class="fa fa-shopping-cart"></em> {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}
  85. </a>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </section>
  94. <div class="row">
  95. <div class="col-md-12">
  96. <div class="panel panel-default">
  97. <div class="panel-body">
  98. <div class="page-header">
  99. <h3>{{ 'ServiceInformation'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  100. </div>
  101. <div class="service-information">
  102. {{ service.service_information }}
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>