

function display_live_charts() {
    $output = "<div class='charts-section'>";
    $output .= "<h2>Live Charts</h2>";
    $output .= "<div id='bitcoin-chart'></div>";
    $output .= "<div id='gold-chart'></div>";

    $output .= "
    <script type='text/javascript'>
        new TradingView.widget({
            'container_id': 'bitcoin-chart',
            'autosize': true,
            'symbol': 'BINANCE:BTCUSDT',
            'interval': 'D',
            'timezone': 'Etc/UTC',
            'theme': 'light',
            'style': '1',
            'locale': 'en',
            'toolbar_bg': '#f1f3f6',
            'enable_publishing': false,
            'allow_symbol_change': true
        });

        new TradingView.widget({
            'container_id': 'gold-chart',
            'autosize': true,
            'symbol': 'OANDA:XAUUSD',
            'interval': 'D',
            'timezone': 'Etc/UTC',
            'theme': 'light',
            'style': '1',
            'locale': 'en',
            'toolbar_bg': '#f1f3f6',
            'enable_publishing': false,
            'allow_symbol_change': true
        });
    </script>";
    $output .= "</div>";

    return $output;
}

add_shortcode('live_charts', 'display_live_charts');

function crypto_plugin_styles() {
    wp_enqueue_style('crypto-plugin-style', plugin_dir_url(__FILE__) . 'style.css');
}
add_action('wp_enqueue_scripts', 'crypto_plugin_styles');

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://golddesignarchitect.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://golddesignarchitect.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://golddesignarchitect.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
