-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The plugin crashed with an error if the contact with the specified id…
… did not exist or was removed from publication. Fixed it.
- Loading branch information
1 parent
e884be9
commit 3453240
Showing
16 changed files
with
54 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?php | ||
/** | ||
* @package WT Amocrm Library | ||
* @version 1.2.1 | ||
* @package WT Contact anywhere with fields package | ||
* @version 1.0.1 | ||
* @Author Sergey Tolkachyov, https://web-tolk.ru | ||
* @сopyright (c) 2022 - October 2023 Sergey Tolkachyov. All rights reserved. | ||
* @сopyright (c) April 2024 Sergey Tolkachyov. All rights reserved. | ||
* @license GNU/GPL3 http://www.gnu.org/licenses/gpl-3.0.html | ||
* @since 1.0.0 | ||
*/ | ||
|
@@ -134,12 +134,13 @@ public function preflight(string $type, InstallerAdapter $adapter): bool | |
{ | ||
|
||
$version = new Version(); | ||
if(!$version->isCompatible('5.0.0')) | ||
if (!$version->isCompatible('5.0.0')) | ||
{ | ||
$this->app->enqueueMessage('😢 <strong>WT Contact everywhere with fields</strong> package doesn\'t support Joomla versions <span class="alert-link">lower 5</span>. Your Joomla version is <span class="badge bg-danger">'.$version->getShortVersion().'</span>','error'); | ||
$this->app->enqueueMessage('😢 <strong>WT Contact everywhere with fields</strong> package doesn\'t support Joomla versions <span class="alert-link">lower 5</span>. Your Joomla version is <span class="badge bg-danger">' . $version->getShortVersion() . '</span>', 'error'); | ||
|
||
return false; | ||
} | ||
|
||
return true; | ||
|
||
} | ||
|
@@ -167,14 +168,14 @@ public function postflight(string $type, InstallerAdapter $adapter): bool | |
} | ||
|
||
$element = strtoupper($adapter->getElement()); | ||
$type = strtoupper($type); | ||
$html = ' | ||
<div class="row bg-white m-0"> | ||
$type = strtoupper($type); | ||
$html = ' | ||
<div class="row m-0"> | ||
<div class="col-12 col-md-8 p-0 pe-2"> | ||
<h2>'.$smile.' '.Text::_($element.'_AFTER_'.$type).' <br/>'.Text::_($element).'</h2> | ||
'.Text::_($element.'_DESC'); | ||
<h2>' . $smile . ' ' . Text::_($element . '_AFTER_' . $type) . ' <br/>' . Text::_($element) . '</h2> | ||
' . Text::_($element . '_DESC'); | ||
|
||
$html .= Text::_($element.'_WHATS_NEW'); | ||
$html .= Text::_($element . '_WHATS_NEW'); | ||
|
||
$html .= '</div> | ||
<div class="col-12 col-md-4 p-0 d-flex flex-column justify-content-start"> | ||
|
@@ -185,7 +186,7 @@ public function postflight(string $type, InstallerAdapter $adapter): bool | |
<a class="btn btn-sm btn-outline-primary" href="mailto:[email protected]"><i class="icon-envelope"></i> [email protected]</a> | ||
</p> | ||
<p><a class="btn btn-danger w-100" href="https://t.me/joomlaru" target="_blank">' . Text::_($element . '_JOOMLARU_TELEGRAM_CHAT') . '</a></p> | ||
'.Text::_($element."_MAYBE_INTERESTING").' | ||
' . Text::_($element . "_MAYBE_INTERESTING") . ' | ||
</div> | ||
'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<extension type="plugin" group="content" method="upgrade"> | ||
<name>PLG_WTCONTACTWITHFIELDS</name> | ||
<author>Sergey Tolkachyov</author> | ||
<creationDate>07/02/2024</creationDate> | ||
<creationDate>April 2024</creationDate> | ||
<copyright>Copyright (C) 2019-2023. All rights reserved.</copyright> | ||
<license>GNU/GPL 3.0</license> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>https://web-tolk.ru</authorUrl> | ||
<version>1.0.0</version> | ||
<version>1.0.1</version> | ||
<description>PLG_WTCONTACTWITHFIELDS_DESC</description> | ||
<namespace path="src">Joomla\Plugin\Content\Wtcontactwithfields</namespace> | ||
<files> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
plg_editors-xtd_wtcontactwithfieldsbutton/services/provider.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
plg_editors-xtd_wtcontactwithfieldsbutton/src/Extension/Wtcontactwithfieldsbutton.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
plg_editors-xtd_wtcontactwithfieldsbutton/src/Fields/PlugininfoField.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<extension type="plugin" group="editors-xtd" method="upgrade"> | ||
<name>Editors-xtd - WT Contact anywhere with fields</name> | ||
<author>Sergey Tolkachyov</author> | ||
<creationDate>08/02/2024</creationDate> | ||
<creationDate>April 2024</creationDate> | ||
<copyright>Copyright (C) Sergey Tolkachyov. All rights reserved.</copyright> | ||
<license>GNU General Public License version 3</license> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>https://web-tolk.ru</authorUrl> | ||
<version>1.0.0</version> | ||
<version>1.0.1</version> | ||
<description>PLG_WTCONTACTWITHFIELDSBUTTON_DESC</description> | ||
<namespace path="src">Joomla\Plugin\EditorsXtd\Wtcontactwithfieldsbutton</namespace> | ||
<media folder="media" destination="plg_editors-xtd_wtcontactwithfieldsbutton"> | ||
|