Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Korko
SecretSanta.fr
Commits
6293ae99
Commit
6293ae99
authored
Sep 26, 2018
by
Korko
Browse files
Add new block about tool being totally free, please donate
parent
6d9e0658
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
config/paypal.php
0 → 100644
View file @
6293ae99
<?php
return
[
'button_id'
=>
env
(
'PAYPAL_BUTTON_ID'
)
];
public/assets/dearSanta.js
View file @
6293ae99
This diff is collapsed.
Click to expand it.
public/assets/randomForm.js
View file @
6293ae99
This diff is collapsed.
Click to expand it.
resources/assets/sass/randomForm.scss
View file @
6293ae99
...
...
@@ -75,10 +75,10 @@ $footer-height: 120px;
}
.
media-body
p
:
:
first-line
{
}
#how
div
.well
{
div
.well
{
font-style
:
italic
;
}
#how
div
.well
:first-line
{
div
.well
:first-line
{
font-weight
:
bold
;
font-style
:
normal
;
text-transform
:
uppercase
;
...
...
resources/lang/fr/form.php
View file @
6293ae99
...
...
@@ -15,6 +15,11 @@ return [
Le déroulement est simple : chaque participant reçoit, de façon aléatoire, le nom de la personne à qui il devra faire un cadeau.
Le montant du cadeau est généralement fixé au préalable (2€, 5€, 10€...)
Le but n'est pas forcément de faire un beau cadeau mais d'être créatif !"
,
'section.what.notice'
=>
'Pour votre information
secretsanta.fr est entièrement gratuit et sans publicité.
Tout est payé par le développeur lui-même.
Si cet outil vous plait, pensez à faire un don.
:button'
,
'section.how.title'
=>
'Comment faire ?'
,
'section.how.subtitle'
=>
'Vous allez voir, c\'est simple !'
,
...
...
@@ -99,4 +104,6 @@ via SecretSanta.fr',
'submit'
=>
'Lancez l\'aléatoire !'
,
'sending'
=>
'Calcul en cours'
,
'sent'
=>
'Envoyé'
,
'paypal.alt'
=>
'PayPal, le réflexe sécurité pour payer en ligne'
,
];
resources/views/partials/paypalButton.blade.php
0 → 100644
View file @
6293ae99
@
if
(
config
(
'paypal.button_id'
))
<
form
action
=
"https://www.paypal.com/cgi-bin/webscr"
method
=
"post"
target
=
"_top"
>
<
input
type
=
"hidden"
name
=
"cmd"
value
=
"_s-xclick"
>
<
input
type
=
"hidden"
name
=
"hosted_button_id"
value
=
"{{ config('paypal.button_id') }}"
>
<
input
type
=
"image"
src
=
"https://www.paypalobjects.com/fr_FR/FR/i/btn/btn_donate_LG.gif"
border
=
"0"
name
=
"submit"
alt
=
"@lang('form.paypal.alt')"
>
<
img
alt
=
""
border
=
"0"
src
=
"https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif"
width
=
"1"
height
=
"1"
>
</
form
>
@
endif
resources/views/randomForm.blade.php
View file @
6293ae99
...
...
@@ -61,6 +61,7 @@
</
div
>
</
li
>
</
ul
>
<
div
class
=
"well well-lg"
>
{
!!
nl2br
(
trans
(
'form.section.what.notice'
,
[
'button'
=>
str_replace
(
"
\n
"
,
''
,
view
(
'partials.paypalButton'
))]))
!!
}
</
div
>
</
div
>
</
div
>
<!--
/.
container
-->
...
...
Write
Preview
Supports
Markdown
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