getBasePath() public static method

Suppose that an index.php file instantiates this request object: * http://localhost/index.php returns an empty string * http://localhost/index.php/page returns an empty string * http://localhost/web/index.php returns '/web' * http://localhost/we%20b/index.php returns '/we%20b'
public static getBasePath ( ) : string
return string The raw path (i.e. not urldecoded)
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html>\n<head>\n    <meta charset=\"utf-8\"/>\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"/>\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n\n    <title>Webook Login</title>\n    <link rel=\"shortcut icon\" href=\"/themes/stanfour4/assets/favicon.png\">\n\n    <!--Google Font - Work Sans-->\n    <link href='https://fonts.googleapis.com/css?family=Raleway:400,700' rel='stylesheet' type='text/css'>\n    \n    <link rel=\"stylesheet\" href=\"";
     // line 14
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/elastic-login-form/css/style.css"));
     // line 15
     echo "\">\n\n    <!-- CSS for IE -->\n    <!--[if lte IE 9]>\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"themes/stanfour4/assets/css/ie.css\" />\n    <![endif]-->\n\n    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->\n    <!--[if lt IE 9]>\n    <script src=\"themes/stanfour4/assets/js/html5shiv.js\"></script>\n    <script src=\"themes/stanfour4/assets/js/respond.min.js\"></script>\n    <![endif]-->\n</head>\n<body>\n    ";
     // line 29
     $context['__cms_component_params'] = [];
     echo $this->env->getExtension('CMS')->componentFunction("session", $context['__cms_component_params']);
     unset($context['__cms_component_params']);
     // line 30
     echo "\n    <div class=\"container\">\n        <div class=\"profile\">\n            <button class=\"profile__avatar\" id=\"toggleProfile\">\n                <img src=\"/themes/stanfour4/assets/logo.svg\" alt=\"Avatar\" /> \n            </button>\n            ";
     // line 36
     $context['__cms_component_params'] = [];
     echo $this->env->getExtension('CMS')->componentFunction("account", $context['__cms_component_params']);
     unset($context['__cms_component_params']);
     // line 37
     echo "        </div>\n    </div>\n    \n<script src=\"";
     // line 40
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/js/jquery-1.11.3.min.js", 1 => "assets/elastic-login-form/js/index.js"));
     echo "\"></script>\n";
     // line 41
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 42
     echo "</body>\n</html>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context['__cms_partial_params'] = [];
     echo $this->env->getExtension('CMS')->partialFunction("errors", $context['__cms_partial_params']);
     unset($context['__cms_partial_params']);
     // line 2
     echo "\n";
     // line 3
     echo call_user_func_array($this->env->getFunction('form_open')->getCallable(), array("open", array("request" => "contactForm::onSaveForm", "id" => "rafie_contactform", "enctype" => "multipart/form-data", "method" => "POST", "files" => true)));
     echo "\n<input type=\"hidden\" name=\"fid\" value=\"";
     // line 4
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "id", array()), "html", null, true);
     echo "\"/>\n<input type=\"hidden\" name=\"tid\" value=\"";
     // line 5
     echo twig_escape_filter($this->env, isset($context["mailTemplate"]) ? $context["mailTemplate"] : null, "html", null, true);
     echo "\"/>\n<input type=\"hidden\" name=\"g-recaptcha-response\" value=\"dd\">\n";
     // line 7
     echo isset($context["formHtml"]) ? $context["formHtml"] : null;
     echo "\n    ";
     // line 8
     if (isset($context["gCaptcha"]) ? $context["gCaptcha"] : null) {
         // line 9
         echo "<div class=\"form-group\">\n  <div class=\"g-recaptcha\" data-sitekey=\"";
         // line 10
         echo twig_escape_filter($this->env, isset($context["gCaptcha"]) ? $context["gCaptcha"] : null, "html", null, true);
         echo "\"></div>\n</div>\n";
     }
     // line 13
     echo "<div class=\"form-buttons\">\n  <div class=\"loading-indicator-container\">\n    <button id=\"rafie_saveForm\" class=\"btn btn-light btn-lg mb64\"> Send Message </button>\n  </div>\n</div>\n";
     // line 18
     echo call_user_func_array($this->env->getFunction('form_close')->getCallable(), array("close"));
     echo "\n\n";
     // line 20
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 21
     echo "\n<link rel=\"stylesheet\" href=\"";
     // line 22
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "\$/rafie/contactform/assets/css/formcontrol.css"));
     echo "\"/>\n<script src=\"";
     // line 23
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "\$/rafie/contactform/assets/js/jquery.validate.min.js"));
     echo "\"></script> \n<script>\n";
     // line 25
     if ($this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "session", array()), "get", array(0 => "error", 1 => false), "method")) {
         // line 26
         echo "    function clearForm() {\n        \$(\"#rafie_contactform\")[0].reset();\n    }//clearForm\n";
     } else {
         // line 30
         echo "    \$(function () {\n        var messages = ";
         // line 31
         echo twig_jsonencode_filter($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "messages", array()));
         echo ",\n            rules = [];\n\n        for (i in messages) {\n            name = messages[i].name;\n            validationType = messages[i].ValidationType;\n            message = messages[i].message;\n\n            rules[name] = {\n                required: message,\n                email: \"Please verify your input\"\n            };\n        }//for\n\n        //\$(\"#rafie_contactform\").validate({messages: rules});\n    });\n    \n";
     }
     // line 49
     echo "</script>";
 }
 /**
  * Display the form.
  */
 function display()
 {
     $site = Request::getSite();
     $publicFileManager = new PublicFileManager();
     $siteStyleFilename = $publicFileManager->getSiteFilesPath() . '/' . $site->getSiteStyleFilename();
     $templateMgr = TemplateManager::getManager();
     $templateMgr->assign(array('showThumbnail' => $site->getSetting('showThumbnail'), 'showTitle' => $site->getSetting('showTitle'), 'showDescription' => $site->getSetting('showDescription'), 'originalStyleFilename' => $site->getOriginalStyleFilename(), 'pageHeaderTitleImage' => $site->getSetting('pageHeaderTitleImage'), 'styleFilename' => $site->getSiteStyleFilename(), 'publicFilesDir' => Request::getBasePath() . '/' . $publicFileManager->getSiteFilesPath(), 'dateStyleFileUploaded' => file_exists($siteStyleFilename) ? filemtime($siteStyleFilename) : null, 'siteStyleFileExists' => file_exists($siteStyleFilename)));
     return parent::display();
 }
 /**
  * Handle login when implicitAuth is enabled.
  * If the user came in on a non-ssl url - then redirect back to the ssl url
  */
 function implicitAuthLogin()
 {
     if (Request::getProtocol() != 'https') {
         PKPRequest::redirectSSL();
     }
     $wayf_url = Config::getVar("security", "implicit_auth_wayf_url");
     if ($wayf_url == "") {
         die("Error in implicit authentication. WAYF URL not set in config file.");
     }
     $url = $wayf_url . "?target=https://" . Request::getServerHost() . Request::getBasePath() . '/index.php/index/login/implicitAuthReturn';
     PKPRequest::redirectUrl($url);
 }
 /**
  * Constructor.
  * Initialize session configuration and set PHP session handlers.
  * Attempts to rejoin a user's session if it exists, or create a new session otherwise.
  */
 function SessionManager(&$sessionDao)
 {
     $this->sessionDao =& $sessionDao;
     // Configure PHP session parameters
     ini_set('session.use_trans_sid', 0);
     ini_set('session.save_handler', 'user');
     ini_set('session.serialize_handler', 'php');
     ini_set('session.use_cookies', 1);
     ini_set('session.name', Config::getVar('general', 'session_cookie_name'));
     // Cookie name
     ini_set('session.cookie_lifetime', 0);
     ini_set('session.cookie_path', Request::getBasePath() . '/');
     ini_set('session.gc_probability', 1);
     ini_set('session.gc_maxlifetime', 60 * 60);
     ini_set('session.auto_start', 1);
     ini_set('session.cache_limiter', 'none');
     session_set_save_handler(array(&$this, 'open'), array(&$this, 'close'), array(&$this, 'read'), array(&$this, 'write'), array(&$this, 'destroy'), array(&$this, 'gc'));
     // Initialize the session
     session_start();
     $sessionId = session_id();
     $ip = Request::getRemoteAddr();
     $userAgent = Request::getUserAgent();
     $now = time();
     if (!isset($this->userSession) || Config::getVar('security', 'session_check_ip') && $this->userSession->getIpAddress() != $ip || $this->userSession->getUserAgent() != $userAgent) {
         if (isset($this->userSession)) {
             // Destroy old session
             session_destroy();
         }
         // Create new session
         $this->userSession =& new Session();
         $this->userSession->setId($sessionId);
         $this->userSession->setIpAddress($ip);
         $this->userSession->setUserAgent($userAgent);
         $this->userSession->setSecondsCreated($now);
         $this->userSession->setSecondsLastUsed($now);
         $this->userSession->setSessionData('');
         $this->sessionDao->insertSession($this->userSession);
     } else {
         if ($this->userSession->getRemember()) {
             // Update session timestamp for remembered sessions so it doesn't expire in the middle of a browser session
             if (Config::getVar('general', 'session_lifetime') > 0) {
                 $this->updateSessionLifetime(time() + Config::getVar('general', 'session_lifetime') * 86400);
             } else {
                 $this->userSession->setRemember(0);
                 $this->updateSessionLifetime(0);
             }
         }
         // Update existing session's timestamp
         $this->userSession->setSecondsLastUsed($now);
         $this->sessionDao->updateSession($this->userSession);
     }
 }
 /**
  * Display the form.
  */
 function display()
 {
     $site =& Request::getSite();
     $publicFileManager = new PublicFileManager();
     $siteStyleFilename = $publicFileManager->getSiteFilesPath() . '/' . $site->getSiteStyleFilename();
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('originalStyleFilename', $site->getOriginalStyleFilename());
     $templateMgr->assign('pageHeaderTitleImage', $site->getSetting('pageHeaderTitleImage'));
     $templateMgr->assign('styleFilename', $site->getSiteStyleFilename());
     $templateMgr->assign('publicFilesDir', Request::getBasePath() . '/' . $publicFileManager->getSiteFilesPath());
     $templateMgr->assign('dateStyleFileUploaded', file_exists($siteStyleFilename) ? filemtime($siteStyleFilename) : null);
     $templateMgr->assign('siteStyleFileExists', file_exists($siteStyleFilename));
     $templateMgr->assign('helpTopicId', 'site.siteManagement');
     return parent::display();
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<script src=\"";
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "@jquery", 1 => "assets/vendor/bootstrap/js/transition.js", 2 => "assets/vendor/bootstrap/js/alert.js", 3 => "assets/vendor/bootstrap/js/button.js", 4 => "assets/vendor/bootstrap/js/carousel.js", 5 => "assets/vendor/bootstrap/js/collapse.js", 6 => "assets/vendor/bootstrap/js/dropdown.js", 7 => "assets/vendor/bootstrap/js/modal.js", 8 => "assets/vendor/bootstrap/js/tooltip.js", 9 => "assets/vendor/bootstrap/js/popover.js", 10 => "assets/vendor/bootstrap/js/scrollspy.js", 11 => "assets/vendor/bootstrap/js/tab.js", 12 => "assets/vendor/bootstrap/js/affix.js", 13 => "assets/vendor/wow/dist/wow.min.js", 14 => "assets/vendor/holderjs/holder.min.js", 15 => "assets/vendor/summernote/dist/summernote.min.js", 16 => "assets/js/jquery-easing.min.js", 17 => "assets/js/flexslider.min.js", 18 => "assets/js/skdslider.js", 19 => "assets/js/animatescroll.min.js", 20 => "assets/js/spectragram.min.js", 21 => "assets/js/scripts.js"));
     // line 24
     echo "\"></script> \n";
     // line 25
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 26
     echo $this->env->getExtension('CMS')->assetsFunction('js');
     echo $this->env->getExtension('CMS')->displayBlock('scripts');
     echo " \n<script src='https://www.google.com/recaptcha/api.js' async defer></script>\n<script src='https://cdn.slaask.com/chat.js'></script> \n<script>\n    _slaask.init('946633270bc38d26211ac9e25266cd43');\n</script>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<section id=\"footerSmall\">\n        <div class=\"row\">\n            <div class=\"col-xs-8\">\n                <div class=\"copyright\">by <a href=\"http://www.webook.pt\" target=\"_blank\">webook</a> ©";
     // line 4
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
     echo "</div>   \n            </div>\n            <div class=\"col-xs-4\">\n                <ul class=\"socials pull-right\">\n                    <li><a href=\"#\"><i class=\"fa fa-facebook\"></i></a></li>\n                    <li><a href=\"#\"><i class=\"fa fa-google-plus\"></i></a></li>\n                    <li><a href=\"#\"><i class=\"fa fa-twitter\"></i></a></li>\n                </ul>    \n            </div>\n        </div>\n    </section>\n</div>\n\n<div id=\"medidas\" style=\"display:block; padding:0 20px; height:50px; line-height:50px; position:fixed; bottom:0; right:0; background:#f00; color:#fff; z-index:9999; text-align:center\"><a style=\"cursor:pointer\" data-request=\"onLogout\" data-request-data=\"redirect: '/good-bye'\">Logout</a></div>\n\n<script src=\"";
     // line 19
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/js/jquery-1.11.3.min.js", 1 => "assets/libs/bootstrap/js/bootstrap.min.js", 2 => "assets/js/imagesloaded.pkgd.min.js", 3 => "assets/js/instafeed.min.js", 4 => "assets/js/packery.pkgd.min.js", 5 => "assets/js/wow.min.js", 6 => "assets/libs/YTPlayer/jquery.mb.YTPlayer.min.js", 7 => "assets/libs/owl-carousel/owl.carousel.min.js", 8 => "assets/js/main.js"));
     // line 29
     echo "\"></script>\n<script src=\"/themes/stanfour4/assets/libs/lightbox.js\"></script>\n";
     // line 31
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
 }
