Nathaniel Guse
12c2258506
[ticket/11628] Remove template_path option on set_custom_style
...
This was set to default 'template/' to append template/ to all the paths,
but every location was actually just setting it to '' to not append anything.
So removed the option entirely (additional paths can be appended to the paths
being sent to the function already)
PHPBB3-11628
2013-07-24 13:25:20 -05:00
Nathaniel Guse
4b761f6575
[ticket/11628] Remove third parameter ($names) from set_custom_style
...
This was basically duplicating functionality. $names would be used if not
empty, else array($name) would be used. Merged functionality into the first
argument
PHPBB3-11628
2013-07-24 12:56:39 -05:00
Nathaniel Guse
5d1afb4532
[ticket/11628] Remove phpbb_style (move methods to phpbb_template)
...
PHPBB3-11628
2013-07-24 12:24:35 -05:00
Nathaniel Guse
44a82dd083
[ticket/11628] Remove style path provider
...
No longer used since Twig was implemented.
PHPBB3-11628
2013-07-24 12:05:04 -05:00
Andreas Fischer
658b378b63
[ticket/11662] Typos: occured -> occurred
...
PHPBB3-11662
2013-07-12 17:51:29 +02:00
Igor Wiedler
1a5d685f45
[feature/bootstrap-dic] Bootstrap container from config.php
...
PHPBB3-11651
2013-07-11 18:04:40 -04:00
Nathaniel Guse
9dce2b28af
[feature/twig] Fix template test case
...
PHPBB3-11598
2013-07-02 11:21:05 -05:00
Nathaniel Guse
bdc05b7dc8
[feature/twig] Remove resource locator dependency from template
...
PHPBB3-11598
2013-07-01 13:28:08 -05:00
Nathaniel Guse
6f925552a5
[feature/twig] Fix includephp_from_subdir_test.php
...
PHPBB3-11598
2013-07-01 13:06:37 -05:00
Nathaniel Guse
8c75d1c1bc
[feature/twig] Fix template_test.php
...
Various tests were broken completely, and some things such as whitespace
changed with Twig
PHPBB3-11598
2013-07-01 11:58:16 -05:00
Nathaniel Guse
6c771a38de
[feature/twig] Going back to Twig's handling of cache file names for now
...
My method was not working correctly, will work on it more later.
PHPBB3-11598
2013-06-25 19:24:32 -05:00
Nathan Guse
a1f957af84
[feature/twig] Working on fixing tests
...
PHPBB3-11598
2013-06-24 15:28:54 -05:00
Nathan Guse
38d8025f12
[feature/twig] Use phpbb_template_twig in tests
...
Replace all new phpbb_template( with new phpbb_template_twig(
PHPBB3-11598
2013-06-12 13:29:57 -05:00
Oleg Pudeyev
44d6dc4c4c
[feature/template-events] Convert a single style name to array of them.
...
This allows template code to know the entire style hierarchy for
templates being rendered.
PHPBB3-9550
2012-11-17 16:42:40 -05:00
Oleg Pudeyev
767d09227b
[ticket/10933] Dependency inject template context.
...
PHPBB3-10933
2012-11-02 18:51:35 -04:00
Andreas Fischer
d3bbde69c4
[ticket/10973] Drop all require_once for mocks. Use autoloading.
...
PHPBB3-10973
2012-07-08 22:57:23 +02:00
Vjacheslav Trushkin
51347ebc09
[ticket/10800] Changing template paths in tests
...
Changing template paths in tests from absolute to relative
PHPBB3-10800
2012-04-29 00:30:08 +03:00
Vjacheslav Trushkin
d91abbb146
[ticket/10756] Renaming phpbb_style_template to phpbb_template
...
Renaming phpbb_style_template to phpbb_template
PHPBB3-10756
2012-04-19 04:25:25 +02:00
Vjacheslav Trushkin
6cecc91326
[ticket/10756] Removing path provider from template class
...
Removing path provider from template class because it is not used by template class
PHPBB3-10756
2012-04-19 04:21:56 +02:00
Vjacheslav Trushkin
377db78dca
[feature/merging-style-components] Fix for unit tests
...
Fixing typo in template unit tests
PHPBB3-10632
2012-03-31 18:16:53 +03:00
Vjacheslav Trushkin
17989c17a0
[feature/merging-style-components] Moving template initialization out of style
...
Moving template initialization out of style constructor
PHPBB3-10632
2012-03-31 18:10:00 +03:00
Vjacheslav Trushkin
360312f599
[feature/merging-style-components] Initializing locator and provider separately
...
Moving locator and path provider initialization out of style class
PHPBB3-10632
2012-03-31 17:38:30 +03:00
Vjacheslav Trushkin
d25b607ca1
[feature/merging-style-components] Updating test cases
...
Updating code in test cases for new template classes.
PHPBB3-10632
2012-03-15 21:12:13 +02:00
Vjacheslav Trushkin
3997ffac2a
[feature/merging-style-components] Creating style class
...
Creating phpbb_style class, changing template initialization to style initialization
PHPBB3-10632
2012-03-15 13:13:21 +02:00
Vjacheslav Trushkin
b7d84a586c
[feature/merging-style-components] Renaming template classes
...
Changing template classes prefixes from phpbb_template to phpbb_style (for classes that will work with styles) or phpbb_style_template (for classes that are specific to templates)
PHPBB3-10632
2012-03-14 23:12:11 +02:00
Oleg Pudeyev
6e5fc53f0d
[ticket/10685] Refactor template test defaults for php 5.4 compatibility.
...
PHPBB3-10685
2012-03-06 19:34:20 -05:00
Unknown
66c50f6b30
[ticket/9916] Updating license in non-distributed files
...
PHPBB3-9916
2012-01-02 19:10:36 +01:00
Nils Adermann
520a5f9295
[feature/extension-manager] Refactoring the structure of extension provider
...
PHPBB3-10323
2011-09-29 16:15:53 +02:00
Nils Adermann
ea46feb115
[feature/extension-manager] Add support for templates in extensions.
...
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
2011-09-29 16:15:53 +02:00
Igor Wiedler
bbb10f576f
Merge branch 'develop-olympus' into develop
...
* develop-olympus:
[ticket/10354] Include cache directory path in unwritable message.
Conflicts:
tests/template/template_test.php
2011-09-05 09:20:06 +02:00
Oleg Pudeyev
511f2e0435
[ticket/10355] Correctly end output buffering in template tests.
...
This code was copied verbatim from develop-olympus.
PHPBB3-10355
2011-09-05 02:07:44 -04:00
Oleg Pudeyev
acb767f14d
[feature/template-engine] Dependency inject locator into template.
...
PHPBB3-9726
2011-08-09 23:28:40 -04:00
Igor Wiedler
c58b09e65d
[feature/template-engine] Remove $include_once argument of display()
...
PHPBB3-9726
2011-07-10 01:05:54 +02:00
Igor Wiedler
ae53623230
[feature/template-engine] Refactor $config dependency out of the filter
...
The template stream filter no longer depends on the $config global.
Instead it uses a 'allow_php' param that is passed via
stream_bucket_append's last argument.
Tests also adjusted.
PHPBB3-9726
2011-07-10 00:35:07 +02:00
Igor Wiedler
f7b06ca12d
[feature/template-engine] Move template.php to includes/template
...
This allows making use of autoloading.
PHPBB3-9726
2011-07-10 00:30:50 +02:00
Oleg Pudeyev
be8fc0864c
[feature/template-engine] Added a test for inclusion of php files from subdir.
...
PHPBB3-9726
2011-05-14 15:30:20 -04:00