ဟေလို
Categories: ပေါင်းသတ်ဆေးများ, Selective Herbicides
Brand: Marlarmyaing
<?php /** * @package Gantry 5 Theme * @author Tiger12 http://tiger12.com * @originalCreator RocketTheme (Gantry Framework) * @currentDeveloper Tiger12, LLC * @copyright Copyright (C) 2007 - 2022 Tiger12, LLC * @license GNU/GPLv2 and later * * http://www.gnu.org/licenses/gpl-2.0.html */ defined('ABSPATH') or die; use Gantry\Framework\Gantry; use Gantry\Framework\Theme; use Timber\Timber; /* * Third party plugins that hijack the theme will call wp_head() to get the header template. * We use this to start our output buffer and render into the views/page-plugin.html.twig template in footer.php */ $gantry = Gantry::instance(); /** @var Theme $theme */ $theme = $gantry['theme']; // We need to render contents of <head> before plugin content gets added. $context = Timber::get_context(); $context['page_head'] = $theme->render('partials/page_head.html.twig', $context); $GLOBALS['timberContext'] = $context; ob_start();
<?php /** * @package Gantry 5 Theme * @author Tiger12 http://tiger12.com * @originalCreator RocketTheme (Gantry Framework) * @currentDeveloper Tiger12, LLC * @copyright Copyright (C) 2007 - 2022 Tiger12, LLC * @license GNU/GPLv2 and later * * http://www.gnu.org/licenses/gpl-2.0.html */ defined('ABSPATH') or die; use Timber\Timber; /* * Third party plugins that hijack the theme will call wp_footer() to get the footer template. * We use this to end our output buffer (started in header.php) and render into the views/page-plugin.html.twig template. */ $timberContext = $GLOBALS['timberContext']; if (!isset($timberContext)) { throw new RuntimeException('Timber context not set in footer.'); } $timberContext['content'] = ob_get_clean(); $templates = ['page-plugin.html.twig']; Timber::render($templates, $timberContext);