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
68819d4d
Commit
68819d4d
authored
Jun 13, 2016
by
Dominik Hebeler
Browse files
Wikipedia Quicktips geben wieder ihre Quelle an
parent
32c57481
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
68819d4d
...
...
@@ -93,6 +93,7 @@ class MetaGerSearch extends Controller
$quicktip
[
"title"
]
=
$result
[
'displaytitle'
];
$quicktip
[
"URL"
]
=
$result
[
'fullurl'
];
$quicktip
[
"descr"
]
=
strip_tags
(
$result
[
'extract'
]);
$quicktip
[
'gefVon'
]
=
"aus <a href=
\"
https://de.wikipedia.org
\"
target=
\"
_blank
\"
>Wikipedia, der freien Enzyklopädie</a>"
;
$quicktips
[]
=
$quicktip
;
}
...
...
@@ -118,7 +119,6 @@ class MetaGerSearch extends Controller
$mquicktips
[]
=
[
'title'
=>
$ad
[
'title'
],
'descr'
=>
$ad
[
'descr'
],
'URL'
=>
$ad
[
'URL'
]];
}
return
view
(
'quicktip'
)
->
with
(
'spruch'
,
$spruch
)
->
with
(
'mqs'
,
$mquicktips
);
...
...
resources/views/quicktip.blade.php
View file @
68819d4d
...
...
@@ -60,6 +60,9 @@
</b>
<br
/>
<div>
{!! $mq['descr'] !!}
</div>
@if( isset($mq['gefVon']) )
<div
class=
"pull-right"
>
{!! $mq['gefVon'] !!}
</div>
@endif
</div>
@endforeach
...
...
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