-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
104 lines (104 loc) · 3.25 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
/***************************************************************************
* https://github.com/ugurtasar/
***************************************************************************/
include('inc/config.php');
$slug = $_GET['slug'];
$title = $coinsArr[$slug].' ('.$slug.') Detaylı Piyasa Bilgisi';
$description = $coinsArr[$slug].' ('.$slug.') piyasa bilgisine anında ulaşın. '.$coinsArr[$slug].' şu anda kaç '.$config['exchange'].' ?';
include('template-parts/header.php');
?>
<main class="flex-shrink-0">
<section class="py-0 py-md-1">
<div class="container-fluid">
<div class="row">
<div class="col-12 col-md-6">
<div class="tradingview-widget-container p-0">
<div id="tradingview_f5d7d"></div>
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
<script type="text/javascript">
new TradingView.MediumWidget(
{
"symbols": [
[
"BRC",
"<?php echo $config['market']; ?>:<?php echo $slug.$config['exchange']; ?>|12M"
]
],
"chartOnly": false,
"width": "100%",
"height": 440,
"locale": "tr",
"colorTheme": "light",
"gridLineColor": "rgba(240, 243, 250, 0)",
"trendLineColor": "#2962FF",
"fontColor": "#787B86",
"underLineColor": "rgba(41, 98, 255, 0.3)",
"underLineBottomColor": "rgba(41, 98, 255, 0)",
"isTransparent": true,
"autosize": true,
"showFloatingTooltip": true,
"container_id": "tradingview_f5d7d"
}
);
</script>
</div>
</div>
<div class="col-12 col-md-6">
<div class="tradingview-widget-container">
<div class="tradingview-widget-container__widget"></div>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-technical-analysis.js" async>
{
"interval": "1m",
"width": "100%",
"isTransparent": true,
"height": 440,
"symbol": "<?php echo $config['market']; ?>:<?php echo $slug.$config['exchange']; ?>",
"showIntervalTabs": true,
"locale": "tr",
"colorTheme": "light",
"largeChartUrl": "<?php echo $config['site_url']; ?>"
}
</script>
</div>
</div>
</div>
</div>
</section>
<section class="my-3">
<div class="container-fluid">
<div class="row">
<h1 class="mb-3 h4"><?php echo $title; ?></h1>
<div class="tradingview-widget-container">
<div id="tradingview_f42a5"></div>
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
<script type="text/javascript">
new TradingView.widget(
{
"width": "100%",
"height": 610,
"symbol": "<?php echo $config['market']; ?>:<?php echo $slug.$config['exchange']; ?>",
"timezone": "Etc/UTC",
"theme": "light",
"style": "1",
"locale": "tr",
"toolbar_bg": "#f1f3f6",
"enable_publishing": false,
"range": "YTD",
"hide_side_toolbar": false,
"allow_symbol_change": true,
"details": true,
"calendar": true,
"isTransparent": true,
"container_id": "tradingview_f42a5"
}
);
</script>
</div>
</div>
</div>
</section>
</main>
<?php
include('template-parts/footer.php');
?>