aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template
Commit message (Collapse)AuthorAgeFilesLines
...
* | [feature/twig] Correcting output of INCLUDEJSNathan Guse2013-06-122-57/+27
| | | | | | | | PHPBB3-11598
* | [feature/twig] Fixing IF .blah correctlyNathan Guse2013-06-112-8/+28
| | | | | | | | PHPBB3-11598
* | [feature/twig] Language output assignments, using context class againNathan Guse2013-06-112-33/+63
| | | | | | | | PHPBB3-11598
* | [feature/twig] Replace phpBB template with TwigNathan Guse2013-06-103-395/+897
| | | | | | | | | | | | | | | | Move phpbb_template class to phpbb_template_phpbb Changed phpbb_template class to an interface Switch services.yml to load phpbb_template_twig instead of phpbb_template PHPBB3-11598
* | [feature/twig] BEGIN loops now workNathan Guse2013-06-102-5/+4
| | | | | | | | PHPBB3-11598
* | [feature/twig] Replace phpBB template code with Twig syntax, then parse w/TwigNathan Guse2013-06-106-67/+146
| | | | | | | | | | | | Fixing begin token/node, adding includejs token/node PHPBB3-11598
* | [feature/twig] More work on the lexerNathan Guse2013-06-103-2/+41
| | | | | | | | | | | | Committing what I have now to save it as I'm trying another method next PHPBB3-11598
* | [feature/twig] Working on DEFINENathan Guse2013-06-103-1/+60
| | | | | | | | PHPBB3-11598
* | [feature/twig] Support our old INCLUDE statements (no quotes)Nathan Guse2013-06-091-13/+23
| | | | | | | | | | | | Better code for handling IF .blah PHPBB3-11598
* | [feature/twig] WIP extension/lexer/some tokenparsers/nodesNathan Guse2013-06-097-0/+395
|/ | | | PHPBB3-11598
* [ticket/11435] Create new template filter option (cleanup)Nathan Guse2013-05-202-30/+78
| | | | | | | This allows us to only run cleanup on the last run of template compilation and not cleanup during event parsing PHPBB3-11435
* Merge remote-tracking branch 'remotes/cyberalien/ticket/11482' into developNathan Guse2013-05-201-0/+28
|\ | | | | | | | | | | | | | | | | # By Vjacheslav Trushkin # Via Vjacheslav Trushkin * remotes/cyberalien/ticket/11482: [ticket/11482] Use double quotes for code [ticket/11482] Unit tests for advanced DEFINE [ticket/11482] Implementation of advanced DEFINE tag
| * [ticket/11482] Use double quotes for codeVjacheslav Trushkin2013-04-101-7/+7
| | | | | | | | | | | | Use double quotes for code to avoid excessive escaping PHPBB3-11482
| * [ticket/11482] Implementation of advanced DEFINE tagVjacheslav Trushkin2013-04-071-0/+28
| | | | | | | | | | | | Implementation of advanced DEFINE tag and ENDDEFINE PHPBB3-11482
* | [ticket/11435] Fit comment into 80 columns and link to php manual.Oleg Pudeyev2013-05-011-15/+21
|/ | | | PHPBB3-11435
* [ticket/11323] Reduce additional code and revert regex to previous oneMarc Alexander2013-02-261-7/+12
| | | | PHPBB3-11323
* [ticket/11323] Correctly treat variables in template definesMarc Alexander2013-02-191-3/+9
| | | | | | | | Previously, any template variables that were used when defining a variable were treated as strings. This is a regression to phpBB 3.0. With this patch the template variables will be properly parsed. PHPBB3-11323
* Merge remote-tracking branch 'p/feature/template-events' into developDavid King2012-12-104-10/+185
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By Oleg Pudeyev (36) and others # Via Oleg Pudeyev * p/feature/template-events: (47 commits) [feature/template-events] Pass arguments in correct order. [feature/template-events] Order extensions in mock extension manager. [feature/template-events] Changes per imkingdavid's review. [feature/template-events] Make style names private on template. [feature/template-events] Test for event that is defined in parent style only. [feature/template-events] Specify style names, add inheritance tests. [feature/template-events] Normalize expected directory trees. [feature/template-events] Allow dataset to be correctly selectable. [feature/template-events] Dataset for template event testing with inheritance. [feature/template-events] Use style names array in template filter. [feature/template-events] Generate style names array in set_style. [feature/template-events] Convert a single style name to array of them. [feature/template-events] Chase dependency injection for template context. [feature/template-events] Adjust template events test to use the dataset. [feature/template-events] Create a dataset for template event tests. [feature/template-events] Indentation fix. [feature/template-events] Cosmetic changes. [feature/template-events] Wording: wrongly -> improperly. [feature/template-events] Indentation fix. [feature/template-events] Rename template_name to style_name. ...
| * [feature/template-events] Changes per imkingdavid's review.Oleg Pudeyev2012-11-173-4/+15
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Make style names private on template.Oleg Pudeyev2012-11-171-1/+13
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Use style names array in template filter.Oleg Pudeyev2012-11-171-5/+13
| | | | | | | | | | | | | | This provides a straightforward way of iterating over all styles looking for templates in extensions. PHPBB3-9550
| * [feature/template-events] Convert a single style name to array of them.Oleg Pudeyev2012-11-173-16/+14
| | | | | | | | | | | | | | This allows template code to know the entire style hierarchy for templates being rendered. PHPBB3-9550
| * [feature/template-events] Indentation fix.Nathan Guse2012-11-171-3/+6
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Cosmetic changes.Oleg Pudeyev2012-11-172-4/+4
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Wording: wrongly -> improperly.Nathan Guse2012-11-171-2/+2
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Indentation fix.Nathan Guse2012-11-171-1/+1
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Rename template_name to style_name.Oleg Pudeyev2012-11-173-17/+18
| | | | | | | | | | | | | | "Style name" makes a lot more sense and should be in line with recent style/template changes. PHPBB3-9550
| * [feature/template-events] Report when templates cannot be compiled.Oleg Pudeyev2012-11-171-0/+4
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Update EVENT tag documentation.Oleg Pudeyev2012-11-171-1/+21
| | | | | | | | | | | | It should now fairly closely reflect what actually happens. PHPBB3-9550
| * [feature/template-events] Delete old comments/test code.Oleg Pudeyev2012-11-171-7/+0
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Move comment to the function docblock.Oleg Pudeyev2012-11-171-3/+3
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Handle user access correctly.Oleg Pudeyev2012-11-172-3/+21
| | | | | | | | | | | | | | | | Pass through $user from template to filter. Allow $user to be null for standalone usage of the template engine. PHPBB3-9550
| * [feature/template-events] Always commit suicide for invalid event names.Oleg Pudeyev2012-11-171-9/+2
| | | | | | | | | | | | | | | | | | Note: suicide happens for syntactically invalid event names, e.g. event names containing punctuation. Event names for which there are no events are silently dropped. PHPBB3-9550
| * [feature/template-events] Chase template/style renames and changes.Oleg Pudeyev2012-11-171-1/+1
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Fix typo (waring -> warning)Erik Frèrejean2012-11-171-1/+1
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Add additional space for editorsErik Frèrejean2012-11-171-1/+1
| | | | | | | | | | | | | | Use `' ?'. '>'` rather than `' ?>'` as the latter causes problems in some editors. PHPBB3-9550
| * [feature/template-events] Remove commentErik Frèrejean2012-11-171-1/+0
| | | | | | | | | | | | Remove comment per Nils in the PR. PHPBB3-9550
| * [feature/template-events] Handle incorrect template event identifiersErik Frèrejean2012-11-171-2/+10
| | | | | | | | | | | | | | | | If the template event identifier is wrongly formatted phpBB will triggern an `E_USER_NOTICE` if the `DEBUG` constant is set, otherwise the location is ignored. PHPBB3-9550
| * [feature/template-events] RUNHOOKS -> EVENTErik Frèrejean2012-11-171-1/+1
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Correct indentationNathan Guse2012-11-171-1/+1
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Rename RUNHOOKS to EVENTMichael Cullum2012-11-171-3/+3
| | | | | | | | | | | | Rename the way to add template events PHPBB3-9550
| * [feature/template-events] PHP does not parse <?php?>, avoid generating it.Oleg Pudeyev2012-11-171-1/+3
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Invoke template hooks that are template-specific.Oleg Pudeyev2012-11-171-0/+7
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Pass top-level template name to template filter.Oleg Pudeyev2012-11-173-3/+26
| | | | | | | | | | | | This will be used to invoke template-specific hooks. PHPBB3-9550
| * [feature/template-events] Add template_compile to template filter params.Oleg Pudeyev2012-11-171-0/+1
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Rename universal to all (for template fragments).Oleg Pudeyev2012-11-171-1/+1
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Fix property name for extension manager.Oleg Pudeyev2012-11-171-2/+2
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Really basic template hook implementation.Oleg Pudeyev2012-11-171-0/+20
| | | | | | | | PHPBB3-9550
| * [feature/template-events] Inject template compile into template filter.Oleg Pudeyev2012-11-171-0/+8
| | | | | | | | | | | | | | This is needed for hooks in order for the filter to compile template files from extensions. PHPBB3-9550
| * [feature/template-events] Inject extension manager into template class.Oleg Pudeyev2012-11-173-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Template class passes extension manager to template compiler. Template compiler passes extension manager to template filter. Template filter will use extension manager to locate hooks as it is compiling templates. All extension manager arguments are optional. If an extension manager is not given, template hooks will not be invoked. PHPBB3-9550