aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/11012] Normalize $phpEx member vars to $php_extIgor Wiedler2012-07-211-4/+4
| | | | PHPBB3-11012
* [ticket/10799] Removing global variable from includejsVjacheslav Trushkin2012-05-012-3/+8
| | | | | | Removing global $phpbb_root_path from includejs implementation PHPBB3-10799
* [ticket/10756] Fixing variable declarations in style and template classesVjacheslav Trushkin2012-04-192-18/+12
| | | | | | Fixing variable declaration, removing function from template locator that does not belong there PHPBB3-10756
* [ticket/10756] Renaming phpbb_style_template to phpbb_templateVjacheslav Trushkin2012-04-193-2/+511
| | | | | | Renaming phpbb_style_template to phpbb_template PHPBB3-10756
* [ticket/10756] Creating locator interfaceVjacheslav Trushkin2012-04-191-0/+133
| | | | | | Creating locator interface to be used in template class PHPBB3-10756
* [ticket/10756] Renaming template classesVjacheslav Trushkin2012-04-196-10/+10
| | | | | | Renaming template classes from phpbb_style_template_ to phpbb_template_ PHPBB3-10756
* [ticket/10756] Moving template classesVjacheslav Trushkin2012-04-196-0/+1670
| | | | | | Moving template class files from includes/style/ to includes/template/ and removing template_ file prefix PHPBB3-10756
* [feature/merging-style-components] Moving template classes to styleVjacheslav Trushkin2012-03-1411-2611/+0
| | | | | | Moving includes/template/ to includes/style/, adding template_ prefix to classes that deal only with templates PHPBB3-10632
* [feature/append_var] Adding append_var template class functionVjacheslav Trushkin2012-03-052-2/+34
| | | | | | Adding append_var template class function PHPBB3-10666
* [ticket/10652] Fixing typo in template classVjacheslav Trushkin2012-02-151-1/+1
| | | | | | Fixing typo in template class that prevents template inheritance from working PHPBB3-10652
* Merge pull request #526 from p/ticket/10500Igor Wiedler2012-02-141-1/+1
|\ | | | | Ticket/10500 Miscellaneous issues in the new template engine
| * [ticket/10500] Use correct class name in @uses.Oleg Pudeyev2011-12-031-1/+1
| | | | | | | | PHPBB3-10500
* | [ticket/9916] Updating header license and removing Version $Id$Unknown2011-12-3111-11/+11
|/ | | | PHPBB3-9916
* [feature/extension-manager] Clear up docs of extension related template changesNils Adermann2011-11-183-15/+35
| | | | PHPBB3-10323
* [feature/extension-manager] Correctly reset paths in set_templateNils Adermann2011-09-291-1/+1
| | | | PHPBB3-10323
* [feature/extension-manager] Make sure named styles are loaded from root dirNils Adermann2011-09-294-6/+12
| | | | PHPBB3-10323
* [feature/extension-manager] Fallback template might not always be setNils Adermann2011-09-291-4/+8
| | | | PHPBB3-10323
* [feature/extension-manager] Reset all template paths after a set_templates callNils Adermann2011-09-291-0/+1
| | | | PHPBB3-10323
* [feature/extension-manager] Refactoring the structure of extension providerNils Adermann2011-09-294-59/+179
| | | | PHPBB3-10323
* [feature/extension-manager] Don't use the extension manager during installNils Adermann2011-09-291-9/+11
| | | | | | Template needs to be able to work without extensions. PHPBB3-10323
* [feature/extension-manager] Add support for templates in extensions.Nils Adermann2011-09-293-81/+220
| | | | | | | | | | | | | | | | | | 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
* Merge branch 'develop' of git://github.com/phpbb/phpbb3 into developAndreas Fischer2011-09-271-5/+14
|\ | | | | | | | | | | | | | | * 'develop' of git://github.com/phpbb/phpbb3: [ticket/10392] Alter parent namespace stripping. [ticket/10392] Test for magic loop variables with nested namespaces. [ticket/10392] Missed fix for S_BLOCK_NAME. [ticket/10392] Fix access to nested special block variables.
| * [ticket/10392] Alter parent namespace stripping.Chris Smith2011-09-271-2/+9
| | | | | | | | PHPBB3-10392
| * [ticket/10392] Missed fix for S_BLOCK_NAME.Chris Smith2011-09-271-1/+1
| | | | | | | | PHPBB3-10392
| * [ticket/10392] Fix access to nested special block variables.Chris Smith2011-09-261-4/+6
| | | | | | | | PHPBB3-10392
* | Merge remote-tracking branch 'cs278/ticket/10384' into developAndreas Fischer2011-09-241-2/+3
|\ \ | |/ |/| | | | | | | * cs278/ticket/10384: [ticket/10384] Language variable replacements should not check for var prefix. [ticket/10384] Update unit tests to test for failing variable.
| * [ticket/10384] Language variable replacements should not check for var prefix.Chris Smith2011-09-241-2/+3
| | | | | | | | PHPBB3-10384
* | [ticket/10375] Rework $source_file setting.Chris Smith2011-09-211-3/+12
| | | | | | | | | | | | Only set the file if an mtime check or recompile are required. PHPBB3-10375
* | [ticket/10375] Make _tpl_load() a little leaner.Chris Smith2011-09-211-19/+6
| | | | | | | | | | | | | | | | - Removed duplicate variables - Set $source_file earlier for cache checks - Fixed useless mtime check PHPBB3-10375
* | [ticket/10375] Use existing method to generate cache file name.Chris Smith2011-09-211-2/+1
|/ | | | PHPBB3-10375
* [ticket/10374] Remove 'custom template' cache prefix.Chris Smith2011-09-201-1/+1
| | | | PHPBB3-10374
* [ticket/10322] Separate template varref resolution from output generationPatrick Webster2011-09-161-38/+51
| | | | | | | | | Most template variables can now have their PHP variable name resolved instead of only compiling directly. This allows for the use of block vars in INCLUDE statements. This does not work for language variables since they require multiple checks. Added tests for the new types of allowed INCLUDEs. PHPBB3-10322
* [ticket/10322] Fix dynamic template includesPatrick Webster2011-09-081-1/+26
| | | | | | | Dynamic template includes from variables was not implemented in the new templating system. PHPBB3-10322
* [ticket/10350] Fix for class phpbb_template_renderer_evalVjacheslav Trushkin2011-09-041-1/+1
| | | | | | Fixing bug in class phpbb_template_renderer_eval PHPBB3-10350
* [feature/template-engine] Delete _get_locator function.Oleg Pudeyev2011-08-131-13/+0
| | | | | | It is no longer needed as locator is injected into template. PHPBB3-9726
* [feature/template-engine] Need to call set_template on template.Oleg Pudeyev2011-08-091-1/+1
| | | | PHPBB3-9726
* [feature/template-engine] Dependency inject locator into template.Oleg Pudeyev2011-08-091-2/+3
| | | | PHPBB3-9726
* [feature/template-engine] Delete useless code from set_template.Oleg Pudeyev2011-08-091-7/+1
| | | | | | | set_custom_template performs these calls, repeating them in set_template is not needed. PHPBB3-9726
* [feature/template-engine] Use template engine class in bbcode class.Oleg Pudeyev2011-08-071-0/+13
| | | | PHPBB3-9726
* [feature/template-engine] Corrected an error message in template locator.Oleg Pudeyev2011-08-071-1/+1
| | | | PHPBB3-9726
* [feature/template-engine] Remaining documentation.Oleg Pudeyev2011-08-077-1/+57
| | | | PHPBB3-9726
* [feature/template-engine] More documentation for template class.Oleg Pudeyev2011-08-071-8/+35
| | | | PHPBB3-9726
* [feature/template-engine] Create load_and_render to reduce code duplication.Oleg Pudeyev2011-08-071-7/+13
| | | | PHPBB3-9726
* [feature/template-engine] Get rid of orig_tpl_* in template engine.Oleg Pudeyev2011-08-042-68/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [feature/template-engine] Delete $style_name param from locator's ↵Oleg Pudeyev2011-08-042-5/+3
| | | | | | | | | set_custom_template. This parameter was unused, it was only used by template's set_custom_template to determine cache file prefix. PHPBB3-9726
* [feature/template-engine] Add constructor to template locator.Oleg Pudeyev2011-08-042-1/+9
| | | | PHPBB3-9726
* [feature/template-engine] Factor template locator out of template class.Oleg Pudeyev2011-07-302-118/+283
| | | | | | | | | | | 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
* [feature/template-engine] Delete $files_template property.Oleg Pudeyev2011-07-301-4/+0
| | | | | | | | This seems to have been used for db storage of templates. We no longer offer db storage of templates, and thus currenty $files_template is only written to but not read anywhere. PHPBB3-9726
* [feature/template-engine] Rename is_absolute to phpbb_is_absolute.Oleg Pudeyev2011-07-241-1/+1
| | | | PHPBB3-9726
* [feature/template-engine] Docblocks, no more constructor for filterIgor Wiedler2011-07-161-6/+18
| | | | | | Add docblocks for phpbb_template_filter, remove the useless constructor. PHPBB3-9726