aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/twig
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/11388] INCLUDECSSNathaniel Guse2013-07-114-0/+71
| | | | PHPBB3-11388
* [ticket/11388] Do not append assets_version if using remote path (e.g. http)Nathaniel Guse2013-07-111-3/+2
| | | | PHPBB3-11388
* [ticket/11388] Remove typehints (causing tests to fail)Nathaniel Guse2013-07-111-1/+1
| | | | PHPBB3-11388
* [ticket/11388] Disable cache if IN_INSTALL definedNathaniel Guse2013-07-111-1/+1
| | | | PHPBB3-11388
* [ticket/11388] typehitsNathaniel Guse2013-07-111-1/+1
| | | | PHPBB3-11388
* [ticket/11388] INCLUDEJS supports //(url)Nathaniel Guse2013-07-111-1/+1
| | | | PHPBB3-11388
* [ticket/11388] includejs inherit from includeassetNathaniel Guse2013-07-102-31/+73
| | | | | | | | | Copied from the INCLUDECSS PR, since this needed to be modified. Added checks for argument strings/anchors/http/https paths in asset files to load files properly PHPBB3-11388
* [feature/twig] Variable regular expressions should be lazyNathan Guse2013-07-081-3/+3
| | | | PHPBB3-11598
* [feature/twig] If DEBUG, EVENT will always look for new/missing tpl event filesNathan Guse2013-07-061-3/+23
| | | | | | | | | If debug mode is enabled, lets check for new/removed EVENT templates on page load rather than at compile. This is slower, but makes developing extensions easier (no need to purge the cache when a new event template file is added) PHPBB3-11598
* [feature/twig] Use Twig mask for IF statements instead of our own tokenparserNathan Guse2013-07-053-90/+6
| | | | PHPBB3-11598
* [feature/twig] context_recursive_loop_builder isn't used anymore, removing itNathan Guse2013-07-051-22/+0
| | | | PHPBB3-11598
* [feature/twig] Add check for defined IN_PHPBB in all new Twig related filesNathan Guse2013-07-0515-0/+135
| | | | PHPBB3-11598
* [feature/twig] Can't use typehint here, causes tests to failNathan Guse2013-07-051-1/+1
| | | | PHPBB3-11598
* [feature/twig] Clarify commentNathan Guse2013-07-051-1/+1
| | | | PHPBB3-11598
* [feature/twig] SpacingNathan Guse2013-07-051-1/+1
| | | | PHPBB3-11598
* [feature/twig] Docs/typehinting for Twig extensionNathan Guse2013-07-051-1/+13
| | | | PHPBB3-11598
* [feature/twig] Fix a regular expressionNathaniel Guse2013-07-041-1/+1
| | | | PHPBB3-11598
* [feature/twig] Fix debug codeNathaniel Guse2013-07-041-1/+1
| | | | PHPBB3-11598
* [feature/twig] Support using Twig filters on {VAR}, add masks for Twig tagsNathaniel Guse2013-07-042-7/+71
| | | | | | | | | | Now we can do {L_TITLE|upper}, {SITENAME|lower}, etc We can also use all the Twig tags in our own syntax. E.g. <!-- BLOCK foo --> = {% block foo %]. All tags are the same as the Twig tag names, but are in uppercase. PHPBB3-11598
* [feature/twig] Indentation and commentsNathaniel Guse2013-07-042-10/+12
| | | | PHPBB3-11598
* [feature/twig] Change style->set_style to accept a list of base directoriesNathaniel Guse2013-07-041-2/+4
| | | | | | | | | | | | | | | set_style now accepts an array containing a list of paths, e.g. array( 'ext/foo/bar/styles', 'styles'). Default: array('styles') Using this option allows us to set the style based on the user's preferred style (including the full tree), but use one or more base directories to add the paths from. The main use for this ability is so that extensions can call set_style, including their path and the phpBB styles path (or any others) and have their template files loaded from those directories (in the order given). PHPBB3-11598
* [feature/twig] Fix begin loop var regexNathaniel Guse2013-07-021-2/+2
| | | | PHPBB3-11598
* [feature/twig] Fix indentationNathaniel Guse2013-07-0216-357/+368
| | | | PHPBB3-11598
* [feature/twig] Remove getCacheFilename function I was working onNathaniel Guse2013-07-021-30/+0
| | | | | | | This can be addressed later if we decide we want to have more nicely named cache files. It does not need to be addressed now PHPBB3-11598
* [feature/twig] Remove reference to cachepath, it is not used publicly anymoreNathaniel Guse2013-07-021-1/+4
| | | | PHPBB3-11598
* [feature/twig] Check the template context for language varsNathaniel Guse2013-07-022-2/+36
| | | | | | | | We output some language vars to the context (e.g. L_TITLE in the ACP). These do not exist in user->lang, so we must check the context vars first, if not in context, we output the result of user->lang. PHPBB3-11598
* [feature/twig] Fix BBCode parserNathaniel Guse2013-07-021-0/+10
| | | | PHPBB3-11598
* [feature/twig] INCLUDEPHP behavior now supports local relative pathsNathaniel Guse2013-07-021-1/+8
| | | | | | | | | As a last resort, now we use the Twig Loader to find the correct file to include to (most specific file first, then parent styles). Also allows using @namespace convention. This is ONLY done if the specified path is not an absolute path AND the file does not exist relative to the phpBB root path. PHPBB3-11598
* [feature/twig] INCLUDEJS behavior now supports local relative pathsNathaniel Guse2013-07-021-2/+10
| | | | | | | | | This was done because T_TEMPLATE_PATH is not always correct for js files (e.g. the inheriting style does not include these). Now we use the Twig Loader to find the correct file to link to (most specific file first, then parent styles). Also allows using @namespace convention PHPBB3-11598
* [feature/twig] INCLUDEJS now uses the definition classNathaniel Guse2013-07-022-2/+21
| | | | | | | This had to be done because, like DEFINE, setting variables to $context only affected the local file and any children, not parent templates. PHPBB3-11598
* [feature/twig] Update phpbb_template interfaceNathaniel Guse2013-07-011-11/+25
| | | | | | Return $this wherever possible PHPBB3-11598
* [feature/twig] Fix call for previous change to var name caseNathaniel Guse2013-07-011-1/+1
| | | | PHPBB3-11598
* [feature/twig] CommentsNathaniel Guse2013-07-011-8/+7
| | | | PHPBB3-11598
* [feature/twig] Use correct case for variable nameNathaniel Guse2013-07-011-3/+3
| | | | PHPBB3-11598
* [feature/twig] Fixed tabs in environment.phpNathaniel Guse2013-07-011-40/+41
| | | | PHPBB3-11598
* [feature/twig] Don't forget to set the context when rendering!Nathaniel Guse2013-07-011-1/+1
| | | | PHPBB3-11598
* [feature/twig] Remove get_lang function (it's not used anywhere)Nathaniel Guse2013-07-011-21/+1
| | | | PHPBB3-11598
* [feature/twig] Do not assign var by referenceNathaniel Guse2013-07-011-3/+2
| | | | PHPBB3-11598
* [feature/twig] Fix length replace in lexerNathaniel Guse2013-07-011-1/+1
| | | | PHPBB3-11598
* [feature/twig] Prevent errors from empty user->styleNathaniel Guse2013-07-011-1/+1
| | | | PHPBB3-11598
* [feature/twig] Use adm_relative_path to build admin namespaceNathaniel Guse2013-07-011-6/+11
| | | | PHPBB3-11598
* [feature/twig] Remove debug code, set debug/auto reload correctlyNathaniel Guse2013-07-011-6/+2
| | | | PHPBB3-11598
* [feature/twig] Remove resource locator dependency from templateNathaniel Guse2013-07-011-2/+1
| | | | PHPBB3-11598
* [feature/twig] Remove the twig loader class that I started (don't use it)Nathaniel Guse2013-07-011-51/+0
| | | | PHPBB3-11598
* [feature/twig] Changing INCLUDEJS behavior slightlyNathaniel Guse2013-07-011-0/+1
| | | | | | | Automatically parsing inline variables the same way it is done for INCLUDE, INCLUDEPHP PHPBB3-11598
* [feature/twig] Fix includephp nodeNathaniel Guse2013-07-011-8/+6
| | | | PHPBB3-11598
* [feature/twig] A bit of cleanup in twig.phpNathaniel Guse2013-07-011-11/+14
| | | | PHPBB3-11598
* [feature/twig] Add addslashes filter (to use on LA_ instead of escape)Nathaniel Guse2013-07-012-2/+3
| | | | | | To match previous parser behavior PHPBB3-11598
* [feature/twig] Remove the get_rootref and get_tpldata functions prev addedNathaniel Guse2013-07-011-4/+3
| | | | | | These are not really necessary PHPBB3-11598
* [feature/twig] Transform {L_, {LA_ to use the lang() functionNathaniel Guse2013-07-013-16/+47
| | | | PHPBB3-11598