<?php

namespace IdnoPlugins\Checkin {

    class Main extends \Idno\Common\Plugin
    {
        function registerPages()
        {
            \Idno\Core\Idno::site()->routes()->addRoute('/checkin/edit/?', '\IdnoPlugins\Checkin\Pages\Edit');
            \Idno\Core\Idno::site()->routes()->addRoute('/checkin/edit/([A-Za-z0-9]+)/?', '\IdnoPlugins\Checkin\Pages\Edit');
            \Idno\Core\Idno::site()->routes()->addRoute('/checkin/delete/([A-Za-z0-9]+)/?', '\IdnoPlugins\Checkin\Pages\Delete');

            \Idno\Core\Idno::site()->template()->extendTemplate('shell/head', 'checkin/head');
        }

        function registerTranslations()
        {

            \Idno\Core\Idno::site()->language()->register(
                new \Idno\Core\GetTextTranslation(
                    'checkin', dirname(__FILE__) . '/languages/'
                )
            );
        }
    }

}

