-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12049 from aembler/marketplace-migration-9.2.x
9.2: Marketplace Update Notification
- Loading branch information
Showing
13 changed files
with
119 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
<?php defined('C5_EXECUTE') or die('Access Denied.'); ?> | ||
<?php if (isset($remoteItem) && is_object($remoteItem)) { ?> | ||
|
||
<div class="ccm-block-desktop-featured-addon"> | ||
<div class="ccm-block-desktop-featured-addon-inner"> | ||
|
||
<h6><?=t('Featured Add-On')?></h6/> | ||
|
||
<img src="<?=$remoteItem->getRemoteIconURL()?>" width="80" height="80" /> | ||
<h3><?=$remoteItem->getName()?></h3> | ||
<p><?=$remoteItem->getDescription()?></p> | ||
<a href="<?=$remoteItem->getRemoteURL()?>" class="btn btn-primary"><?=t('Learn More')?></a> | ||
<img src="<?=ASSETS_URL_IMAGES?>/marketplace_upgrade_addon.png" width="80" height="80" /> | ||
<h3><?=t('Connect to the new marketplace!')?></h3> | ||
<p><?=t("This version of Concrete can't connect to the latest marketplace. You should update to version 9.3 to enjoy one-click marketplace integration.")?></p> | ||
<a target="_blank" href="https://www.concretecms.com/about/new-marketplace" class="btn btn-secondary btn-lg"><?=t('Learn More')?></a> | ||
|
||
</div> | ||
</div> | ||
|
||
<?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 |
---|---|---|
@@ -1,24 +1,18 @@ | ||
<?php defined('C5_EXECUTE') or die('Access Denied.'); ?> | ||
<?php if (isset($remoteItem) && is_object($remoteItem)) { ?> | ||
|
||
<div class="ccm-block-desktop-featured-theme"> | ||
<div class="ccm-block-desktop-featured-theme-inner"> | ||
<div class="ccm-block-desktop-featured-theme"> | ||
<div class="ccm-block-desktop-featured-theme-inner" style="display: flex"> | ||
|
||
<img src="<?=$remoteItem->getLargeThumbnail()->src?>" style="height: 250px" /> | ||
<img src="<?=ASSETS_URL_IMAGES?>/marketplace_upgrade_theme.png" style="height: 250px; border-right: 0"/> | ||
|
||
<div class="ccm-block-desktop-featured-theme-description"> | ||
<div class="ccm-block-desktop-featured-theme-description"> | ||
<h6><?=t('Featured Theme')?></h6/> | ||
|
||
<h6><?=t('Featured Theme')?></h6/> | ||
<h3><?=t('Connect to the new marketplace!')?></h3> | ||
<p><?=t("This version of Concrete can't connect to the latest marketplace. You should update to version 9.3 to enjoy one-click marketplace integration.")?></p> | ||
<a target="_blank" href="https://www.concretecms.com/about/new-marketplace" class="btn btn-info"><?=t('Learn More')?></a> | ||
</div> | ||
|
||
<h3><?=$remoteItem->getName()?></h3> | ||
<p><?=$remoteItem->getDescription()?></p> | ||
<div class="btn-group"> | ||
<a href="<?=$remoteItem->getRemoteURL()?>" class="btn btn-primary active"><?=$remoteItem->getDisplayPrice()?></a> | ||
<a href="<?=$remoteItem->getRemoteURL()?>" class="btn btn-primary"><?=t('Learn More')?></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<?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
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,11 @@ | ||
<?php | ||
defined('C5_EXECUTE') or die("Access Denied."); | ||
?> | ||
|
||
<div style="text-align: left"> | ||
<div><?=t("This version of Concrete can't connect to the latest marketplace. You should update to version 9.3 to enjoy one-click marketplace integration.")?></div> | ||
<div style="margin-top: 2rem; text-align: center"> | ||
<a href="https://www.concretecms.com/about/new-marketplace" target="_blank" class="btn btn-primary"><?=t('Learn More')?></a> | ||
</div> | ||
</div> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
46 changes: 46 additions & 0 deletions
46
concrete/src/Announcement/Controller/Update/Version929Controller.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
namespace Concrete\Core\Announcement\Controller\Update; | ||
|
||
use Concrete\Core\Announcement\Action\LearnMoreAction; | ||
use Concrete\Core\Announcement\Action\VideoAction; | ||
use Concrete\Core\Announcement\Button\LearnMoreButton; | ||
use Concrete\Core\Announcement\Controller\AbstractController; | ||
use Concrete\Core\Announcement\Icon\SvgIcon; | ||
use Concrete\Core\Announcement\Item\StandardItem; | ||
use Concrete\Core\Announcement\Slide\FeatureSlide; | ||
use Concrete\Core\User\User; | ||
|
||
class Version929Controller extends AbstractController | ||
{ | ||
|
||
public function getSlides(User $user): array | ||
{ | ||
return [ | ||
new FeatureSlide( | ||
t('Coming Soon'), [ | ||
new StandardItem( | ||
t('Get ready for the new Marketplace'), | ||
t('The next minor version of Concrete will connect to a new marketplace experience providing high-quality themes, add-ons, and SaaS integrations.'), | ||
), | ||
new StandardItem( | ||
t('Update your existing Add-ons & Themes Now'), | ||
t('Take a quick look to apply any unapplied updates to your current extensions before May 15th.'), | ||
[ | ||
new LearnMoreAction(DIR_REL . '/dashboard/extend/update') | ||
], | ||
), | ||
new StandardItem( | ||
t('9.2.9 Release Notes'), | ||
t('Take a look at the changes that have been applied in the current version of Concrete.'), | ||
[ | ||
new LearnMoreAction('https://documentation.concretecms.org/9-x/developers/introduction/version-history/929-release-notes') | ||
], | ||
), | ||
], | ||
new LearnMoreButton('https://documentation.concretecms.org/9-x/developers/introduction/version-history/929-release-notes', t('View Release Notes')) | ||
) | ||
]; | ||
} | ||
|
||
|
||
} |
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
21 changes: 21 additions & 0 deletions
21
concrete/src/Updater/Migrations/Migrations/Version20240506191622.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Concrete\Core\Updater\Migrations\Migrations; | ||
|
||
use Concrete\Core\Announcement\AnnouncementService; | ||
use Concrete\Core\Updater\Migrations\RepeatableMigrationInterface; | ||
use Doctrine\DBAL\Schema\Schema; | ||
use Concrete\Core\Updater\Migrations\AbstractMigration; | ||
|
||
final class Version20240506191622 extends AbstractMigration implements RepeatableMigrationInterface | ||
{ | ||
|
||
public function upgradeDatabase() | ||
{ | ||
$service = $this->app->make(AnnouncementService::class); | ||
$service->createAnnouncementIfNotExists('concrete_version_929'); | ||
|
||
} | ||
} |