Example #9
0
 /**
  * Display the form.
  */
 function display()
 {
     $site =& Request::getSite();
     $publicFileManager =& new PublicFileManager();
     $siteStyleFilename = $publicFileManager->getSiteFilesPath() . '/' . $site->getSiteStyleFilename();
     $journalDao =& DAORegistry::getDAO('JournalDAO');
     $journals =& $journalDao->getJournalTitles();
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('redirectOptions', $journals);
     $templateMgr->assign('originalStyleFilename', $site->getOriginalStyleFilename());
     $templateMgr->assign('pageHeaderTitleImage', $site->getData('pageHeaderTitleImage'));
     $templateMgr->assign('styleFilename', $site->getSiteStyleFilename());
     $templateMgr->assign('publicFilesDir', Request::getBasePath() . '/' . $publicFileManager->getSiteFilesPath());
     $templateMgr->assign('dateStyleFileUploaded', file_exists($siteStyleFilename) ? filemtime($siteStyleFilename) : null);
     $templateMgr->assign('siteStyleFileExists', file_exists($siteStyleFilename));
     $templateMgr->assign('helpTopicId', 'site.siteManagement');
     parent::display();
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<script src=\"";
     echo $this->env->getExtension('CMS')->themeFilter("assets/javascript/jquery.js");
     echo "\"></script>\n<script src=\"";
     // line 2
     echo $this->env->getExtension('CMS')->themeFilter("assets/javascript/jquery.elastic.source.js");
     echo "\"></script>\n<script src=\"";
     // line 3
     echo $this->env->getExtension('CMS')->themeFilter("assets/bundle.js");
     echo "\"></script>\n";
     // line 4
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 5
     echo $this->env->getExtension('CMS')->assetsFunction('js');
     echo $this->env->getExtension('CMS')->displayBlock('scripts');
     // line 6
     echo "<script type=\"text/javascript\">\n  \$(function() {\n    \$('textarea').elastic()\n  })\n</script>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    <meta name=\"description\" content=\"\">\n    <meta name=\"author\" content=\"\">\n    <link rel=\"icon\" href=\"../../favicon.ico\">\n\n    <title>23 Copperleaf Drive</title>\n\n    ";
     // line 13
     echo $this->env->getExtension('CMS')->assetsFunction('css');
     echo $this->env->getExtension('CMS')->displayBlock('styles');
     // line 14
     echo "    <link href=\"";
     echo $this->env->getExtension('CMS')->themeFilter("assets/css/bootstrap.min.css");
     echo "\" rel=\"stylesheet\">\n    <link href=\"";
     // line 15
     echo $this->env->getExtension('CMS')->themeFilter("assets/css/cover.css");
     echo "\" rel=\"stylesheet\">\n\n    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\n    <!--[if lt IE 9]>\n      <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\n      <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\n    <![endif]-->\n  </head>\n\n  <body>\n\n    <div class=\"site-wrapper\">\n\n      <div class=\"site-wrapper-inner\">\n\n        <div class=\"cover-container\">\n\n          <div class=\"masthead clearfix\">\n            <div class=\"inner\">\n              <h3 class=\"masthead-brand\">Cover</h3>\n              <nav>\n                <ul class=\"nav masthead-nav\">\n                  <li class=\"active\"><a href=\"#\">Home</a></li>\n                  <li><a href=\"#\">Floor Plan</a></li>\n                  <li><a href=\"#\">Photos</a></li>\n                  <li><a href=\"#\">Newtown FAQ</a></li>\n                </ul>\n              </nav>\n            </div>\n          </div>\n\n          <div class=\"inner cover\">\n            <h1 class=\"cover-heading\">Cover your page.</h1>\n            <p class=\"lead\">Cover is a one-page template for building simple and beautiful home pages. Download, edit the text, and add your own fullscreen background photo to make it your own.</p>\n            <p class=\"lead\">\n              <a href=\"#\" class=\"btn btn-lg btn-default\">Learn more</a>\n            </p>\n          </div>\n\n          <div class=\"mastfoot\">\n            <div class=\"inner\">\n              <p>Cover template for <a href=\"http://getbootstrap.com\">Bootstrap</a>, by <a href=\"https://twitter.com/mdo\">@mdo</a>.</p>\n            </div>\n          </div>\n\n        </div>\n\n      </div>\n\n    </div>\n\n    <!-- Bootstrap core JavaScript\n    ================================================== -->\n    <!-- Placed at the end of the document so the pages load faster -->\n    <script src=\"";
     // line 69
     echo $this->env->getExtension('CMS')->themeFilter("assets/javascript/jquery.min.js");
     echo "\"></script>\n    <script src=\"";
     // line 70
     echo $this->env->getExtension('CMS')->themeFilter("assets/javascript/bootstrap.min.js");
     echo "\"></script>\n    <script src=\"";
     // line 71
     echo $this->env->getExtension('CMS')->themeFilter("assets/javascript/docs.min.js");
     echo "\"></script>\n    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->\n    <script src=\"";
     // line 73
     echo $this->env->getExtension('CMS')->themeFilter("assets/javascript/ie10-viewport-bug-workaround.js");
     echo "\"></script>\n    ";
     // line 74
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 75
     echo "    ";
     echo $this->env->getExtension('CMS')->assetsFunction('js');
     echo $this->env->getExtension('CMS')->displayBlock('scripts');
     // line 76
     echo "  </body>\n</html>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=\"utf-8\">\n        <title>";
     // line 5
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "title", array()), "html", null, true);
     echo " | Urdaneta City University</title>\n        <meta name=\"description\" content=\"";
     // line 6
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "meta_description", array()), "html", null, true);
     echo "\">\n        <meta name=\"title\" content=\"";
     // line 7
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "meta_title", array()), "html", null, true);
     echo "\">\n        <meta name=\"author\" content=\"Urdaneta City University\">\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n        <link rel=\"icon\" type=\"image/png\" href=\"";
     // line 10
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/favicon.ico");
     echo "\" />\n        ";
     // line 11
     echo $this->env->getExtension('CMS')->assetsFunction('css');
     echo $this->env->getExtension('CMS')->displayBlock('styles');
     // line 12
     echo "        <link href='";
     echo $this->env->getExtension('CMS')->themeFilter("assets/css/bootstrap.css");
     echo "' rel=\"stylesheet\">\n        <link href='";
     // line 13
     echo $this->env->getExtension('CMS')->themeFilter("assets/css/theme.css");
     echo "' rel=\"stylesheet\">\n        <link href='https://fonts.googleapis.com/css?family=Vollkorn' rel='stylesheet' type='text/css'>\n        <link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>\n        <link href='";
     // line 16
     echo $this->env->getExtension('CMS')->themeFilter("assets/css/yamm.css");
     echo "' rel=\"stylesheet\" type=\"text/css\" media=\"all\" />\n        <link href='";
     // line 17
     echo $this->env->getExtension('CMS')->themeFilter("assets/css/font.css");
     echo "' rel=\"stylesheet\" type=\"text/css\" media=\"all\" />\n        <link href='";
     // line 18
     echo $this->env->getExtension('CMS')->themeFilter("assets/css/timeline.css");
     echo "' rel=\"stylesheet\" type=\"text/css\" media=\"all\" />\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n    </head>\n    <body>\n                    <header id=\"site-header\" class=\"light\">\n                            <div class=\"navbar navbar-default navbar-static-top yamm\">\n                                <div class=\"container\">\n                                    <div class=\"navbar-header\">\n                                        <h1>\n                                        <a  href=\"";
     // line 27
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/\" class=\"navbar-brand\" title=\"UCU\" rel=\"home\">\n                                        <span class=\"navbar-brand-blue\"><img alt=\"Urdaneta City University\" src='";
     // line 28
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/ucu_logo_white_text.png");
     echo "'></span>\n                                        </a>\n                                        </h1>\n                             <button class=\"menu-button navbar-toggle\" id=\"menuButton\" data-toggle=\"collapse\" data-target=\"#main-nav\">\n                                <span class=\"sr-only\">Toggle navigation</span>\n                                <span class=\"burger-icon\"></span>\n                                    </div>\n                                    <!-- Collect the nav links, forms, and other content for toggling -->\n                                    <div class=\"collapse navbar-collapse\" id=\"main-nav\">\n                                        <nav id=\"primary-nav\" role=\"navigation\">\n                                            <ul class=\"nav navbar-nav\">\n                                                    <li>\n                                                        <a  href=\"";
     // line 40
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/\" style=\"font-weight:600\">Home</a>\n                                                    </li>\n                                                    <li class=\"dropdown yamm-fw\">\n                                                        <a href=\"#\" data-toggle=\"dropdown\" class=\"dropdown-toggle\">About <b class=\"caret\"></b></a>\n                                                        <ul class=\"dropdown-menu\">\n                                                           <li>\n                                                                <div class=\"yamm-content\">\n                                                                    <div class=\"row\">\n                                                                        <div class=\"col-sm-7\">\n                                                                            <div class=\"caption hidden-xs\">\n                                                                                <div class=\"row\">\n                                                                                    <div class=\"col-sm-6\">\n                                                                                        <img src='";
     // line 52
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/about_menu.jpg");
     echo "' alt=\"\">\n                                                                                    </div>\n                                                                                    <div class=\"col-sm-6\"><div class=\"description\"><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima vel, sit eligendi. Consectetur enim accusamus dolores architecto sed itaque </p></div></div>\n                                                                                </div>\n                                                                            </div>\n                                                                        </div>\n                                                                        <div class=\"col-sm-5\">\n                                                                            <div class=\"subnav\">\n                                                                                <div class=\"row\">\n                                                                                    <div class=\"col-sm-6\"><ul class=\"list-unstyled\">\n                                                                                        <li><a href=\"";
     // line 62
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/about-ucu/history\" class=\"\">History</a></li>\n                                                                                        <li><a href=\"";
     // line 63
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/about-ucu/vmgo\" class=\"\">Vision &amp; Mission</a></li>\n                                                                                        <li><a href=\"";
     // line 64
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/about-ucu/administration\" class=\"\">Administration</a></li>\n                                                                                        <li><a href=\"";
     // line 65
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/about-ucu/university-hymn\" class=\"\">University Hymn</a></li>\n                                                                                    </ul></div>\n                                                                                    <div class=\"col-sm-6\"><ul class=\"list-unstyled\">\n                                                                                        <li><a href=\"";
     // line 68
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/about-ucu/highlights\" class=\"\">UCU Highlights</a></li>\n                                                                                        <li><a href=\"";
     // line 69
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/about-ucu/campus-map\" class=\"\">Campus Map</a></li>\n                                                                                        <li><a href=\"";
     // line 70
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/about-ucu/seal-and-symbols\" class=\"\">UCU Seal & Symbols</a></li>\n                                                                                        <li><a href=\"";
     // line 71
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/about-ucu/contact-us\" class=\"\">Contact Us</a></li>\n                                                                                    </ul></div>\n                                                                                </div>\n                                                                            </div>\n                                                                        </div>\n                                                                    </div>\n                                                                </div>\n                                                           </li>\n                                                         </ul>\n                                                    </li>\n                                                    <li class=\"dropdown yamm-fw\">\n                                                        <a href=\"#\" data-toggle=\"dropdown\" class=\"dropdown-toggle\">Admissions <b class=\"caret\"></b></a>\n                                                        <ul class=\"dropdown-menu\">\n                                                           <li>\n                                                                <div class=\"yamm-content\">\n                                                                    <div class=\"row\">\n                                                                        <div class=\"col-sm-7\">\n                                                                            <div class=\"caption hidden-xs\">\n                                                                                <div class=\"row\">\n                                                                                    <div class=\"col-sm-6\">\n                                                                                        <img src='";
     // line 91
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/admissions_menu.jpg");
     echo "' alt=\"\">\n                                                                                    </div>\n                                                                                    <div class=\"col-sm-6\"><div class=\"description\"><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima vel, sit eligendi. Consectetur enim accusamus dolores architecto sed itaque </p></div></div>\n                                                                                </div>\n                                                                            </div>\n                                                                        </div>\n                                                                        <div class=\"col-sm-5\">\n                                                                            <div class=\"subnav\">\n                                                                                <div class=\"row\">\n                                                                                    <div class=\"col-sm-6\"><ul class=\"list-unstyled\">\n                                                                                        <li><a href=\"";
     // line 101
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/admission/application-procedures\" aria-describedby=\"campus-life\" class=\"\">Application and Enrolment Procedures</a></li>\n                                                                                        <li><a href=\"";
     // line 102
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/admission/scholarships\" class=\"\">Scholarship Grants</a></li>\n                                                                                        <li><a href=\"";
     // line 103
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/admission/graduates\" class=\"\">Graduate</a></li>\n                                                                                        <li><a href=\"";
     // line 104
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/admission/undergraduates\" class=\"\">Undergraduate</a></li>\n                                                                                    </ul></div>\n                                                                                    <div class=\"col-sm-6\"><ul class=\"list-unstyled\">\n                                                                                        <li><a href=\"";
     // line 107
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/admission/law\" class=\"\">Law</a></li>\n                                                                                        <li><a href=\"";
     // line 108
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/admission/entrance-examination\" class=\"\">Entrance Examination</a></li>\n                                                                                    </ul></div>\n                                                                                </div>\n                                                                            </div>\n                                                                        </div>\n                                                                    </div>\n                                                                </div>\n                                                           </li>\n                                                         </ul>\n                                                    </li>\n                                                    <li class=\"dropdown yamm-fw\">\n                                                        <a href=\"#\" data-toggle=\"dropdown\" class=\"dropdown-toggle\">Academics <b class=\"caret\"></b></a>\n                                                        <ul class=\"dropdown-menu\">\n                                                           <li>\n                                                                <div class=\"yamm-content\">\n                                                                    <div class=\"row\">\n                                                                        <div class=\"col-sm-7\">\n                                                                            <div class=\"caption hidden-xs\">\n                                                                                <div class=\"row\">\n                                                                                    <div class=\"col-sm-6\">\n                                                                                        <img src='";
     // line 128
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/academics_menu.jpg");
     echo "' alt=\"\">\n                                                                                    </div>\n                                                                                    <div class=\"col-sm-6\"><div class=\"description\"><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima vel, sit eligendi. Consectetur enim accusamus dolores architecto sed itaque </p></div></div>\n                                                                                </div>\n                                                                            </div>\n                                                                        </div>\n                                                                        <div class=\"col-sm-5\">\n                                                                            <div class=\"subnav\">\n                                                                                <div class=\"row\">\n                                                                                    <div class=\"col-sm-6\"><ul class=\"list-unstyled\">\n                                                                                        <li><a href=\"";
     // line 138
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/academics/graduate-school\" aria-describedby=\"campus-life\" class=\"\">Graduate School</a></li>\n                                                                                        <li><a href=\"";
     // line 139
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/academics/colleges\" class=\"\">Colleges</a></li>\n                                                                                        <li><a href=\"";
     // line 140
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/academics/cpd\" class=\"\">Center for Continuing and Professional Development</a></li>\n                                                                                        <li><a href=\"";
     // line 141
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/academics/research-extensions\" class=\"\">Research &amp; Extensions</a></li>\n                                                                                    </ul></div>\n                                                                                    <div class=\"col-sm-6\"><ul class=\"list-unstyled\">\n                                                                                        <li><a href=\"";
     // line 144
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/academics/faculty-profile\" class=\"\">Faculty Profile</a></li>\n                                                                                        <li><a href=\"";
     // line 145
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/academics/academic-calendar\" class=\"\">Academic Calendar</a></li>\n                                                                                        <li><a href=\"";
     // line 146
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/academics/opac\" class=\"\">UCU OPAC</a></li>\n                                                                                        <li><a href=\"";
     // line 147
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/academics/library\" class=\"\">Libraries</a></li>\n                                                                                    </ul></div>\n                                                                                </div>\n                                                                            </div>\n                                                                        </div>\n                                                                    </div>\n                                                                </div>\n                                                           </li>\n                                                         </ul>\n                                                    </li>\n                                                    <li class=\"dropdown yamm-fw\">\n                                                        <a href=\"#\" data-toggle=\"dropdown\" class=\"dropdown-toggle\">Campus Life <b class=\"caret\"></b></a>\n                                                        <ul class=\"dropdown-menu\">\n                                                           <li>\n                                                                <div class=\"yamm-content\">\n                                                                    <div class=\"row\">\n                                                                        <div class=\"col-sm-7\">\n                                                                            <div class=\"caption hidden-xs\">\n                                                                                <div class=\"row\">\n                                                                                    <div class=\"col-sm-6\">\n                                                                                        <img src='";
     // line 167
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/campuslife_menu.jpg");
     echo "' alt=\"\">\n                                                                                    </div>\n                                                                                    <div class=\"col-sm-6\"><div class=\"description\"><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima vel, sit eligendi. Consectetur enim accusamus dolores architecto sed itaque </p></div></div>\n                                                                                </div>\n                                                                            </div>\n                                                                        </div>\n                                                                        <div class=\"col-sm-5\">\n                                                                            <div class=\"subnav\">\n                                                                                <div class=\"row\">\n                                                                                    <div class=\"col-sm-6\"><ul class=\"list-unstyled\">\n                                                                                        <li><a href=\"";
     // line 177
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/campus-life/student-development\" aria-describedby=\"campus-life\" class=\"\">Student Development</a></li>\n                                                                                        <li><a href=\"/campus-life/guidance-counseling\" class=\"\">Guidance and Counseling</a></li>\n                                                                                        <li><a href=\"";
     // line 179
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/campus-life/student-organizations\" class=\"\">Student Organizations</a></li>\n                                                                                    </ul></div>\n                                                                                    <div class=\"col-sm-6\"><ul class=\"list-unstyled\">\n                                                                                    <li><a href=\"";
     // line 182
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/campus-life/arts-culture\" class=\"\">Arts &amp; Culture</a></li>\n                                                                                    <li><a href=\"";
     // line 183
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/campus-life/civic-welfare\" class=\"\">Civil Welfare</a></li>\n                                                                                    <li><a href=\"";
     // line 184
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/campus-life/athletics\" class=\"\">Athletics</a></li>\n                                                                                    <li><a href=\"";
     // line 185
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/campus-life/publications\" class=\"\">Publications</a></li>\n                                                                                    </ul></div>\n                                                                                </div>\n                                                                            </div>\n                                                                        </div>\n                                                                    </div>\n                                                                </div>\n                                                           </li>\n                                                         </ul>\n                                                    </li>\n\n                                            </ul>\n                                            </nav>\n                                            <div id=\"audience-nav\" >\n                                                <div class=\"\">\n                                                    <h3 class=\"visible-xs\">More</h3>\n                                                    <ul class=\"nav navbar-nav\">\n                                                        <li><a href=\"";
     // line 202
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/students\">Students</a></li>\n                                                        <li><a href=\"";
     // line 203
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "/faculty\">Faculty &amp; Staff</a></li>\n                                                        <li><a href=\"http://alumni.ucu.edu/\">Alumni</a></li>\n                                                        <li class=\"dropdown\">\n                                                            <a data-toggle=\"dropdown\" class=\"dropdown-toggle \" href=\"http://google.com\">Online Services <b class=\"caret\"></b></a>\n                                                                <ul class=\"dropdown-menu\">\n                                                                    <li ><a style = \"color:#000\" href=\"#\" class=\"\">MyUCU Student Portal</a></li>\n                                                                    <li><a style = \"color:#000\" href=\"#\">Orata Library OPAC</a></li>\n                                                                    <li><a style = \"color:#000\" href=\"#\">Alumni Registration</a></li>\n                                                                </ul>\n                                                        </li>\n                                                    </ul>\n                                                </div>\n                                        </div>\n                                        </div><!-- /.navbar-collapse -->\n                                        </div><!-- /.container -->\n                                    </div>\n                                </header>\n\n        <!-- Content -->\n        <section id=\"layout-content\">\n            ";
     // line 223
     echo $this->env->getExtension('CMS')->pageFunction();
     // line 224
     echo "        </section>\n\n        <!-- Footer -->\n        <footer id=\"layout-footer\">\n            ";
     // line 228
     $context['__cms_partial_params'] = [];
     echo $this->env->getExtension('CMS')->partialFunction("footer", $context['__cms_partial_params']);
     unset($context['__cms_partial_params']);
     // line 229
     echo "        </footer>\n\n        <!-- Scripts -->\n        <script src=\"";
     // line 232
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/javascript/jquery.js", 1 => "assets/vendor/bootstrap/js/transition.js", 2 => "assets/vendor/bootstrap/js/alert.js", 3 => "assets/vendor/bootstrap/js/button.js", 4 => "assets/vendor/bootstrap/js/carousel.js", 5 => "assets/vendor/bootstrap/js/collapse.js", 6 => "assets/vendor/bootstrap/js/dropdown.js", 7 => "assets/vendor/bootstrap/js/modal.js", 8 => "assets/vendor/bootstrap/js/tooltip.js", 9 => "assets/vendor/bootstrap/js/popover.js", 10 => "assets/vendor/bootstrap/js/scrollspy.js", 11 => "assets/vendor/bootstrap/js/tab.js", 12 => "assets/vendor/bootstrap/js/affix.js", 13 => "assets/javascript/app.js", 14 => "assets/javascript/bootstrap.js", 15 => "assets/javascript/modernizr.js", 16 => "assets/javascript/easing.js", 17 => "assets/javascript/move-top.js", 18 => "assets/javascript/main.js"));
     // line 251
     echo "\"></script>\n    <script type=\"text/javascript\">\n        \$(document).ready(function () {\n            \$('.dropdown-toggle').dropdown();\n        });\n   </script>\n        ";
     // line 257
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 258
     echo "        ";
     echo $this->env->getExtension('CMS')->assetsFunction('js');
     echo $this->env->getExtension('CMS')->displayBlock('scripts');
     // line 259
     echo "\n    </body>\n</html>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<header class=\"intro-header\" style=\"background-image: url('";
     echo $this->env->getExtension('CMS')->themeFilter("/assets/images/posts.png");
     echo "')\">\n<div class=\"container\">\n    <div class=\"row\">\n        <div class=\"col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1\">\n            <div class=\"post-heading\">\n                <h1 class=\"text-center\">";
     // line 6
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "title", array()), "html", null, true);
     echo "</h1>\n            </div>\n        </div>\n    </div>\n</div>\n</header>\n\n<div class=\"container\">\n    <div class=\"row\">\n        <div class=\"col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1\" id=\"posts\">\n            ";
     // line 16
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["posts"]) ? $context["posts"] : null);
     $context['_iterated'] = false;
     foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
         // line 17
         echo "            <div class=\"post-preview\">\n                <a href=\"";
         // line 18
         echo $this->env->getExtension('CMS')->pageFilter("blog/post", array("slug" => $this->getAttribute($context["post"], "slug", array())));
         echo "\">\n                    <h2 class=\"post-title\">\n                        ";
         // line 20
         echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "title", array()), "html", null, true);
         echo "\n                    </h2>\n                    <h3 class=\"post-subtitle\">\n                        ";
         // line 23
         echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "excerpt", array()), "html", null, true);
         echo "\n                    </h3>\n                </a>\n                <span class=\"post-meta\">Published on ";
         // line 26
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["post"], "published_at", array()), "F jS, Y"), "html", null, true);
         echo "</span> <br/>\n                ";
         // line 27
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["post"], "categories", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
             // line 28
             echo "                <a href=\"";
             echo $this->env->getExtension('CMS')->pageFilter("category", array("slug" => $this->getAttribute($context["category"], "slug", array())));
             echo "\">\n                    <span class=\"label label-primary\">";
             // line 29
             echo twig_escape_filter($this->env, $this->getAttribute($context["category"], "name", array()), "html", null, true);
             echo "</span>\n                </a>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 32
         echo "            </div>\n            <hr>\n            ";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 35
         echo "            <h2>No posts found.</h2>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 37
     echo "\n\n        </div>\n    </div>\n\n    <div class=\"row\">\n        <div class=\"col-md-2 col-md-offset-5\">\n            <a id=\"load_more\"\n               href=\"#\"\n               class=\"btn btn-primary\"\n               data-request=\"onLoadMorePosts\"\n               data-request-update=\"'ajax/posts': '@#posts'\"\n               data-request-data='\"postsCount\": 1'\n               data-request-success=\"incrementPostsCounter(\$el);\">\n                Load more\n            </a>\n        </div>\n    </div>\n\n</div>\n\n<script>\n    function incrementPostsCounter(\$el){\n        var data = \$.parseJSON( \"{\" + \$el.data('request-data') + \"}\" );\n        \$el.data('request-data', '\"postsCount\": ' + (++data.postsCount) );\n    }\n</script>\n\n";
     // line 65
     echo $this->env->getExtension('CMS')->startBlock('scripts');
     // line 66
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 65
     echo $this->env->getExtension('CMS')->endBlock(true);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=\"utf-8\">\n        <title>OctoberCMS - ";
     // line 5
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "title", array()), "html", null, true);
     echo "</title>\n        <meta name=\"description\" content=\"";
     // line 6
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "meta_description", array()), "html", null, true);
     echo "\">\n        <meta name=\"title\" content=\"";
     // line 7
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "meta_title", array()), "html", null, true);
     echo "\">\n        <meta name=\"author\" content=\"OctoberCMS\">\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n        <meta name=\"generator\" content=\"OctoberCMS\">\n        <link rel=\"icon\" type=\"image/png\" href=\"";
     // line 11
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/october.png");
     echo "\" />\n        ";
     // line 12
     echo $this->env->getExtension('CMS')->assetsFunction('css');
     echo $this->env->getExtension('CMS')->displayBlock('styles');
     // line 13
     echo "        <link href=\"";
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/css/theme.css"));
     // line 15
     echo "\" rel=\"stylesheet\">\n    </head>\n    <body>\n\n        <!-- Header -->\n        <header id=\"layout-header\">\n\n            <!-- Nav -->\n            <nav id=\"layout-nav\" class=\"navbar navbar-inverse navbar-fixed-top\" role=\"navigation\">\n                <div class=\"container\">\n                    <div class=\"navbar-header\">\n                        <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".navbar-main-collapse\">\n                            <span class=\"sr-only\">Toggle navigation</span>\n                            <span class=\"icon-bar\"></span>\n                            <span class=\"icon-bar\"></span>\n                            <span class=\"icon-bar\"></span>\n                        </button>\n                        <a class=\"navbar-brand\" href=\"";
     // line 32
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "\">October Demo</a>\n                    </div>\n                    <div class=\"collapse navbar-collapse navbar-main-collapse\">\n                        <ul class=\"nav navbar-nav\">\n                            <li class=\"";
     // line 36
     if ($this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "id", array()) == "home") {
         echo "active";
     }
     echo "\"><a href=\"";
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "\">Basic concepts</a></li>\n                            <li class=\"";
     // line 37
     if ($this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "id", array()) == "ajax") {
         echo "active";
     }
     echo "\"><a href=\"";
     echo $this->env->getExtension('CMS')->pageFilter("ajax");
     echo "\">AJAX framework</a></li>\n                            <li class=\"";
     // line 38
     if ($this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "id", array()) == "plugins") {
         echo "active";
     }
     echo "\"><a href=\"";
     echo $this->env->getExtension('CMS')->pageFilter("plugins");
     echo "\">Plugin components</a></li>\n                        </ul>\n                    </div>\n                </div>\n            </nav>\n\n        </header>\n\n        <!-- Content -->\n        <section id=\"layout-content\">\n            ";
     // line 48
     echo $this->env->getExtension('CMS')->pageFunction();
     // line 49
     echo "        </section>\n\n        <!-- Footer -->\n        <footer id=\"layout-footer\">\n            ";
     // line 53
     $context['__cms_partial_params'] = [];
     echo $this->env->getExtension('CMS')->partialFunction("footer", $context['__cms_partial_params']);
     unset($context['__cms_partial_params']);
     // line 54
     echo "        </footer>\n\n        <!-- Scripts -->\n        <script src=\"";
     // line 57
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/javascript/jquery.js", 1 => "assets/vendor/bootstrap/js/transition.js", 2 => "assets/vendor/bootstrap/js/alert.js", 3 => "assets/vendor/bootstrap/js/button.js", 4 => "assets/vendor/bootstrap/js/carousel.js", 5 => "assets/vendor/bootstrap/js/collapse.js", 6 => "assets/vendor/bootstrap/js/dropdown.js", 7 => "assets/vendor/bootstrap/js/modal.js", 8 => "assets/vendor/bootstrap/js/tooltip.js", 9 => "assets/vendor/bootstrap/js/popover.js", 10 => "assets/vendor/bootstrap/js/scrollspy.js", 11 => "assets/vendor/bootstrap/js/tab.js", 12 => "assets/vendor/bootstrap/js/affix.js", 13 => "assets/javascript/app.js"));
     // line 72
     echo "\"></script>\n        ";
     // line 73
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 74
     echo "        ";
     echo $this->env->getExtension('CMS')->assetsFunction('js');
     echo $this->env->getExtension('CMS')->displayBlock('scripts');
     // line 75
     echo "\n    </body>\n</html>";
 }
