aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/twig/node
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/11388] INCLUDECSSNathaniel Guse2013-07-111-0/+30
| | | | 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] 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] 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] Add check for defined IN_PHPBB in all new Twig related filesNathan Guse2013-07-058-0/+72
| | | | PHPBB3-11598
* [feature/twig] Fix indentationNathaniel Guse2013-07-028-132/+132
| | | | 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-021-2/+2
| | | | | | | 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] Fix includephp nodeNathaniel Guse2013-07-011-8/+6
| | | | PHPBB3-11598
* [feature/twig] Fixing include nodeNathaniel Guse2013-07-011-17/+19
| | | | PHPBB3-11598
* [feature/twig] Fixing define nodeNathaniel Guse2013-07-011-3/+3
| | | | PHPBB3-11598
* [feature/twig] Fixing more stuff for DEFINE/INCLUDENathaniel Guse2013-06-291-2/+2
| | | | PHPBB3-11598
* [feature/twig] Fixing DEFINE statementsNathaniel Guse2013-06-291-0/+49
| | | | PHPBB3-11598
* [feature/twig] Replace BEGIN with Twig for using LexerNathaniel Guse2013-06-261-139/+0
| | | | | | | | | | | No longer using the begin tokenparser/node as it did not allow proper handling of <!-- BEGIN !foo, <!-- BEGIN foo(0,2). Now the lexer will use regular expressions to handle that correctly and replace it with Twig's for token Also fixing <!-- IF .foo as I discovered it evaluates to if sizeof(foo) PHPBB3-11598
* [feature/twig] Forgot to set up $config in node/php.phpNathaniel Guse2013-06-251-0/+2
| | | | PHPBB3-11598
* [feature/twig] INCLUDEPHP token abs paths & fix testNathaniel Guse2013-06-251-3/+11
| | | | PHPBB3-11598
* [feature/twig] INCLUDEPHP token, replace variable usage with $contextNathaniel Guse2013-06-251-3/+6
| | | | | | I could find no better way to do this... PHPBB3-11598
* [feature/twig] INCLUDEPHP token supportNathaniel Guse2013-06-251-0/+66
| | | | PHPBB3-11598
* [feature/twig] Add a comment to tpl output if PHP used, but disabledNathaniel Guse2013-06-251-4/+8
| | | | PHPBB3-11598
* [feature/twig] PHP token supportNathaniel Guse2013-06-251-0/+40
| | | | PHPBB3-11598
* [feature/twig] Append assets_version to includejs tagNathaniel Guse2013-06-242-2/+10
| | | | | | Some fixes for main template parser PHPBB3-11598
* [feature/twig] Working on fixing testsNathan Guse2013-06-241-9/+25
| | | | PHPBB3-11598
* [feature/twig] Fixing file header copyrightsNathan Guse2013-06-241-16/+7
| | | | PHPBB3-11598
* [feature/twig] Changing INCLUDEJS behaviorNathan Guse2013-06-241-2/+3
| | | | | | | | | | | | | | | | | | | | | | Was: <!-- INCLUDEJS template/foo.js --> Now: <!-- INCLUDEJS T_TEMPLATE_PATH ~ '/foo.js' --> Reasons for this: 1. INCLUDEJS is 3.1-dev only 2. INCLUDEJS has odd behavior to begin with (arbitrary setting root path to styles/name/ directory) 3. INCLUDEJS could not include files from outside directories or anywhere else 4. It was easier to change INCLUDEJS behavior to something more flexible and useful than hack around it to make it work as it was with Twig. PHPBB3-11598
* [feature/twig] Fix <!-- .blah since the being node was changedNathan Guse2013-06-241-2/+0
| | | | PHPBB3-11598
* [feature/twig] Able to set chain of namespaces to search for loadTemplate()Nathan Guse2013-06-242-1/+53
| | | | | | | | | | | | | | | | This is done so that when event template files are included, if they include files themselves, that namespace is checked first, then __main__ is checked to include the correct template file. Also, when template files are included from a particular namespace, this is done so that the files from that namespace are included first, then the main namespace is checked. We may want to change this behavior in the future to allow choosing which locations have priority, but for now, this is what I am doing to make sure the behavior is simple and always the same. PHPBB3-11598
* [feature/twig] Event template tagNathan Guse2013-06-241-0/+44
| | | | PHPBB3-11598
* [feature/twig] Changing method for begin node to not use anonymous functionNathan Guse2013-06-231-0/+44
| | | | | | | The way it was setup would actually require PHP 5.4, which isn't an option right now. Leaving the old code there, just commented out, for now at least. PHPBB3-11598
* [feature/twig] Fix begin loops & subloopsNathaniel Guse2013-06-151-39/+50
| | | | PHPBB3-11598
* [feature/twig] Some additional operators, more stuff for IFNathan Guse2013-06-122-0/+32
| | | | PHPBB3-11598
* [feature/twig] Correcting output of INCLUDEJSNathan Guse2013-06-121-35/+16
| | | | PHPBB3-11598
* [feature/twig] BEGIN loops now workNathan Guse2013-06-101-4/+3
| | | | PHPBB3-11598
* [feature/twig] Replace phpBB template code with Twig syntax, then parse w/TwigNathan Guse2013-06-102-9/+60
| | | | | | Fixing begin token/node, adding includejs token/node PHPBB3-11598
* [feature/twig] WIP extension/lexer/some tokenparsers/nodesNathan Guse2013-06-091-0/+77
PHPBB3-11598