sterntours/trunk/app/Resources/views/default/components/sidebar.html.twig
uli 6bb5c271c6 * Navigation in Sidebar
* Seitenbaum: Jugendreisen und Reisemagazin mit einbeziehen; Ursprüngliche Sortierung berücksichtigen
* Neue Datenbank-Spalten für automatisch generierte Seitenübersichtsboxen und Datenbank
* Unterstützung statisch festgelegter URLs (page.real_url_path) - wird aus SEO-technischen Gründen benötigt, um vorerst die alten URLs zu behalten
* Redirect-Tabelle: Hier können alte URLs mit page-Einträge verknüpft werden. Bei Aufruf so einer URL wird auf die URL der verknüpften page umgeleitet

SQL:

UPDATE page SET template = 'overview' WHERE slug IN ('iran-reisen', 'marokko-urlaub');
UPDATE page SET `order` = 0 WHERE slug = 'aegypten-reisen';
UPDATE page SET `order` = 1 WHERE slug = 'israel-reisen';
UPDATE page SET `order` = 2 WHERE slug = 'jordanien-reisen';
UPDATE page SET `order` = 3 WHERE slug = 'iran-reisen';
UPDATE page SET `order` = 4 WHERE slug = 'marokko-urlaub';
UPDATE page SET `order` = 5 WHERE slug = 'oman-reisen';
UPDATE page SET `order` = 6 WHERE slug = 'tuerkei-urlaub';

UPDATE page SET template = 'overview' WHERE
  (slug IN ('jugendreisen', 'reisemagazin') AND lvl = 0) OR
  (catalog_id IN (6, 14) AND owner = 0);

-- Request URL /create-tree in browser to re-create the page tree

ALTER TABLE page ADD COLUMN real_url_path VARCHAR(200) DEFAULT NULL;
CREATE UNIQUE INDEX UNIQ_140AB620E2652A2A ON page (real_url_path);
UPDATE page p INNER JOIN catalog c ON c.id = p.catalog_id SET p.real_url_path = CONCAT('/', c.slug, '/', p.slug, '.html');

ALTER TABLE page ADD COLUMN box_body TEXT DEFAULT NULL;
ALTER TABLE page ADD COLUMN box_image_url VARCHAR(200) DEFAULT NULL;
ALTER TABLE page ADD COLUMN box_star VARCHAR(255) DEFAULT NULL;
ALTER TABLE page ADD COLUMN box_discount VARCHAR(255) DEFAULT NULL;
ALTER TABLE page ADD COLUMN content_new TEXT DEFAULT NULL AFTER content;

ALTER TABLE page DROP COLUMN preview_image_url;

