Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PluginMarket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stud.IP
Plugins
PluginMarket
Commits
fa84a69d
Commit
fa84a69d
authored
10 years ago
by
Rasmus Fuhse
Browse files
Options
Downloads
Patches
Plain Diff
small changes
parent
22380d8c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/pluginmarket.css
+8
-0
8 additions, 0 deletions
assets/pluginmarket.css
views/myplugins/_edit_images.php
+1
-1
1 addition, 1 deletion
views/myplugins/_edit_images.php
views/presenting/details.php
+34
-3
34 additions, 3 deletions
views/presenting/details.php
with
43 additions
and
4 deletions
assets/pluginmarket.css
+
8
−
0
View file @
fa84a69d
#pluginmarket_galery_view
{
max-height
:
500px
;
overflow
:
auto
;
}
.pluginmarket_galery
{
.pluginmarket_galery
{
list-style-type
:
none
;
list-style-type
:
none
;
display
:
flex
;
display
:
flex
;
...
@@ -11,6 +15,10 @@
...
@@ -11,6 +15,10 @@
border
:
5px
solid
#eeeeee
;
border
:
5px
solid
#eeeeee
;
margin
:
5px
;
margin
:
5px
;
}
}
.pluginmarket_galery
>
.image
img
{
display
:
block
;
max-height
:
180px
;
}
.pluginmarket_galery
>
.image
input
[
type
=
checkbox
]
{
.pluginmarket_galery
>
.image
input
[
type
=
checkbox
]
{
display
:
none
;
display
:
none
;
}
}
...
...
This diff is collapsed.
Click to expand it.
views/myplugins/_edit_images.php
+
1
−
1
View file @
fa84a69d
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<img
src=
"
<?=
htmlReady
(
$image
->
getURL
())
?>
"
style=
"max-height: 150px;"
>
<img
src=
"
<?=
htmlReady
(
$image
->
getURL
())
?>
"
style=
"max-height: 150px;"
>
<input
type=
"hidden"
name=
"image_order[]"
value=
"
<?=
htmlReady
(
$image
->
getId
())
?>
"
>
<input
type=
"hidden"
name=
"image_order[]"
value=
"
<?=
htmlReady
(
$image
->
getId
())
?>
"
>
<label
for=
"delete_image_
<?=
htmlReady
(
$image
->
getId
())
?>
"
>
<label
for=
"delete_image_
<?=
htmlReady
(
$image
->
getId
())
?>
"
>
<?=
Assets
::
img
(
"icons/20/blue/
delete"
)
?>
<?=
Assets
::
img
(
"icons/20/blue/
trash"
,
array
(
'style'
=>
"cursor: pointer;"
)
)
?>
</label>
</label>
</div>
</div>
</li>
</li>
...
...
This diff is collapsed.
Click to expand it.
views/presenting/details.php
+
34
−
3
View file @
fa84a69d
...
@@ -19,18 +19,33 @@ if ($icon) {
...
@@ -19,18 +19,33 @@ if ($icon) {
<?=
formatReady
(
$marketplugin
[
'description'
])
?>
<?=
formatReady
(
$marketplugin
[
'description'
])
?>
</div>
</div>
<?
if
(
count
(
$marketplugin
->
images
)
>
0
||
$marketplugin
->
isWritable
())
:
?>
<h2>
<?=
_
(
"Galerie"
)
?>
</h2>
<h2>
<?=
_
(
"Galerie"
)
?>
</h2>
<ol
id=
"pluginmarket_galery_view"
class=
"pluginmarket_galery"
>
<ol
id=
"pluginmarket_galery_view"
class=
"pluginmarket_galery"
>
<?
foreach
(
$marketplugin
->
images
as
$image
)
:
?>
<?
foreach
(
$marketplugin
->
images
as
$image
)
:
?>
<div
class=
"image"
>
<div
class=
"image"
>
<img
src=
"
<?=
htmlReady
(
$image
->
getURL
())
?>
"
style=
"max-height: 180px;"
>
<img
src=
"
<?=
htmlReady
(
$image
->
getURL
())
?>
"
>
</div>
</div>
<?
endforeach
?>
<?
endforeach
?>
<?
if
(
$marketplugin
->
isWritable
())
:
?>
<?
if
(
$marketplugin
->
isWritable
())
:
?>
<div><a
href=
"
<?=
PluginEngine
::
getLink
(
$plugin
,
array
(),
"myplugins/edit_images/"
.
$marketplugin
->
getId
())
?>
"
data-dialog
>
<?=
Assets
::
img
(
"icons/20/blue/add"
)
?>
</a></div>
<div><a
href=
"
<?=
PluginEngine
::
getLink
(
$plugin
,
array
(),
"myplugins/edit_images/"
.
$marketplugin
->
getId
())
?>
"
data-dialog
title=
"
<?=
_
(
"Galerie bearbeiten / neue Bilder hinzufgen"
)
?>
"
>
<?=
Assets
::
img
(
"icons/20/blue/add"
)
?>
</a></div>
<?
endif
?>
<?
endif
?>
</ol>
</ol>
<?
endif
?>
<h2>
<?=
_
(
"Zum Autor"
)
?>
</h2>
<ul
class=
"clean"
>
<li>
<?
$author
=
User
::
find
(
$marketplugin
[
'user_id'
])
?>
<div>
<a
href=
"
<?=
URLHelper
::
getLink
(
"dispatch.php/profile"
,
array
(
'username'
=>
$author
[
'username'
]))
?>
"
style=
"text-align: center; display: inline-block; vertical-align: top;"
>
<?=
Avatar
::
getAvatar
(
$marketplugin
[
'user_id'
])
->
getImageTag
(
Avatar
::
MEDIUM
,
array
(
'style'
=>
"display: block;"
))
?>
<?=
htmlReady
(
$author
->
getFullName
())
?>
</a>
</div>
</li>
</ul>
<h2>
<?=
_
(
"Releases"
)
?>
</h2>
<h2>
<?=
_
(
"Releases"
)
?>
</h2>
<table
class=
"default"
>
<table
class=
"default"
>
...
@@ -78,9 +93,10 @@ if ($icon) {
...
@@ -78,9 +93,10 @@ if ($icon) {
$author
=
User
::
find
(
$marketplugin
[
'user_id'
]);
$author
=
User
::
find
(
$marketplugin
[
'user_id'
]);
$flattr_username
=
$author
[
'datafields'
]
->
findBy
(
"name"
,
"Flattr"
)
->
val
(
"content"
);
$flattr_username
=
$author
[
'datafields'
]
->
findBy
(
"name"
,
"Flattr"
)
->
val
(
"content"
);
$bitcoin_datafield
=
$author
[
'datafields'
]
->
findBy
(
"name"
,
"Bitcoin-Wallet"
)
->
val
(
"content"
);
$bitcoin_datafield
=
$author
[
'datafields'
]
->
findBy
(
"name"
,
"Bitcoin-Wallet"
)
->
val
(
"content"
);
$paypal_datafield
=
$author
[
'datafields'
]
->
findBy
(
"name"
,
"Paypal-Account (Email)"
)
->
val
(
"content"
);
?>
?>
<?
if
(
$flattr_username
||
$bitcoin_wallet
)
:
?>
<?
if
(
$flattr_username
||
$bitcoin_wallet
||
$paypal_datafield
)
:
?>
<h2>
<?=
_
(
"Spenden"
)
?>
</h2>
<h2>
<?=
_
(
"Spenden"
)
?>
</h2>
<p
class=
"info"
>
<p
class=
"info"
>
<?=
_
(
"Der Download ist kostenlos, aber man kann dem Autor mit einer Spende danken und zuknftige Entwicklungen anregen."
)
?>
<?=
_
(
"Der Download ist kostenlos, aber man kann dem Autor mit einer Spende danken und zuknftige Entwicklungen anregen."
)
?>
...
@@ -109,6 +125,21 @@ $bitcoin_datafield = $author['datafields']->findBy("name", "Bitcoin-Wallet")->va
...
@@ -109,6 +125,21 @@ $bitcoin_datafield = $author['datafields']->findBy("name", "Bitcoin-Wallet")->va
});
});
</script>
</script>
<?
endif
?>
<?
endif
?>
<?
if
(
$paypal_datafield
)
:
?>
<form
action=
"https://www.paypal.com/cgi-bin/webscr"
method=
"post"
target=
"_top"
style=
"display: inline-block;"
>
<div><strong><img
src=
"http://pics.ebaystatic.com/aw/pics/logos/logoPayPal_51x14.gif"
></strong></div>
<input
type=
"hidden"
name=
"cmd"
value=
"_donations"
>
<input
type=
"hidden"
name=
"business"
value=
"
<?=
htmlReady
(
$paypal_datafield
)
?>
"
>
<input
type=
"hidden"
name=
"lc"
value=
"DE"
>
<input
type=
"hidden"
name=
"no_note"
value=
"0"
>
<input
type=
"hidden"
name=
"currency_code"
value=
"USD"
>
<input
type=
"hidden"
name=
"bn"
value=
"PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest"
>
<input
type=
"image"
src=
"https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donateCC_LG.gif"
border=
"0"
name=
"submit"
alt=
"Jetzt einfach, schnell und sicher online bezahlen mit PayPal."
>
<img
alt=
""
border=
"0"
src=
"https://www.paypalobjects.com/en_US/i/scr/pixel.gif"
width=
"1"
height=
"1"
>
</form>
<?
endif
?>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment