Template Path Helpers (#1458)
* Prototype of ParentTemplate helper. * Check for bottom of theme stack. * Move helper to VuFindTheme. Remove templatePath functionality. * Add templatePath helper for getting a template from any theme. * Documentation and checkstyles. * php-cs-fixer * Fix copy-typo. * Add unit-test. * Checkstyles. * Checkstyles: return value * Checkstyles: exception test - comments to code. * Update package.json to eliminate vulnerabilities. * Add TemplatePath tests.
Showing
- module/VuFindTheme/Module.php 6 additions, 0 deletionsmodule/VuFindTheme/Module.php
- module/VuFindTheme/src/VuFindTheme/View/Helper/ParentTemplate.php 85 additions, 0 deletions...uFindTheme/src/VuFindTheme/View/Helper/ParentTemplate.php
- module/VuFindTheme/src/VuFindTheme/View/Helper/ParentTemplateFactory.php 68 additions, 0 deletions...eme/src/VuFindTheme/View/Helper/ParentTemplateFactory.php
- module/VuFindTheme/src/VuFindTheme/View/Helper/TemplatePath.php 92 additions, 0 deletions.../VuFindTheme/src/VuFindTheme/View/Helper/TemplatePath.php
- module/VuFindTheme/src/VuFindTheme/View/Helper/TemplatePathFactory.php 68 additions, 0 deletions...Theme/src/VuFindTheme/View/Helper/TemplatePathFactory.php
- module/VuFindTheme/tests/unit-tests/fixtures/themes/parent/templates/everything.phtml 0 additions, 0 deletions...t-tests/fixtures/themes/parent/templates/everything.phtml
- module/VuFindTheme/tests/unit-tests/src/VuFindTest/View/Helper/ParentTemplateTest.php 128 additions, 0 deletions...t-tests/src/VuFindTest/View/Helper/ParentTemplateTest.php
- module/VuFindTheme/tests/unit-tests/src/VuFindTest/View/Helper/TemplatePathTest.php 126 additions, 0 deletions...nit-tests/src/VuFindTest/View/Helper/TemplatePathTest.php
Please register or sign in to comment