aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/14972] replace all occurrences of sizeof() with the count()rxu2018-01-011-1/+1
| | | | PHPBB3-14972
* [ticket/14972] Fix template context use of sizeof()Marc Alexander2018-01-011-46/+33
| | | | PHPBB3-14972
* [ticket/14994] Refactor template->assign_block_varjaviexin2017-11-011-1/+1
| | | | | | | | | | Refactor assign_block_var to use the same block selection mechanism as is used in alter_block_array. This allows creating new blocks at any position in the template structure, not only on the last block. Allows selecting a block as outer[2].middle. Added tests. Added PHP 7.2 compatibility. PHPBB3-14994
* [ticket/14994] Refactor template->assign_block_varjaviexin2017-11-011-19/+4
| | | | | | | | | | Refactor assign_block_var to use the same block selection mechanism as is used in alter_block_array. This allows creating new blocks at any position in the template structure, not only on the last block. Allows selecting a block as outer[2].middle. Added tests. Added PHP 7.2 compatibility. PHPBB3-14994
* [ticket/14994] Refactor template->assign_block_varjaviexin2017-10-291-51/+46
| | | | | | | | | Refactor assign_block_var to use the same block selection mechanism as is used in alter_block_array. This allows creating new blocks at any position in the template structure, not only on the last block. Allows selecting a block as outer[2].middle. PHPBB3-14994
* Merge branch 'ticket/15178' into ticket/15179Marc Alexander2017-05-312-2/+11
|\
* \ Merge remote-tracking branch 'javiexin/ticket/15068' into 3.2.xMarc Alexander2017-05-293-0/+126
|\ \
| * \ Merge branch '3.2.x' into ticket/15068javiexin2017-03-0916-146/+509
| |\ \
| * | | [ticket/15068] Add template vars retrieval from the template objectjaviexin2017-03-092-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | Add possibility to retrieve full block of vars PHPBB3-15068
| * | | [ticket/15068] Add template vars retrieval from the template objectjaviexin2017-02-053-0/+110
| | | | | | | | | | | | | | | | PHPBB3-15068
* | | | [ticket/14990] Move dispatcher object to the front of the options arrayrxu2017-04-161-2/+2
| | | | | | | | | | | | | | | | PHPBB3-14990
* | | | [ticket/14990] Fix event name, email parsing, installer and dispatcher callsrxu2017-04-161-14/+18
| | | | | | | | | | | | | | | | PHPBB3-14990
* | | | [ticket/14990] Add core events to the Twig environmentrxu2017-04-161-1/+31
| | | | | | | | | | | | | | | | PHPBB3-14990
* | | | Merge pull request #4612 from javiexin/ticket/14950Marc Alexander2017-04-152-2/+43
|\ \ \ \ | |_|/ / |/| | | | | | | [ticket/14950] Add possibility to delete a template block
| * | | [ticket/14950] Add possibility to delete a template blockjaviexin2017-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new mode to alter_block_array to allow for the deletion of a certain block of template variables. The selection method is the same as for the other modes for alter_block_array. The passed in vararray is ignored, and an out of bounds index is considered an error. Added tests for the new function, fixed. PHPBB3-14950
| * | | [ticket/14950] Add possibility to delete a template blockjaviexin2017-01-042-2/+43
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Adds a new mode to alter_block_array to allow for the deletion of a certain block of template variables. The selection method is the same as for the other modes for alter_block_array. The passed in vararray is ignored, and an out of bounds index is considered an error. PHPBB3-14944
* | | Merge branch '3.1.x' into 3.2.xMarc Alexander2017-02-231-29/+40
|\ \ \ | | |/ | |/|
| * | Merge pull request #4605 from javiexin/ticket/14943Marc Alexander2017-02-231-29/+40
| |\ \ | | | | | | | | | | | | [ticket/14943] Fix template loop access by index
| | * | [ticket/14943] Fix template loop access by indexjaviexin2017-01-121-30/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows inserting elements in a loop specified as 'outer[3].inner'. This was coded, but malfunctioning. Name incorrectly set on insert. If block was empty, the insertion process should create it. Checking for out of bounds indexes. PHPBB3-14943
| | * | [ticket/14943] Fix template loop access by indexjaviexin2017-01-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows inserting elements in a loop specified as 'outer[3].inner'. This was coded, but malfunctioning. Name incorrectly set on insert. PHPBB3-14943
* | | | Merge branch '3.1.x' into 3.2.xMarc Alexander2017-02-193-0/+108
|\ \ \ \ | |/ / /
| * | | Merge pull request #4598 from javiexin/ticket/14944Marc Alexander2017-02-193-0/+108
| |\ \ \ | | | | | | | | | | | | | | | [ticket/14944] Add search for template loop indexes by key
| | * | | [ticket/14944] Add possibility to search for template loop indexes by keyjaviexin2017-01-283-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new function to the template interface, and implements it in the context class. The function returns the ordinal index for a specified key, with the same structure that the key for alter_block_array. Reuses same code. Remove unneeded references, do nothing for int keys. Check out of bounds or wrong blockname errors. Added tests. Remove default parameter value. PHPBB3-14944
| | * | | [ticket/14944] Add possibility to search for template loop indexes by keyjaviexin2017-01-081-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new function to the template interface, and implements it in the context class. The function returns the ordinal index for a specified key, with the same structure that the key for alter_block_array. Reuses same code. Remove unneeded references, do nothing for int keys. Check out of bounds or wrong blockname errors. Added tests. PHPBB3-14944
| | * | | [ticket/14944] Add possibility to search for template loop indexes by keyjaviexin2016-12-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new function to the template interface, and implements it in the context class. The function returns the ordinal index for a specified key, with the same structure that the key for alter_block_array. Reuses same code. Remove unneeded references, do nothing for int keys. PHPBB3-14944
| | * | | [ticket/14944] Add possibility to search for template loop indexes by keyjaviexin2016-12-283-0/+96
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new function to the template interface, and implements it in the context class. The function returns the ordinal index for a specified key, with the same structure that the key for alter_block_array. Reuses same code. PHPBB3-14944
* | | | Merge branch '3.1.x' into 3.2.xMarc Alexander2017-01-061-2/+1
|\ \ \ \ | |/ / /
| * | | [ticket/14958] Optimize Twig extension lang() functionrxu2017-01-051-2/+1
| | |/ | |/| | | | | | | PHPBB3-14958
* | | Merge branch '3.1.x' into 3.2.xTristan Darricau2016-12-301-4/+4
|\ \ \ | |/ /
| * | [ticket/14943] Fix template loop access by indexjaviexin2016-12-281-4/+4
| |/ | | | | | | | | | | | | Allows inserting elements in a loop specified as 'outer[3].inner'. This was coded, but malfunctioning. PHPBB3-14943
| * [ticket/14661] Fix a typo in twig.phplavigor2016-06-051-1/+1
| | | | | | | | PHPBB3-14661
| * [ticket/14099] Fix the assetsTristan Darricau2015-08-181-3/+14
| | | | | | | | PHPBB3-14099
| * [ticket/14099] Fix testsTristan Darricau2015-08-141-0/+8
| | | | | | | | PHPBB3-14099
* | [ticket/14867] Revert back to twig 1.26.* and update dependenciesMarc Alexander2016-11-161-6/+1
| | | | | | | | | | | | | | | | The revert of twig back to 1.26.* is necessary due to a breaking change in the way the Filesystem loader returns the paths to template files. PHPBB3-14867
* | [ticket/14716] Update dependencies to latest versionsMarc Alexander2016-11-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | This addresses some issues with symfony that resulted in issues when open_basedir restrictions were enabled, as well as issues with JPEG images in fast-image-size. The phpBB class extending the twig lexer also had to be modified to ensure compatibility after BC was broken by the PR https://github.com/twigphp/Twig/pull/2182 for twig 1.27. PHPBB3-14716
* | [ticket/14807] s9e/textformatter 0.8.1Tristan Darricau2016-10-101-1/+0
| | | | | | | | PHPBB3-14807
* | [ticket/14807] Updates TwigTristan Darricau2016-10-021-0/+11
| | | | | | | | PHPBB3-14807
* | [ticket/13616] Uses symfony/proxy-manager-bridge to lazy load twig lexerTristan Darricau2016-04-031-19/+2
| | | | | | | | PHPBB3-13616
* | [ticket/14457] Handle the case where there isn't any 'definition' bagTristan Darricau2016-02-181-2/+5
| | | | | | | | PHPBB3-14457
* | [ticket/14457] Don't set CSS to JS and JS to CSSTristan Darricau2016-02-181-2/+2
| | | | | | | | PHPBB3-14457
* | [ticket/14457] CSTristan Darricau2016-02-181-4/+4
| | | | | | | | PHPBB3-14457
* | [ticket/14457] Fix twig/twig::assign_displayTristan Darricau2016-02-181-1/+1
| | | | | | | | PHPBB3-14457
* | [ticket/14457] Uses a random placeholder to inject css and jsTristan Darricau2016-02-182-26/+17
| | | | | | | | PHPBB3-14457
* | [ticket/14446] Add predefined placeholder variables to twig definitionMarc Alexander2016-02-022-3/+4
| | | | | | | | PHPBB3-14446
* | [ticket/13717] Fix testsTristan Darricau2016-01-251-1/+16
| | | | | | | | PHPBB3-13717
* | [ticket/13717] Set the assets after rendering the whole templateTristan Darricau2016-01-255-48/+160
| | | | | | | | | | | | The goal being to be able to call INCLUDECSS/JS from anywhere in any tempalte or event PHPBB3-13717
* | [ticket/13454] Remove unused variablesMarc Alexander2016-01-061-2/+0
| | | | | | | | | | | | This is the first part of the changes. More to come. PHPBB3-13454
* | [ticket/12633] Doesn't use DEBUG to debug templates eventsTristan Darricau2015-09-181-3/+3
| | | | | | | | | | | | Check the templates events on runtime only when Twig debug is on PHPBB3-12633
* | [ticket/13645] Move the feeds to controllersNicofuma2015-08-231-0/+43
| | | | | | | | PHPBB3-13645
* | Merge branch '3.1.x'Marc Alexander2015-07-081-1/+1
|\ \ | |/ | | | | | | Conflicts: tests/template/template_includecss_test.php