-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
C. Proske
committed
Feb 26, 2019
1 parent
8dd2e2f
commit 0f79108
Showing
40 changed files
with
2,178 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
vendor/ | ||
.idea |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../class/Helper.php'; | ||
try { | ||
\ws_mollie\Helper::init(); | ||
|
||
if (array_key_exists("action", $_REQUEST) && $_REQUEST['action'] === 'update-plugin') { | ||
Shop::Smarty()->assign('defaultTabbertab', \ws_mollie\Helper::getAdminmenu('Info')); | ||
\ws_mollie\Helper::selfupdate(); | ||
} | ||
|
||
$svgQuery = http_build_query([ | ||
'p' => \ws_mollie\Helper::oPlugin()->cPluginID, | ||
'v' => \ws_mollie\Helper::oPlugin()->nVersion, | ||
's' => defined('APPLICATION_VERSION') ? APPLICATION_VERSION : JTL_VERSION, | ||
'd' => \ws_mollie\Helper::getDomain(), | ||
'php' => PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION, | ||
]); | ||
|
||
echo "<script type='application/javascript' src='//cdn.webstollen.com/plugin/js/ws.js?p=" . \ws_mollie\Helper::oPlugin()->cPluginID . '&v=' . \ws_mollie\Helper::oPlugin()->nVersion . "'></script>"; | ||
echo "<div id='ws-head-bar' class='row'>" . | ||
" <div class='col-md-4 text-center'>" . | ||
" <object data='//lic.dash.bar/info/licence?{$svgQuery}' type='image/svg+xml'>" . | ||
" <img src='//lic.dash.bar/info/licence.png?{$svgQuery}' width='370' height='20' alt='Lizenz Informationen'>" . | ||
' </object>' . | ||
' </div>' . | ||
" <div class='col-md-4 text-center'>" . | ||
" <object data='//lic.dash.bar/info/version?{$svgQuery}' type='image/svg+xml'>" . | ||
" <img src='//lic.dash.bar/info/version.png?{$svgQuery}' width='370' height='20' alt='Update Informationen'>" . | ||
' </object>' . | ||
' </div>' . | ||
" <div class='col-md-4 text-center'>" . | ||
" <object data='//lic.dash.bar/info/help?{$svgQuery}' type='image/svg+xml'>" . | ||
" <img src='//lic.dash.bar/info/help.png?{$svgQuery}' width='370' height='20' alt='Plugin informationen'>" . | ||
' </object>' . | ||
' </div>' . | ||
'</div>'; | ||
|
||
try { | ||
$latestRelease = \ws_mollie\Helper::getLatestRelease(array_key_exists('update', $_REQUEST)); | ||
if ((int)\ws_mollie\Helper::oPlugin()->nVersion < (int)$latestRelease->version) { | ||
Shop::Smarty()->assign('update', $latestRelease); | ||
} | ||
|
||
} catch (\Exception $e) { | ||
} | ||
|
||
Shop::Smarty()->display(\ws_mollie\Helper::oPlugin()->cAdminmenuPfad . '/tpl/info.tpl'); | ||
} catch (Exception $e) { | ||
echo "<div class='alert alert-danger'>Fehler: {$e->getMessage()}</div>"; | ||
\ws_mollie\Helper::logExc($e); | ||
} |
Oops, something went wrong.