for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the WPFoundation library.
*
* Copyright (c) 2015 LIN3S <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LIN3S\WPFoundation\Configuration\Theme;
use LIN3S\WPFoundation\Configuration\Acf\Wysiwyg;
/**
* Abstract class of theme that implements the interface.
* This class avoids the use of callbacks in the constructor.
* @author Beñat Espiña <[email protected]>
abstract class Theme implements ThemeInterface
{
* Constructor.
public function __construct()
$this->acf();
$this->classes();
add_theme_support('post-thumbnails');
add_theme_support()
add_filter('timber_context', [$this, 'context']);
add_filter()
add_filter('template_selector_available', [$this, 'templates']);
}
* All about ACF configuration should be instantiated here.
protected function acf()
new Wysiwyg([
'lin3s' => [1 => ['bold', 'italic', 'bullist', 'numlist', 'link', 'unlink']]
]);