CREATE TABLE redirect (id INT AUTO_INCREMENT NOT NULL, page_id INT DEFAULT NULL, source_url_path VARCHAR(200) NOT NULL, UNIQUE INDEX UNIQ_C30C9E2B56207465 (source_url_path), INDEX IDX_C30C9E2BC4663E4 (page_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
ALTER TABLE redirect ADD CONSTRAINT FK_C30C9E2BC4663E4 FOREIGN KEY (page_id) REFERENCES page (id);
ALTER TABLE redirect MODIFY COLUMN page_id INT NOT NULL;



git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3293 f459cee4-fb09-11de-96c3-f9c5f16c3c76
2017-02-15 15:36:15 +00:00

116 lines
No EOL
10 KiB
Twig

<div id="sidebar" class="col-md-3 col-sm-4 col-xs-12 hidden-xs">
{% if show_nav_sidebar_widget ?? true and page is defined %} {# TODO #}
{% if nav_sidebar_widget_block is empty %}
{{ render(controller('AppBundle:Default:navSidebarWidget', {page: page})) }}
{% else %}
{{ nav_sidebar_widget_block|raw }}
{% endif %}
{% endif %}
<div class="widget clearfix">
<div class="widget-title">
TOP bewertet
</div><!-- end title -->
<div class="boxwidget">
<a href="http://www.netzsieger.de/e/stern-tours" target="_blank">
{% image '@AppBundle/Resources/public/images/siegel_sehr_gut_SternTours.jpg' %}<img src="{{ asset_url }}" alt="Netzsieger.de bewertet STERN TOURS">{% endimage %}
</a>
</div><!-- end boxwidget -->
<div class="boxwidget">
<div id="auorg-bg" style="margin: 0px; border: 0px; padding: 0px; position: relative; width: 100%; min-width: 150px; height: 259px;"><div itemscope="itemscope" itemtype="http://schema.org/LocalBusiness" id="auorg" style="width:150px;height:259px;;position:absolute;text-transform: initial;background-size: 150px; left:50%;margin-left:-75px;padding:0;border:0;text-align:left;background-image:url(/bundles/app/images/bg-embedlng-m.png);background-repeat:no-repeat;-moz-hyphens:auto;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;word-wrap:break-word;"> <meta itemprop="name" content="STERN TOURS GmbH"><meta itemprop="url" content="http://www.stern-tours.de"> <div style="width:150px;height:27px ! important;margin:0;padding:0;border:0;"><a href="https://www.ausgezeichnet.org" target="_blank" rel="nofollow" title="Unabhängige Bewertungen, Kundenbewertungen und Gütesiegel von Ausgezeichnet.org" style="padding:0;margin:0;border:0;line-height:0px ! important;text-decoration:none ! important;color:#000 ! important;background-color:transparent ! important;"> {% image '@AppBundle/Resources/public/images/logo-embed-m.png' %}<img src="{{ asset_url }}" width="150px" height="27px" style="padding:0;margin:0;border:0;display:inline;" title="Unabhängige Bewertungen, Kundenbewertungen und Gütesiegel von Ausgezeichnet.org" alt="Ausgezeichnet.org">{% endimage %} </a></div><div itemprop="aggregateRating" itemscope="itemscope" itemtype="http://schema.org/AggregateRating" style="width:139px;height:106px;margin:0 0 0 11px;border:0;padding:0 0 2px 0;text-align:center ! important;line-height:0px ! important;"> <meta itemprop="worstRating" content="1"><meta itemprop="bestRating" content="5"> <meta itemprop="ratingCount" content="41"> <a href="https://www.ausgezeichnet.org/bewertungen-stern-tours.de-5H50SB" target="_blank" class="auorg" style="border:0;margin:0;padding:0 0 0 6px;text-align:center ! important;text-decoration:none ! important;color:#000 ! important;background-color:transparent ! important;"> <img src="/bundles/app/images/rating-5-cent-m.png" style="width:100px;height:32px;margin:26px 0 0 0;padding:0;border:0;display:inline;" alt="sehr gut"> <br><span style="padding:0;font-family:Arial ! important;font-weight:normal ! important;font-size:13px ! important;line-height:18px ! important;color:#000 ! important;background-color:transparent ! important;"><span itemprop="ratingValue" style="padding:0;font-family:Arial ! important;font-weight:bold ! important;font-size:13px ! important;line-height:20px ! important;color:#000 ! important;background-color:transparent ! important;">5.00</span>/5.00</span> <br><span style="font-family:Arial ! important;font-weight:normal ! important;font-size:9px ! important;line-height:9px ! important;color:#000 ! important;background-color:transparent ! important;">41 Bewertungen</span> </a></div><div style="width:115px;height:126px;margin:4px 11px 15px 24px;line-height:0px ! important;"><div style="padding-left:30px;line-height:0px ! important;"><a href="https://www.ausgezeichnet.org/bewertungen-stern-tours.de-5H50SB" target="_blank" class="auorg" style="padding:0;margin:0;border:0;text-decoration:none ! important;color:#000 ! important;background-color:transparent ! important;"><span style="font-family:Arial ! important;font-weight:normal ! important;font-size:10px ! important;line-height:10px ! important;color:#000 ! important;background-color:transparent ! important;"><span style="font-family:Arial ! important;font-weight:normal ! important;font-size:10px ! important;line-height:11px ! important;color:#000 ! important;background-color:transparent ! important;width:80px;height:11px;overflow:hidden;display:block;white-space:nowrap;">Anja See...</span><span style="font-family:Arial ! important;font-weight:normal ! important;font-size:10px ! important;line-height:10px ! important;color:#000 ! important;background-color:transparent ! important;"><br>09.08.2016</span><span style="font-family:Arial ! important;font-weight:normal ! important;font-size:10px ! important;line-height:11px ! important;color:#ee5424 ! important;background-color:transparent ! important;padding-left:5px;">mehr</span></span></a></div><div style="border:0;margin-top:4px;width:115px;height:85px;line-height:11px ! important;overflow:hidden;"><a href="https://www.ausgezeichnet.org/bewertungen-stern-tours.de-5H50SB" target="_blank" class="auorg" style="padding:0;margin:0;border:0;text-decoration:none ! important;color:#000 ! important;background-color:transparent ! important;"><span style="font-family:Arial ! important;font-weight:normal ! important;font-size:10px ! important;line-height:13px ! important;color:#000 ! important;background-color:transparent ! important;"><span style="font-family:Arial ! important;font-size:10px ! important;line-height:13px ! important;color:#000 ! important;background-color:transparent ! important;font-weight:bold ! important;">Sehr nett,sehr...</span><br>Ich bin restlos zufrieden.Von einem Tag auf den anderen.<br>Stern Tours hat es ...</span></a></div></div></div></div>
<!-- Ausgezeichnet.org-Siegel: Ende -->
</div><!-- end boxwidget -->
</div><!-- end widget -->
<div class="widget clearfix">
<div class="widget-title">
Video
</div><!-- end title -->
<div class="travel-wrapper">
<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
<div class="item text-center">
<div class="embed-responsive embed-responsive-16by9">
<meta itemprop="embedURL" content="http://www.youtube.com/watch?v=XzgjEBOlC8I">
<meta itemprop="thumbnailUrl" content="http://exampel.com/Party_Thumbnail.png">
<meta content="Lorem ipsum dolor sit amet, consectetuer adipiscing elit.">
<meta itemprop="uploadDate" content="2013-10-01T08:00:00+08:00">
<meta itemprop="duration" content="T3M35S">
<iframe class="embed-responsive-item" width="560" height="315" src="http://www.youtube.com/embed/XzgjEBOlC8I" frameborder="0" allowfullscreen></iframe>
</div>
<div class="box_mid">
<div class="hl5" itemprop="name">Unser Video des Tages</div>
<p itemprop="description">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</div>
</div>
</div>
</div><!-- end travel-wrapper -->
<div class="item-switch clearfix">
<a href="#prev" class="item-button-prev">zurück</a>
<a href="#next" class="item-button-next">weiter</a>
</div>
</div><!-- end widget -->
<div class="widget clearfix">
<div class="widget-title">
Reiseführer
</div><!-- end title -->
<div class="newswidget clearfix">
<a href="#"><div class="hl5">Sicherheit auf Reisen: Alles ist relativ</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab aut dignissimos ea est, impedit incidunt, laboriosam maxime molestias numquam odio officiis. Ab aut dignissimos ea est, impedit incidunt.</p></a>
<div class="item-switch clearfix">
<a href="#prev" class="item-button-prev">zurück</a>
<a href="#next" class="item-button-next">weiter</a>
</div>
</div><!-- end newswidget -->
</div><!-- end widget -->
<div class="widget clearfix">
<div class="widget-title">
Reisemagazin
</div><!-- end title -->
<div class="newswidget clearfix">
<a href="#"><div class="hl5">Sicherheit auf Reisen: Alles ist relativ</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab aut dignissimos ea est, impedit incidunt, laboriosam maxime molestias numquam odio officiis. Ab aut dignissimos ea est, impedit incidunt.</p></a>
<div class="item-switch clearfix">
<a href="#prev" class="item-button-prev">zurück</a>
<a href="#next" class="item-button-next">weiter</a>
</div>
</div><!-- end newswidget -->
</div><!-- end widget -->
<div class="widget clearfix">
<div class="widget-title">
Angebote
</div><!-- end title -->
<div class="travel-wrapper">
<a href="#1" class="item text-center">
<div class="item-img">
{% image '@AppBundle/Resources/public/images/page1_img1.jpg' %}<img src="{{ asset_url }}" alt="">{% endimage %}
</div>
<div class="box_mid">
<div class="hl5">8 Tage Rundreise Höhepunkte Israels</div>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
<div class="price">Für 550,- EUR</div>
</div>
</a>
</div><!-- end travel-wrapper -->
<div class="item-switch clearfix">
<a href="#prev" class="item-button-prev">zurück</a>
<a href="#next" class="item-button-next">weiter</a>
</div>
</div><!-- end widget -->
</div><!-- end col -->