-
Notifications
You must be signed in to change notification settings - Fork 3
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
Praesidiarius
committed
Apr 1, 2021
1 parent
47411a1
commit e5e8013
Showing
6 changed files
with
199 additions
and
1 deletion.
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
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
69 changes: 69 additions & 0 deletions
69
module/Application/view/application/index/updatetheme.phtml
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,69 @@ | ||
<form action="" method="POST"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h2>Update Theme <?=ucfirst($sTheme)?></h2> | ||
</div> | ||
<div class="card-header"> | ||
<div class="row"> | ||
<div class="col-md-2"> | ||
<?=$this->translate('Current Version')?> | ||
</div> | ||
<div class="col-md-10"> | ||
<?=$oThemeInfo->version?> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-header"> | ||
<div class="row"> | ||
<div class="col-md-2"> | ||
<?=$this->translate('New Version on github.com')?> | ||
</div> | ||
<div class="col-md-10"> | ||
<?=$oNewInfo->tag_name?> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-header"> | ||
<div class="row"> | ||
<div class="col-md-2"> | ||
<?=$this->translate('Changes')?> | ||
</div> | ||
<div class="col-md-10"> | ||
<?php | ||
$sNewChanges = explode('## ['.$oThemeInfo->version.'] -',$sChangeLog)[0]; | ||
$sNewChanges = explode('## ['.$oNewInfo->tag_name.'] -',$sNewChanges)[1]; | ||
$sNewChanges = str_replace([ | ||
'### Added', | ||
'### Changed', | ||
'### Fixed', | ||
'### Removed', | ||
'- ' | ||
],[ | ||
'<br/><b>Added</b>', | ||
'<br/><b>Changed</b>', | ||
'<br/><b>Fixed</b>', | ||
'<br/><b>Removed</b>', | ||
'<br/>- ' | ||
],$sNewChanges); | ||
echo 'Release Date: '.$sNewChanges; | ||
?> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-footer"> | ||
<?php if($oThemeInfo->version != $oNewInfo->tag_name) { ?> | ||
<button type="submit" class="btn btn-success btn-lg"> | ||
<?=$this->translate('Update '.ucfirst($sTheme))?> | ||
</button> | ||
<?php } else { ?> | ||
<div class="alert alert-success p-2"> | ||
You already have the newest version of this theme | ||
</div> | ||
<?php } ?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</form> |