Jim Cottrell
bfee483805
Adds support for minifying framework assets ( #3240 )
...
Fixes #2753 . Credit to @jimcottrell
2018-07-05 17:57:17 -04:00
Arthur Kushman
c78b3ef786
Code formatting changes ( #3363 )
...
Code formatting improvements submitted by @arthurkushman.
2018-03-22 10:55:13 -06:00
Samuel Georges
0a428423af
Twig partial() function should not throw exception
...
This allows checking if a partial exists
2017-11-19 14:58:47 +11:00
Luke Towers
08f9cd8448
Moved the |media twig filter from the CMS module to the System module
2017-09-27 22:15:01 -06:00
Samuel Georges
18b9253bcb
Change to mail partial syntax
2017-07-26 17:48:00 +10:00
Luke Towers
647a656f67
Add more granular permissions for editing themes ( #2985 )
...
* Add more granular permissions for editing themes
* Fix component token parser exception message
2017-07-21 14:29:30 +10:00
Samuel Georges
e2781c5fdf
URL -> Url
2017-06-02 23:34:50 +10:00
Samuel Georges
6b74efa4b0
Improves the DebugExtension
...
It now uses the HtmlDumper from Illuminate to elaborate on each variable when clicked
getName() no longer needed on Twig extensions
2017-05-13 10:20:18 +10:00
Samuel Georges
2b5709adb9
Bump Twig to v2, refit code
2017-05-13 09:34:20 +10:00
Samuel Georges
0a981a25f7
API docs progress
...
Controller -> SystemController for consistency
2017-03-16 17:08:20 +11:00
Samuel Georges
8724566849
Implement support for twig macro/import
...
Fixes #2526
2016-12-07 20:58:25 +11:00
Pásztor Gábor
40269cb6e2
Clean up
2016-03-29 14:55:25 +02:00
Samuel Georges
6e7fa7de88
Allow CmsObjects to define their own Twig cache key
2016-03-21 13:42:03 +11:00
Samuel Georges
24a620e890
Convert CmsObject and CmsCompoundObject to use Halcyon
...
getFullPath -> getFilePath
2016-03-12 15:32:16 +11:00
Samuel Georges
d65bc5c2ad
Introduce a CmsObject interface
...
This will be useful to decouple ComponentPartial and Asset objects from their Halcyon counterparts
An Asset is technically not a template, it may be hosted via a CDN or others
A ComponentPartial is also different, it is read only and doesn't require caching
2016-03-09 20:51:04 +11:00
sNuuFix
a724a3aeb2
Fixed framework extra stylesheets for validator.w3.org HTML5 validation.
2016-02-27 14:13:20 +11:00
Joshua Wilson
d0b250c8f7
Flash twig node now displays all messages of all types.
...
Fixes #1225
2016-01-12 16:51:58 -05:00
Samuel Georges
5a70cec7a2
Improved fix for #1672
2016-01-02 13:41:57 +11:00
Samuel Georges
ecb54ff92c
Rollback #1672
2016-01-02 13:40:32 +11:00
DQ Sully
2fae5a30b9
Fix Twig Caching
...
When October would load a file from its changed source, Twig would not see the message until it had gone. See Cms\Classes\Loader->isFresh. This meant a template would not update unless you deleted the Twig cache, or that template's TTL expired. Fix: add another variable (freshness) that would only change after being observed, and accurately reflected if a template's source had been modified
2015-12-28 10:09:15 -07:00
Samuel Georges
91c061f60a
Add |media filter and MediaLibrary::url helper
2015-06-17 18:51:05 +10:00
Samuel Georges
302f397835
Add cms.twig.processTwigContent hook to Twig loader
2015-06-05 17:23:38 +10:00
Dave Shoreman
aac3d196ee
Fixed error when using {% flash type %}
...
While {% flash %} works fine for displaying all flash messages, if
a user wants to show only a certain type with {% flash success %}
(for example), it errors with "Undefined variable: message".
2015-05-30 01:24:11 +01:00
Samuel Georges
0083fcd356
Vars passed to content should be escaped
2015-04-25 14:28:52 +10:00
Samuel Georges
ab1272bea9
Add parameter support to {% content %} tags
2015-04-25 13:58:05 +10:00
Samuel Georges
d94ba96ae3
Better exception handling to dump()
2015-04-21 15:20:59 +10:00
Samuel Georges
b1b700368f
Radical reorg of some classes
2015-01-28 11:49:54 +11:00
alekseybobkov
cc23b434cb
Minor improvements in the CMS API
2015-01-21 21:38:42 -08:00
Sam Georges
c83797231d
Subsequent expressions are on a new line (see developer guide > PSR exceptions)
2014-11-01 12:00:45 +11:00
Sam Georges
a00cb9f556
(7:15:01 PM) Flynsarmy: i feel component should also show the subheader too
2014-10-24 19:17:21 +11:00
Sam Georges
7cb8bf0d9a
Improve code a tiny bit
2014-10-24 19:11:44 +11:00
Sam Georges
688d8c95de
Comply PSR
2014-10-24 19:01:30 +11:00
Sam Georges
38f8aab27c
Comply PSR
2014-10-24 19:00:44 +11:00
flynsarmy
f869c7d268
Make dump show object type
2014-10-23 20:32:55 +10:00
Stefan Talen
509e7d2a12
Fixing issues with files in modules/cms
2014-10-18 12:03:48 +02:00
Stefan Talen
347dff7e75
Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
...
Conflicts:
modules/backend/behaviors/RelationController.php
modules/backend/classes/WidgetManager.php
modules/cms/classes/CmsCompoundObject.php
modules/cms/twig/Extension.php
modules/cms/twig/PlaceholderNode.php
modules/cms/widgets/TemplateList.php
2014-10-18 11:07:17 +02:00
alekseybobkov
d4bc164fb2
Display the default placeholder content if there is no put tag for the placeholder
2014-10-16 22:36:00 -07:00
alekseybobkov
12175b29db
Multiple updates in the back-end widgets and styles
2014-10-16 20:47:23 -07:00
Stefan Talen
61cf1ad710
Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
...
Conflicts:
modules/backend/behaviors/FormController.php
modules/backend/classes/AuthManager.php
modules/backend/lang/fa/lang.php
modules/backend/widgets/Form.php
modules/cms/classes/CmsCompoundObject.php
modules/cms/classes/ComponentHelpers.php
modules/cms/formwidgets/Components.php
2014-10-11 11:58:20 +02:00
alekseybobkov
0b8af1f505
Merge branch 'develop' into static-pages-support
2014-10-10 22:27:01 -07:00
Sam Georges
1dcaa0d1d6
Fixes #677 - use FQN for "instanceof Model" expressions
2014-10-11 12:13:25 +11:00
Stefan Talen
9c1dcb0dba
Updating modules/cms/twig
2014-10-11 01:42:04 +02:00
alekseybobkov
26e8d5bda5
Minor updates in the back-end UI
2014-10-05 22:21:03 -07:00
Sam Georges
bf47eb94ed
Str::getRealClass -> class_basename
2014-09-29 13:12:34 +10:00
Sam Georges
37e5894df2
The {% put %}
tag now appends by default, The closing put tag now supports overwrite, eg: {% endput overwrite %}
.
2014-09-06 17:10:52 +10:00
Sam Georges
fcf31b05ae
Added new dump() Twig function
2014-08-30 12:34:03 +10:00
Sam Georges
3193006e2e
Beef up the debug extension
2014-08-30 12:23:12 +10:00
Sam Georges
db2cea630b
* Build 139
2014-08-30 08:56:58 +10:00
Sam Georges
b8bf570289
Add initial version of dump() twig function / debug extension
2014-08-29 21:55:41 +10:00
Sam Georges
56d0c3351b
private -> protected
2014-08-01 14:54:16 +10:00