Skip to content

Commit

Permalink
Merge pull request #70 from contao-themes-net/change-font-paths-contao5
Browse files Browse the repository at this point in the history
2.2.0
  • Loading branch information
MDevster authored Feb 15, 2023
2 parents 9eaaf95 + b7b4647 commit eb06c2c
Show file tree
Hide file tree
Showing 33 changed files with 3,685 additions and 1,804 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ Types of changes
Security in case of vulnerabilities.
)

## [2.2.0](https://github.com/contao-themes-net/nature-theme-bundle/tree/2.2.0) – 2023-02-13

- [Added] Add sql files for Contao 5.1
- [Changed] Change sql files for Contao 5.0
- [Fixed] Fix error messages styles
- [Fixed] Fix link color in hero element

## [2.1.1](https://github.com/contao-themes-net/nature-theme-bundle/tree/2.1.1) – 2022-12-08

- [Fixed] Fix migrations
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
"contao-components/installer": true,
"contao/manager-plugin": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"bamarni/composer-bin-plugin": true
"bamarni/composer-bin-plugin": true,
"php-http/discovery": true
}
}
}
2 changes: 1 addition & 1 deletion contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion contao/dca/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion contao/languages/de/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion contao/languages/de/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion contao/languages/en/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion contao/languages/en/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
1,858 changes: 932 additions & 926 deletions contao/sql/contao50/full.sql

Large diffs are not rendered by default.

1,637 changes: 824 additions & 813 deletions contao/sql/contao50/minimal.sql

Large diffs are not rendered by default.

978 changes: 978 additions & 0 deletions contao/sql/contao51/full.sql

Large diffs are not rendered by default.

866 changes: 866 additions & 0 deletions contao/sql/contao51/minimal.sql

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions public/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ jQuery(document).ready(function($) {
href = href.substr(0,href.indexOf('#'));
href = href.replace('./','');

if( href === '' ) {
return;
}

var path = window.location.pathname;
path = path.replace('/','');

Expand Down
2 changes: 1 addition & 1 deletion public/scss/color_schemes/nature_dark_mode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ $darkMode_input-focus-border-color: $grey-darker;
background: $darkMode_boxes-background;
color: $darkMode_boxes-color;

h1, h2, h3, h4, h5, h6, a, strong {
h1, h2, h3, h4, h5, h6, strong {
color: $darkMode_boxes-color;
}
}
Expand Down
74 changes: 37 additions & 37 deletions public/scss/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,76 +4,76 @@
font-weight: 100;
font-display: swap;
src: local('Roboto Slab Thin'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto Slab Light';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Slab Light'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto Slab'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Roboto Slab Bold'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 100;
font-display: swap;
src: local('Roboto Thin'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.eot') format('eot');
}

@font-face {
Expand All @@ -82,19 +82,19 @@
font-weight: 700;
font-display: swap;
src: local('Roboto Bold'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 900;
font-display: swap;
src: local('Roboto Black'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.eot') format('eot');
}
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.eot') format('eot');
}
4 changes: 1 addition & 3 deletions public/scss/parts/elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ h1, h2, h3, h4, h5, h6 {
background: $boxes-background;
color: $boxes-color;

h1, h2, h3, h4, h5, h6, a, strong {
h1, h2, h3, h4, h5, h6, strong {
color: $boxes-color;
}
}
Expand Down Expand Up @@ -1341,8 +1341,6 @@ pre {
}
}



.sticky-container {
position: relative;

Expand Down
5 changes: 5 additions & 0 deletions public/scss/parts/modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,11 @@ body:not(.home) #header .inside {
display: none;
}

p.error {
padding: 0 0.75rem;
color: $danger;
}

.submit {
@extend .button;
@extend .is-primary;
Expand Down
2 changes: 1 addition & 1 deletion src/ContaoManager/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/ContaoThemesNetNatureThemeBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/SliderElementNature.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/TabsNavElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/TabsStartElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/TabsStopElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/TextModalElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
7 changes: 6 additions & 1 deletion src/Migration/InitialDemoDataMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down Expand Up @@ -56,6 +56,11 @@ public function shouldRun(): bool
$this->sqlFile = str_replace('minimal', 'full', $this->sqlFile);
}

// Contao 5.1
if (isset($schemaManager->listTableColumns('tl_form')['ajax'])) {
$this->sqlFile = str_replace('50', '51', $this->sqlFile);
}

// check some tables for content
$count = $this->connection->fetchOne('SELECT COUNT(*) FROM `tl_article`');
$count += $this->connection->fetchOne('SELECT COUNT(*) FROM `tl_content`');
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/InitialFilesFolderMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/MigrationHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/Version200.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur // pdir GmbH
* Copyright (C) 2023 pdir / digital agentur // pdir GmbH
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
Loading

0 comments on commit eb06c2c

Please sign in to comment.