<commit_before><?php

namespace Gwa\Wordpress\Template\Zero\Library\Theme;

/**
 * Zero - a PHP 5.4 Wordpress Theme.
 *
 * @author      <NAME> <<EMAIL>>
 * @copyright   2015 Great White Ark
 *
 * @link        http://www.greatwhiteark.com
 *
 * @license     MIT
 */

use TimberMenu;
use TimberSite;

/**
 * ThemeSettings.
 *
 * @author  GWA
 *
 */
class ThemeSettings extends TimberSite
{
    /**
     * Add to context
     *
     * @param array
     *
     * @return array
     */
    public function addToContext($context)
    {
        $context = [];

        $context['header_menu'] = new TimberMenu('header-menu');
        $context['footer_menu'] = new TimberMenu('footer-menu');

        $context['site'] = $this;
        $context         = array_merge($context, $this->wpConditionals());

        return $context;
    }

    /**
     * Load all funcs after theme setup
     */
    public function afterSetupTheme()
    {
        load_theme_textdomain('zero', get_template_directory().'/languages');
    }

    /**
     * Register Menus
     */
    public function registerMenuLocation()
    {
        register_nav_menus(
            [
                'header-menu' => __('Header Menu', 'zero'),
                'footer-menu' => __('Footer Menu', 'zero')
            ]
        );
    }

    /**<commit_msg>fix for add context<commit_after><?php

namespace Gwa\Wordpress\Template\Zero\Library\Theme;

/**
 * Zero - a PHP 5.4 Wordpress Theme.
 *
 * @author      <NAME> <<EMAIL>>
 * @copyright   2015 Great White Ark
 *
 * @link        http://www.greatwhiteark.com
 *
 * @license     MIT
 */

use TimberMenu;
use TimberSite;

/**
 * ThemeSettings.
 *
 * @author  GWA
 *
 */
class ThemeSettings extends TimberSite
{
    /**
     * Add to context
     *
     * @param array $data
     *
     * @return array
     */
    public function addToContext($data)
    {
        $context = [];

        $context['header_menu'] = new TimberMenu('header-menu');
        $context['footer_menu'] = new TimberMenu('footer-menu');

        $context['site'] = $this;

        return array_merge($context, $data, $this->wpConditionals());
    }

    /**
     * Load all funcs after theme setup
     */
    public function afterSetupTheme()
    {
        load_theme_textdomain('zero', get_template_directory().'/languages');
    }

    /**
     * Register Menus
     */
    public function registerMenuLocation()
    {
        register_nav_menus(
            [
                'header-menu' => __('Header Menu', 'zero'),
                'footer-menu' => __('Footer Menu', 'zero')
            ]
        );
    }

    /**
{'fraction_non_alphanumeric': 0.14494425221068818, 'fraction_numerical': 0.00461361014994233, 'mean_word_length': 1.994246260069045, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6063064', 'n_tokens_mistral': 812, 'n_tokens_neox': 789, 'n_words': 165}