Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <meta name="description" content="">
- <meta name="author" content="">
- <link rel="icon" href="{{ market.favicon_url }}">
- <title>{{ market.name }} | {{ page_name }}</title>
- <!-- Bootstrap core CSS -->
- <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/paper/bootstrap.min.css" rel="stylesheet" integrity="sha384-awusxf8AUojygHf2+joICySzB780jVvQaVCAt1clU3QsyAitLGul28Qxb2r1e5g+" crossorigin="anonymous">
- <link href="{% static 'css/font-awesome.min.css' %}" rel="stylesheet">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.2/css/bootstrap-select.min.css">
- <link rel="stylesheet" href="{% static 'new_panel/css/market.css' %}">
- <!-- Google analytics -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', '{{ mm_google_analytics_code }}', 'auto');
- ga('send', 'pageview');
- {% if market.google_analytics_code %}
- ga('create', '{{ market.google_analytics_code }}', 'auto', 'clientTracker');
- ga('clientTracker.send', 'pageview');
- {% endif %}
- </script>
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- <!-- User added stylesheet files -->
- {% for stylesheet in stylesheet_files %}
- <link rel="stylesheet" href="{{ stylesheet }}">
- {% endfor %}
- <!-- end of user added stylesheet -->
- </head>
- <body>
- <!-- static navbar -->
- {% include navbar_template %}
- <!-- /static navbar -->
- <div id="site" class="container-fluid">
- {% include header_template %}
- <!-- content -->
- <!-- /content -->
- <!-- Custom Content -->
- <div class="row" id="scrollSectionMain">
- <div class="container">
- <div class="col-md-12">
- <div id="market-controls" class="pull-right">
- {% if cart.player %}
- <div class="btn-group">
- <a class="btn btn-default dropdown-toggle" data-toggle="dropdown">
- {{ cart.player.username }} <span class="caret"></span>
- </a>
- <ul class="dropdown-menu" role="menu">
- <li><a href="{% url 'logout' %}">{% trans "Logout" %}</a></li>
- </ul>
- </div>
- {% endif %}
- <div class="btn-group">
- <form id="currency_switcher" method="POST" action="{% url "change-currency" %}">
- <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>
- {% for curr in currencies %}
- <option value="{{ curr.code }}" {% ifequal curr.code CURRENCY.code %}selected{% endifequal %}>
- {{ curr.symbol }} {{ curr.code }}
- </option>
- {% endfor %}
- </select>
- <noscript>
- <input type="submit" value="Set"/>
- </noscript>
- </form>
- </div>
- {% if cart.player %}
- <div class="btn-group">
- <a class="btn btn-success dropdown-toggle" data-toggle="dropdown">
- <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>
- </a>
- <ul class="dropdown-menu cart-dropdown" role="menu">
- {% for item in cart %}
- <li class="cart-dropdown-list">
- <div class="cart-dropdown-image">
- <img src="{{ item.product.image_url }}" class="img-responsive">
- </div>
- <div class="cart-dropdown-name">{{ item.product.name }}</div>
- <div class="cart-dropdown-info">{{ item.subtotal }} {{ currency }}</div>
- <div class="cart-dropdown-remove">
- <a href="{% url 'checkout-remove' item.product.pk %}" class="btn btn-default btn-sm"><i class="fa fa-times"></i></a>
- </div>
- </li>
- {% endfor %}
- <li class="cart-dropdown-controls">
- <div class="cart-dropdown-total">
- <strong>{% trans "Checkout:" %}</strong> {{ cart.total }} {{ currency }}
- </div>
- <div class="cart-dropdown-checkout">
- <a href="{% url 'checkout-detail' %}" class="btn btn-success">{% trans "Checkout" %}</a>
- </div>
- </li>
- </ul>
- </div>
- {% else %}
- <button type="button" class="btn btn-primary" disabled="disabled">{% trans "Checkout" %} <span class="caret"></span></button>
- {% endif %}
- </div>
- </div>
- <div class="col-md-12 market-spacer"></div>
- <!------------------------------------
- // Start Custom Top Content Section //
- ------------------------------------->
- <div class="col-md-8">
- {% include alerts_template %}
- {% if market.plan == 1 %}
- <div class="panel panel-default">
- <div class="panel-body" style="overflow: hidden;">
- <script type="text/javascript"><!--
- google_ad_client = "ca-pub-4435275545393266";
- /* MarketTop */
- google_ad_slot = "6171521691";
- google_ad_width = 728;
- google_ad_height = 90;
- //-->
- </script>
- <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- </div>
- </div>
- {% endif %}
- {% block page %}
- {% endblock %}
- {% if market.plan == 1 %}
- <div class="panel panel-default">
- <div class="panel-body" style="overflow: hidden;">
- <script type="text/javascript"><!--
- google_ad_client = "ca-pub-4435275545393266";
- /* MarketBottom */
- google_ad_slot = "5991992094";
- google_ad_width = 728;
- google_ad_height = 90;
- //-->
- </script>
- <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- </div>
- </div>
- {% endif %}
- </div>
- <!-- // Player Status Custom Module Block // -->
- <div class="col-md-4">
- {% for module in modules %}
- {% if module.title == 'Server Status' %}
- {% if not module.online and module.hide_offline %}
- {% else %}
- <div class="slanted-block slant-two col-md-12 {% if module.online %}svrOnline{% else %}svrOffline{% endif %}">
- <h4>{{ module.title }}{% if module.online %}
- <span class="label label-success pull-right svrStatus">{% trans "Online" %}</span>
- {% else %}
- <span class="label label-danger pull-right svrStatus">{% trans "Offline" %}</span>
- {% endif %}</h4>
- <div class="panel-body text-center">
- <p class="lead text-center">{{ module.server_address }}</p>
- <p class="tex text-center" style="font-size:14px"><strong>{{ module.players }}/{{ module.max_players }} {% trans "players online" %}</strong></p>
- </div>
- </div>
- {% endif %}
- {% endif %}
- <!-- // Custom Text Box Content for Payment Methods // -->
- {% if module.title == 'Text Box' %}
- <div class="slanted-block slant-two col-md-12">
- <h4>Payment Options</h4>
- <div class="panel-body">
- <p>{{ module.text_safe }}</p>
- </div>
- </div>
- {% endif %}
- {% endfor %}
- </div>
- <!-- // End Player Status Custom Module Block // -->
- <!----------------------------------
- // END Custom Top Content Section //
- ----------------------------------->
- <!-- // If statement to check if page is terms and conditions, of it is doesnt show modules. // -->
- {% if page_name == 'Terms and conditions' %}
- {% else %}
- <!-- // Start Custom Past Purchase Module Block // -->
- <div class="col-md-12">
- {% for module in modules %}
- {% if module.title == 'Recent Donors' %}
- <div class="slanted-block slant-two col-md-12">
- <h4>{{ module.title }}</h4>
- <div class="panel-body">
- <div class="row payment">
- {% for purchase in module.purchases %}
- <div class="pPurchase col-md-6">
- <div class="col-lg-4 avatar">
- <div class="text-center">
- <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%;">
- </div>
- </div>
- <div class="col-lg-8">
- <div class="details">
- <div class="username">
- <h4>{{ purchase.purchase.player.username }}<span class="pPurchasesItem">{% if module.display_item %} - {{ purchase.name }}{% endif %}</span></h4>
- </div>
- <div class="extra">
- {% if module.display_price %}{% currency purchase.price %} {{ currency }}{% endif %}
- {% if module.display_datetime %}{{ purchase.purchase.date|date:'M d, Y H:i' }}{% endif %}
- </div>
- </div>
- </div>
- <div class="col-md-12" style="height:25px;"></div>
- </div>
- {% empty %}
- <p class="text-center">No recent purchases</p>
- {% endfor %}
- </div>
- </div>
- </div>
- {% endif %}
- {% endfor %}
- </div>
- <!-- // END Custom Past Purchase Module Block // -->
- <!-- // Start Custom Featured Item Module Block // -->
- <div class="col-md-12">
- {% for module in modules %}
- {% if module.title == 'Featured Item' %}
- <div class="slanted-block slant-two col-md-6 featuredProduct2">
- <h4>This Months Featured Product</h4>
- {% if module.featured_item %}
- <div class="panel-body">
- <img class="img-responsive center-block" src="{{ module.featured_item.image_url }}">
- <h4 style="text-align: center">{{ module.featured_item.name }}</h4>
- <div class="item-footer">
- <div class="col-md-6 text-center">
- <span style="font-size:14px"><strong>{% money module.featured_item %} {{ currency }}</strong></span>
- </div>
- <div class="col-md-6 text-center">
- <button data-remote="{% url 'item-detail' module.featured_item.pk %}" class="btn btn-primary modalToggle">{% trans "View/Buy" %}</button>
- </div>
- </div>
- </div>
- {% else %}
- <div class="panel-body text-center">
- <p>{% trans 'There is no featured item currently selected.' %}</p>
- </div>
- {% endif %}
- </div>
- {% endif %}
- {% if module.title == 'Featured Item 2' %}
- <div class="slanted-block slant-two col-md-6 featuredProduct2">
- <h4>Last Months Featured Product</h4>
- {% if module.featured_item %}
- <div class="panel-body">
- <img class="img-responsive center-block" src="{{ module.featured_item.image_url }}">
- <h4 style="text-align: center">{{ module.featured_item.name }}</h4>
- <div class="item-footer">
- <div class="col-md-6 text-center">
- <span style="font-size:14px"><strong>{% money module.featured_item %} {{ currency }}</strong></span>
- </div>
- <div class="col-md-6 text-center">
- <button data-remote="{% url 'item-detail' module.featured_item.pk %}" class="btn btn-primary modalToggle">{% trans "View/Buy" %}</button>
- </div>
- </div>
- </div>
- {% else %}
- <div class="panel-body text-center">
- <p>{% trans 'There is no featured item currently selected.' %}</p>
- </div>
- {% endif %}
- </div>
- {% endif %}
- {% endfor %}
- </div>
- <!-- // END Custom Featured Item Module Block // -->
- <!-- // Start Custom Top Donor Module Block // -->
- <div class="col-md-5">
- {% for module in modules %}
- {% if module.title == 'Top Donor' %}
- <div class="slanted-block slant-two col-md-12">
- <h4>{{ module.title }}</h4>
- <div class="panel-body">
- {% if module.top_customer %}
- <div class="row">
- <div class="col-lg-4">
- <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%;">
- </div>
- <div class="col-lg-8 text-center">
- <p class="lead"><strong>{{ module.top_customer }}</strong></p>
- <p>Spent
- {% if module.display_total %}
- {% currency module.top_customer_amount %} {{ currency }}
- {% else %}
- {% trans "the most" %}
- {% endif %}
- {% if module.period == module.HOUR %}
- {% trans "this hour" %}.
- {% elif module.period == module.DAY %}
- {% trans "today" %}.
- {% elif module.period == module.WEEK %}
- {% trans "this week" %}.
- {% elif module.period == module.MONTH %}
- {% trans "this month" %}.
- {% elif module.period == module.YEAR %}
- {% trans "this year" %}.
- {% endif %}
- </p>
- </div>
- </div>
- {% else %}
- <p class="text-center">{% trans "No top customer" %}
- {% if module.period == module.HOUR %}
- {% trans "this hour" %}.
- {% elif module.period == module.DAY %}
- {% trans "today" %}.
- {% elif module.period == module.WEEK %}
- {% trans "this week" %}.
- {% elif module.period == module.MONTH %}
- {% trans "this month" %}.
- {% elif module.period == module.YEAR %}
- {% trans "this year" %}.
- {% endif %}
- </p>
- {% endif %}
- </div>
- </div>
- {% endif %}
- {% endfor %}
- </div>
- <!-- // END Custom Top Donor Module Block // -->
- <!-- // Start Custom Goal Module Block // -->
- <div class="col-md-7">
- {% for module in modules %}
- {% if module.title == 'Monthly Goal' %}
- <div class="slanted-block slant-two col-md-12">
- <h4>{{ module.title }}</h4>
- <div class="panel-body">
- <p class="text-center">
- {% if module.display_goal_amount %}
- {% currency module.goal_amount %} / {% currency module.goal %} {{ currency }}
- {% else %}
- {{ module.goal_percentage }}% {% trans "completed" %}
- {% endif %}
- </p>
- <div class="progress" style="margin-top: 10px; margin-bottom: 0px;">
- <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>
- </div>
- {% if module.text %}
- <p class="text-center">
- {{ module.text_safe }}
- </p>
- {% endif %}
- </div>
- </div>
- {% endif %}
- {% endfor %}
- </div>
- <!-- // END Custom Goal Module Block // -->
- {% endif %}
- </div>
- </div>
- <!-- footer -->
- {% include footer_template %}
- <!-- /footer -->
- </div>
- <!-- /container -->
- <!-- Bootstrap core JavaScript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.2/js/bootstrap-select.min.js"></script>
- <script type="text/javascript" src="https://js.stripe.com/v2/"></script>
- <script type="text/javascript" src="{% static 'new_panel/js/market.js' %}"></script>
- <!-- User added javascript files -->
- {% for javascript in javascript_files %}
- <script type="text/javascript" src="{{ javascript }}"></script>
- {% endfor %}
- <!-- end of user added javascript -->
- {% include modal_template %}
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement