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
55cfa0ff
Commit
55cfa0ff
authored
Mar 05, 2018
by
Karl Hasselbring
Browse files
Twitter-Icon wird jetzt im Ausgabeteil (der blade.php) eingeblendet
parent
15754e5b
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Models/Result.php
View file @
55cfa0ff
...
...
@@ -33,9 +33,6 @@ class Result
{
$provider
=
simplexml_load_string
(
$provider
);
$this
->
titel
=
strip_tags
(
trim
(
$titel
));
if
(
stripos
(
$anzeigeLink
,
"twitter.com"
)){
$this
->
titel
=
'<i class="fa fa-twitter" aria-hidden="true"></i> '
.
$this
->
titel
;
}
$this
->
link
=
trim
(
$link
);
$this
->
anzeigeLink
=
trim
(
$anzeigeLink
);
$this
->
descr
=
strip_tags
(
trim
(
$descr
),
'<p>'
);
...
...
@@ -227,7 +224,10 @@ class Result
# Persönliche URL Blacklist
foreach
(
$metager
->
getUserUrlBlacklist
()
as
$word
)
{
if
(
strpos
(
strtolower
(
$this
->
link
),
$word
))
return
false
;
if
(
strpos
(
strtolower
(
$this
->
link
),
$word
))
{
return
false
;
}
}
# Allgemeine URL und Domain Blacklist
...
...
resources/views/layouts/result.blade.php
View file @
55cfa0ff
...
...
@@ -5,6 +5,9 @@
<div
class=
"resultInformation col-xs-12 col-sm-11"
>
<div
class=
"col-xs-10 col-sm-11"
style=
"padding:0; "
>
<p
class=
"title"
>
@if(stripos($result->anzeigeLink, "twitter.com"))
<i
class=
"fa fa-twitter"
aria-hidden=
"true"
></i>
@endif
<a
class=
"title"
href=
"{{ $result->link }}"
target=
"{{ $metager->getNewtab() }}"
data-hoster=
"{{ strip_tags($result->gefVon) }}"
data-count=
"{{ $result->number }}"
rel=
"noopener"
>
{!! $result->titel !!}
</a>
...
...
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