Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.53 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10. <link rel="icon" href="{{ market.favicon_url }}">
  11. <title>{{ market.name }} | {{ page_name }}</title>
  12. <!-- Bootstrap core CSS -->
  13. <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/paper/bootstrap.min.css" rel="stylesheet" integrity="sha384-awusxf8AUojygHf2+joICySzB780jVvQaVCAt1clU3QsyAitLGul28Qxb2r1e5g+" crossorigin="anonymous">
  14. <link href="{% static 'css/font-awesome.min.css' %}" rel="stylesheet">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.2/css/bootstrap-select.min.css">
  16. <link rel="stylesheet" href="{% static 'new_panel/css/market.css' %}">
  17. <!-- Google analytics -->
  18. <script>
  19. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  20. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  21. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  22. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  23.  
  24. ga('create', '{{ mm_google_analytics_code }}', 'auto');
  25. ga('send', 'pageview');
  26. {% if market.google_analytics_code %}
  27. ga('create', '{{ market.google_analytics_code }}', 'auto', 'clientTracker');
  28. ga('clientTracker.send', 'pageview');
  29. {% endif %}
  30. </script>
  31. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  32. <!--[if lt IE 9]>
  33. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  34. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  35. <![endif]-->
  36.  
  37. <!-- User added stylesheet files -->
  38. {% for stylesheet in stylesheet_files %}
  39. <link rel="stylesheet" href="{{ stylesheet }}">
  40. {% endfor %}
  41. <!-- end of user added stylesheet -->
  42. </head>
  43. <body>
  44. <!-- static navbar -->
  45. {% include navbar_template %}
  46. <!-- /static navbar -->
  47. <div id="site" class="container-fluid">
  48. {% include header_template %}
  49. <!-- content -->
  50. <!-- /content -->
  51. <!-- Custom Content -->
  52. <div class="row" id="scrollSectionMain">
  53. <div class="container">
  54. <div class="col-md-12">
  55. <div id="market-controls" class="pull-right">
  56. {% if cart.player %}
  57. <div class="btn-group">
  58. <a class="btn btn-default dropdown-toggle" data-toggle="dropdown">
  59. {{ cart.player.username }} <span class="caret"></span>
  60. </a>
  61. <ul class="dropdown-menu" role="menu">
  62. <li><a href="{% url 'logout' %}">{% trans "Logout" %}</a></li>
  63. </ul>
  64. </div>
  65. {% endif %}
  66. <div class="btn-group">
  67. <form id="currency_switcher" method="POST" action="{% url "change-currency" %}">
  68. <select id="currency" name="currency" class="selectpicker currency-selector form-control" onchange="$('#currency_switcher').submit()" data-dropup-auto="false" data-width="80px" data-size="8" data-live-search="true" data-title="{{ request.session.currency }}" multiple>
  69. {% for curr in currencies %}
  70. <option value="{{ curr.code }}" {% ifequal curr.code CURRENCY.code %}selected{% endifequal %}>
  71. {{ curr.symbol }} {{ curr.code }}
  72. </option>
  73. {% endfor %}
  74. </select>
  75. <noscript>
  76. <input type="submit" value="Set"/>
  77. </noscript>
  78. </form>
  79. </div>
  80. {% if cart.player %}
  81. <div class="btn-group">
  82. <a class="btn btn-success dropdown-toggle" data-toggle="dropdown">
  83. <i class="fa fa-shopping-cart"></i> {% trans "Cart" %} ({{ cart.count }} {% if cart.count == 0 or cart.count >= 2 %}items{% else %}item{% endif %}) <span class="caret"></span>
  84. </a>
  85. <ul class="dropdown-menu cart-dropdown" role="menu">
  86. {% for item in cart %}
  87. <li class="cart-dropdown-list">
  88. <div class="cart-dropdown-image">
  89. <img src="{{ item.product.image_url }}" class="img-responsive">
  90. </div>
  91. <div class="cart-dropdown-name">{{ item.product.name }}</div>
  92. <div class="cart-dropdown-info">{{ item.subtotal }} {{ currency }}</div>
  93. <div class="cart-dropdown-remove">
  94. <a href="{% url 'checkout-remove' item.product.pk %}" class="btn btn-default btn-sm"><i class="fa fa-times"></i></a>
  95. </div>
  96. </li>
  97. {% endfor %}
  98. <li class="cart-dropdown-controls">
  99. <div class="cart-dropdown-total">
  100. <strong>{% trans "Checkout:" %}</strong> {{ cart.total }} {{ currency }}
  101. </div>
  102. <div class="cart-dropdown-checkout">
  103. <a href="{% url 'checkout-detail' %}" class="btn btn-success">{% trans "Checkout" %}</a>
  104. </div>
  105. </li>
  106. </ul>
  107. </div>
  108. {% else %}
  109. <button type="button" class="btn btn-primary" disabled="disabled">{% trans "Checkout" %} <span class="caret"></span></button>
  110. {% endif %}
  111. </div>
  112. </div>
  113. <div class="col-md-12 market-spacer"></div>
  114. <!------------------------------------
  115. // Start Custom Top Content Section //
  116. ------------------------------------->
  117. <div class="col-md-8">
  118. {% include alerts_template %}
  119. {% if market.plan == 1 %}
  120. <div class="panel panel-default">
  121. <div class="panel-body" style="overflow: hidden;">
  122. <script type="text/javascript"><!--
  123. google_ad_client = "ca-pub-4435275545393266";
  124. /* MarketTop */
  125. google_ad_slot = "6171521691";
  126. google_ad_width = 728;
  127. google_ad_height = 90;
  128. //-->
  129. </script>
  130. <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
  131. </div>
  132. </div>
  133. {% endif %}
  134. {% block page %}
  135. {% endblock %}
  136. {% if market.plan == 1 %}
  137. <div class="panel panel-default">
  138. <div class="panel-body" style="overflow: hidden;">
  139. <script type="text/javascript"><!--
  140. google_ad_client = "ca-pub-4435275545393266";
  141. /* MarketBottom */
  142. google_ad_slot = "5991992094";
  143. google_ad_width = 728;
  144. google_ad_height = 90;
  145. //-->
  146. </script>
  147. <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
  148. </div>
  149. </div>
  150. {% endif %}
  151. </div>
  152. <!-- // Player Status Custom Module Block // -->
  153. <div class="col-md-4">
  154. {% for module in modules %}
  155. {% if module.title == 'Server Status' %}
  156. {% if not module.online and module.hide_offline %}
  157. {% else %}
  158. <div class="slanted-block slant-two col-md-12 {% if module.online %}svrOnline{% else %}svrOffline{% endif %}">
  159. <h4>{{ module.title }}{% if module.online %}
  160. <span class="label label-success pull-right svrStatus">{% trans "Online" %}</span>
  161. {% else %}
  162. <span class="label label-danger pull-right svrStatus">{% trans "Offline" %}</span>
  163. {% endif %}</h4>
  164. <div class="panel-body text-center">
  165. <p class="lead text-center">{{ module.server_address }}</p>
  166. <p class="tex text-center" style="font-size:14px"><strong>{{ module.players }}/{{ module.max_players }} {% trans "players online" %}</strong></p>
  167. </div>
  168. </div>
  169. {% endif %}
  170. {% endif %}
  171. <!-- // Custom Text Box Content for Payment Methods // -->
  172. {% if module.title == 'Text Box' %}
  173. <div class="slanted-block slant-two col-md-12">
  174. <h4>Payment Options</h4>
  175. <div class="panel-body">
  176. <p>{{ module.text_safe }}</p>
  177. </div>
  178. </div>
  179. {% endif %}
  180. {% endfor %}
  181. </div>
  182. <!-- // End Player Status Custom Module Block // -->
  183. <!----------------------------------
  184. // END Custom Top Content Section //
  185. ----------------------------------->
  186. <!-- // If statement to check if page is terms and conditions, of it is doesnt show modules. // -->
  187.  
  188. {% if page_name == 'Terms and conditions' %}
  189.  
  190. {% else %}
  191. <!-- // Start Custom Past Purchase Module Block // -->
  192. <div class="col-md-12">
  193. {% for module in modules %}
  194. {% if module.title == 'Recent Donors' %}
  195. <div class="slanted-block slant-two col-md-12">
  196. <h4>{{ module.title }}</h4>
  197. <div class="panel-body">
  198. <div class="row payment">
  199. {% for purchase in module.purchases %}
  200. <div class="pPurchase col-md-6">
  201. <div class="col-lg-4 avatar">
  202. <div class="text-center">
  203. <img src="https://www.minecraftmarket.com/api/profiles/heads/{{ purchase.purchase.player.username }}/64" title="{{ purchase.purchase.player.username }}" alt="{{ purchase.purchase.player.username }}" style="border-radius: 0%;">
  204. </div>
  205. </div>
  206. <div class="col-lg-8">
  207. <div class="details">
  208. <div class="username">
  209. <h4>{{ purchase.purchase.player.username }}<span class="pPurchasesItem">{% if module.display_item %} - {{ purchase.name }}{% endif %}</span></h4>
  210. </div>
  211. <div class="extra">
  212. {% if module.display_price %}{% currency purchase.price %} {{ currency }}{% endif %}
  213. {% if module.display_datetime %}{{ purchase.purchase.date|date:'M d, Y H:i' }}{% endif %}
  214. </div>
  215. </div>
  216. </div>
  217. <div class="col-md-12" style="height:25px;"></div>
  218. </div>
  219. {% empty %}
  220. <p class="text-center">No recent purchases</p>
  221. {% endfor %}
  222. </div>
  223. </div>
  224. </div>
  225. {% endif %}
  226. {% endfor %}
  227. </div>
  228. <!-- // END Custom Past Purchase Module Block // -->
  229. <!-- // Start Custom Featured Item Module Block // -->
  230. <div class="col-md-12">
  231. {% for module in modules %}
  232. {% if module.title == 'Featured Item' %}
  233. <div class="slanted-block slant-two col-md-6 featuredProduct2">
  234. <h4>This Months Featured Product</h4>
  235. {% if module.featured_item %}
  236. <div class="panel-body">
  237. <img class="img-responsive center-block" src="{{ module.featured_item.image_url }}">
  238. <h4 style="text-align: center">{{ module.featured_item.name }}</h4>
  239. <div class="item-footer">
  240. <div class="col-md-6 text-center">
  241. <span style="font-size:14px"><strong>{% money module.featured_item %} {{ currency }}</strong></span>
  242. </div>
  243. <div class="col-md-6 text-center">
  244. <button data-remote="{% url 'item-detail' module.featured_item.pk %}" class="btn btn-primary modalToggle">{% trans "View/Buy" %}</button>
  245. </div>
  246. </div>
  247. </div>
  248. {% else %}
  249. <div class="panel-body text-center">
  250. <p>{% trans 'There is no featured item currently selected.' %}</p>
  251. </div>
  252. {% endif %}
  253. </div>
  254. {% endif %}
  255. {% if module.title == 'Featured Item 2' %}
  256. <div class="slanted-block slant-two col-md-6 featuredProduct2">
  257. <h4>Last Months Featured Product</h4>
  258. {% if module.featured_item %}
  259. <div class="panel-body">
  260. <img class="img-responsive center-block" src="{{ module.featured_item.image_url }}">
  261. <h4 style="text-align: center">{{ module.featured_item.name }}</h4>
  262. <div class="item-footer">
  263. <div class="col-md-6 text-center">
  264. <span style="font-size:14px"><strong>{% money module.featured_item %} {{ currency }}</strong></span>
  265. </div>
  266. <div class="col-md-6 text-center">
  267. <button data-remote="{% url 'item-detail' module.featured_item.pk %}" class="btn btn-primary modalToggle">{% trans "View/Buy" %}</button>
  268. </div>
  269. </div>
  270. </div>
  271. {% else %}
  272. <div class="panel-body text-center">
  273. <p>{% trans 'There is no featured item currently selected.' %}</p>
  274. </div>
  275. {% endif %}
  276. </div>
  277. {% endif %}
  278. {% endfor %}
  279. </div>
  280. <!-- // END Custom Featured Item Module Block // -->
  281. <!-- // Start Custom Top Donor Module Block // -->
  282. <div class="col-md-5">
  283. {% for module in modules %}
  284. {% if module.title == 'Top Donor' %}
  285. <div class="slanted-block slant-two col-md-12">
  286. <h4>{{ module.title }}</h4>
  287. <div class="panel-body">
  288. {% if module.top_customer %}
  289. <div class="row">
  290. <div class="col-lg-4">
  291. <img src="https://www.minecraftmarket.com/api/profiles/heads/{{ module.top_customer }}/64" title="{{ module.top_customer }}" alt="{{ module.top_customer }}" style="border-radius: 0%;">
  292. </div>
  293. <div class="col-lg-8 text-center">
  294. <p class="lead"><strong>{{ module.top_customer }}</strong></p>
  295. <p>Spent
  296. {% if module.display_total %}
  297. {% currency module.top_customer_amount %} {{ currency }}
  298. {% else %}
  299. {% trans "the most" %}
  300. {% endif %}
  301.  
  302. {% if module.period == module.HOUR %}
  303. {% trans "this hour" %}.
  304. {% elif module.period == module.DAY %}
  305. {% trans "today" %}.
  306. {% elif module.period == module.WEEK %}
  307. {% trans "this week" %}.
  308. {% elif module.period == module.MONTH %}
  309. {% trans "this month" %}.
  310. {% elif module.period == module.YEAR %}
  311. {% trans "this year" %}.
  312. {% endif %}
  313. </p>
  314. </div>
  315. </div>
  316. {% else %}
  317. <p class="text-center">{% trans "No top customer" %}
  318.  
  319. {% if module.period == module.HOUR %}
  320. {% trans "this hour" %}.
  321. {% elif module.period == module.DAY %}
  322. {% trans "today" %}.
  323. {% elif module.period == module.WEEK %}
  324. {% trans "this week" %}.
  325. {% elif module.period == module.MONTH %}
  326. {% trans "this month" %}.
  327. {% elif module.period == module.YEAR %}
  328. {% trans "this year" %}.
  329. {% endif %}
  330. </p>
  331. {% endif %}
  332. </div>
  333. </div>
  334. {% endif %}
  335. {% endfor %}
  336. </div>
  337. <!-- // END Custom Top Donor Module Block // -->
  338. <!-- // Start Custom Goal Module Block // -->
  339. <div class="col-md-7">
  340. {% for module in modules %}
  341. {% if module.title == 'Monthly Goal' %}
  342. <div class="slanted-block slant-two col-md-12">
  343. <h4>{{ module.title }}</h4>
  344. <div class="panel-body">
  345. <p class="text-center">
  346. {% if module.display_goal_amount %}
  347. {% currency module.goal_amount %} / {% currency module.goal %} {{ currency }}
  348. {% else %}
  349. {{ module.goal_percentage }}% {% trans "completed" %}
  350. {% endif %}
  351. </p>
  352. <div class="progress" style="margin-top: 10px; margin-bottom: 0px;">
  353. <div class="progress-bar progress-bar-striped {% if module.goal_animated %}active{% endif %}" role="progressbar" aria-valuenow="{{ module.goal_percentage }}" aria-valuemax="100" style="width: {{ module.goal_percentage }}%"></div>
  354. </div>
  355. {% if module.text %}
  356. <p class="text-center">
  357. {{ module.text_safe }}
  358. </p>
  359. {% endif %}
  360. </div>
  361. </div>
  362. {% endif %}
  363. {% endfor %}
  364. </div>
  365. <!-- // END Custom Goal Module Block // -->
  366. {% endif %}
  367. </div>
  368. </div>
  369. <!-- footer -->
  370. {% include footer_template %}
  371. <!-- /footer -->
  372. </div>
  373. <!-- /container -->
  374. <!-- Bootstrap core JavaScript
  375. ================================================== -->
  376. <!-- Placed at the end of the document so the pages load faster -->
  377. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  378. <script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
  379. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.2/js/bootstrap-select.min.js"></script>
  380. <script type="text/javascript" src="https://js.stripe.com/v2/"></script>
  381. <script type="text/javascript" src="{% static 'new_panel/js/market.js' %}"></script>
  382.  
  383. <!-- User added javascript files -->
  384. {% for javascript in javascript_files %}
  385. <script type="text/javascript" src="{{ javascript }}"></script>
  386. {% endfor %}
  387. <!-- end of user added javascript -->
  388.  
  389. {% include modal_template %}
  390. </body>
  391. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement