Commit Graph

1278 Commits

Author SHA1 Message Date
Luke Towers 42f3ecfa19 Merge branch 'wip/halcyon-db-datasource' of https://github.com/octobercms/october into wip/halcyon-db-datasource 2018-12-16 09:44:01 -06:00
Luke Towers 5f78fd4df9 Initial implementation attempt for theme:sync command 2018-12-16 09:43:33 -06:00
Luke Towers 4438ddc47e
Merge pull request #3963 from ayumihamsaki2/master
Sets the Folders in Code Editor to Collapsed by default. Fixes #3962. Credit to @ayumihamsaki2
2018-12-05 21:13:00 -06:00
Ayumi Hamasaki 1e0d045c74 Sets Folders in Code Editor to Collapse by Default
This fixes the github Issue found here: https://github.com/octobercms/october/issues/3962
2018-12-06 00:39:31 +00:00
Farrow 52fe8586e3 Make Inspector element available outside of dragscroll contexts
Credit to @Farrow. Update to the javascript cmsPage onInspectorShowing event handler to make it check whether the event target has a dragScroll attached to it (which it previously assumed it did). This allows the inspector to be used in other locations on the backend which are outside of a dragscroll without causing a javascript error.
2018-12-01 12:36:40 -06:00
Luke Towers a7bbfe2d9d Split out last modified button into it's own partial 2018-11-30 15:33:53 -06:00
Teranode 82a38bdfb6 Add ability to delete asset files (#3933)
Fixes: #3925. Credit to @Teranode
2018-11-28 11:08:39 -06:00
Luke Towers 80b5c41825 Improve compatibility with RainLab.Pages 2018-11-23 14:41:18 -06:00
Luke Towers a4f5e1b96e Finished initial implementation of Commit / Reset buttons 2018-11-23 13:35:51 -06:00
Luke Towers 878bb890b9 Passed the buck to the AutoDatasource to implement pushToSource and removeFromSource, added type hinting to AutoDatasource parameters 2018-11-23 11:28:34 -06:00
Luke Towers 7ebd8b9ffc Implement canCommitTemplate and canResetTemplate checks, added UX for commit / reset buttons (load indicator & success flash messages) 2018-11-23 11:07:36 -06:00
vosco88 2d1a904512 Extend opcache check if it is enabled (#3664)
Credit to @vosco88. 
When trying to deploy October on shared hosting (www.websupport.sk) it is possible to receive the following error when accessing the frontend pages - ErrorException:> Zend OPcache API is restricted by "restrict_api" configuration directive. This checks not only if the opcache_invalidate exists but also if opcache is enabled. Same check is actually present in twig vendor files - but so far it is working without having the check there.
2018-11-23 09:36:24 -06:00
Tschallacka 852ea7d8d8 Added missing use statement (#3041)
Credit to @tschallacka
2018-11-23 00:36:06 -06:00
Luke Towers f730fc85e1 Fix import statement 2018-11-22 16:54:35 -06:00
Luke Towers 7809f9ada5 Added a Theme::databaseLayerEnabled method to make checking for the db layer easier 2018-11-22 13:41:11 -06:00
Luke Towers 0a8450b21c Added base structure of the Commit & Reset buttons, NOTE: Have not actually implemented the logic for them yet, just added the initial shells / UI for them. 2018-11-22 13:34:19 -06:00
Luke Towers 1920d5b4b6 Fix bug where updating records that didn't exist in the DB yet would cause both the original and new records to display 2018-11-22 12:04:41 -06:00
Teranode 9699aacaed CSS fix for component close button in Firefox (#3585)
Fixes #3554. Credit to @Teranode
2018-11-20 10:23:44 -06:00
Luke Towers 38fe4af1e6 Fixed minor oversight in delete() method on AutoDatasource 2018-11-15 15:14:05 -06:00
Luke Towers 45bd2654fc Added Meta CmsObject, fixed bug in AutoDatasource 2018-11-14 16:52:46 -06:00
Luke Towers e622defed1 Initial implementation of insert() and update() on the AutoDatasource 2018-11-06 16:00:27 -06:00
Luke Towers e5518e0976 Update AutoDatasource->getAvailablePaths implementation to match updated interface 2018-11-06 14:48:47 -06:00
Luke Towers 0efae6dc33 AutoDatasource deletions now occur only on first datasource 2018-11-06 14:38:19 -06:00
Luke Towers 4887519e27 AutoDatasource bug fixes and performance improvements
Properly remove deleted paths from results returned by AutoDatasource->select() and utilize the cache exclusively when only selecting the fileName column preventing calls to the source datasources.
2018-11-06 14:22:05 -06:00
Luke Towers 65e0c9d7b6 Add initial support for deleted paths 2018-11-05 16:02:12 -06:00
Luke Towers 32c7891942 Minor changes 2018-11-05 14:35:58 -06:00
Luke Towers e14ded4be6 Initial work on the AutoDatasource 2018-11-02 16:04:35 -06:00
Luke Towers 5dbfa133e7 Config file change and cms_themes_contents table migration 2018-11-01 21:53:16 -06:00
Alwin Drenth 00122108b1 Update Dutch (NL) translation (#3895)
Credit to @adrenth
2018-10-26 09:14:56 -06:00
Christian 5d6354ba88 Fixes from #3880 (#3885)
Fixes #3880. Credit to @Teranode & @gergo85.
2018-10-22 15:30:44 -06:00
Danilo Cuculić 35cb96ef40 Improve linking from ActiveTheme report widget with permissions (#3869)
Fixes #3855. Credit to @Eoler.
2018-10-16 09:11:14 -06:00
Szabó Gergő 9522deff4e Add filters to log pages (#3815)
Credit to @gergo85. Thanks to @petehalverson for octodock to test this with
2018-10-16 09:09:41 -06:00
Szabó Gergő 3ac740d2c3 Add last modified date to Pages, Partials, Layouts and Content (#3865)
Credit to @gergo85. Thanks to @petehalverson for Octodock to test it.
2018-10-16 09:06:43 -06:00
Luke Towers 1dc6f944ac Documented cms.router.beforeRoute 2018-10-11 20:31:36 -06:00
Luke Towers 900220b079 Documented more inline events:
cms.page.beforeDisplay
cms.page.display
cms.page.init
cms.page.beforeRenderPage
cms.page.start
cms.page.end
cms.page.postprocess
cms.page.initComponents
cms.page.render
cms.page.beforeRenderPartial
cms.page.renderPartial
cms.page.beforeRenderContent
cms.page.renderContent
2018-10-11 20:10:28 -06:00
Luke Towers 10aa5a6296 Documented cms.template.processTwigContent 2018-10-11 19:28:17 -06:00
Luke Towers 69d22518c6 Documented internal events
cms.template.save
cms.template.delete
cms.template.processSettingsAfterLoad
cms.template.processSettingsBeforeLoad
2018-10-11 19:19:12 -06:00
Luke Towers 11ad4f6329 Documented cms.theme.getEditTheme & cms.theme.setActiveTheme 2018-10-11 18:53:52 -06:00
Luke Towers 96127f0d91
Check that getProperties method returns an array (#3853)
Fixes #3851.
2018-10-10 08:48:37 -06:00
Szabó Gergő ef32d45cd4 Change the delete buttons style to danger (#3852)
Credit to @gergo85
2018-10-10 08:40:03 -06:00
Samuel Georges a0ec7652f8 Remove stub method
This is a very old stub method included to point out an override is available, in the process it prevents the viewBag property from being populated by the underlying CmsCompoundObject base class, thereby preventing anyone from extending the Layout or Page with custom form fields.
Refs #3769
2018-10-01 10:29:03 +10:00
Alexander Shapoval 709790a05d Added method getLayout() to Controller (#3765)
Credit to @ebashu-on-holidays
2018-09-09 18:55:10 -06:00
Samuel Georges 4ec3b525e0 Fixes event implementation
The array_merge approach will only shallow merge the arrays preventing a second event from contributing form fields properly. Passing by reference is the logical thing to do here.
2018-09-06 17:08:05 +10:00
Szabó Gergő 82b45268c7 Change the lang code in the html templates (#3754)
Credit to @gergo85
2018-09-04 11:54:26 -06:00
Samuel Georges 38cea8d037 Annotate class methods 2018-08-30 13:50:15 +10:00
Nathan van der Werf 8fd16d4db6
Merge branch 'develop' into feature/cleanup
# Conflicts:
#	modules/backend/formwidgets/FileUpload.php
2018-08-24 19:52:54 +02:00
Nathan van der Werf 0f0d108da0
Remove unused imports 2018-08-24 19:51:59 +02:00
Nathan van der Werf 66fa03f17e
Revert "Remove unused imports"
This reverts commit 742a5f415b.
2018-08-24 19:40:40 +02:00
Samuel Georges eb2419cc74 Typo 2018-08-21 13:28:12 +10:00
Samuel Georges 8383466508 Introduce events for extending Theme configuration 2018-08-21 13:18:22 +10:00
Luke Towers 1032fd0cc1 Added more inline API event docs:
Added docs for:
cms.component.beforeRunAjaxHandler
cms.component.runAjaxHandler

Improved docs for:
cms.ajax.beforeRunHandler
2018-08-18 09:05:38 -06:00
Nathan van der Werf 4142c9c9e6 Modify sorting icon from "desc" to "asc" (#3705)
Credit to @nathan-van-der-werf
2018-08-17 15:12:41 -06:00
SeriousKen 5707508dbc Update ThemeLog when file name is changed (#3696)
Credit to @SeriousKen
2018-08-17 10:25:18 -06:00
Maria Vilaró 5c72ad1474 Add translations for Catalan (#3694)
Credit to @mariavilaro.
2018-08-16 08:14:26 -06:00
Nathan van der Werf 0716101bc8 Merge unset statements 2018-08-15 19:26:49 +02:00
Nathan van der Werf 8b6f11e6ac Extract child instructions 2018-08-15 19:25:42 +02:00
Nathan van der Werf fbca3bea92 Remove redundant variables 2018-08-15 19:23:12 +02:00
Nathan van der Werf 2cdbb37a36 Remove duplicate array keys in language files 2018-08-15 19:18:26 +02:00
Nathan van der Werf 62c59a4903 Refactor ternary operators to null coalescing operators 2018-08-15 19:15:13 +02:00
Nathan van der Werf a3d7a028b4 Replace is_null with "=== null" comparison 2018-08-15 18:54:46 +02:00
Nathan van der Werf 77b6f07291 Modify conditions to use elvis operators 2018-08-15 18:53:11 +02:00
Nathan van der Werf bc17975634 Remove alias functions 2018-08-15 18:51:25 +02:00
Nathan van der Werf 123145fd54 Remove unnecessary parentheses 2018-08-15 18:49:52 +02:00
Nathan van der Werf a075be206b Replace class references with "self" 2018-08-15 18:47:06 +02:00
Nathan van der Werf 02bd38cfb1 Merge if constructs 2018-08-15 18:45:37 +02:00
Nathan van der Werf 0947406343 Remove senseless proxy functions 2018-08-15 18:35:15 +02:00
Nathan van der Werf 3a918ad200 Remove "null" assignments 2018-08-15 18:33:24 +02:00
Nathan van der Werf 742a5f415b Remove unused imports 2018-08-15 18:27:36 +02:00
vosco88 7e6800ea6e Added Slovak translations (#3671)
Credit to @vosco88.
2018-08-05 18:16:27 -06:00
Jim Cottrell bfee483805 Adds support for minifying framework assets (#3240)
Fixes #2753. Credit to @jimcottrell
2018-07-05 17:57:17 -04:00
Samuel Georges fb2aa1730c Fixes security issue
Refs #3604
2018-06-22 22:57:38 +10:00
whsol 15cdf6e71f Make code parser data cache key configurable (#3373)
Credit to @whsol
2018-06-05 10:10:35 -06:00
QuangTrọngOnline 3ef571da3c Added Vietnamese translation (#3514)
Credit to @quangtrongonline.
2018-04-24 11:41:01 -06:00
Luke Towers 92e346296e Added cms.ajax.beforeRunHandler event 2018-04-19 10:26:50 -06:00
Luke Towers 4f7a08954d Updating links in composer files 2018-04-16 02:33:08 -06:00
Luke Towers df5b2afc06
Re-add Backend facade 2018-03-24 09:19:30 -06:00
Arthur Kushman c78b3ef786 Code formatting changes (#3363)
Code formatting improvements submitted by @arthurkushman.
2018-03-22 10:55:13 -06:00
Mohamed Ali Behiry e3635b80e7 Added partial Arabic translation (#3296)
Credit to @mabehiry
2018-03-20 13:20:09 -06:00
Miro Rauhala 610452078d Update Finnish translations (#3460)
Credit to @mirorauhala
2018-03-19 15:36:53 -06:00
CaptainTF 7a6f1d3c85 Improved Simplified Chinese (zh-CN) translation (#3447)
Credit to @CaptainTF
2018-03-12 23:26:34 -06:00
interworks-morr 0206a6811f Improve cache reliability (#3421)
Reported and fixed by @interworks-morr: 
"Occasionally with certain IIS setups, the file will contain an out-of-date class name. This patch will verify the class name from the file before returning, and clear the cache if invalid."
2018-03-02 20:00:05 -06:00
Alexander Shapoval 7552464779 Updated Russian Translations (#3414)
Credit to @PopcornPHP
2018-02-25 21:25:12 -06:00
Sajjad Servatjoo 708b1e3a75 Update Persian Language (#3396)
Credit to @sajjad-ser
2018-02-13 10:55:06 -06:00
Matteo 678916854e Add config to enable Twig strict_variables (#3370)
Adds the cms.enableTwigStrictVariables config option to enable strict_variables in Twig for debugging purposes. See https://twig.symfony.com/doc/2.x/api.html#environment-options. Credit to @matteotrubini
2018-01-26 10:59:45 -06:00
Arthur Kushman bbc33710c1 >= PHP7.0 refactoring (#3343)
* Fix loosly comparison to strict + argument types and return types for >=7.0
* Change hard-coded strings to ::class, 
* Fix unit-tests failures - some relative to 7.0 phpunit env deployment
* Fix exception string + format return types
* Change string representation of new classes in traceLog to ::class
Credit to @arthurkushman
2018-01-12 00:23:20 -06:00
viamage 7ffb79a5fd Fix typo (#3326)
Fixed typo, added CmsCompoundObject::getComponentProperties method test. Credit to @viamage
2017-12-27 13:31:34 -06:00
Miro Rauhala d54c3b18e9 Initialize missing variable (#3318)
Fixes #3317. Credit to @mirorauhala
2017-12-21 16:06:56 -06:00
Miro Rauhala 1d3828c36e Bring Finnish language up to date (#3316)
Credit to @mirorauhala
2017-12-21 11:16:01 -06:00
Samuel Georges 9f1fe611e4 File cleaned up as part of review 2017-11-25 21:17:07 +11: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 f850b5d7ca Removes unnecessary blocking head placeholders. Refs: https://github.com/rainlab/pages-plugin/issues/239 2017-11-15 20:26:48 -06:00
Miro Rauhala da295a83df Add Finnish language (#3237)
Credit to @mirorauhala
2017-11-11 18:36:55 -06:00
Samuel Georges e6de2a5521 Fixes exception on empty token 2017-11-02 19:53:20 +11:00
Samuel Georges 4a6e0e1e0e Implement CSRF token by default
Implement CSRF protection on CMS for postback handling
2017-10-30 09:00:17 +11:00
Samuel Georges 9309d826d0 Update zh-tw MM lang 2017-10-15 01:31:04 +11:00
Samuel Georges 4790f8b7a7 Update zh-cn MM lang 2017-10-15 01:29:13 +11:00
Samuel Georges 75d16dab26 Update uk MM lang 2017-10-15 01:27:28 +11:00
Samuel Georges 79b5094aed Update tr MM lang 2017-10-15 01:25:09 +11:00
Samuel Georges 974bbf1303 Update sv MM lang 2017-10-15 01:21:15 +11:00
Samuel Georges a7b6250e74 Update ro MM lang 2017-10-15 01:03:26 +11:00
Samuel Georges c9851ca158 Update pt-pt MM lang 2017-10-15 01:01:00 +11:00
Samuel Georges cc295cc40b Update pt-br MM lang 2017-10-15 00:58:13 +11:00
Samuel Georges 93a3b4e1e7 Update pl MM lang 2017-10-15 00:43:39 +11:00
Samuel Georges 3c27eb4728 Update nl MM lang 2017-10-15 00:41:50 +11:00
Samuel Georges 8262897010 Update nb-no MM lang 2017-10-15 00:37:53 +11:00
Samuel Georges e28c287d08 Update lv MM lang 2017-10-15 00:29:08 +11:00
Samuel Georges 56f4d5972d Update lt MM lang 2017-10-15 00:04:24 +11:00
Samuel Georges 88fa577946 Update kr MM lang 2017-10-15 00:00:01 +11:00
Samuel Georges dd089e4bed Update it MM lang 2017-10-14 23:52:44 +11:00
Samuel Georges aa1766ad12 Update hu MM lang 2017-10-14 23:34:05 +11:00
Samuel Georges 74611f7220 Update fr MM lang 2017-10-14 23:31:27 +11:00
Samuel Georges 476645bafd Update fa MM lang 2017-10-14 23:29:52 +11:00
Samuel Georges 95dd254705 Update et MM lang 2017-10-14 23:25:44 +11:00
Samuel Georges 1eb99b8165 Update es MM lang 2017-10-14 23:14:20 +11:00
Samuel Georges 3aa9d91cf8 Update en MM lang 2017-10-14 23:05:08 +11:00
Samuel Georges 1826b19197 Update el MM lang 2017-10-14 23:02:22 +11:00
Samuel Georges 2593252909 Update de MM lang 2017-10-14 22:38:25 +11:00
Samuel Georges 9d4b86a67a Update da MM lang 2017-10-14 22:35:38 +11:00
Samuel Georges b8ad025968 Update cs MM lang 2017-10-14 22:28:20 +11:00
Samuel Georges d30aa578b4 Update bg MM lang 2017-10-14 22:24:36 +11:00
Samuel Georges 56b8d38bbf Update be MM lang 2017-10-14 22:20:56 +11:00
Luke Towers 4203e65549 Deprecated Cms\Controllers\Media in favour of the backend one. Fixed other references to moved pieces of the Media Manager. Finally a proper fix for https://github.com/octobercms/october/pull/2604 2017-10-08 23:12:04 -06:00
Luke Towers 7830f89fa9 Fixing typos 2017-10-08 12:52:03 -06:00
Luke Towers 7fd81c4c2a Initial work on moving media controller to the backend 2017-09-27 22:40:39 -06:00
Luke Towers 30d4436172 Moved the media icon to the backend instead of the cms 2017-09-27 22:37:11 -06:00
Luke Towers 6bcaeb2d65 Moving media manager references from the CMS service provider to the System service provider 2017-09-27 22:34:32 -06:00
Luke Towers d14f1fec0f Moved MediaFinder formwidget from the CMS module to the System module 2017-09-27 22:30:53 -06:00
Luke Towers c2f204008b Moved the MediaManager widget from the CMS module to the System module 2017-09-27 22:23:58 -06: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
Luke Towers de747f98b3 Deprecate the MediaLibrary & MediaLibraryItem classes in the CMS module 2017-09-27 22:12:45 -06:00
Szabó Gergő fa2c536a53 Hungarian translate for Mail branding (#3115)
and minor corrections
2017-09-15 09:41:48 -06:00
Luke Towers 8a8013e52e Fixes #3081. Resets module dependencies from dev to stable. Refs 081a32c928 2017-09-04 12:40:55 -06:00
Luke Towers 5185ca075b Add the cms.object.listInTheme event (#3076)
Inspired by #3075. Provides a cms.object.listInTheme event to modify the results returned by that method.
2017-09-02 19:51:56 -06:00
Samuel Georges 4074ad8cc9 Laravel 5.5 released 2017-08-31 20:57:00 +10:00
Tschallacka b152663ff5 Attribute values for < and > and '' should be written als &lt; &gt; and &quot;(when enclosed with double quotes for attribute delimters) (#3043) 2017-08-29 10:29:48 -06:00
Szabó Gergő cfd3d54316 Update the Hungarian translation (#3046)
Compatible with October build 420
2017-08-18 08:26:51 -06:00
Sang Min Oh 969eaccf8b korean language support for backend (#3023)
Credit to @everydayparty
2017-08-06 12:36:34 -06:00
Luke Towers 9745b3ba75 Compiled assets 2017-08-05 18:11:40 -06:00
Luke Towers 0b7170ac26 Add support for sorting direction to the MediaManager (#3007)
* Remove redundant returns

`$this->putSession()` in `Backend\Traits\SessionMaker` doesn't return anything, and the return values of these methods are not used; so returning the value of `putSession()` in these methods is redundant.

* Add support for sort direction to MediaLibrary

Adds support for switching the direction that item lists get sorted by the media library. This necessitates the changing of the default direction of Last Modified and Size to Ascending, previously their sorting direction was Descending while Title was sorted in Ascending order. This shouldn't change anything as the user still has the power to sort by either direction. Fully backwards compatible with any calls to `sortItemList`.

* Support sorting direction in the MediaManager widget

Adds further support for specifying a sorting direction to the MediaManager widget itself

* Display sorting direction options

* Improving styles for sorting direction

* Send sorting information to the MediaManager

* Add translations for sorting feature

* Removing strange ghost whitespace
2017-08-05 12:45:01 -06:00
Jan Vince 881edd48de Update Czech translation (#3003)
Credit to @jan-vince, reviewed by @chesio
2017-08-01 07:28:09 -06:00
Luke Towers 3b7a8f3123 Make extension comparisons case insensitive
Make extension comparisons done in `getFileType()` case insensitive to support audio/visual file types being correctly recognized when the file being uploaded has an uppercase extension as is occasionally the case. I.e. `.JPG` is the same as `.jpg`, this just tells October to consider them the same.
2017-07-31 21:03:28 -06:00
Samuel Georges 96d0535d09 Add generic onAjax handler that does nothing 2017-07-29 22:55:58 +10:00
Alexander Shapoval 26ee634ffb Updated Ukrainian and Russian translations (#2988)
* Small changes in Ukrainian and Russian languages
2017-07-28 08:53:40 +10:00
Samuel Georges 9cadea9b19 Code doc improvements 2017-07-27 17:35:14 +10:00
Samuel Georges 5555b98799 Fixes deprecated Twig API
Refs https://github.com/kriswallsmith/assetic/pull/819
2017-07-26 22:16:52 +10:00
Samuel Georges ef191d64e4 l55upgrade -> develop 2017-07-26 21:03:52 +10:00
Samuel Georges 9bb639b19f Merge branch 'l55upgrade' into develop 2017-07-26 20:59:58 +10:00
Samuel Georges 18b9253bcb Change to mail partial syntax 2017-07-26 17:48:00 +10:00
Samuel Georges 5078578a04 Rollback 205f02b44a
This keeps it as generic copypasta
With or without this, an unauthorized page is shown if the user has no permission
2017-07-22 09:46:55 +10:00
Luke Towers 205f02b44a Improve unauthorized redirection trigger case 2017-07-21 14:47:18 -06:00
Luke Towers 151ed057e8 Improve support for #2985
Improves support for editing theme options by enabling the currently active theme's customizations to be saved without a dirname in the URL.
2017-07-21 14:45:51 -06:00
Alwin Drenth c1cd76d60a Update Dutch language files (#2987) 2017-07-21 09:27:27 -06:00
Samuel Georges 7a7a1186d6 Clean up imports 2017-07-21 15:42:49 +10:00
Samuel Georges 161a1fffbb Wording change 2017-07-21 15:40:02 +10:00
Samuel Georges 3f40a6dbaf Refactor solution from #2985 2017-07-21 15:38:53 +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 4fd1ca824f Introduce concept of system roles
These are roles defined by a special API code, once a system role code is detected, the role becomes locked and its permissions are sourced from the AuthManager. All permissions are granted to system roles by default, unless otherwise specified. This should make it easier to create client accounts as "Publishers", hiding developer tools like the CMS and Builder plugins by default.
2017-07-13 19:29:50 +10:00
Samuel Georges 1db67af8e8 Merge remote-tracking branch 'remotes/origin/develop' into l55upgrade
Conflicts:
	modules/system/lang/en/lang.php
2017-07-11 10:48:54 +10:00
Benjamin 89d0d29b69 Added SASS support to Resources component (#2961) 2017-07-10 17:29:11 -06:00
Max Schmitt aeba740243 Add getStatusCode() in Cms\Classes\Controller (#2959)
Related: #2953. Provide a method to access the current statusCode of a CMS controller.
2017-07-08 08:53:08 -06:00
Samuel Georges d1c160f9dc Check both instances to fix #1854
It appears there is no way around this. All directories should be lower case in October, prior to this, October wanted uppercase characters. Make up your mind guy, come on! ;-)
2017-07-01 12:26:55 +10:00
Samuel Georges 87f8f8feb1 Fixes inconsistency in component partial folder names
This is a breaking change that will require further attention - refs #1854

Eg: myComponent, the default component partial would use lower case folders
- /plugins/acme/test/components/mycomponent/default.htm

The theme component partial override would use case sensitive folders
- /themes/foobar/partials/myComponent/default.htm

This is fixed as
- /themes/foobar/partials/mycomponent/default.htm

Minor code fix to ModelBehavior class
2017-06-27 05:34:13 +10:00
Alexander Shapoval e6d79057c6 Translation into Ukrainian has been added. Added translations into Russian (#2931)
* Added Ukrainian language. Credit to @PopcornPHP for the translation.
2017-06-17 15:22:50 -06:00
Samuel Georges a2a7eec4f5 Rename methods in CollapsableWidget
The methods were far too generic. When a trait or behavior is used, it's usually a good include to include the name of the trait in the methods and properties it provides. This reduces the chance of a conflict with the implementing class.
2017-06-10 15:42:24 +10:00
Samuel Georges f020479b91 Move session logic to SessionMaker
This allows controller behaviors to access session utils
2017-06-10 04:58:29 +10:00
Priit Perna eff3f2e905 Backend translation for estonian (#2911)
* Added language files for Estonian (et). Thanks to @priitperna!
2017-06-07 11:07:34 -06:00
Samuel Georges f7d0d394f5 Merge pull request #2881 from gergo85/patch-3
Typo
2017-06-06 20:21:59 +10:00
Samuel Georges bda98e7353 Selectable box and fancy breadcrumb 2017-06-05 17:35:15 +10:00
Samuel Georges 3b56787a2b Use tabs cssClass definition instead of JS 2017-06-05 17:33:37 +10:00
Samuel Georges f672a3cf19 String to ::class 2017-06-03 10:31:24 +10:00
Samuel Georges e2781c5fdf URL -> Url 2017-06-02 23:34:50 +10:00
Samuel Georges 3be6dafa6b Fixes int folder name showing as 0
Fixes #2902
Code dusting
2017-06-02 20:16:26 +10:00
Samuel Georges 08f2e05b67 Download URL -> URL 2017-06-02 17:39:51 +10:00
Samuel Georges 01b11b73d8 Pretty useful trait, discoverable in API docs 2017-05-30 19:56:36 +10:00
Samuel Georges f0df1f458b Merge branch 'develop' into l55upgrade
Conflicts:
	modules/system/assets/ui/storm.css
2017-05-27 22:24:57 +10:00
Samuel Georges 63f1f0ac13 Merge pull request #2894 from gergo85/develop
Add imageWidth and imageHeight parameters
2017-05-27 22:10:48 +10:00
Szabó Gergő 92a5b9ab22 Add imageWidth and imageHeight parameters 2017-05-25 15:30:22 +02:00
Samuel Georges 2cbe849ee7 Style fixes 2017-05-22 20:01:09 +10:00
Samuel Georges 00ddd8e2b4 string -> ::class + docs 2017-05-20 20:01:19 +10:00
Samuel Georges cefa19af7d Backend UI improvements 2017-05-20 20:00:24 +10:00
Szabó Gergő 04e1f6e62e Typo
It is low priority changes. Yesterday I found them too, when I fixed the array index name issue.
2017-05-20 11:54:55 +02:00
Samuel Georges aa393dc54b Backend style improvements
This should make Windows PCs look a little nicer, albeit inconsistent with others (Sergoe UI is unique). If it's good enough for GitHub, then it's good enough for October.
All text shadows have been stripped, along with some box shading. They were barely noticeable and should speed up the UI.
2017-05-20 17:37:58 +10:00
Samuel Georges bab7976331 Merge branch 'develop' into l55upgrade 2017-05-20 09:08:09 +10:00
Szabó Gergő c597563145 Fixed spaces 2017-05-19 11:29:19 +02:00
Samuel Georges 081a32c928 Change versions for testing 2017-05-19 14:13:23 +10:00
Samuel Georges 4d1bec860d thumbnailDirectory -> thumbFolder 2017-05-16 08:47:15 +10:00
Samuel Georges d9cf7381dc Implement helper method for checking ignored path
Refs #2858
2017-05-16 07:38:38 +10:00
Samuel Georges 2a0a91486c Logic error - fixes #2654 2017-05-16 07:24:07 +10:00
Samuel Georges 5ca3c3fa35 Merge pull request #2859 from TimFoerster/patch-2
Allows 0 and ‘0’ values as default values for theme settings
2017-05-15 20:31:59 +10:00
Samuel Georges f05f4c21cf Merge pull request #2858 from TimFoerster/patch-1
Filter layout by ignored file names
2017-05-15 20:29:53 +10:00
Luke Towers a5b081b74b Make the MediaManager messages more generic 2017-05-15 00:16:28 -06:00
Luke Towers 21d4f683c3 Support custom thumbnail directory
This enables support for edge cases that require custom thumbnail directories (such as requiring authentication to view generated thumbnails).
2017-05-14 22:41:31 -06:00
Luke Towers 7a820f3c43 Remove reference to hardcoded media path
Replaces the reference to a hardcoded `/media` path when generating a local temp file path to utilize the folder name as set in `cms.storage.media.folder`.
2017-05-14 22:28:08 -06:00
Luke Towers 0f04afbea4 Recompile mediamanager assets to include the fix 2017-05-14 19:34:50 -06:00
Luke Towers 84ee4f2679 Fix for #2765
Actual changes are in `MediaManager.prototype.deleteConfirmation`, apologies for the trailing whitespace removals, my editor auto does that and I didn't feel like removing it since there shouldn't really be trailing whitespace anyways.

Fixes #2675 (and probably other potential oopsies) by skipping over the "return to parent" item in the deletion handling method. The "return to parent" item contains a reference to the folder above the current folder, which could potentially cause the entire media folder to be deleted; and would certainly remove a lot more than actually intended.
2017-05-14 19:32:57 -06:00
Samuel Georges 453e48924e Apply web middleware group for the good cookies 2017-05-13 22:18:13 +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 59d1e7736c Bump min version to PHP 7
Restore tinker command
2017-05-13 09:04:22 +10:00
Samuel Georges 5ea79489af pluck -> value
This is an odd one from Laravel, pluck is now value and lists is now pluck. We'll need a release note about this one.
2017-05-12 07:19:06 +10:00