aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template
Commit message (Collapse)AuthorAgeFilesLines
* 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 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
* | | [ticket/14958] Optimize Twig extension lang() functionrxu2017-01-051-2/+1
| |/ |/| | | | | PHPBB3-14958
* | [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/13995] Remove deprecated projection media typeMatt Friedman2015-07-071-1/+1
| | | | PHPBB3-13995
* Merge pull request #3560 from Nicofuma/ticket/13790Nils Adermann2015-05-3013-13/+0
|\ | | | | [ticket/13790] Update phpcs
| * [ticket/13790] Update phpcsTristan Darricau2015-05-1913-13/+0
| | | | | | | | PHPBB3-13790
* | [ticket/13838] Fix coding styleNicofuma2015-05-145-7/+15
|/ | | | PHPBB3-13838
* [ticket/13133] Fix variable name in set_custom_style()Matt Friedman2015-01-201-4/+4
| | | | PHPBB3-13133
* Merge pull request #3099 from Senky/ticket/13266Joas Schilling2014-12-271-0/+5
|\ | | | | | | [ticket/13266] Enabling twig dump function if DEBUG is defined
| * [ticket/13266] Enable twig dump functionJakub Senko2014-11-011-0/+5
| | | | | | | | PHPBB3-13266
* | [ticket/13133] Rename $ok variableTristan Darricau2014-11-071-4/+4
| | | | | | | | PHPBB3-13133
* | [ticket/13133] Allow @vendor_name for includecssTristan Darricau2014-10-081-4/+28
|/ | | | PHPBB3-13133
* [ticket/13070] Use old 'template' class for template class hookMarc Alexander2014-09-221-3/+3
| | | | PHPBB3-13070
* [ticket/12661] Add template testPico882014-08-241-1/+1
| | | | PHPBB3-12661
* [ticket/12661] Load extensions templates from "all" folder by render()Pico882014-08-241-0/+4
| | | | PHPBB3-12661
* [ticket/12557] Template fixesn-aleha2014-08-034-6/+7
| | | | PHPBB3-12557
* [ticket/12892] Do not set S_NUM_ROWS when adding a row to a template loopJoas Schilling2014-07-251-20/+58
| | | | | | | | We do not set S_NUM_ROWS while adding a row, to reduce the complexity If we would set it on adding, each subsequent adding would cause n modifications, resulting in a O(n!) complexity, rather then O(n) PHPBB3-12892
* [ticket/12781] Template regex for IF catch too many thingsTristan Darricau2014-06-271-1/+1
| | | | PHPBB3-12781
* [ticket/12715] Cleanup comments in \phpbb\template\*Tristan Darricau2014-06-1519-124/+132
| | | | PHPBB3-12715
* Merge remote-tracking branch 'upstream/develop-ascraeus' into ticket/12594Yuriy Rusko2014-05-281-6/+26
|\
| * [ticket/12509] Add example in doc blockTristan Darricau2014-05-271-0/+4
| | | | | | | | PHPBB3-12509
| * [ticket/12509] Fix doc blockTristan Darricau2014-05-131-1/+1
| | | | | | | | PHPBB3-12509
| * [ticket/12509] Fix the call to set_custom_file in adm/index and messengerTristan Darricau2014-05-131-3/+11
| | | | | | | | PHPBB3-12509
| * [ticket/12509] Add an option to set the path of custom file for extensionsTristan Darricau2014-05-131-5/+13
| | | | | | | | | | | | https://tracker.phpbb.com/browse/PHPBB3-12509 PHPBB3-12509
* | [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-2727-85/+194
|/ | | | PHPBB3-12594
* [ticket/12382] Allow nested loops in included files.Nils Adermann2014-05-031-4/+11
| | | | | | They have to reference the fully qualified loop name in BEGIN and END. PHPBB3-12382
* Merge remote-tracking branch 'rxu3/ticket/12224' into developJoas Schilling2014-03-103-0/+34
|\ | | | | | | | | | | * rxu3/ticket/12224: [ticket/12224] Add assign_block_vars_array() test. [ticket/12224] Add template wrapper method to assign block arrays
| * [ticket/12224] Add template wrapper method to assign block arraysrxu2014-02-233-0/+34
| | | | | | | | | | | | | | | | | | | | | | Add one more wrapper template method for the function assign_block_vars() which takes a 2-dimensional array as a parameter and calls assign_block_vars() in a loop to assign the whole block loop at once. This can make the core a little bit more expendable from the point of developing extensions as it allows to pass the data to events before it's being assigned to template. PHPBB3-12224
* | [ticket/12232] Fix a similar excessive pattern in the method.Cesar G2014-02-271-1/+2
| | | | | | | | PHPBB3-12232
* | [ticket/12232] Remove excessive calls to sizeof() in assign_block_vars() methodCesar G2014-02-271-1/+2
|/ | | | | | | | | | The size of the template block array is calculated within a foreach loop iterating through the array, which is unnecessary. It only needs to be done once. In a block of 1000 rows, this results in 500,500 calls to sizeof() in this location. With this change, that's reduced to 1000. PHPBB3-12232
* [ticket/12100] Re-order arguments in template environment constructorMatt Friedman2014-01-272-7/+8
| | | | PHPBB3-12100
* [ticket/12100] Ensure enabled extensions are fresh in Twig environmentMatt Friedman2014-01-272-7/+7
| | | | PHPBB3-12100
* [ticket/11943] Throw an exception if DEFINE is setup improperlyNathan Guse2013-11-091-0/+7
| | | | PHPBB3-11943
* [ticket/11943] Split fix_inline_variable_tokens into 3 stepsNathan Guse2013-11-081-10/+50
| | | | | | | DEFINE shouldn't add/remove surrounding quotes, but must have the inline variable tokens fixed PHPBB3-11943
* [ticket/11943] Require stricter DEFINE statements for templatesNathan Guse2013-11-081-9/+1
| | | | PHPBB3-11943
* [ticket/11943] Do not quote the value when it is exactly true, false, or nullNathan Guse2013-11-041-0/+8
| | | | | | Quoting these can change the meaning of the value (e.g. 'false' == true) PHPBB3-11943
* [task/code-sniffer] Replace spaces with tabs.Andreas Fischer2013-10-303-43/+43
| | | | PHPBB3-11980
* [task/code-sniffer] Remove the IN_PHPBB check side-effect from class files.Andreas Fischer2013-10-3023-184/+0
| | | | PHPBB3-11980
* [task/code-sniffer] Fix argument list spacing.Andreas Fischer2013-10-291-1/+1
| | | | PHPBB3-11980
* [ticket/11981] Fix code sniffer complaintsMarc Alexander2013-10-283-4/+4
| | | | PHPBB3-11981