Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
b09f953f
Commit
b09f953f
authored
7 years ago
by
Aria Givi
Browse files
Options
Downloads
Patches
Plain Diff
Werbung hinzugefuegt
parent
aab26b2b
No related branches found
Branches containing commit
No related tags found
1 merge request
!1365
Resolve "Filter Options for MetaGer"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/views/layouts/atom10-ad.blade.php
+8
-0
8 additions, 0 deletions
resources/views/layouts/atom10-ad.blade.php
resources/views/metager3resultsatom10.blade.php
+19
-2
19 additions, 2 deletions
resources/views/metager3resultsatom10.blade.php
with
27 additions
and
2 deletions
resources/views/layouts/atom10-ad.blade.php
0 → 100644
+
8
−
0
View file @
b09f953f
@
if
(
isset
(
$ad
)
&&
!
$apiAuthorized
)
<
ad
:
advertisement
>
<
ad
:
callOut
atom
:
type
=
"TEXT"
>
{
!!
trans
(
'ad.von'
)
!!
}
{
!!
$ad
->
gefVon
!!
}
</
ad
:
callOut
>
<
ad
:
title
atom
:
type
=
"TEXT"
>
{{
$ad
->
titel
}}
</
ad
:
title
>
<
ad
:
displayUrl
atom
:
type
=
"TEXT"
>
{{
$ad
->
anzeigeLink
}}
</
ad
:
displayUrl
>
<
atom
:
link
href
=
"{{
$ad->link
}}"
/>
</
ad
:
advertisement
>
@
endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/views/metager3resultsatom10.blade.php
+
19
−
2
View file @
b09f953f
<?
xmlversion
=
"1.0"
encoding
=
"UTF-8"
?>
<?
xmlversion
=
"1.0"
encoding
=
"UTF-8"
?>
<feed
xmlns=
"http://www.w3.org/2005/Atom"
<feed
xmlns=
"http://www.w3.org/2005/Atom"
xmlns:opensearch=
"http://a9.com/-/spec/opensearch/1.1/"
xmlns:opensearch=
"http://a9.com/-/spec/opensearch/1.1/"
xmlns:mg=
"http://metager.de/opensearch/"
>
xmlns:mg=
"http://metager.de/opensearch/"
xmlns:advertisement=
"http://a9.com/-/opensearch/extensions/advertisement/1.0/"
>
<title>
{!! htmlspecialchars($eingabe, ENT_XML1, 'UTF-8'); !!} - MetaGer
</title>
<title>
{!! htmlspecialchars($eingabe, ENT_XML1, 'UTF-8'); !!} - MetaGer
</title>
<link
href=
"{{ url()->full() }}"
/>
<link
href=
"{{ url()->full() }}"
/>
<updated>
{{ date('c') }}
</updated>
<updated>
{{ date('c') }}
</updated>
<opensearch:totalResults>
{{ $resultcount }}
</opensearch:totalResults>
<opensearch:totalResults>
{{ $resultcount }}
</opensearch:totalResults>
<opensearch:Query
role=
"request"
searchTerms=
"{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"
/>
<opensearch:Query
role=
"request"
searchTerms=
"{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"
/>
<link
rel=
"next"
href=
"{{htmlspecialchars($metager->nextSearchLink() ,ENT_QUOTES)}}"
type=
"application/atom+xml"
/>
<link
rel=
"next"
href=
"{{
htmlspecialchars($metager->nextSearchLink() ,ENT_QUOTES)
}}"
type=
"application/atom+xml"
/>
<id>
urn:uuid:1d634a8c-2764-424f-b082-6c96494b7240
</id>
<id>
urn:uuid:1d634a8c-2764-424f-b082-6c96494b7240
</id>
@include('layouts.atom10-ad', ['ad' => $metager->popAd()])
@foreach($metager->getResults() as $result)
@foreach($metager->getResults() as $result)
@if($result->number % 7 === 0)
<ad:advertisement>
<ad:callOut
atom:type=
"TEXT"
>
[Ad]
</ad:callOut>
<ad:title
atom:type=
"TEXT"
>
20% Off Coffee
</ad:title>
<ad:subTitle
atom:type=
"TEXT"
>
Walk in and show us this ad on your phone
</ad:subTitle>
<ad:displayUrl
atom:type=
"TEXT"
>
example.com/coffee
</ad:displayUrl>
<ad:image
ad:id=
"cprp20"
ad:width=
"170"
ad:height=
"30"
>
<ad:link
href=
"http://example.com/ads/20_off_coffee.jpg"
/>
<ad:altText
atom:type=
"TEXT"
>
Click for Cafes Near You
</ad:altText>
</ad:image>
<atom:link
href=
"http://example.com/coffee/"
/>
<ad:id>
1234567890
</ad:id>
</ad:advertisement>
@endif
<entry>
<entry>
<title>
{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}
</title>
<title>
{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}
</title>
<link
href=
"{!! htmlspecialchars($result->link, ENT_XML1, 'UTF-8'); !!}"
/>
<link
href=
"{!! htmlspecialchars($result->link, ENT_XML1, 'UTF-8'); !!}"
/>
...
@@ -19,6 +35,7 @@
...
@@ -19,6 +35,7 @@
</content>
</content>
</entry>
</entry>
@endforeach
@endforeach
</feed>
</feed>
<!-- Muster zu finden unter http://www.opensearch.org/Specifications/OpenSearch/1.1#Example_of_OpenSearch_response_elements_in_RSS_2.0 -->
<!-- Muster zu finden unter http://www.opensearch.org/Specifications/OpenSearch/1.1#Example_of_OpenSearch_response_elements_in_RSS_2.0 -->
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment