mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-25 20:08:23 +02:00
Added ability to customize CP landing page
This commit is contained in:
parent
b9a01b87e4
commit
b9b9998925
3 changed files with 12 additions and 5 deletions
|
@ -17,7 +17,11 @@ class HomeController extends Controller
|
|||
$company_name = $db->selectValue("SELECT value FROM settings WHERE name = 'company_name'");
|
||||
$email = $db->selectValue("SELECT value FROM settings WHERE name = 'email'");
|
||||
|
||||
return view($response, 'index.twig', [
|
||||
$basePath = '/var/www/cp/resources/views/';
|
||||
$template = file_exists($basePath . 'index.custom.twig')
|
||||
? 'index.custom.twig'
|
||||
: 'index.twig';
|
||||
return view($response, $template, [
|
||||
'whois_server' => $whois_server,
|
||||
'rdap_server' => $rdap_server,
|
||||
'company_name' => $company_name,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="Namingo Registry control panel.">
|
||||
<meta name="author" content="Taras Kondratyuk">
|
||||
<meta name="author" content="Namingo Team">
|
||||
<title>Namingo Registry</title>
|
||||
{% include 'partials/css.twig' %}
|
||||
<style>
|
||||
|
@ -91,7 +91,7 @@
|
|||
<li>Contact our <a href="mailto:{{ email }}"><strong>Support Team</strong></a> for assistance, guidance, FAQs, and further support needs.</li>
|
||||
<li>Interested in partnering with us? <a href="#"><strong>Apply</strong></a> to become an official registrar.</li>
|
||||
</ul>
|
||||
<code>Personalize this template to fit the unique needs and branding of your registry by editing `resources/views/index.twig`</code>
|
||||
<p>To customize this page, copy <code>index.twig</code> from <code>/var/www/cp/resources/views</code> to <code>index.custom.twig</code> and edit the file as required.</p>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
@ -194,7 +194,7 @@ Once you have successfully configured all automation scripts, you are ready to i
|
|||
* * * * * /usr/bin/php /opt/registry/automation/cron.php 1>> /dev/null 2>&1
|
||||
```
|
||||
|
||||
#### 1.4.8. Customizing the Control Panel Logo and Documentation Pages
|
||||
#### 1.4.8. Customizing the Control Panel Logo and Pages
|
||||
|
||||
**1.4.8.1. Customizing the Logo**:
|
||||
Upload your custom logo as `logo.svg` to `/var/www/cp/public/static/`. If `logo.svg` is not present, the default `logo.default.svg` will be used automatically.
|
||||
|
@ -205,6 +205,9 @@ To customize the documentation, copy `docs.twig` to `docs.custom.twig` using the
|
|||
**1.4.8.3. Customizing the Media Kit Page**:
|
||||
To customize the media kit page, copy `mediakit.twig` to `mediakit.custom.twig` using `cp /var/www/cp/resources/views/admin/support/mediakit.twig /var/www/cp/resources/views/admin/support/mediakit.custom.twig`. Edit `mediakit.custom.twig` to apply your changes. The system will prioritize `mediakit.custom.twig` over the default file.
|
||||
|
||||
**1.4.8.4. Customizing the Landing Page**:
|
||||
To customize the landing page, copy `index.twig` to `index.custom.twig` using `cp /var/www/cp/resources/views/index.twig /var/www/cp/resources/views/index.custom.twig`. Edit `index.custom.twig` to apply your changes. The system will prioritize `index.custom.twig` over the default file.
|
||||
|
||||
#### 1.4.9. Changing the Default Control Panel Language
|
||||
|
||||
To change the default language of the control panel, you must edit the `/var/www/cp/.env` file and replace the language values (`LANG`/`UI_LANG`) with your desired settings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue