for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the WordPress Standard project.
*
* Copyright (c) 2015-2016 LIN3S <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AppTheme;
use LIN3S\WPFoundation\Configuration\Mailer\Mailer;
use LIN3S\WPFoundation\Configuration\Theme\Theme;
use LIN3S\WPFoundation\Twig\TranslationTwig;
use AppTheme\Configuration\Assets;
use AppTheme\Configuration\Login;
use AppTheme\Configuration\Menus;
use Timber\Menu;
/**
* Final class of theme. Declares all stuff related to the template. Its responsibility
* is just to centralise all customization. If you need to add some customization create a class and
* call its constructor here. For more info about how this theme is structured read README.md
* located in the theme root.
* @author Gorka Laucirica <[email protected]>
* @author Beñat Espiña <[email protected]>
final class AppTheme extends Theme
{
* {@inheritdoc}
public function classes()
new Assets();
new Login();
new Mailer();
new Menus();
new TranslationTwig();
}
public function context(array $context)
$context['headerMenu'] = new Menu(Menus::MENU_HEADER);
return $context;
public function templates($templates)
return $templates;
This check marks files that end in a newline character, i.e. an empy line.
This check marks files that end in a newline character, i.e. an empy line.