Skip to content

Commit 5d39bb6

Browse files
author
Rene Donkers
committed
Release 1.0.2
1 parent 065f7d5 commit 5d39bb6

4 files changed

Lines changed: 45 additions & 13 deletions

File tree

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Lotsofpixels.io
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
# Magento 2 Category Bottom Text
2-
Magento 2 module for Magento 2.3 and Magento 2.4 top create a bottom desciption on every category page for better SEO.
2+
Magento 2 module for Magento 2.4.* that provides a bottom description on every category page for better SEO performance.
3+
4+
Compatible with Swissup Breeze and Hyva themes
35

46
## Installation
57
```
68
composer require lotsofpixels/module-categorybottomtext
7-
8-
bin/magento setup:upgrade
99
```
10-
## License
11-
[MIT](https://choosealicense.com/licenses/mit/)
10+
## Version
11+
Release 1.0.2
1212

13+
## Support
14+
rene@lotsofpixels.io
1315

16+
## Contributing
17+
Pull requests are welcome. For major changes, please open an issue first
18+
to discuss what you would like to change.
1419

20+
Please make sure to update tests as appropriate.
21+
22+
## License
23+
24+
[MIT](https://choosealicense.com/licenses/mit/)

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"name": "lotsofpixels/module-categorybottomtext",
3-
"version": "1.0.1",
4-
"description": "Adds a text field at the bottom of the category pagen for SEO purposes",
3+
"version": "1.0.2",
4+
"description": "Adds a text field at the bottom of the category page (PLP) for SEO purposes",
55
"type": "magento2-module",
66
"require": {
77
"magento/framework": "*"
88
},
99
"license": [
10-
"OSL-3.0",
11-
"AFL-3.0"
10+
"MIT"
1211
],
1312
"autoload": {
1413
"files": [
@@ -21,5 +20,4 @@
2120
"author": "Rene Donkers",
2221
"createAt": "01-10-2023",
2322
"homepage": "https://www.lotsofpixels.io"
24-
2523
}
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
/* @var Magento\Catalog\Block\Category\View $block */
3-
/* Copyright &copy; LotsofPixels.io, Inc. All rights reserved. */
4+
5+
use Magento\Catalog\Helper\Output;
6+
47
?>
5-
<?php if ($_bottomDescription = $block->getCurrentCategory()->getBottomDescription()): ?>
8+
<?php if ($_bottomDescription = $block->getCurrentCategory()->getData('bottom_description')): ?>
69
<div class="category-bottom-description">
7-
<?= /* @escapeNotVerified */ $this->helper('Magento\Catalog\Helper\Output')->categoryAttribute($block->getCurrentCategory(), $_bottomDescription, 'bottom_description') ?>
10+
<?= /* @escapeNotVerified */ $this->helper(Output::class)->categoryAttribute($block->getCurrentCategory(), $_bottomDescription, 'bottom_description') ?>
811
</div>
912
<?php endif; ?>

0 commit comments

Comments
 (0)