aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Micieli <micieli@laposte.net>2019-04-19 13:00:05 +0200
committerWilly Micieli <micieli@laposte.net>2019-04-19 13:00:05 +0200
commit64d46d3fdeafdb86e6168f77fb0333456b5aca30 (patch)
treebdb0c4d33b2427192e9c70c0c6e5deb5cead9b14
parentf740951841568f250444ac38a48d8169da9a23e5 (diff)
downloadimperium-64d46d3fdeafdb86e6168f77fb0333456b5aca30.zip
imperium-64d46d3fdeafdb86e6168f77fb0333456b5aca30.tar.gz
fix article bug refactor the display
-rw-r--r--db/seeds/BaseSeeds.php2
-rw-r--r--db/seeds/HelperSeeds.php2
-rw-r--r--db/seeds/HelpersSeeds.php2
-rw-r--r--db/seeds/ImperiumSeeds.php3
-rw-r--r--db/seeds/ModelSeeds.php3
-rw-r--r--helpers/helpers.php6
-rw-r--r--phinx.php4
7 files changed, 9 insertions, 13 deletions
diff --git a/db/seeds/BaseSeeds.php b/db/seeds/BaseSeeds.php
index 55fa752..54d116d 100644
--- a/db/seeds/BaseSeeds.php
+++ b/db/seeds/BaseSeeds.php
@@ -15,7 +15,7 @@ class BaseSeeds extends AbstractSeed
*/
public function run()
{
-
+ $driver = $this->getAdapter()->getAdapterType();
$country = [];
diff --git a/db/seeds/HelperSeeds.php b/db/seeds/HelperSeeds.php
index b71aafb..8d7730f 100644
--- a/db/seeds/HelperSeeds.php
+++ b/db/seeds/HelperSeeds.php
@@ -14,7 +14,7 @@ class HelperSeeds extends AbstractSeed
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
- {
+ {$driver = $this->getAdapter()->getAdapterType();
$country = [];
$number = 100;
diff --git a/db/seeds/HelpersSeeds.php b/db/seeds/HelpersSeeds.php
index 0162d34..f414603 100644
--- a/db/seeds/HelpersSeeds.php
+++ b/db/seeds/HelpersSeeds.php
@@ -15,7 +15,7 @@ class HelpersSeeds extends AbstractSeed
*/
public function run()
{
-
+ $driver = $this->getAdapter()->getAdapterType();
$country = [];
$number = 100;
diff --git a/db/seeds/ImperiumSeeds.php b/db/seeds/ImperiumSeeds.php
index 375f477..51757f7 100644
--- a/db/seeds/ImperiumSeeds.php
+++ b/db/seeds/ImperiumSeeds.php
@@ -14,8 +14,7 @@ class ImperiumSeeds extends AbstractSeed
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
- {
-
+ {$driver = $this->getAdapter()->getAdapterType();
$country = [];
$number = 100;
diff --git a/db/seeds/ModelSeeds.php b/db/seeds/ModelSeeds.php
index d44cb20..28d0db7 100644
--- a/db/seeds/ModelSeeds.php
+++ b/db/seeds/ModelSeeds.php
@@ -14,8 +14,7 @@ class ModelSeeds extends AbstractSeed
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
- {
-
+ {$driver = $this->getAdapter()->getAdapterType();
$country = [];
$number = 100;
diff --git a/helpers/helpers.php b/helpers/helpers.php
index 1a783ad..ddb2907 100644
--- a/helpers/helpers.php
+++ b/helpers/helpers.php
@@ -194,13 +194,11 @@ if (not_exist('article'))
{
$values = $data->current();
- append($code,'<div class="col-6"><div class="card mt-4 mb-4"><div class="embed-responsive embed-responsive-21by9"><div class="card-img-top" ><img src="'.$values->$img.'" alt="'.$values->$title.'" class="embed-responsive-item"></div></div><div class="card-body"><h5 class="card-title text-center text-uppercase">'.$values->$title.'</h5><hr><p class="card-text">'.substr($values->$content,0,\config($file,'limit')).'</p><p class="card-text"><a href="'.config($file,'prefix').'/'.$values->$slug.'" class="'.\config($file,'read_class').'"> '.$icon.' '.config($file,'read').'</a></p><div class="card-footer"><small class="text-muted">'.ago(\config('locales','locale'),$values->$created).'</small></div>');
- append($code,'</div></div></div>');
-
+ append($code,'<div class="col-lg-4 col-sm-6"><div class="card mb-3 mt-3"><h4 class="card-header bg-white text-uppercase text-center">'.$values->$title.'</h4><a href="'.config($file,'prefix').'/'.$values->$slug.'"><img src="'.$values->$img.'" alt="'.$values->$title.'" class="card-img-top"></a><div class="card-body"><div class="card-text">'.substr($values->$content,0,\config($file,'limit')).'</div><p class="card-text mt-2"><a href="'.config($file,'prefix').'/'.$values->$slug.'" class="'.\config($file,'read_class').'"> '.$icon.' '.config($file,'read').'</a></p></div><div class="card-footer"><small class="text-muted">'.ago(\config('locales','locale'),$values->$created).'</small></div></div></div>');
$data->next();
}
append($code,'</div>');
- append($code,'<div class="row ml-0">');
+ append($code,'<div class="row ml-0 mb-5">');
append($code,$pagination);
append($code,'</div>');
return $code;
diff --git a/phinx.php b/phinx.php
index 79fd059..aa1a22d 100644
--- a/phinx.php
+++ b/phinx.php
@@ -3,8 +3,8 @@
$file = 'db';
return [
"paths" => [
- "migrations" => "azerty/migrations",
- "seeds" => "azerty/seeds"
+ "migrations" => "db/migrations",
+ "seeds" => "db/seeds"
],
"environments" =>
[