| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
PHPBB3-9550
|
| |
|
|
| |
PHPBB3-9550
|
| |
|
|
|
|
|
| |
This allows template code to know the entire style hierarchy for
templates being rendered.
PHPBB3-9550
|
| |
|
|
| |
PHPBB3-9550
|
| |
|
|
|
|
|
| |
"Style name" makes a lot more sense and should be in line with
recent style/template changes.
PHPBB3-9550
|
| |
|
|
| |
PHPBB3-9550
|
| |
|
|
|
|
| |
This will be used to invoke template-specific hooks.
PHPBB3-9550
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* p/ticket/10933:
[ticket/10933] Prose for get_first_file_location.
[ticket/10933] Remaining documentation for added functions in resource locator
[ticket/10933] Update template locator test to use style resource locator.
[ticket/10933] Dispose of locate function in template class.
[ticket/10933] Add mutators for template_path to style resource locator.
[ticket/10933] Delete template_path assignment.
[ticket/10933] Delete template_path from template class.
[ticket/10933] Add get_first_template_location.
|
| | |
| |
| |
| |
| |
| | |
It had no callers other than the test suite.
PHPBB3-10933
|
| | |
| |
| |
| |
| |
| | |
template_path is now only present in style resource locator.
PHPBB3-10933
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This localizes template_path to style resource locator.
locate function on template will be removed in a subsequent commit.
PHPBB3-10933
|
| |\ \
| | |
| | |
| | |
| | |
| | | |
* EXreaction/ticket/11189:
[ticket/11189] Replace DEBUG_EXTRA with DEBUG
[ticket/11189] Always log critical errors when in cron or in image output
|
| | |/
| |
| |
| | |
PHPBB3-11189
|
| |\ \
| |/
|/| |
Allow INCLUDE template macros to accept paths of the form {FOO}/a/{BAR}/c
|
| | |
| |
| |
| | |
PHPBB3-10970
|
| | |
| |
| |
| | |
PHPBB3-10933
|
| | |
| |
| |
| | |
PHPBB3-10933
|
| | |
| |
| |
| | |
PHPBB3-10933
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There is no apparent reason for either initializing or clearing
the context in set_style/set_custom_style.
Initially the initialization there was added in
0501640d5db158a010741e27803191ab469834c4, for reasons that
presently I do not see.
This permits making context property back private.
PHPBB3-10933
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Allow the helper function call_hook() of class phpbb_template to be called
from more than once location and thus for more than one hook (although there is
only one) by adding the method name as a parameter.
PHPBB3-11043
|
| |/
|
|
| |
PHPBB3-11012
|
| |
|
|
|
|
| |
Removing global $phpbb_root_path from includejs implementation
PHPBB3-10799
|
| |
|
|
|
|
| |
Fixing variable declaration, removing function from template locator that does not belong there
PHPBB3-10756
|
| |
|
|
|
|
| |
Renaming phpbb_style_template to phpbb_template
PHPBB3-10756
|
| |
|
|
|
|
| |
Moving includes/template/ to includes/style/, adding template_ prefix to classes that deal only with templates
PHPBB3-10632
|
| |
|
|
|
|
| |
Adding append_var template class function
PHPBB3-10666
|
| |
|
|
|
|
| |
Fixing typo in template class that prevents template inheritance from working
PHPBB3-10652
|
| |\
| |
| | |
Ticket/10500 Miscellaneous issues in the new template engine
|
| | |
| |
| |
| | |
PHPBB3-10500
|
| |/
|
|
| |
PHPBB3-9916
|
| |
|
|
| |
PHPBB3-10323
|
| |
|
|
| |
PHPBB3-10323
|
| |
|
|
| |
PHPBB3-10323
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds a template path provider to separate the process of locating
(cached) paths in extensions from the template engine. The locator is supplied
with a list of paths from the path provider.
Admin templates can now be created in ext/<ext>/adm/style/ and regular
templates go into ext/<ext>/styles/<style>/template/. Extension templates
override regular templates. So if an extension supplies a file with a name
used in phpBB, the extension's file will be used.
A side-effect of this commit: Locator and Provider are now able to deal with
arbitrary levels of template inheritance. So we can expose this through
phpbb_template if we choose to, and allow styles to inherit from inherited
styles.
PHPBB3-10323
|
| |
|
|
|
|
| |
Only set the file if an mtime check or recompile are required.
PHPBB3-10375
|
| |
|
|
|
|
|
|
| |
- Removed duplicate variables
- Set $source_file earlier for cache checks
- Fixed useless mtime check
PHPBB3-10375
|
| |
|
|
| |
PHPBB3-10375
|
| |
|
|
| |
PHPBB3-10374
|
| |
|
|
|
|
| |
It is no longer needed as locator is injected into template.
PHPBB3-9726
|
| |
|
|
| |
PHPBB3-9726
|
| |
|
|
| |
PHPBB3-9726
|
| |
|
|
|
|
|
| |
set_custom_template performs these calls, repeating them in
set_template is not needed.
PHPBB3-9726
|
| |
|
|
| |
PHPBB3-9726
|
| |
|
|
| |
PHPBB3-9726
|
| |
|
|
| |
PHPBB3-9726
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The origins of orig_tpl_* are not pretty. Please see the following commits
and associated tickets: r9823, r9839, r9847, r10150, r10460.
In short, multiple hacks were required due to template engine reading
inheritance/storedb flags from $user (global) even when the template that
was being looked up or rendered was not the "active style of the
current user".
We no longer store templates in the database, removing half of the problem.
This commit fixes the second half of the problem by deleting
set_template_path function from template locator, and moving that logic
back into the template class' set_template. set_template now calls
set_custom_template, the latter only taking the template path and the
fallback paths as parameters. With this change template locator no longer
uses $user and does not use phpbb root path either.
All logic involving setting the user's "active" template is now
encapsulated in a single template class's function, set_template.
Setting other templates is done via set_custom_template and the caller
is responsible for determining and passing in fallback/inheritance path,
if any.
PHPBB3-9726
|
| |
|
|
|
|
|
|
|
| |
set_custom_template.
This parameter was unused, it was only used by template's set_custom_template
to determine cache file prefix.
PHPBB3-9726
|
| |
|
|
| |
PHPBB3-9726
|
| |
|
|
|
|
|
|
|
|
|
| |
Template locator is responsible for maintaining mapping from template
handles to filenames and paths, and provides resolution services
using these mappings.
Template locator is aware of template inheritance and is capable of
checking template file existence on the filesystem.
PHPBB3-9726
|