1
0
forked from metin2/web

WIP: started implementing shop, multi-language

This commit is contained in:
2024-03-30 15:47:48 +02:00
parent 8a88940d4f
commit 181c7ce27c
244 changed files with 6167 additions and 827 deletions

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>{{ config('app.name', 'Metin2') }} - Acțiunea Orientală MMORPG</title>
<title>{{ config('app.name', 'Metin2') }} - {{ __('app/main.title') }}</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="description" content="MMORPG Metin2" />
@ -110,9 +110,15 @@
@guest
<div class="header-box">
<div id="regBtn">
<a id="toReg" href="{{ url('user/register') }}" title="Joacă gratis acum!">Descarcă gratis Metin2 acum!</a>
<a id="toReg" href="{{ url('user/register') }}" title="{{ __('app/main.header.register_alt') }}">
{{ __('app/main.header.register') }}
</a>
<div id="regSteps">
<a href="{{ url('user/register') }}" title="Joacă gratis acum!"><span>1. Înregistrare </span> » <span>2. Activează </span> » <span>3. Descarcă și joacă pe gratis</span></a>
<a href="{{ url('user/register') }}" title="{{ __('app/main.header.register_alt') }}">
<span>{{ __('app/main.header.register_steps_1') }}</span> »
<span>{{ __('app/main.header.register_steps_2') }}</span> »
<span>{{ __('app/main.header.register_steps_3') }}</span>
</a>
</div>
</div>
@ -129,14 +135,26 @@
</div>
@else
<div id="userBox">
<div class="welcome-text welcome-text-left">Bun venit, {{ Auth::user()->login }}</div>
<div class="welcome-text welcome-text-right">Ai {{ Auth::user()->cash }} Monede Dragon</div>
<div class="welcome-text welcome-text-left">{{ __('app/main.header.welcome', ['name' => Auth::user()->login]) }}</div>
<div class="welcome-text welcome-text-right">{{ __('app/main.header.cash_balance', ['cash' => Auth::user()->cash]) }}</div>
<br class="clearfloat" />
<div class="header-box-nav-container">
<ul class="header-box-nav-login" style="position:absolute; margin-left:-0px;">
<li class="stepdown"><a href="#" class="nav-box-btn nav-box-btn-1">Încarcă MD</a></li>
<li class="stepdown"><a href="{{ url('user/administration') }}" class="nav-box-btn nav-box-btn-2">Datele utilizatorului</a></li>
<li class="stepdown"><a href="{{ url('user/logout') }}" class="nav-box-btn nav-box-btn-4">Delogare</a></li>
<li class="stepdown">
<a href="#" class="nav-box-btn nav-box-btn-1">
{{ __('app/main.header.nav.buy_coins') }}
</a>
</li>
<li class="stepdown">
<a href="{{ url('user/administration') }}" class="nav-box-btn nav-box-btn-2">
{{ __('app/main.header.nav.administration') }}
</a>
</li>
<li class="stepdown">
<a href="{{ url('user/logout') }}" class="nav-box-btn nav-box-btn-4">
{{ __('app/main.header.nav.logout') }}
</a>
</li>
</ul>
</div>
</div>
@ -154,15 +172,15 @@
<div class="modul-box-bg-bottom">
<!-- main navigation -->
<ul class="main-nav">
<li class="active"><a href="{{ url('/') }}">Start</a></li>
<li><a href="{{ url('main/thegame') }}">Jocul</a></li>
<li><a href="{{ url('main/media') }}">Galerie</a></li>
<li><a href="{{ url('main/howto') }}">Primii pași</a></li>
<li><a href="{{ url('main/community') }}">Comunitate</a></li>
<li><a href="{{ url('main/wiki') }}">Wiki</a></li>
<li><a href="{{ url('main/board') }}">Forum</a></li>
<li><a href="{{ url('main/download') }}">Descărcare</a></li>
<li><a href="{{ url('main/account') }}">Securitate</a></li>
<li class="active"><a href="{{ url('/') }}">{{ __('app/main.nav.home') }}</a></li>
<li><a href="{{ url('main/thegame') }}">{{ __('app/main.nav.thegame') }}</a></li>
<li><a href="{{ url('main/media') }}">{{ __('app/main.nav.media') }}</a></li>
<li><a href="{{ url('main/howto') }}">{{ __('app/main.nav.howto') }}</a></li>
<li><a href="{{ url('main/community') }}">{{ __('app/main.nav.community') }}</a></li>
<li><a href="{{ url('main/wiki') }}">{{ __('app/main.nav.wiki') }}</a></li>
<li><a href="{{ url('main/board') }}">{{ __('app/main.nav.board') }}</a></li>
<li><a href="{{ url('main/download') }}">{{ __('app/main.nav.download') }}</a></li>
<li><a href="{{ url('main/account') }}">{{ __('app/main.nav.account') }}</a></li>
</ul>
</div>
</div>
@ -178,26 +196,26 @@
<div class="modul-box">
<div class="modul-box-bg">
<div class="modul-box-bg-bottom">
<h3>Logare</h3>
<h3>{{ __('app/main.login.title') }}</h3>
<form action="{{ url('user/login') }}" method="post">
@csrf
<div class="form-login">
<label>Nume de utilizator</label>
<label>{{ __('app/main.login.username') }}</label>
<div class="input">
<input type="text" name="login"><br>
</div>
<label>Parola</label>
<label>{{ __('app/main.login.password') }}</label>
<div class="input">
<input type="password" name="password"><br>
</div>
<div>
<input type="submit" class="button btn-login" value="Login">
<input type="submit" class="button btn-login" value="{{ __('app/main.login.btn_login') }}">
<p class="agbok">
Intrând aici, accept <a href="{{ url('legal/terms') }}"><strong>Termenii și condițiile</strong></a>.
<a href="{{ url('user/passwordlostrequest') }}" rel="nofollow" class="password">Ai uitat parola?</a>
<a href="{{ url('user/resendack') }}" rel="nofollow" class="password">Retrimiterea emailului de înregistrare</a>
{!! Str::inlineMarkdown(__('app/main.login.agree_terms', ['url' => url('legal/terms')])) !!}
<a href="{{ url('user/passwordlostrequest') }}" rel="nofollow" class="password">{{ __('app/main.login.forgot_password') }}</a>
<a href="{{ url('user/resendack') }}" rel="nofollow" class="password">{{ __('app/main.login.resend_ack') }}</a>
</p>
</div>
</div>
@ -211,7 +229,7 @@
<div class="modul-box modul-box-2">
<div class="modul-box-bg">
<div class="modul-box-bg-bottom">
<h3>Descărcare</h3>
<h3>{{ __('app/main.nav.download') }}</h3>
<a href="{{ url('main/download') }}" class="btn download-btn"></a>
</div>
</div>
@ -220,7 +238,7 @@
<div class="modul-box modul-box-2">
<div class="modul-box-bg">
<div class="modul-box-bg-bottom">
<h3>Descărcare</h3>
<h3>{{ __('app/main.nav.download') }}</h3>
<a href="{{ url('main/download') }}" class="btn download-btn"></a>
</div>
</div>
@ -231,8 +249,8 @@
<div class="modul-box modul-box-2">
<div class="modul-box-bg">
<div class="modul-box-bg-bottom">
<h3>Magazinul de item-uri</h3>
<a href="/is/" class="itemshop btn itemshop-btn iframe" title="Magazinul de item-uri"></a>
<h3>{{ __('app/main.nav.itemshop') }}</h3>
<a href="{{ url('shop') }}" class="itemshop btn itemshop-btn iframe" title="{{ __('app/main.nav.itemshop') }}"></a>
</div>
</div>
</div>
@ -249,35 +267,35 @@
</div>
</div>
</div>
--}}
<div class="boxes-middle"></div>
<div class="modul-box modul-box-2">
<div class="modul-box-bg">
<div class="modul-box-bg-bottom">
<h3>Competitia Cosplay</h3>
<a id="contest" href="{{ url('contest') }}" class="btn cosplay-btn" title="Competitia Cosplay"></a>
<div class="boxes-middle"></div>
<div class="modul-box modul-box-2">
<div class="modul-box-bg">
<div class="modul-box-bg-bottom">
<h3>Competitia Cosplay</h3>
<a id="contest" href="{{ url('contest') }}" class="btn cosplay-btn" title="Competitia Cosplay"></a>
</div>
</div>
</div>
</div>
--}}
<div class="boxes-middle">&nbsp;</div>
<div class="modul-box modul-box-2">
<div class="modul-box-bg">
<div class="modul-box-bg-bottom">
<h3>Clasament</h3>
<h3 style="margin-top:0">Jucători</h3>
<h3>{{ __('app/main.ranking.title') }}</h3>
<h3 style="margin-top:0">{{ __('app/main.ranking.players') }}</h3>
<div class="form-score">
<div id="highscore-player">
<ul><li><div class="empire2"><strong class="offset">1</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore" class="first">picyu3</a></div></li><li class="light"><div class="empire1"><strong class="offset">2</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">XXXMEN77</a></div></li><li><div class="empire1"><strong class="offset">3</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">Spydy</a></div></li><li class="light"><div class="empire3"><strong class="offset">4</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">beLeSe</a></div></li><li><div class="empire2"><strong class="offset">5</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">alexdenis</a></div></li><li class="light"><div class="empire3"><strong class="offset">6</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">Pixie03</a></div></li><li><div class="empire3"><strong class="offset">7</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">KingARAGORN</a></div></li><li class="light"><div class="empire1"><strong class="offset">8</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">SCORPIO1</a></div></li><li><div class="empire2"><strong class="offset">9</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">Parazltu</a></div></li><li class="light"><div class="empire2"><strong>10</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">Sayana</a></div></li></ul> </div>
<a href="{{ url('main/highscore') }}" class="btn" rel="nofollow">Tot clasamentul</a>
<a href="{{ url('main/highscore') }}" class="btn" rel="nofollow">{{ __('app/main.ranking.btn_highscore') }}</a>
</div>
<h3 style="margin-top:0">Bresle</h3>
<h3 style="margin-top:0">{{ __('app/main.ranking.guilds') }}</h3>
<div class="form-score">
<div id="highscore-guild">
<ul><li><div class="empire2"><strong class="offset">1</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore" class="first">InStyle</a></div></li><li class="light"><div class="empire3"><strong class="offset">2</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">ISENGARD</a></div></li><li><div class="empire2"><strong class="offset">3</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">TheRulers</a></div></li><li class="light"><div class="empire2"><strong class="offset">4</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">A55A55INII</a></div></li><li><div class="empire3"><strong class="offset">5</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">TheElfs</a></div></li><li class="light"><div class="empire3"><strong class="offset">6</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">MAESTRIIpur</a></div></li><li><div class="empire2"><strong class="offset">7</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">NeBuNaTiCii</a></div></li><li class="light"><div class="empire1"><strong class="offset">8</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">TheGoDs</a></div></li><li><div class="empire2"><strong class="offset">9</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">7UP</a></div></li><li class="light"><div class="empire2"><strong>10</strong>&ndash;<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">ReVoLuTioN</a></div></li></ul> </div>
<a href="{{ url('main/guildhighscore') }}" class="btn" rel="nofollow">Tot clasamentul</a>
<a href="{{ url('main/guildhighscore') }}" class="btn" rel="nofollow">{{ __('app/main.ranking.btn_highscore') }}</a>
</div>
</div>
</div>
@ -301,9 +319,9 @@
<li class="first">
© 2006 YMIR Entertainment Co., Ltd., Published by Gameforge 4D GmbH. All rights reserved. All trademarks are the property of their respective owners.
</li>
<li class="impressum"><a href="{{ url('legal/imprint') }}" target="_blank" rel="nofollow">Imprint</a></li>
<li><a href="{{ url('legal/terms') }}" target="_blank" rel="nofollow">Condiţiile Generale de Utilizare</a></li>
<li><a href="{{ url('legal/privacy') }}" target="_blank" rel="nofollow">Politica de confidențialitate</a></li>
<li class="impressum"><a href="{{ url('legal/imprint') }}" target="_blank" rel="nofollow">{{ __('app/main.footer.imprint') }}</a></li>
<li><a href="{{ url('legal/terms') }}" target="_blank" rel="nofollow">{{ __('app/main.footer.terms') }}</a></li>
<li><a href="{{ url('legal/privacy') }}" target="_blank" rel="nofollow">{{ __('app/main.footer.privacy') }}</a></li>
</ul>
</div>
</div>

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<title>Gameforge</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="https://web.archive.org/web/20130716041220im_/http://www.gameforge.de/cms_images/favicon.ico"/>
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}"/>
<style type="text/css">
<!--
html, body, a {

View File

@ -0,0 +1,171 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>{{ __('shop/main.title') }}</title>
<link href="{{ asset('assets/shop/css/style.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/start.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/options.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/discount.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/tiptip.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/fancybox.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/jScrollPane.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/promoted.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/pending.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/usermenu.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/purchase.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/shop/css/wheel.css') }}" rel="stylesheet" type="text/css" />
<!--[if IE]>
<style type="text/css">@import url(https://gf1.geo.gfsrv.net/cdn9a/6ea1bf4927ebc189a9ad0a0e2d7140.css);</style>
<style type="text/css">@import url(https://gf1.geo.gfsrv.net/cdn3e/8a0cdb2c5a2e9c5af58e1dcdee50e7.css);</style>
<![endif]-->
<!--[if lte IE 6]>
<style type="text/css">@import url(https://gf1.geo.gfsrv.net/cdn9b/5338b6f852df99e7b508f046cc25ad.css);</style>
<style type="text/css">@import url(https://gf3.geo.gfsrv.net/cdnb6/f0c4e2637ede70860c1a273ed38241.css);</style>
<style type="text/css">@import url(https://gf3.geo.gfsrv.net/cdn58/97c61e083f066422a1ccf00b7e6a02.css);</style>
<![endif]-->
<script type="text/javascript" src="https://gf2.geo.gfsrv.net/cdnda/0517dbc738ea24aa73b64a25b30f8d.js"></script>
<script type="text/javascript" src="https://gf2.geo.gfsrv.net/cdndc/521e7b8821399457f8d2c96bd4d764.js"></script>
<script type="text/javascript" src="https://gf3.geo.gfsrv.net/cdnbf/7ef645db9fe9c2161d57e2a9684f8c.js"></script>
<script type="text/javascript" src="https://gf3.geo.gfsrv.net/cdne1/74a2472b07741e6900b40d529efc36.js"></script>
<script type="text/javascript" src="https://gf1.geo.gfsrv.net/cdn06/c121d2d644f8b6d54b747e69dc319c.js"></script>
<script type="text/javascript" src="https://gf2.geo.gfsrv.net/cdn43/b1ad0ec9073e2ae4eefbd6ad628e13.js"></script>
<script type="text/javascript" src="https://gf2.geo.gfsrv.net/cdn7e/497adc02ec310555ca02b97c5e5b8a.js"></script>
<script type="text/javascript" src="https://gf3.geo.gfsrv.net/cdn26/44fc21806fac16fd1145ef90d1994a.js"></script>
<script type="text/javascript" src="https://gf3.geo.gfsrv.net/cdnb0/c7786e501306d6ec52c7a2487bc9c3.js"></script>
<script type="text/javascript" src="https://gf2.geo.gfsrv.net/cdnd2/87fc5271982cfc5ae878af40ce5f22.js"></script>
<script type="text/javascript" src="https://gf2.geo.gfsrv.net/cdnae/daea90828cdbc4b0974c1328fee2d4.js"></script>
<script type="text/javascript" src="https://gf1.geo.gfsrv.net/cdn99/ae1c0d191bffe28d878d7ec7062da2.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
function searchFocusGained()
{
if (trim(document.searchForm.searchString.value) === '{{ __('shop/main.nav.search_placeholder') }}')
{
document.searchForm.searchString.value = '';
}
}
function searchFocusLost()
{
if (trim(document.searchForm.searchString.value) === '')
{
document.searchForm.searchString.value = '{{ __('shop/main.nav.search_placeholder') }}';
}
}
function trySubmit()
{
searchString = trim(document.searchForm.searchString.value);
return searchString !== '' && searchString !== '{{ __('shop/main.nav.search_placeholder') }}';
}
$(document).ready(function() {
$('#breadcrumbInfoText').fadeIn(1000);
$('.groupItem').find('h2').click(function() {
$(this).closest('.groupItem').toggleClass('opened closed');
});
{{--
$('#serverlist').change(function() {
$.ajax({
'url': 'http://ro.shop.metin2.de/ajax/callback/characters/?__token=e8e9d2bd2e3e80ecf201e882766b8405&caid=3171938' + '&csid=' + $('#serverlist').val(),
'success': function(data, request, status) { $('#characterlist').html(data); }
});
});
--}}
$('#characterpick').show();
$('#optionsBar').mouseenter(function() {
$(this).addClass('optionsBarOv').removeClass('optionsBarNorm');
}).mouseleave(function(){
$(this).addClass('optionsBarNorm').removeClass('optionsBarOv');
}).click(function(){
$('#optionsSlider').fadeToggle('slow');
});
$('#optionsSlider').mouseleave(function() {
$(this).fadeOut('slow');
});
});
/* ]]> */
</script>
@vite(['resources/sass/app.scss', 'resources/js/app.js'])
</head>
<body class="twoColFixLtHdr" scroll="no" ondblclick="return false;">
<div id="container">
<div id="header">
<div class="boxSigns">
<span class="heading">{{ __('shop/main.currency.mileage_long') }} ({{ __('shop/main.currency.mileage') }}):</span>
<span class="marksValue">{{ Auth::user()->mileage }}</span>
<a href="{{ url('shop/faq', ['section' => 'mileage']) }}" class="tip helpSmallIcon" title="{{ __('shop/main.nav.help_tooltip') }}" style="right: 23px;">
<img src="{{ asset('assets/shop/img/helpSmallIcon.png') }}" />
</a>
</div>
<div class="boxCoins">
<span class="heading">{{ __('shop/main.currency.cash_long') }} ({{ __('shop/main.currency.cash') }}):</span>
<span class="coinsValue">{{ Auth::user()->cash }}</span>
<a href="{{ url('shop/faq', ['section' => 'cash']) }}" class="tip helpSmallIcon" title="{{ __('shop/main.nav.help_tooltip') }}" style="right: 7px;">
<img src="{{ asset('assets/shop/img/helpSmallIcon.png') }}" />
</a>
<a href="{{ url('shop/faq', ['section' => 'donate']) }}" class="purchaseButton" title="{{ __('shop/main.nav.buy_coins_tooltip') }}">
{!! nl2br(__('shop/main.nav.buy_coins_btn')) !!}
</a>
</div>
</div>
@if ($discountDesc)
<span id="discountLong">{{ $discountDesc }}</span>
@endif
<div class="userdataDiv">
@if ($storageCount > 0)
<a title="{{ __('shop/main.nav.user_data_tooltip') }}" href="{{ url('shop/userdata') }}" class="tip userdataInfoIcon"></a>
@else
<a title="{{ __('shop/main.nav.user_data_tooltip') }}" href="{{ url('shop/userdata') }}" class="tip userdataIcon"></a>
@endif
</div>
@if ($storageCount > 0)
<div id="breadcrumbInfoText">
<div id="arrowDiv">
<div id="arrowRight"></div>
<div id="arrowBorderRight"></div>
</div>
<span id="discountLong">{{ __('shop/main.nav.stored_items', ['storageCount' => $storageCount]) }}</span>
</div>
@endif
<ul id="breadcrumb">
<li><a href="{{ url('shop') }}">{{ __('shop/main.nav.home') }}</a></li>
</ul>
<div id="sidebar1">
<div id="search">
<form action="{{ url('shop/search') }}" method="post" name="searchForm" onsubmit="return trySubmit()">
@csrf
<input type="text" value="{{ __('shop/main.nav.search_placeholder') }}" class="type" name="searchString" onfocus="searchFocusGained()" onblur="searchFocusLost()" maxlength="42" />
<input type="submit" value="" class="send" />
</form>
</div>
<ul id="mainMenu">
@foreach ($categories as $category)
<li><a href="{{ url('shop/category', ['id' => $category->id]) }}" title="{{ $category->name }}">{{ $category->name }}</a></li>
@endforeach
</ul>
</div>
@yield('content')
</div>
</body>
</html>