Skip to content

Commit

Permalink
Merge pull request #58 from contao-themes-net/3.4.0
Browse files Browse the repository at this point in the history
3.4.0
  • Loading branch information
MDevster authored Jan 26, 2024
2 parents c968f14 + b44cbd4 commit b1294d1
Show file tree
Hide file tree
Showing 22 changed files with 100 additions and 43 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Types of changes
Security in case of vulnerabilities.
)

## [3.4.0](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.4.0) – 2024-01-08

- [Added] Add transition for logo (use logo_odd.html.twig template) [#56](https://github.com/contao-themes-net/odd-theme-bundle/issues/56)
- [Fixed] Fix image alignment in text elements

## [3.3.2](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.3.2) – 2023-09-21

- [Fixed] Fix youtube and video element
Expand Down
22 changes: 22 additions & 0 deletions contao/templates/_new/content_element/image/logo_odd.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% extends "@Contao/content_element/image.html.twig" %}
{% use "@Contao/component/_picture.html.twig" %}

{% block image %}
{% set img = figure.image.img %}
{% set defineProportions = img.width|default(false) and img.height|default(false) %}
{% set img_attributes = attrs(img_attributes|default)
.set('src', img.src)
.set('alt', figure.hasMetadata ? figure.metadata.alt : '')
.setIfExists('title', figure.hasMetadata ? (figure.metadata.title ?: null) : null)
.setIfExists('srcset', img.srcset is defined and img.srcset != img.src ? img.srcset : null)
.setIfExists('sizes', img.sizes|default)
.setIfExists('width', defineProportions ? img.width : null)
.setIfExists('height', defineProportions ? img.height : null)
.set('style', 'height:' ~ img.height ~ 'px;width:auto;')
.set('class', 'logo-transition')
.setIfExists('loading', img.loading|default)
.addClass(img.class|default)
.mergeWith(figure.options.img_attr|default)
%}
<img{{ img_attributes }}>
{% endblock %}
6 changes: 1 addition & 5 deletions public/fontawesome/js/all.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions public/fontawesome/js/brands.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions public/fontawesome/js/fontawesome.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions public/fontawesome/js/regular.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions public/fontawesome/js/solid.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions public/fontawesome/js/v4-shims.min.js

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions public/scss/parts/elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,49 @@ blockquote {
}
}
}

.media.content-text {
display: block;
overflow: hidden;

&.hero.media--left figure {
float: left;
}

&.hero.media--right figure {
float: right;
}

&.hero.media--below .container {
display: flex;
flex-wrap: wrap;
}

&.media--left figure {
margin: 0 20px 20px 0;
float: left;
}

&.media--right figure {
margin: 0 0 20px 20px;
float: right;
}

&.media--below {
display: flex;
flex-wrap: wrap;

figure {
order: 2;
margin-top: 15px;
}

h1, h2, h3, h4, h5, h6 {
margin-bottom: 10px;
}

.rte {
order: 1;
}
}
}
8 changes: 8 additions & 0 deletions public/scss/parts/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ header, footer {
}

.nav-container {
.navbar-brand img {
transition: height .3s;
}

&.stuck {
.navbar {
height: 60px;
Expand All @@ -350,6 +354,10 @@ header, footer {
height: 60px;
padding: 5px 0;
width: auto;

&.logo-transition {
height: 60px !important;
}
}
}
}
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 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/ContaoThemesNetOddThemeBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/SliderElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/InitialDemoDataMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
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 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-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 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/Version300.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand Down
4 changes: 2 additions & 2 deletions src/Module/OddThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand All @@ -22,7 +22,7 @@

class OddThemeSetup extends BackendModule
{
public const VERSION = '3.3.2';
public const VERSION = '3.4.0';

protected $strTemplate = 'be_oddtheme_setup';

Expand Down
2 changes: 1 addition & 1 deletion src/ThemeUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion tests/ContaoThemesNetOddThemeBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion tests/ContaoThemesNetOddThemeExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* pdir theme odd bundle for Contao Open Source CMS
*
* Copyright (C) 2023 pdir / digital agentur <develop@pdir.de>
* Copyright (C) 2024 pdir / digital agentur <develop@pdir.de>
*
* @package theme odd bundle
* @link https://github.com/contao-themes-net/odd-theme-bundle
Expand Down

0 comments on commit b1294d1

Please sign in to comment.