Example #15
0
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301  USA
 */
session_start();
require_once 'library/Autoload.php';
Autoload::register();
Configuration::load("../config/config.php");
$uri = Request::getURI();
$baseInc = Configuration::get('base_include');
$basepat = Request::getBasePath();
if (Request::isGet()) {
    if (!isset($_SESSION['sysadmin'])) {
        require $baseInc['views'] . '/login.php';
    } else {
        require $baseInc['views'] . '/layout.php';
    }
} elseif (Request::isPost()) {
    if (file_exists("../" . $baseInc['controllers'] . "/" . $uri[0] . ".php")) {
        include "../" . $baseInc['controllers'] . "/" . $uri[0] . ".php";
    }
}
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=\"utf-8\">\n        <title>OctoberCMS - ";
     // line 5
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "title", array()), "html", null, true);
     echo "</title>\n        <meta name=\"title\" content=\"";
     // line 6
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "meta_title", array()), "html", null, true);
     echo "\">\n        <meta name=\"author\" content=\"OctoberCMS\">\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n        <meta name=\"generator\" content=\"OctoberCMS\">\n        <link rel=\"icon\" type=\"image/png\" href=\"";
     // line 10
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/october.png");
     echo "\" />\n        ";
     // line 11
     echo $this->env->getExtension('CMS')->assetsFunction('css');
     echo $this->env->getExtension('CMS')->displayBlock('styles');
     // line 12
     echo "        <link href=\"";
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/css/bootstrap.css"));
     echo "\" rel=\"stylesheet\">\n         <link href=\"";
     // line 13
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/css/bootstrap.css.map"));
     echo "\" rel=\"stylesheet\">\n        <style type=\"text/css\">\n\n            .intro-header {\n                            padding-top: 210px;\n                            padding-bottom: 225px;\n                            text-align: center;\n                            color: #f8f8f8;\n                            background: url(";
     // line 21
     echo $this->env->getExtension('CMS')->themeFilter("assets/banner-bg.jpg");
     echo ") no-repeat center center;\n                            background-size: cover;\n                          }\n\n        </style>\n        <link href=\"https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic\" rel=\"stylesheet\" type=\"text/css\">\n    </head>\n    <body>\n        <!--navbar-->\n        <nav class=\"navbar navbar-default\" style=\"margin-bottom:0px\">\n          <div class=\"container-fluid\">\n            <!-- Brand and toggle get grouped for better mobile display -->\n            <div class=\"navbar-header\">\n              <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#bs-example-navbar-collapse-1\" aria-expanded=\"false\">\n                <span class=\"sr-only\">Toggle navigation</span>\n                <span class=\"icon-bar\"></span>\n                <span class=\"icon-bar\"></span>\n                <span class=\"icon-bar\"></span>\n              </button>\n              <a class=\"navbar-brand\" href=\"";
     // line 40
     echo $this->env->getExtension('CMS')->pageFilter("home");
     echo "\" >Aaron Zhou</a>\n            </div>\n            <!-- Collect the nav links, forms, and other content for toggling -->\n            <div class=\"collapse navbar-collapse\" id=\"bs-example-navbar-collapse-1\">\n              <ul class=\"nav navbar-nav navbar-right\">\n              ";
     // line 45
     if (isset($context["user"]) ? $context["user"] : null) {
         // line 46
         echo "                  <li><a>Hello ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : null, "firstname", array()), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : null, "name", array()), "html", null, true);
         echo "</a></li>\n                  <li><a data-request=\"onLogout\" data-request-data=\"redirect: '/login'\">Sign out</a></li>\n                  <li><a href=\"./updatestatus\">Update info</a></li>\n              ";
     } else {
         // line 50
         echo "                  <li><a href=\"./login\">Login</a></li>\n                  <li><a href=\"./register\">Register</a></li>\n              ";
     }
     // line 53
     echo "              </ul>\n            </div><!-- /.navbar-collapse -->\n          </div><!-- /.container-fluid -->\n        </nav>\n\n\n        <!-- Content -->\n        <section id=\"layout-content\">\n            ";
     // line 61
     echo $this->env->getExtension('CMS')->pageFunction();
     // line 62
     echo "        </section>\n        <div class=\"col-md-8 col-md-offset-2\" ng-app=\"comment\" ng-controller=\"commentcontroller\">\n            <div class=\"page-header\">\n                <h4>your comment about this page</h4>\n            </div>\n           <form ng-submit=\"submitcomment()\">\n              <div class=\"form-group\">\n                  <input type=\"text\" class=\"form-control input-sm\" name=\"author\" ng-model=\"commentdata.author\" placeholder=\"Name\">\n              </div>\n              <div class=\"form-group\">\n                  <input type=\"text\" class=\"form-control input-lg\" name=\"text\" ng-model=\"commentdata.text\" placeholder=\"Say what you have to say\">\n              </div>\n              <div class=\"form-group text-right\">\n                  <button type=\"submit\" class=\"btn btn-primary btn-lg\">Submit</button>\n              </div>\n          </form>\n          <p class=\"text-center\" ng-show=\"loading\"><span class=\"fa fa-meh-o fa-5x fa-spin\"></span></p>\n\n          <div class=\"comment\" ng-hide=\"loading\" ng-repeat=\"comment in comments\">\n              <h3>Comment #@";
     // line 81
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : null, "id", array()), "html", null, true);
     echo " <small>by @";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : null, "author", array()), "html", null, true);
     echo "</h3>\n              <p>@";
     // line 82
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : null, "text", array()), "html", null, true);
     echo "</p>\n              <p><a href=\"#\" ng-click=\"deletecomment(comment.id)\" class=\"text-muted\">Delete</a></p>\n          </div>\n          <footer id=\"layout-footer\">\n              ";
     // line 86
     $context['__cms_partial_params'] = [];
     echo $this->env->getExtension('CMS')->partialFunction("footer", $context['__cms_partial_params']);
     unset($context['__cms_partial_params']);
     // line 87
     echo "          </footer>\n        </div>\n        <!-- Footer -->\n\n\n        <!-- Scripts -->\n        <script src=\"";
     // line 93
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/javascript/jquery.js"));
     echo "\"></script>\n        <script src=\"";
     // line 94
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/javascript/angular.js"));
     echo "\"></script>\n        <script src=\"";
     // line 95
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/javascript/main.js"));
     echo "\"></script>\n        ";
     // line 96
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link rel="stylesheet" property="stylesheet" href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css">' . PHP_EOL;
     // line 97
     echo "        ";
     echo $this->env->getExtension('CMS')->assetsFunction('js');
     echo $this->env->getExtension('CMS')->displayBlock('scripts');
     // line 98
     echo "\n    </body>\n</html>";
 }
