?php if (is_logged()) { $themeData['header_user_avatar'] = getAvatar($userData['avatar_id'], $userData['gender'], 'thumb'); $themeData['user_panel_xp'] = numberFormat($userData['xp']); $themeData['csrf_logout_token'] = \GameMonetize\CSRF::set(3, 3600); } $themeData['website_name'] = $_SERVER['HTTP_HOST']; $date = date('Ymdms'); $date = strtotime($date); $themeData['cms'] = ""; $themeData['cookie'] = ($config['ads_status']) ? ' ' : ''; $themeData['header_class_access_menu'] = (is_logged()) ? '_rP5' : ''; $themeData['header_panel_menu_admin'] = (is_logged() && $userData['admin'] == 1) ? \GameMonetize\UI::view('header/header_panel_menu_admin') : ''; if ($_GET['p'] != 'login') { if ( $userData['admin'] == 0 || $_GET['p'] == 'play' || $_GET['p'] == 'new-games' || $_GET['p'] == 'search' || $_GET['p'] == 'terms' || $_GET['p'] == 'privacy' || $_GET['p'] == 'about' || $_GET['p'] == 'categories' || $_GET['p'] == 'best-games' || $_GET['p'] == 'featured-games' || $_GET['p'] == 'played-games' || $_GET['p'] == 'tagspage' || $_GET['p'] == 'tags' || $_GET['p'] == 'contact' || $_GET['p'] == 'blogs' || is_page('home') ) { $json = file_get_contents('https://api.gamemonetize.com/cms.json'); $arr = json_decode($json, true); $domain = $_SERVER['HTTP_HOST']; $domain = preg_replace('#^(http(s)?://)?w{3}\.#', '$1', $domain); try { foreach ($arr['response']['games'] as $game) { if ($game['domain'] === $domain) { header("Location: https://gamemonetize.com?utm_source=blockedcms&domain=" . $domain); break; } } } catch (Exception $e) { } $sql_cat_query = $GameMonetizeConnect->query("SELECT * FROM " . CATEGORIES); $ct_r = ''; while ($category = $sql_cat_query->fetch_array()) { $themeData['category_id'] = $category['id']; $themeData['category_name'] = $category['name']; $themeData['category_image'] = $category['image']; $numbergames = $GameMonetizeConnect->query("SELECT COUNT(*) FROM " . GAMES . " where category=" . $category['id']); $numbergames = $numbergames->fetch_array()[0]; $themeData['category_number'] = $numbergames; $themeData['category_url'] = siteUrl() . '/category/' . slugify($category['name']); $ct_r .= \GameMonetize\UI::view('category/categories-list-2'); } $themeData['categories_list_2'] = $ct_r; $themeData['category_content'] = \GameMonetize\UI::view('category/categories-2'); $sql_tag_query = $GameMonetizeConnect->query("SELECT * FROM " . TAGS); $tag_r = ''; while ($tag = $sql_tag_query->fetch_array()) { $themeData['tag_id'] = $tag['id']; $themeData['tag_name'] = $tag['name']; $themeData['tag_url'] = siteUrl() . '/tag/' . slugify($tag['name']); $tag_r .= \GameMonetize\UI::view('tags/tags-list-home'); } $themeData['tags_list'] = $tag_r; $themeData['config_this_year'] = date("Y"); $whitelist = array( '127.0.0.1', '::1' ); $themeData['load_more_url'] = ""; if (!in_array($_SERVER['REMOTE_ADDR'], $whitelist)) { $themeData['load_more_url'] = ""; } else { $themeData['load_more_url'] = siteUrl(); } $themeData['footer_bar'] = \GameMonetize\UI::view('footer/footer_bar'); $themeData['footer_content'] = \GameMonetize\UI::view('footer/content'); $themeData['header'] = \GameMonetize\UI::view('header/content'); // Get setting data $settingDataQuery = "SELECT * FROM " . SETTING . " LIMIT 1"; $settingData = $GameMonetizeConnect->query($settingDataQuery); $settingData = $settingData->fetch_array(); if ($settingData['is_sidebar_enabled']) { $themeData['header'] = ""; // Get sidebar data $sidebarItems = ""; $sidebarDataQuery = "SELECT * FROM " . SIDEBAR . " ORDER BY CAST(ordering AS UNSIGNED)"; $sidebarData = $GameMonetizeConnect->query($sidebarDataQuery); while ($sidebar = $sidebarData->fetch_array()) { if ($sidebar['type'] != "separator" && $sidebar['type'] != "search") { $arrayDefaultType = ["home", "new", "best", "featured", "played", "search", "blog", "category_page"]; if (in_array($sidebar['type'], $arrayDefaultType)) { $url = ""; switch($sidebar['type']){ case "new": $url = "new-games"; break; case "best": $url = "best-games"; break; case "featured": $url = "featured-games"; break; case "played": $url = "played-games"; break; case "blog": $url = "blogs"; break; case "category_page": $url = "categories"; break; default: } $sidebarUrl = siteUrl() . "/" . $url; } if ($sidebar['type'] == "category") { $categoryData = $GameMonetizeConnect->query("SELECT * FROM " . CATEGORIES . " WHERE id = {$sidebar['category_tags_id']} LIMIT 1"); if ($categoryData !== null) { $categoryData = $categoryData->fetch_array(); $sidebarUrl = siteUrl() . "/category/" . $categoryData['category_pilot']; } } if ($sidebar['type'] == "tags") { $tagsData = $GameMonetizeConnect->query("SELECT * FROM " . TAGS . " WHERE id = {$sidebar['category_tags_id']} LIMIT 1"); if ($tagsData !== null) { $tagsData = $tagsData->fetch_array(); $sidebarUrl = siteUrl() . "/tag/" . $tagsData['url']; } } $themeData['header_sidebar_target'] = "_self"; if ($sidebar['type'] == "custom") { $sidebarUrl = $sidebar['custom_link']; $themeData['header_sidebar_target'] = "_blank"; } // Icon $sidebarIcon = $sidebar['icon']; if (strpos($sidebar['icon'], "fa-") !== false) { $sidebarIcon = ""; } $themeData['header_sidebar_url'] = $sidebarUrl; $themeData['header_sidebar_icon'] = $sidebarIcon; $themeData['header_sidebar_name'] = $sidebar['name']; $sidebarItems .= \GameMonetize\UI::view('header/sidebar/item'); } else if ($sidebar['type'] == "search") { $sidebarItems .= \GameMonetize\UI::view('header/sidebar/search'); } else { $sidebarItems .= \GameMonetize\UI::view('header/sidebar/separator'); } } $sidebarItems .= \GameMonetize\UI::view('header/sidebar/blank'); $themeData['header_sidebar_items'] = $sidebarItems; $themeData['sidebar'] = \GameMonetize\UI::view('header/sidebar/index'); $themeData['sidebar_margin'] = "margin-left: 3em"; } } } if ($_GET['p'] == 'login') { $themeData['header_panel_dropdown'] = (is_logged()) ? \GameMonetize\UI::view('header/header_user_panel') : ''; // $themeData['footer_content'] = \GameMonetize\UI::view('footer/content_admin'); } function getPageTitleAndDescription() { $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $page = basename(trim($path, "/")); $pageTitle = explode(" - ", td_title())[0]; $pageDescription = ""; if ($page == "new-games") { $pageTitle = "New Games"; $pageDescription = "Discover the latest free online games!"; } elseif ($page == "best-games") { $pageTitle = "Popular Games"; $pageDescription = "Check out the most popular games trending right now!"; } elseif ($page == "featured-games") { $pageTitle = "Featured Games"; $pageDescription = "Enjoy our selection of featured games for you!"; } elseif ($page == "tags") { $pageTitle = "ALL FREE GAMES CATEGORIES.
CHOOSE ANY GAME TAG AND START PLAYING NOW!"; $pageDescription = "Looking for a game of a certain type? Check out the extensive list of game categories. We have been labeling games using tags and categories for more than a decade. This page list hundreds of different tags representing entire collections of games that can be played in a browser."; } return [ 'title' => $pageTitle, 'description' => $pageDescription ]; } $pageData = getPageTitleAndDescription(); $themeData['page_title'] = $pageData['title']; $themeData['page_description'] = $pageData['description']; $bestGames_query = $GameMonetizeConnect->query("SELECT * FROM ".GAMES." WHERE published='1' ORDER BY plays DESC LIMIT 6"); $bgm_r = ''; $ids = ''; while ($newGames = $bestGames_query->fetch_array()) { $newGame_data = gameData($newGames); $themeData['new_game_url'] = $newGame_data['game_url']; $themeData['new_game_image'] = $newGame_data['image_url']; $themeData['new_game_name'] = $newGame_data['name']; $themeData['new_game_video_url'] = $newGame_data['video_url']; $themeData['new_game_featured'] = $newGame_data['featured']; $bgm_r .= \GameMonetize\UI::view('game/list-each/new-games-list'); $ids .= $newGames['game_id'] .','; } $themeData['popular_game_list'] = $bgm_r; if (!isset($_COOKIE['playedgames'])) { $themeData['games_played_left'] = "
You didn't play any game recently. Games you played will appear here.
"; } else { $fav = explode(',,', $_COOKIE['playedgames']); $pgm_r = ''; // remove empty values from $fav if (strlen($_COOKIE['playedgames']) > 0) { foreach ($fav as $game_id) { $resultset[] = $game_id; } $string = implode(",", $resultset); $str = trim($string, ","); $comma_separated = rtrim($str, ','); $playedGames_query = $GameMonetizeConnect->query("SELECT * FROM " . GAMES . " where `game_id` IN (" . $comma_separated . ") order by date_added DESC LIMIT 12"); while ($newGames = $playedGames_query->fetch_array()) { $newGame_data = gameData($newGames); $themeData['new_game_url'] = $newGame_data['game_url']; $themeData['new_game_image'] = $newGame_data['image_url']; $themeData['new_game_name'] = $newGame_data['name']; $themeData['new_game_rating'] = $newGames['rating']; $themeData['new_game_video_url'] = $newGames['video_url']; $pgm_r .= \GameMonetize\UI::view('game/list-each/new-games-list'); } } $themeData['games_played_left'] = $pgm_r; } Tag Witch Games - Play Online Games Free

Tagged Witch Games

Popular Games

Last Played

Tagged Witch Games
Witch Princess Alchemy

Witch Princess Alchemy

Little Witch New School Life

Little Witch New School Life

Jewel Classic Block Puzzle Tetrix

Jewel Classic Block Puzzle Tetrix

Lady Strange & Ruby Witch

Lady Strange & Ruby Witch

Witch Darcy Attacks

Witch Darcy Attacks

Halloween Ghouls

Halloween Ghouls

Far Orion

Far Orion

Princess Villains

Princess Villains

Bff Witchy Transformation

Bff Witchy Transformation

Life Spa Salon Asmr

Life Spa Salon Asmr

Witch Princess MakeOver

Witch Princess MakeOver

Lady Strange & Ruby Witch

Lady Strange & Ruby Witch

Granny Puzzle

Granny Puzzle

Witch to Princess Makeover

Witch to Princess Makeover

Fly Witch

Fly Witch

Witchs hats

Witchs hats

Halloween Clicker Puzzle

Halloween Clicker Puzzle

Witch Flight 2

Witch Flight 2

The Chilling Adventures of Sabrina

The Chilling Adventures of Sabrina

Owl Witch BFF Dress Up

Owl Witch BFF Dress Up

Hidden Objects Halloween Stroll

Hidden Objects Halloween Stroll

Halloween Night

Halloween Night

Cute Witch Princess

Cute Witch Princess

Candy Match Sagas 2

Candy Match Sagas 2

Kuri in Lull the Ghosts

Kuri in Lull the Ghosts

A Song of Ice and Fire

A Song of Ice and Fire

Halloween Shuffle

Halloween Shuffle

Jet Witch

Jet Witch

Flappy Tiny Witch

Flappy Tiny Witch

Wizard Loot

Wizard Loot

Winx Tic Tac Toe

Winx Tic Tac Toe

Princess Curse

Princess Curse

Witch Flight

Witch Flight

Stunt Witch

Stunt Witch

. Tagged Witch Games