Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
7454e6d6
Commit
7454e6d6
authored
Nov 20, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to conform to the new pingpong/Modules package
parent
28790d59
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
ThumbnailsManager.php
Image/ThumbnailsManager.php
+3
-5
grid.blade.php
Resources/views/admin/grid.blade.php
+2
-2
index.blade.php
Resources/views/admin/index.blade.php
+3
-3
No files found.
Image/ThumbnailsManager.php
View file @
7454e6d6
<?php
namespace
Modules\Media\Image
;
use
Illuminate\Contracts\Config\Repository
;
use
Pingpong\Modules\Repository
as
Module
;
class
ThumbnailsManager
{
...
...
@@ -16,11 +15,10 @@ class ThumbnailsManager
/**
* @param Repository $config
* @param Module $module
*/
public
function
__construct
(
Repository
$config
,
Module
$module
)
public
function
__construct
(
Repository
$config
)
{
$this
->
module
=
$module
;
$this
->
module
=
app
(
'modules'
)
;
$this
->
config
=
$config
;
}
...
...
@@ -32,7 +30,7 @@ class ThumbnailsManager
{
$thumbnails
=
[];
foreach
(
$this
->
module
->
enabled
()
as
$enabledModule
)
{
$configuration
=
$this
->
config
->
get
(
strtolower
(
$enabledModule
)
.
'::thumbnails'
);
$configuration
=
$this
->
config
->
get
(
strtolower
(
$enabledModule
->
getName
()
)
.
'::thumbnails'
);
$thumbnails
=
array_merge
(
$thumbnails
,
$configuration
);
}
...
...
Resources/views/admin/grid.blade.php
View file @
7454e6d6
...
...
@@ -3,8 +3,8 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
{{ trans('media::media.file picker') }}
</title>
<link
href=
"{!! Module::asset('core
', '
css/vendor/bootstrap.min.css') !!}"
rel=
"stylesheet"
type=
"text/css"
/>
<script
src=
"{!! Module::asset('core
', '
js/vendor/jquery.min.js') !!}"
></script>
<link
href=
"{!! Module::asset('core
:
css/vendor/bootstrap.min.css') !!}"
rel=
"stylesheet"
type=
"text/css"
/>
<script
src=
"{!! Module::asset('core
:
js/vendor/jquery.min.js') !!}"
></script>
<style>
</style>
</head>
...
...
Resources/views/admin/index.blade.php
View file @
7454e6d6
...
...
@@ -11,7 +11,7 @@
@stop
@section('styles')
<link
href=
"{!! Module::asset('media
', '
css/dropzone.css') !!}"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"{!! Module::asset('media
:
css/dropzone.css') !!}"
rel=
"stylesheet"
type=
"text/css"
/>
<style>
.dropzone
{
border
:
1px
dashed
#CCC
;
...
...
@@ -109,7 +109,7 @@
@stop
@section('scripts')
<script
src=
"{!! Module::asset('media
', '
js/dropzone.js') !!}"
></script>
<script
src=
"{!! Module::asset('media
:
js/dropzone.js') !!}"
></script>
<script>
$
(
document
).
ready
(
function
()
{
Dropzone
.
autoDiscover
=
false
;
...
...
@@ -147,7 +147,7 @@ $( document ).ready(function() {
"
bInfo
"
:
true
,
"
bAutoWidth
"
:
true
,
"
oLanguage
"
:
{
"
sUrl
"
:
'
<?php
echo
Module
::
asset
(
'core'
,
"
js/vendor/datatables/
{
$locale
}
.json"
)
?>
'
"
sUrl
"
:
'
<?php
echo
Module
::
asset
(
"core:
js/vendor/datatables/
{
$locale
}
.json"
)
?>
'
},
"
aoColumns
"
:
[
null
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment