Skip to content
Permalink
Browse files

Error adding a Banner component

  • Loading branch information...
sampoyigi committed Aug 27, 2019
1 parent 8f5da92 commit fcdacbb5c44a015d7965bcd623d6e4900b27b7e8
Showing with 19 additions and 68 deletions.
  1. +2 −2 components/Banners.php
  2. +1 −1 controllers/Banners.php
  3. +1 −1 language/en/default.php
  4. +15 −64 views/mail/contact.php
@@ -31,7 +31,7 @@ public function defineProperties()
public static function getBannerIdOptions()
{
return Banners::isEnabled()->dropdown('name');
return BannerModel::isEnabled()->dropdown('name');
}
public function onRun()
@@ -58,7 +58,7 @@ protected function loadBanner()
return $this->banner = $banner;
}
protected function prepareImages(Banners $banner)
protected function prepareImages(BannerModel $banner)
{
if ($banner->type == 'custom')
return $banner->custom_code;
@@ -14,7 +14,7 @@ class Banners extends \Admin\Classes\AdminController
'model' => 'Igniter\Frontend\Models\Banners',
'title' => 'lang:igniter.frontend::default.banners.text_title',
'emptyMessage' => 'lang:igniter.frontend::default.banners.text_empty',
'defaultSort' => ['order_id', 'DESC'],
'defaultSort' => ['banner_id', 'DESC'],
'configFile' => 'banners',
],
];
@@ -10,7 +10,7 @@
'text_edit_banner' => 'Edit Banner',
'text_title' => 'Banners',
'text_form_name' => 'Banner',
'text_filter_search' => 'Search banner name, type or status.',
'text_filter_search' => 'Search by name, type or status.',
'text_filter_status' => 'View all status',
'text_empty' => 'There are no banners available.',
'text_image' => 'Image',
@@ -1,10 +1,9 @@
subject = "Contact on {site_name}"
==
Hi there,

Someone just contacted you!

Hi there,

Here is your form:

Name: {full_name}
@@ -14,67 +13,19 @@
Message: {contact_message}

This inquiry was sent from {site_name}.

==
Hi Admin,

## Someone just contacted you!

Here is your form.

| | |
| -------- | -------- |
| **From** | {full_name} |
| **Subject** | {contact_topic} |
| **E-mail** | {contact_email} |
| **Telephone** | {contact_telephone} |
| **Message** | {contact_message} |

<!-- HEADER -->
<table class="head-wrap" bgcolor="#D7D7DE">
<tr>
<td></td>
<td class="header container">
<div class="content">
<table bgcolor="#D7D7DE">
<tr>
<td><img src="{site_logo}"/></td>
<td align="right"><h6 class="collapse">{site_name}</h6></td>
</tr>
</table>
</div>
</td>
<td></td>
</tr>
</table><!-- /HEADER -->
<!-- BODY -->
<table class="body-wrap">
<tr>
<td></td>
<td class="container" bgcolor="#FFFFFF">
<div class="content">
<table>
<tr>
<td>
<h3>Someone just contacted you!</h3>
<p class="lead">Hi Admin,</p>
<p>Here is your form.</p>
<table class="contact">
<tr>
<td width="163"><strong>From</strong></td>
<td width="397">{full_name}</td>
</tr>
<tr>
<td><strong>Subject</strong></td>
<td>{contact_topic}</td>
</tr>
<tr>
<td><strong>E-mail</strong></td>
<td>{contact_email}</td>
</tr>
<tr>
<td><strong>Telephone</strong></td>
<td>{contact_telephone}</td>
</tr>
<tr>
<td><strong>Message</strong></td>
<td>{contact_message}</td>
</tr>
</table>
<br>
<p>This inquiry was sent from {site_name}.</p>
</td>
</tr>
</table>
</div><!-- /content -->
</td>
<td></td>
</tr>
</table><!-- /BODY -->
<br>This inquiry was sent from {site_name}.

0 comments on commit fcdacbb

Please sign in to comment.
You can’t perform that action at this time.