Skip to content

Commit

Permalink
add sql files for contao 4.10, fix bugs with notification center news…
Browse files Browse the repository at this point in the history
…letter and theme version in backend
  • Loading branch information
seibtph committed Aug 20, 2020
1 parent 9d2f946 commit 6e905e2
Show file tree
Hide file tree
Showing 6 changed files with 1,293 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Module/OddThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ protected function compile()
$this->getFiles($path);
$this->getSqlFiles($path = TL_ROOT . "/vendor/contao-themes-net/odd-theme-bundle/src/templates");
$this->Template->message = true;
$this->Template->version = OddThemeSetup::VERSION;
break;
case 'truncateTlFiles':
$this->import('Database');
$this->Database->prepare("TRUNCATE tl_files")->execute();
$this->Template->messageTruncate = true;
$this->Template->version = OddThemeSetup::VERSION;
break;
default:
$this->Template->version = OddThemeSetup::VERSION;
Expand Down
4 changes: 3 additions & 1 deletion src/Resources/contao/templates/be/be_oddtheme_setup.html5
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
/ digital agentur</a></p>
<h2>Interessante Links</h2>
<ul class="link-list">
<li><a href="https://docs.contao-themes.net/#/odd_theme/index" target="_blank"
<li><a href="https://pdir.de/docs/de/contao/themes/odd/" target="_blank"
style="text-decoration: underline;">Dokumentation</a></li>
<li><a href="https://contao-themes.net/theme-detail/odd.html" target="_blank"
style="text-decoration: underline;">Lizenz kaufen</a></li>
<li><a href="https://odd.contao-themes.net/" target="_blank"
style="text-decoration: underline;">Demo</a></li>
<li><a href="https://github.com/contao-themes-net/odd-theme-bundle/issues" target="_blank"
Expand Down
6 changes: 4 additions & 2 deletions src/Resources/public/scss/parts/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ footer {
}
}

.mod_subscribe + .main-footer .skewed-bg {
.mod_subscribe + .main-footer .skewed-bg,
.mod_newsletterSubscribeNotificationCenter + .main-footer .skewed-bg {
background: $newsletter-background;
}

.mod_subscribe .row > div {
.mod_subscribe .row > div,
.mod_newsletterSubscribeNotificationCenter .row > div {
z-index: 10;
}

Expand Down
4 changes: 3 additions & 1 deletion src/Resources/public/scss/parts/modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
}

/* Newsletter */
.mod_subscribe:not(.nl-footer), .mod_unsubscribe {
.mod_subscribe:not(.nl-footer), .mod_unsubscribe,
.mod_newsletterUnsubscribeNotificationCenter,
.mod_newsletterSubscribeNotificationCenter:not(.nl-footer) {
input[type='text'] {
max-width: 300px;
}
Expand Down
Loading

0 comments on commit 6e905e2

Please sign in to comment.