{% block main %} <section class='section'> <div class='width'> <h1 class='h1 ta:center mb:push link__c:inherit link-hover__td:underline'><strong>Abode Constructions NSW</strong> specialises in <a href="{{ siteUrl }}services/new-homes">New Homes</a>, <a href="{{ siteUrl }}services/granny-flats">Granny Flats</a>, <a href="{{ siteUrl }}services/extensions">Extensions</a>, <a href="{{ siteUrl }}services/structural-landscaping">Landscaping</a>, <a href="{{ siteUrl }}services/kitchens">Kitchens</a>, <a href="{{ siteUrl }}services/bathrooms">Bathrooms</a>, <a href="{{ siteUrl }}services/decks-and-pergolas">Decks & Pergolas</a>.</h1> {% set featuredProjects = entry.featuredProjects.all() %} {% if featuredProjects|length %} {% for feat in featuredProjects %} <div class='cells--featured-property cells sm__cells:2 gap:3 c:white' data-parallax style="--parallax: 10vmin;"> <!-- Featured hero --> <div> <div class='ratio ratio--60 h:100 bg:3 contrast-overlay-hover__trigger'> <!-- Parallax -->
<section class='section'> <div class='width'> <h1 class='h1 ta:center mb:push link__c:inherit link-hover__td:underline'><strong>Abode Constructions NSW</strong> specialises in <a href="{{ siteUrl }}services/new-homes">New Homes</a>, <a href="{{ siteUrl }}services/granny-flats">Granny Flats</a>, <a href="{{ siteUrl }}services/extensions">Extensions</a>, <a href="{{ siteUrl }}services/structural-landscaping">Landscaping</a>, <a href="{{ siteUrl }}services/kitchens">Kitchens</a>, <a href="{{ siteUrl }}services/bathrooms">Bathrooms</a>, <a href="{{ siteUrl }}services/decks-and-pergolas">Decks & Pergolas</a>.</h1> {% set featuredProjects = entry.featuredProjects.all() %} {% if featuredProjects|length %} {% for feat in featuredProjects %} <div class='cells--featured-property cells sm__cells:2 gap:3 c:white' data-parallax style="--parallax: 10vmin;"> <!-- Featured hero -->
if (null !== $template && !$template instanceof self) { throw new \LogicException('A block must be a method on a \Twig\Template instance.'); } if (null !== $template) { try { $template->$block($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($template->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
<span> <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"></path></svg> </span> <span>0448 536 137</span> </div> {% block main %}{% endblock %} </main> <footer class='site-footer'> <div class='width'> <div class='py:5'>
if (null !== $template && !$template instanceof self) { throw new \LogicException('A block must be a method on a \Twig\Template instance.'); } if (null !== $template) { try { $template->$block($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($template->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
<link rel="icon" type="image/png" sizes="32x32" href="{{ siteUrl }}assets/favicon/favicon-32x32.png{{ fileCache }}"> {% if fontAwesome is defined %}<script src="https://kit.fontawesome.com/7c765b9722.js"></script>{% endif %} <meta name="theme-color" content="#225a98"/> {% block head %}{% endblock %} </head> <body {% if bodyClass is defined %}class="{{ bodyClass }}"{% endif %}> {% block body %}{% endblock %} <script src='{{ siteUrl }}assets/js/jquery/import_jquery.js{{ fileCache }}'></script> <script src="{{ siteUrl }}assets/js/global.js{{ fileCache }}" id='javascript-global' data-date='{{ fileCacheDate }}' data-site='{{ siteUrl }}'></script> <script src="{{ siteUrl }}assets/js/instant-page/import_instant-page.js{{ fileCache }}" type="module"></script> {% block javascriptFooter %}{% endblock %} </body>
return ob_get_clean(); } protected function displayWithErrorHandling(array $context, array $blocks = []) { try { $this->doDisplay($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($this->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{ return $this->blocks; } public function display(array $context, array $blocks = []) { $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); } public function render(array $context) { $level = ob_get_level(); if ($this->env->isDebug()) {
{% extends "_global/base" %} {% set noIndexRobotsx = null %}
return ob_get_clean(); } protected function displayWithErrorHandling(array $context, array $blocks = []) { try { $this->doDisplay($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($this->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{ return $this->blocks; } public function display(array $context, array $blocks = []) { $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); } public function render(array $context) { $level = ob_get_level(); if ($this->env->isDebug()) {
{# Homepage #} {% extends "_global/global" %} {% set active_nav = "home" %} {% set metaDescription = "Abode Constructions NSW specialises in New Homes, Granny Flats, Extensions/Alterations, Kitchens, Bathrooms, Decks & Pergolas." %} {% set canonical = "https://abodeconstructionsnsw.com.au" %}
return ob_get_clean(); } protected function displayWithErrorHandling(array $context, array $blocks = []) { try { $this->doDisplay($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($this->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{ return $this->blocks; } public function display(array $context, array $blocks = []) { $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); } public function render(array $context) { $level = ob_get_level(); if ($this->env->isDebug()) {
if ($this->env->isDebug()) { ob_start(); } else { ob_start(function () { return ''; }); } try { $this->display($context); } catch (\Throwable $e) { while (ob_get_level() > $level) { ob_end_clean(); } throw $e;
* @param array $context An array of parameters to pass to the template */ public function render(array $context = []): string { // using func_get_args() allows to not expose the blocks argument // as it should only be used by internal code return $this->template->render($context, \func_get_args()[1] ?? []); } /** * Displays the template. * * @param array $context An array of parameters to pass to the template
* @throws LoaderError When the template cannot be found * @throws SyntaxError When an error occurred during compilation * @throws RuntimeError When an error occurred during rendering */ public function render($name, array $context = []) { return $this->load($name)->render($context); } /** * Displays a template. * * @param string|TemplateWrapper $name The template name
// Render and return $renderingTemplate = $this->_renderingTemplate; $this->_renderingTemplate = $template; $e = null; try { $output = $this->getTwig()->render($template, $variables); } catch (\Throwable $e) { // throw it later } $this->_renderingTemplate = $renderingTemplate; $this->setTemplateMode($oldTemplateMode);
$isRenderingPageTemplate = $this->_isRenderingPageTemplate; $this->_isRenderingPageTemplate = true; $e = null; try { $this->beginPage(); echo $this->renderTemplate($template, $variables); $this->endPage(); } catch (\Throwable $e) { // throw it later } $this->_isRenderingPageTemplate = $isRenderingPageTemplate;
// If this is a preview request, register the iframe resizer script if ($this->request->getIsPreview()) { $view->registerAssetBundle(ContentWindowAsset::class); } // Render and return the template $this->response->data = $view->renderPageTemplate($template, $variables, $templateMode); // Prevent a response formatter from overriding the content-type header $this->response->format = YiiResponse::FORMAT_RAW; return $this->response; }
// Merge any additional route params $routeParams = Craft::$app->getUrlManager()->getRouteParams(); unset($routeParams['template'], $routeParams['template']); $variables = array_merge($variables, $routeParams); return $this->renderTemplate($template, $variables); } /** * Shows the 'offline' template. * * @return Response
$args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
/** * @inheritdoc */ public function runAction($id, $params = []) { try { return parent::runAction($id, $params); } catch (\Throwable $e) { if ($this->request->getAcceptsJson()) { Craft::$app->getErrorHandler()->logException($e); if (!YII_DEBUG && !$e instanceof UserException) { $message = Craft::t('app', 'A server error occurred.'); } else {
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
* @param string $route * @param array $params * @return Response|null The result of the action, normalized into a Response object */ public function runAction($route, $params = []) { $result = parent::runAction($route, $params); if ($result !== null) { if ($result instanceof Response) { return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
if (($response = $this->_processActionRequest($request)) !== null) { return $response; } // If we're still here, finally let Yii do it's thing. try { return parent::handleRequest($request); } catch (\Throwable $e) { $this->_unregisterDebugModule(); throw $e; } }
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
(new Dotenv\Dotenv(CRAFT_BASE_PATH))->load(); } // Load and run Craft define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production'); $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/web.php'; $app->run();
$_GET = [ 'p' => 'index.html', ];