/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.4.4
	Stable tag: 3.4.4
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/
// Elementor設定チェックリストをダッシュボードに追加
function add_elementor_settings_widget() {
    wp_add_dashboard_widget(
        'elementor_settings_checklist', // ウィジェットID
        '🧩 Elementor設定チェックリスト', // タイトル
        'show_elementor_settings_widget' // 表示関数
    );
}
add_action('wp_dashboard_setup', 'add_elementor_settings_widget');

function show_elementor_settings_widget() {
    echo '<div style="font-size:14px;line-height:1.6;">';
    echo '<strong>【Elementor安定運用テンプレート設定】</strong><br><br>';
    echo '<ul style="margin-left:1em;">';
    echo '<li>✅ <strong>PHPバージョン：</strong>8.1～8.2</li>';
    echo '<li>✅ <strong>メモリ制限：</strong>512M</li>';
    echo '<li>✅ <strong>CSS出力方式：</strong>外部ファイル</li>';
    echo '<li>✅ <strong>Font Awesome読み込み：</strong>必要時のみ</li>';
    echo '<li>✅ <strong>Autoptimize除外：</strong>elementor, elementor-pro, /wp-content/plugins/elementor/</li>';
    echo '<li>✅ <strong>実験的機能：</strong>すべて無効</li>';
    echo '<li>✅ <strong>キャッシュ：</strong>Autoptimizeまたはロリポップのどちらか1つ</li>';
    echo '<li>✅ <strong>WPCode Lite：</strong>タグはheadまたはbody直前に挿入</li>';
    echo '<li>✅ <strong>SiteGuard：</strong>ログインURL変更は無効、WAF有効</li>';
    echo '</ul>';
    echo '<p style="margin-top:1em;font-size:13px;">このチェックリストはGPTsサポートの構成にも統合予定です。</p>';
    echo '</div>';
}