Example #17
0
 /**
  * Routing the controller actions based on url, to run a class method in question.
  * 
  * @return void
  * @throws Exception
  * @throws NotFoundException
  * @throws MemberInaccessibleException
  */
 public function dispatch()
 {
     Loader::load('Request', 'core');
     Loader::load('ViewAbstract', 'core');
     $request = new Request();
     $response = new Response();
     $view = null;
     $viewInitialized = false;
     $subdir = '';
     try {
         // check system root setting.
         $sysRoot = PathManager::getSystemRoot();
         if ($sysRoot == null) {
             throw new Exception('Path of the system root has not been specified.');
         } else {
             if (!file_exists($sysRoot)) {
                 throw new Exception('Path of the system root does not exist.');
             }
         }
         $router = new Router();
         // initialize by Initializer.
         $initializer = $this->_searchIntializer();
         if ($initializer instanceof InitializerStandard) {
             $initializer->setDispatcher($this);
             $initializer->setRouter($router);
             $initializer->applyConfig();
             $initializer->initEnv();
             $initializer->initialize();
         }
         $params = $router->route($request->getBasePath());
         // create view class instance.
         Loader::load($this->_viewClassName, null, true, false);
         $viewClass = $this->_viewClassName;
         $view = new $viewClass();
         // set request instance to controller.
         $subdir = $params['subdir'];
         $request->setController($params['controller'], $subdir);
         $request->setAction($params['action']);
         $request->setParams($params['params']);
         $view->setRequest($request);
         $view->initialize();
         $viewInitialized = true;
         // create controller class instance.
         $controller = $this->_getControllerInstance($params['controller'], $params['subdir']);
         if ($controller == false) {
             throw new NotFoundException($params['controller'], '');
         }
         $controller->setAppEnv($this->_appEnv);
         $controller->setRequest($request);
         // set response instance to controller.
         $controller->setResponse($response);
         // set view to controller.
         $controller->setView($view);
         // get action method name.
         $reqestMethod = null;
         $actionMethod = '';
         if ($controller instanceof RestController) {
             $request->isRestAccess(true);
             $reqestMethod = $request->getMethod();
             if ($params['action'] == 'index' && $reqestMethod != 'GET') {
                 $restDefaultMethod = NameManager::convertActionToMethod($reqestMethod);
                 if (method_exists($controller, $restDefaultMethod)) {
                     $actionMethod = $restDefaultMethod;
                 }
             }
         }
         if ($actionMethod == '') {
             $actionMethod = NameManager::convertActionToMethod($params['action'], $reqestMethod);
         }
         // initialize validator
         $validatorClass = $this->_validatorClassName;
         $validator = new $validatorClass();
         $controller->setValidator($validator);
         $controller->initValidator();
         $controller->initialize();
         // Create plugin instance.
         $plugin = null;
         if ($this->_pluginEnabled) {
             $plugin = $this->_searchPlugin($params['subdir']);
             if ($plugin instanceof PluginAbstract) {
                 $plugin->setControllerInstance($controller);
                 $plugin->preProcess();
             }
         }
         $controller->preProcess();
         if ($controller->isDispatched() == false) {
             // Check action method exists.
             if (!method_exists($controller, $actionMethod)) {
                 $controllerParam = $params['controller'];
                 if ($params['subdir'] != null) {
                     $controllerParam = $params['subdir'] . '/' . $controllerParam;
                 }
                 throw new NotFoundException($controllerParam, $params['action']);
             } else {
                 if (!is_callable(array($controller, $actionMethod))) {
                     throw new MemberInaccessibleException($params['controller'], $params['action']);
                 }
             }
             $controller->{$actionMethod}();
         }
         $controller->postProcess();
         if ($this->_pluginEnabled) {
             if ($plugin instanceof PluginAbstract) {
                 $plugin->postProcess();
             }
         }
         if ($controller instanceof RestController) {
             if ($controller->isAutoRedirect() == true && $request->getMethod() != 'GET') {
                 $url = '';
                 if ($params['action'] != 'index') {
                     $url = $params['controller'] . '/' . $params['action'];
                 } else {
                     if ($params['controller'] != 'index') {
                         $url = $params['controller'];
                     }
                 }
                 $url = $request->getBaseUrl() . '/' . $url;
                 $response->redirect($url);
             }
         }
         $response->send();
         if ($response->isOutput() == false && $view->getRenderingEnabled() == true) {
             $viewScript = $this->_getViewScriptInstance($params['controller'], $params['subdir']);
             if ($viewScript instanceof ViewScript) {
                 if (method_exists($viewScript, $actionMethod)) {
                     $viewScript->setView($view);
                     $viewScript->setRequest($request);
                     $viewScript->{$actionMethod}();
                 }
             }
             $view->render();
         }
     } catch (Exception $e) {
         $handler = $this->_searchErrorHandler($subdir);
         if ($handler instanceof ErrorHandlerStandard) {
             $action = 'error';
             $actionMethod = '';
             $className = get_class($e);
             if ($className != 'Exception') {
                 $actionMethod = str_replace('Exception', '', $className);
                 $actionMethod = NameManager::toMethod($actionMethod);
             }
             if (method_exists($handler, $actionMethod)) {
                 $action = $actionMethod;
             }
             $handler->setException($e);
             $handler->setRequest($request);
             $handler->setResponse($response);
             if ($viewInitialized == true) {
                 $handler->setView($view);
             }
             if ($action == 'notFound') {
                 if ($this->_isSend404 == true) {
                     $response->setHttpStatus('404');
                     $response->send();
                 }
             }
             $handler->{$action}();
         } else {
             throw $e;
         }
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<html>\n<head>\n    <meta charset=\"utf-8\">\n    <meta name=\"language\" content=\"fr\">\n    <meta name=\"google-site-verification\" content=\"uHktIKoGLd5YM6vEZ8p_9CWzFQmk8et3fgot4eF4ofc\"/>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n    <title>";
     // line 7
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "title", array()), "html", null, true);
     echo " | Élie & Josie Photographie</title>\n    <meta name=\"description\" content=\"";
     // line 8
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "meta_description", array()), "html", null, true);
     echo "\"/>\n    <meta name=\"robots\" content=\"index,follow\">\n    <meta property=\"og:type\" content=\"website\" />\n    <meta property=\"og:image\" content=\"";
     // line 11
     echo twig_escape_filter($this->env, isset($context["image_url"]) ? $context["image_url"] : null, "html", null, true);
     echo "\" />\n    <meta property=\"og:title\" content=\"";
     // line 12
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "title", array()), "html", null, true);
     echo " | Élie & Josie Photographie\" />\n    <meta property=\"og:url\" content=\"";
     // line 13
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "url", array()), "html", null, true);
     echo "\" />\n    <meta property=\"og:site_name\" content=\"Élie & Josie Photographie\" />\n    <meta property=\"og:description\" content=\"";
     // line 15
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "settings", array()), "meta_description", array()), "html", null, true);
     echo "\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\">\n\n    <!-- Google fonts -->\n    <link href='https://fonts.googleapis.com/css?family=Quicksand:400,300,700' rel='stylesheet' type='text/css'>\n    ";
     // line 20
     echo $this->env->getExtension('CMS')->assetsFunction('css');
     echo $this->env->getExtension('CMS')->displayBlock('styles');
     // line 21
     echo "    <link href=\"";
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/css/theme.css"));
     // line 22
     echo "\" rel=\"stylesheet\">\n    <!-- favicon -->\n    <link rel=\"shortcut icon\" href=\"";
     // line 24
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/favicon.ico");
     echo "\" type=\"image/x-icon\">\n    <link rel=\"icon\" href=\"";
     // line 25
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/favicon.ico");
     echo "\" type=\"image/x-icon\">\n</head>\n<body>\n<div class=\"topbar animated fadeInLeftBig\"></div>\n\n<div id=\"top\" class=\"navbar-wrapper\">\n    ";
     // line 31
     $context['__cms_partial_params'] = [];
     echo $this->env->getExtension('CMS')->partialFunction("nav", $context['__cms_partial_params']);
     unset($context['__cms_partial_params']);
     // line 32
     echo "</div>\n\n<!-- Content -->\n";
     // line 35
     echo $this->env->getExtension('CMS')->pageFunction();
     // line 36
     echo "\n<div id=\"contact\" class=\"spacer\">\n    <div class=\"container\">\n        <div class=\"row\">\n            <div class=\"col-sm-6 col-sm-offset-3 col-md-4 col-md-offset-4\">\n                ";
     // line 41
     $context['__cms_component_params'] = [];
     echo $this->env->getExtension('CMS')->componentFunction("ejpContact", $context['__cms_component_params']);
     unset($context['__cms_component_params']);
     // line 42
     echo "            </div>\n        </div>\n    </div>\n\n</div>\n<!-- Footer -->\n\n<div class=\"footer text-center spacer\">\n    ";
     // line 50
     $context['__cms_partial_params'] = [];
     echo $this->env->getExtension('CMS')->partialFunction("footer", $context['__cms_partial_params']);
     unset($context['__cms_partial_params']);
     // line 51
     echo "</div>\n\n<a href=\"#top\" class=\"gototop \"><i class=\"fa fa-angle-up  fa-3x\"></i></a>\n<div id=\"fb-root\"></div>\n<!-- Scripts -->\n<script src=\"";
     // line 56
     echo $this->env->getExtension('CMS')->themeFilter("assets/js/jquery.js");
     echo "\"></script>\n<script src=\"";
     // line 57
     echo $this->env->getExtension('CMS')->themeFilter("assets/js/respond.js");
     echo "\"></script>\n<script src=\"";
     // line 58
     echo $this->env->getExtension('CMS')->themeFilter("assets/js/touchSwipe.min.js");
     echo "\"></script>\n<script src=\"";
     // line 59
     echo $this->env->getExtension('CMS')->themeFilter("assets/js/wow.min.js");
     echo "\"></script>\n<script src=\"";
     // line 60
     echo $this->env->getExtension('CMS')->themeFilter("assets/vendor/bootstrap/js/bootstrap.min.js");
     echo "\"></script>\n<script src=\"";
     // line 61
     echo $this->env->getExtension('CMS')->themeFilter("assets/vendor/gallery/jquery.blueimp-gallery.min.js");
     echo "\"></script>\n<script src=\"";
     // line 62
     echo $this->env->getExtension('CMS')->themeFilter("assets/js/script.js");
     echo "\"></script>\n\n<script>\n    (function (i, s, o, g, r, a, m) {\n        i['GoogleAnalyticsObject'] = r;\n        i[r] = i[r] || function () {\n                    (i[r].q = i[r].q || []).push(arguments)\n                }, i[r].l = 1 * new Date();\n        a = s.createElement(o),\n                m = s.getElementsByTagName(o)[0];\n        a.async = 1;\n        a.src = g;\n        m.parentNode.insertBefore(a, m)\n    })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');\n\n    ga('create', 'UA-70359045-4', 'auto');\n    ga('send', 'pageview');\n\n    (function (d, s, id) {\n        var js, fjs = d.getElementsByTagName(s)[0];\n        if (d.getElementById(id)) return;\n        js = d.createElement(s);\n        js.id = id;\n        js.src = \"//connect.facebook.net/fr_CA/sdk.js#xfbml=1&version=v2.5\";\n        fjs.parentNode.insertBefore(js, fjs);\n    }(document, 'script', 'facebook-jssdk'));\n</script>\n";
     // line 89
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 90
     echo $this->env->getExtension('CMS')->assetsFunction('js');
     echo $this->env->getExtension('CMS')->displayBlock('scripts');
     // line 91
     echo "\n</body>\n</html>";
 }
 public function testGetBaseUrl()
 {
     $this->assertThat($this->object->getBaseUrl(), $this->equalTo(rtrim($this->object->getBasePath(), '/')));
 }
