Skip to content
Snippets Groups Projects
Commit 56be5836 authored by Karl Hasselbring's avatar Karl Hasselbring
Browse files

Sprueche auf csv version umgestellt

parent a58f8995
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -9,17 +9,19 @@ class Quicktip
public $link;
public $gefVonTitle;
public $gefVonLink;
public $author;
public $descr;
public $details;
# Erstellt ein neues Ergebnis
public function __construct($type, $title, $link, $gefVonTitle, $gefVonLink, $descr, $details)
public function __construct($type, $title, $link, $gefVonTitle, $gefVonLink, $author, $descr, $details)
{
$this->type = $type;
$this->title = $title;
$this->link = $link;
$this->gefVonTitle = $gefVonTitle;
$this->gefVonLink = $gefVonLink;
$this->author = $author;
$this->descr = $descr;
$this->details = $details;
}
......
......@@ -136,6 +136,14 @@ class Quicktips
$gefVonLink = "";
}
$quicktip_xml->registerXPathNamespace('mg', 'http://metager.de/opensearch/quicktips/');
$author = $quicktip_xml->xpath('mg:author');
if (sizeof($author) > 0) {
$author = $author[0]->__toString();
} else {
$author = "";
}
// Description
$descr = $quicktip_xml->content->__toString();
......@@ -160,6 +168,7 @@ class Quicktips
$link,
$gefVonTitle,
$gefVonLink,
$author,
$descr,
$details
);
......
......@@ -117,30 +117,41 @@
color: #404040;
font-style: italic;
align-self: flex-end;
quotes: '„' '”';
&:before {
content: open-quote;
}
&:after {
content: close-quote;
}
}
.author {
color: #404040;
font-style: italic;
float: right;
}
}
}
&[type=duckDuckGo-bang] {
order: 2;
.bang-btn {
width: 100%;
margin-top: 5px;
color: #fff;
background-color: #286992;
font-size: 16px;
&[type=duckDuckGo-bang] {
order: 2;
.bang-btn {
width: 100%;
margin-top: 5px;
color: #fff;
background-color: #286992;
font-size: 16px;
}
}
&[type=wikipedia] {
order: 3;
}
&[type=dictCC] {
order: 4;
}
&[type=tip] {
order: 5;
}
&[type=ad] {
order: 6;
}
}
&[type=wikipedia] {
order: 3;
}
&[type=dictCC] {
order: 4;
}
&[type=tip] {
order: 5;
}
&[type=ad] {
order: 6;
}
}
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -24,6 +24,9 @@
<i class="quicktip-extender fa fa-chevron-down"></i>
</div>
<p class="quicktip-description">{!! $quicktip->descr !!}</p>
@if ($quicktip->author != "")
<span class="author">{{ $quicktip->author }}</span>
@endif
</summary>
@foreach ($quicktip->details as $detail)
<div class="quicktip-detail">
......@@ -62,5 +65,8 @@
@endif
</div>
<p>{!! $quicktip->descr !!}</p>
@if ($quicktip->author != "")
<span class="author">{{ $quicktip->author }}</span>
@endif
</div>
@endif
\ No newline at end of file
@endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment