Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
56775e92
Commit
56775e92
authored
Aug 30, 2018
by
Dominik Hebeler
Browse files
Sponsorenlinks werden nun aus der Datenbank generiert.
parent
2dc1583f
Changes
2
Hide whitespace changes
Inline
Side-by-side
database/migrations/2018_08_30_102121_sponsoren_links.php
0 → 100644
View file @
56775e92
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
SponsorenLinks
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'sponsorenlinks'
,
function
(
Blueprint
$table
)
{
$table
->
increments
(
'id'
)
->
unique
();
$table
->
string
(
'linktext'
);
$table
->
string
(
'link'
);
$table
->
string
(
'langcode'
);
$table
->
timestamp
(
'updated_at'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
drop
(
'sponsorenlinks'
);
}
}
resources/views/index.blade.php
View file @
56775e92
...
...
@@ -25,15 +25,11 @@
<
div
id
=
"sponsors"
>
<
h2
>
{{
trans
(
'index.sponsors.head.2'
)
}}
</
h2
>
<
ul
class
=
"startpage"
>
@
foreach
(
DB
::
table
(
'sponsorenlinks'
)
->
where
(
'langcode'
,
'de'
)
->
orderByRaw
(
'LENGTH(linktext)'
,
'ASC'
)
->
get
()
as
$link
)
<
li
class
=
"sponsor"
>
<
a
href
=
"https://www.semtrix.de/seo-agentur/"
target
=
"_blank"
rel
=
"noopener"
><
p
>@
lang
(
'index.sponsors.woxikon'
)
</
p
>
<
i
class
=
"fa fa-external-link"
></
i
></
a
>
</
li
>
<
li
class
=
"sponsor"
>
<
a
href
=
"https://b-ceed.de/weihnachtsfeiern-ideen/"
target
=
"_blank"
rel
=
"noopener"
><
p
>@
lang
(
'index.sponsors.seo'
)
</
p
>
<
i
class
=
"fa fa-external-link"
></
i
></
a
>
</
li
>
<
li
class
=
"sponsor"
>
<
a
href
=
"https://www.stern.de/vergleich/kredit/"
target
=
"_blank"
rel
=
"noopener"
><
p
>@
lang
(
'index.sponsors.gutscheine'
)
</
p
>
<
i
class
=
"fa fa-external-link"
></
i
></
a
>
<
a
href
=
"{{
$link->link
}}"
target
=
"_blank"
rel
=
"noopener"
><
p
>
{{
$link
->
linktext
}}
</
p
>
<
i
class
=
"fa fa-external-link"
></
i
></
a
>
</
li
>
@
endforeach
</
ul
>
</
div
>
</
div
>
...
...
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