Example #20
0
 /**
  * Set a cookie variable.
  * @param $key string
  * @param $value mixed
  */
 function setCookieVar($key, $value)
 {
     setcookie($key, $value, 0, Request::getBasePath());
     $_COOKIE[$key] = $value;
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\n    <title>S - ";
     // line 8
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "title", array()), "html", null, true);
     echo "</title>\n\n    <meta name=\"description\" content=\"";
     // line 10
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "meta_description", array()), "html", null, true);
     echo "\">\n    <meta name=\"title\" content=\"";
     // line 11
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "page", array()), "meta_title", array()), "html", null, true);
     echo "\">\n    <meta name=\"author\" content=\"nj\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <link rel=\"icon\" type=\"image/png\" href=\"";
     // line 14
     echo $this->env->getExtension('CMS')->themeFilter("assets/images/october.png");
     echo "\" />\n    ";
     // line 15
     echo $this->env->getExtension('CMS')->assetsFunction('css');
     echo $this->env->getExtension('CMS')->displayBlock('styles');
     // line 16
     echo "    <link href=\"";
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/css/bootstrap.min.css", 1 => "assets/css/style.css", 2 => "assets/css/font-awesome.css", 3 => "assets/css/navbar.css", 4 => "assets/css/slider.css", 5 => "assets/css/custom.css", 6 => "assets/css/slider.css", 7 => "assets/404/css/404.css"));
     // line 25
     echo "\" rel=\"stylesheet\">\n\n\n    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\n    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\n    <!--[if lt IE 9]>\n    <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\n    <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\n    <![endif]-->\n</head>\n<body>\n\n<div class=\"container-fluid\" style=\"padding: 0px; font-family: Source Sans Pro; \">\n\n    <div class=\"navbar navbar-default navbar\">\n        <div class=\"navbar-header\">\n            <button type=\"button\"  class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\"#responsive_menu\" style=\"margin-left: auto; margin-right: auto;\">\n                <span class=\"sr-only\"></span>\n                <span class=\"icon-bar\"></span>\n                <span class=\"icon-bar\"></span>\n                <span class=\"icon-bar\"></span>\n            </button>\n            <a class=\"navbar-brand\" style=\"padding:15px\" href=\"https://www.google.com.ua/\">S</a>\n        </div>\n\n        <div class=\"container-fluid\">\n\n            ";
     // line 52
     $context['__cms_partial_params'] = [];
     echo $this->env->getExtension('CMS')->partialFunction("navigation", $context['__cms_partial_params']);
     unset($context['__cms_partial_params']);
     // line 53
     echo "\n        </div>\n</div>\n\n\n    ";
     // line 58
     echo $this->env->getExtension('CMS')->pageFunction();
     // line 59
     echo "    \n    ";
     // line 60
     $context['__cms_component_params'] = [];
     echo $this->env->getExtension('CMS')->componentFunction("formSubscribe", $context['__cms_component_params']);
     unset($context['__cms_component_params']);
     // line 61
     echo "\n    <div class=\"row footer\" style=\"margin-right: 0px;  margin-left: 0px; padding-top: 25px; padding-bottom: 20px;\">\n\n    ";
     // line 64
     $context['__cms_partial_params'] = [];
     echo $this->env->getExtension('CMS')->partialFunction("footer", $context['__cms_partial_params']);
     unset($context['__cms_partial_params']);
     // line 65
     echo "\n    </div>\n\n    <div class=\"row copyright\" style=\"margin-right: 0px;  margin-left: 0px;\">\n        <div class=\"col-xs-12\">\n            <br>\n            <p class=\"text-center\" style=\"margin-bottom: 0px;\"> &#169; Development and design - DevelopersCompany</p>\n            <br>\n        </div>\n    </div>\n    <!-- Scripts -->\n    <script src=\"";
     // line 76
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "assets/js/jquery.js", 1 => "assets/js/bootstrap.min.js"));
     // line 79
     echo "\"></script>\n\n    ";
     // line 81
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 82
     echo "    ";
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     // line 83
     echo "    ";
     echo $this->env->getExtension('CMS')->assetsFunction('js');
     echo $this->env->getExtension('CMS')->displayBlock('scripts');
     // line 84
     echo "\n</body>\n</html>";
 }