<?php use Clanify\Core\CitoEngine; use Clanify\Core\Template\CDN; //get the instance of the CitoEngine. $cito = CitoEngine::getInstance(); //set the stylesheets and images. $favicon = URL . 'src/View/templates/public/img/favicon.ico'; $logo = URL . 'src/View/templates/public/img/clanify-logo.png'; $stylesheet = URL . 'src/View/templates/public/css/style.css'; $email = 'mailto:hello@clanify.rocks?subject=Hello'; //set the head information of the site. $title = 'Clanify - Organize Clans, Gaming-Communities and eSport-Teams.'; $description = 'Clanify is a tool to organize Clans, Gaming-Communities and eSport-Teams.'; $keywords = 'clanify, gaming, clan, esport'; //set the header content. $cito->setValue('head', '<meta charset="utf-8">'); $cito->setValue('head', '<meta http-equiv="X-UA-Compatible" content="IE=edge">'); $cito->setValue('head', '<meta name="viewport" content="width=device-width, initial-scale=1">'); $cito->setValue('head', '<title>' . $title . '</title>'); $cito->setValue('head', '<meta name="description" content="' . $description . '"/>'); $cito->setValue('head', '<meta name="keywords" content="' . $keywords . '"/>'); $cito->setValue('head', '<link href="' . CDN::getNormalizeCSS() . '" rel="stylesheet" type="text/css">'); $cito->setValue('head', '<link href="' . CDN::getBootstrapCSS() . '" rel="stylesheet" type="text/css">'); $cito->setValue('head', '<link href="' . CDN::getAnimateCSS() . '" rel="stylesheet" type="text/css">'); $cito->setValue('head', '<link href="' . CDN::getFontNunitoCSS() . '" rel="stylesheet" type="text/css">'); $cito->setValue('head', '<link href="' . $stylesheet . '" rel="stylesheet" type="text/css">'); $cito->setValue('head', '<link rel="shortcut icon" type="image/x-icon" href="' . $favicon . '"/>'); //set the footer content. $cito->setValue('footer', '<script src="' . CDN::getJQueryJS() . '"></script>'); $cito->setValue('footer', '<script src="' . CDN::getBootstrapJS() . '"></script>');
<?php //include the configuration. require_once 'config.php'; //include the autoloader. require_once SRCPATH . 'Autoloader.php'; //initialize the autoloader. $auto_loader = new \Clanify\Autoloader(); $auto_loader->addNamespace('Clanify', 'src'); //initialize the template engine. $cito = \Clanify\Core\CitoEngine::getInstance(); $cito->init(); //initialize the application. $clanify = new \Clanify\Core\Clanify(); //render the output. $cito->render();