{
  "landingPage": "/",
  "preferredVersions": {
    "php": "8.2",
    "wp": "latest"
  },
  "phpExtensionBundles": [
    "kitchen-sink"
  ],
  "features": {
    "networking": true
  },
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "password"
    },
    {
      "step": "installTheme",
      "themeData": {
        "resource": "wordpress.org/themes",
        "slug": "hello-elementor"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "the-events-calendar"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "template-events-calendar"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "importWxr",
      "file": {
        "resource": "url",
        "url": "https://raw.githubusercontent.com/CoolPluginsTeam/wp-playground-repo/main/event/common-events.xml"
      }
    },
    {
      "step": "importWxr",
      "file": {
        "resource": "url",
        "url": "https://raw.githubusercontent.com/CoolPluginsTeam/wp-playground-repo/main/event/common-venues.xml"
      }
    },
     {
      "step": "importWxr",
      "file": {
        "resource": "url",
        "url": "https://raw.githubusercontent.com/CoolPluginsTeam/wp-playground-repo/main/event/common-organizers.xml"
      }
    },
    {
      "step": "importWxr",
      "file": {
        "resource": "url",
        "url": "https://raw.githubusercontent.com/CoolPluginsTeam/wp-playground-repo/main/event/events-shortcodes-for-the-events-calendar.xml"
      }
    },
    {
      "step": "writeFile",
      "path": "/wordpress/wp-content/mu-plugins/events-shortcode-notice.php",
      "data": "<?php\nadd_action('admin_notices', function () {\n    $demo_page = get_page_by_title('Events Shortcodes For The Events Calendar');\n    $demo_edit_url = $demo_page ? admin_url('post.php?post=' . $demo_page->ID . '&action=edit') : admin_url('edit.php?post_type=page');\n    $site_url = get_home_url();\n\n    echo '<style>div#cpfNoticePanel,.tribe-dismiss-notice { display: none !important; }</style>';\n\n    echo '<div class=\"notice notice-info is-dismissible\" style=\"padding: 25px; font-family: sans-serif; margin-top: 25px; border-left: 5px solid #00a0d2;\">\n        <h2 style=\"margin-top: 0; display: flex; align-items: center; gap: 10px;\">\n             Display your events on any page using a simple shortcode\n        </h2>\n        <p style=\"margin-bottom: 15px; font-size: 15px;\">\n            You can use the Events Shortcode Builder or Gutenberg Events Block to beautifully display events from The Events Calendar plugin. This powerful addon offers customization options for colors, fonts, and layouts — making your events list visually engaging and easy to style.\n        </p>\n        <div style=\"display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px;\">\n            <a href=\"' . esc_url($site_url) . '\" class=\"button button-primary\" target=\"_blank\" style=\"padding: 10px 24px; font-size: 14px;\">🔍 View Demo</a>\n            <a href=\"' . esc_url($demo_edit_url) . '\" class=\"button button-secondary\" style=\"padding: 10px 24px; font-size: 14px;\">🛠 Events Shortcodes</a>\n            <a href=\"' . admin_url('edit.php?post_type=tribe_events') . '\" class=\"button\" style=\"padding: 10px 24px; font-size: 14px; border: 1px solid #0073aa; color: #0073aa;\">📚 All Events</a>\n            <a href=\"https://eventscalendaraddons.com/plugin/events-shortcodes-pro/?utm_source=ect_plugin&utm_medium=readme&utm_campaign=get_pro&utm_content=wp_preview_get_pro#pricing\" target=\"_blank\" class=\"button\" style=\"padding: 10px 24px; font-size: 14px; background: linear-gradient(90deg, #d54e21, #ff851b); color: white; border: none;\">⭐ Get PRO — Unlock All Features</a>\n        </div>\n        <p style=\"font-size: 13px; margin-top: 15px; color: #555;\">🧩 Pro is the upgraded edition of our popular events plugin, providing a wider range of design options, layout styles, and powerful features to help you build eye-catching and professional event listings.</p>\n    </div>';\n});"
    },
    {
      "step": "runPHP",
      "code": "<?php\nrequire_once '/wordpress/wp-load.php';\n\n$calendar_options = array(\n   'did_init' => true,\n   'tribeEventsTemplate' => '',\n   'tribeEnableViews' => array('list', 'month', 'day'),\n   'viewOption' => 'list',\n    'previous_ecp_versions' => array('0'),\n 'dateWithYearFormat' => 'F j, Y',\n   'recurrenceMaxMonthsAfter' => 24,\n   'tec_onboarding_wizard_visited_guided_setup' => true,\n   'opt-in-status' => false,\n);\n\nupdate_option('tribe_events_calendar_options', $calendar_options);\necho \"â tribe_events_calendar_options updated.\";"
    },
    {
      "step": "runPHP",
      "code": "<?php\nob_start();\nrequire_once '/wordpress/wp-load.php';\nob_end_clean();\n\n// Set 'Events Shortcodes For The Events Calendar' as homepage\n$page = get_page_by_title('Events Shortcodes For The Events Calendar');\nif ($page) {\n  update_option('show_on_front', 'page');\n  update_option('page_on_front', $page->ID);\n  echo \"✅ 'Events Shortcodes For The Events Calendar' page set as homepage.\";\n} else {\n  echo \"❌ 'Events Shortcodes For The Events Calendar' page not found.\";\n}"
    }
  ]
}
