Slot View Helper (#1454)
* Slot helper prototype. - Slot/block system for easier customization. - Designed to set block values then include parent template (helper coming). - start/end for buffer capture. - set for string setting. - clear for value clearing. * Add get method to Slot. * Add Slot method documentation. * Improve Slot documentation. * Change syntax to slot('name')->action(). Fix instancing. * Improve documentation. * Add examples to slot PR. * Update documentation. * checkstyles * Fix error with slot->get. * Remove trim so any value type can be saved. * Add prepend/append methods to slots. * Move Slots helper to VuFindTheme. * Add unit tests for Slot helper. * Clear Slot prepends and appends. * Space and trim block output. * checkstyle typo * Improve documentation of non-string slot values. * Add method constants. * Add __invoke(name, val) and __toString shortcuts. * Clarify prepend/append concatination. * Slot clear returns old contents. * Update test to match new clea...
Showing
- module/VuFindTheme/Module.php 3 additions, 0 deletionsmodule/VuFindTheme/Module.php
- module/VuFindTheme/src/VuFindTheme/View/Helper/Slot.php 259 additions, 0 deletionsmodule/VuFindTheme/src/VuFindTheme/View/Helper/Slot.php
- module/VuFindTheme/tests/unit-tests/src/VuFindTest/View/Helper/SlotTest.php 330 additions, 0 deletions.../tests/unit-tests/src/VuFindTest/View/Helper/SlotTest.php
- themes/bootstrap3/templates/Recommend/CollectionSideFacets.phtml 1 addition, 1 deletion...bootstrap3/templates/Recommend/CollectionSideFacets.phtml
- themes/bootstrap3/templates/Recommend/SideFacets.phtml 1 addition, 1 deletionthemes/bootstrap3/templates/Recommend/SideFacets.phtml
- themes/bootstrap3/templates/Recommend/SideFacetsDeferred.phtml 1 addition, 1 deletion...s/bootstrap3/templates/Recommend/SideFacetsDeferred.phtml
- themes/bootstrap3/templates/combined/results-list.phtml 1 addition, 5 deletionsthemes/bootstrap3/templates/combined/results-list.phtml
- themes/bootstrap3/templates/combined/results.phtml 4 additions, 11 deletionsthemes/bootstrap3/templates/combined/results.phtml
- themes/bootstrap3/templates/eds/search.phtml 1 addition, 1 deletionthemes/bootstrap3/templates/eds/search.phtml
- themes/bootstrap3/templates/footer.phtml 25 additions, 19 deletionsthemes/bootstrap3/templates/footer.phtml
- themes/bootstrap3/templates/records/home.phtml 2 additions, 2 deletionsthemes/bootstrap3/templates/records/home.phtml
- themes/bootstrap3/templates/search/controls/showing.phtml 14 additions, 14 deletionsthemes/bootstrap3/templates/search/controls/showing.phtml
- themes/bootstrap3/templates/search/home.phtml 5 additions, 3 deletionsthemes/bootstrap3/templates/search/home.phtml
- themes/bootstrap3/templates/search/newitemresults.phtml 3 additions, 3 deletionsthemes/bootstrap3/templates/search/newitemresults.phtml
- themes/bootstrap3/templates/search/reservesresults.phtml 4 additions, 4 deletionsthemes/bootstrap3/templates/search/reservesresults.phtml
- themes/bootstrap3/templates/search/results.phtml 11 additions, 16 deletionsthemes/bootstrap3/templates/search/results.phtml
- themes/root/templates/RecordDriver/AbstractBase/export-endnote.phtml 1 addition, 1 deletion.../templates/RecordDriver/AbstractBase/export-endnote.phtml
- themes/root/templates/RecordDriver/AbstractBase/export-endnoteweb.phtml 1 addition, 1 deletion...mplates/RecordDriver/AbstractBase/export-endnoteweb.phtml
- themes/root/templates/RecordDriver/AbstractBase/export-refworks.phtml 1 addition, 1 deletion...templates/RecordDriver/AbstractBase/export-refworks.phtml
- themes/root/templates/RecordDriver/Primo/export-endnote.phtml 1 addition, 1 deletion...es/root/templates/RecordDriver/Primo/export-endnote.phtml
Please register or sign in to comment