-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
53 lines (53 loc) · 2.2 KB
/
index.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
<?php
/***************************************************************************
* https://github.com/ugurtasar/
***************************************************************************/
include('inc/config.php');
include('template-parts/header.php');
?>
<main class="flex-shrink-0">
<section>
<div class="container-fluid">
<div class="row">
<div class="tradingview-widget-container p-0 overflow-hidden" id="mainList">
<div class="tradingview-widget-container__widget"></div>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-market-quotes.js" async>
{
"title": "Kripto",
"width": <?php echo setSize(1200,'"100%"'); ?>,
"height": <?php echo $config['coinlist_limit']*60; ?>,
"locale": "tr",
"showSymbolLogo": true,
"isTransparent": true,
"symbolsGroups": [
{
"name": "Kripto",
"symbols": [
<?php
$coinsArr = array_slice($coinsArr, 0, $config['coinlist_limit']);
$end = end($coinsArr);
foreach($coinsArr as $coinsArrKey => $coinsArrVal){
?>
{
"name": "<?php echo $config['market']; ?>:<?php echo $coinsArrKey.$config['exchange']; ?>",
"displayName": "<?php echo $coinsArrVal.' ('.$coinsArrKey.')'; ?>"
}<?php if($end != $coinsArrVal){echo ',';} ?>
<?php
}
?>
]
}
],
"colorTheme": "light",
"locale": "tr",
"largeChartUrl": "<?php echo $config['site_url']; ?>"
}
</script>
</div>
</div>
</div>
</section>
</main>
<?php
include('template-parts/footer.php');
?>