Skip to content

Commit

Permalink
Update to Version v.0.7
Browse files Browse the repository at this point in the history
- Adding Migration to Updater
- Adding 3 expension banners (more follow later)
- Change website title generation
- Adding Realm version dependencies to home view
- Update Readme
  • Loading branch information
DuelistRag3 committed May 9, 2022
1 parent 051141c commit 5dac16a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 21 deletions.
7 changes: 7 additions & 0 deletions Modules/Admin/Http/Controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ public function update(\Codedge\Updater\UpdaterManager $updater)

// Run the update process
$updater->source()->update($release);

try {
Artisan::call('migrate --force');
Artisan::call('db:seed --force');
} catch (Throwable $e) {
return back()->with('errors', 'Something went wrong');
}

return back()->with('success', 'Update Complete');

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# _WarriorCMS_

[![Project Status](https://img.shields.io/badge/Status-Beta-yellow.svg?style=flat-square)](#)
![version](https://img.shields.io/badge/version-v.0.7-blue)

**WarriorCMS** is an Open Source CMS for world of warcraft p-server projects developed with [Laravel](https://laravel.com)

Expand Down
2 changes: 1 addition & 1 deletion config/self-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
|
*/

'version_installed' => 'v.0.6',
'version_installed' => 'v.0.7',

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion public/Themes/default/views/layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="en">

<head>
<title>{{ Config('app.name') }}</title>
<title>{{ Config('warriorcms.website_name') }}</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down
25 changes: 6 additions & 19 deletions public/Themes/default/views/modules/home/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ class="Link Link--external Button Button--ghost Panel-button Button--purchase"
</div>
</div>
@foreach (getAllRealms() as $realm )
<div class="Panel bordered Panel--normal Panel--left Panel--alignLeft Panel--overflowing">
<div class="Panel-bg"
data-background-image="https://bnetcmsus-a.akamaihd.net/cms/template_resource/X7MSA0VYMJ5C1649781770293.png"
data-loaded="true"
style="background-image: url(&quot;https://bnetcmsus-a.akamaihd.net/cms/template_resource/X7MSA0VYMJ5C1649781770293.png&quot;);">
<div class="Panel bordered Panel--normal @if ($realm->exp == 7) Panel--right Panel--alignRight @else Panel--left Panel--alignLeft @endif Panel--overflowing">
<div class="Panel-bg" style="background-image: url({{ url('/img/exp/'.$realm->exp.'.jpg') }}); background-size: cover;">
<div class="Panel-fg"></div>
</div>
<div class="Panel-area SyncHeight-item">
Expand All @@ -64,26 +61,16 @@ class="Link Link--external Button Button--ghost Panel-button Button--purchase"
coming, and with it another chance to relive the legend and face one of Azeroth's
greatest villains. Return to Burning Crusade Classic™ today and prepare to face the
Lich King in 2022.</div>
<div class="Panel-buttons"><a
class="Link Link--external Button Button--ghost Panel-button Button--purchase"
href="https://shop.battle.net/product/world-of-warcraft-subscription?utm_source=worldofwarcraft.com&amp;utm_campaign=bop-wow-global-subscription-classic&amp;utm_medium=internal&amp;utm_content=hp-panel"
data-analytics="homepage-panel"
data-analytics-placement="Shop: Classic Subscription">
<div class="Panel-buttons">
<a class="Link Link--external Button Button--ghost Panel-button Button--purchase" href="{{ url('realms/'.$realm->id) }}">
<div class="Button-outer">
<div class="Button-inner">
<div class="Button-label" data-text="Subscribe Now">View Realm
</div>
</div>
</div>
</a><a class="Link Link--external Button Button--ghost Panel-button"
href="https://wowclassic.blizzard.com" data-analytics="homepage-panel"
data-analytics-placement="Page: Wrath Classic">
<div class="Button-outer">
<div class="Button-inner">
<div class="Button-label" data-text="Learn More">Learn More</div>
</div>
</div>
</a></div>
</a>
</div>
</div>
</div>
</div>
Expand Down
Binary file added public/img/exp/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/exp/7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/exp/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5dac16a

Please sign in to comment.