Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekVolsk committed Jan 7, 2022
1 parent 02d3143 commit 3b51bc5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UIkit 3 Accordion - Content plugin

![Version](https://img.shields.io/badge/VERSION-1.1.0-0366d6.svg?style=for-the-badge)
![Version](https://img.shields.io/badge/VERSION-1.1.1-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)

Expand Down
2 changes: 1 addition & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UIkit 3 Accordion - Content plugin

![Version](https://img.shields.io/badge/VERSION-1.1.0-0366d6.svg?style=for-the-badge)
![Version](https://img.shields.io/badge/VERSION-1.1.1-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)

Expand Down
5 changes: 2 additions & 3 deletions uk3accordion.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,14 @@ public function onContentPrepare($context, &$article, &$params, $page = 0)
foreach ($matches[0] as $match) {
if ($accordion[$accordionCount] < 3) {
$title = preg_replace('|{accordion\s(.*)}|U', '\\1', $match);
$title = strip_tags($title);
$id = 'slide-' . OutputFilter::stringURLSafe($title);
$match = '|' . $match . '|U';
$match = '/' . str_replace(['/', '?'], ['\/', '\?'], preg_quote($match)) . '/U';
ob_start();
include $layout . ($accordion[$accordionCount] < 2 ? '_start.php' : '_li_end.php');
include $layout . '_li_start.php';
$accordion_content = ob_get_clean();
} elseif ($accordion[$accordionCount] == 3) {
$match = '|{/accordion}|U';
$match = '/{\/accordion}/U';
ob_start();
include $layout . '_li_end.php';
include $layout . '_end.php';
Expand Down
4 changes: 2 additions & 2 deletions uk3accordion.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.7" type="plugin" group="content" method="upgrade">
<name>PLG_CONTENT_UK3ACCORDION</name>
<version>1.1.0</version>
<creationDate>July 2021</creationDate>
<version>1.1.1</version>
<creationDate>January 2022</creationDate>
<author>Aleksey A. Morozov</author>
<authorEmail>alekvolsk@yandex.ru</authorEmail>
<authorUrl>https://alekvolsk.pw/</authorUrl>
Expand Down

0 comments on commit 3b51bc5

Please sign in to comment.