From b61c6544ae2f45ab4a3703e302a15c7877429cf8 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Wed, 11 Dec 2019 17:07:56 +0300 Subject: [PATCH] remove block seeder --- .../advs-module/src/AdvsModuleSeeder.php | 3 - .../advs-module/src/Seed/BlockSeeder.php | 208 ------------------ .../Seed/Blocks/left-home-banner-area.twig | 3 - .../Blocks/list-item-right-sidebar-en.twig | 45 ---- .../Blocks/list-item-right-sidebar-tr.twig | 50 ----- .../Seed/Blocks/middle-home-banner-area.twig | 3 - .../Seed/Blocks/right-home-banner-area.twig | 3 - 7 files changed, 315 deletions(-) delete mode 100644 addons/default/visiosoft/advs-module/src/Seed/BlockSeeder.php delete mode 100644 addons/default/visiosoft/advs-module/src/Seed/Blocks/left-home-banner-area.twig delete mode 100644 addons/default/visiosoft/advs-module/src/Seed/Blocks/list-item-right-sidebar-en.twig delete mode 100644 addons/default/visiosoft/advs-module/src/Seed/Blocks/list-item-right-sidebar-tr.twig delete mode 100644 addons/default/visiosoft/advs-module/src/Seed/Blocks/middle-home-banner-area.twig delete mode 100644 addons/default/visiosoft/advs-module/src/Seed/Blocks/right-home-banner-area.twig diff --git a/addons/default/visiosoft/advs-module/src/AdvsModuleSeeder.php b/addons/default/visiosoft/advs-module/src/AdvsModuleSeeder.php index eba3670b2..a511c269b 100644 --- a/addons/default/visiosoft/advs-module/src/AdvsModuleSeeder.php +++ b/addons/default/visiosoft/advs-module/src/AdvsModuleSeeder.php @@ -1,8 +1,6 @@ call(BlockSeeder::class); } } \ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/src/Seed/BlockSeeder.php b/addons/default/visiosoft/advs-module/src/Seed/BlockSeeder.php deleted file mode 100644 index e67221aea..000000000 --- a/addons/default/visiosoft/advs-module/src/Seed/BlockSeeder.php +++ /dev/null @@ -1,208 +0,0 @@ -where('slug', 'left-home-banner-area') - ->orWhere('slug', 'middle-home-banner-area') - ->orWhere('slug', 'right-home-banner-area') - ->orWhere('slug', 'list-item-right-sidebar') - ->orWhere('slug', 'center-add-ad-banner-area') - ->orWhere('slug', 'profile-right-sidebar') - ->delete(); - - // Add Ad Center Banner Area - $center_add_ad_banner_area = BlocksAreasEntryModel::create([ - 'en' => [ - 'name' => 'Center Add Ad Banner Area', - ], - 'tr' => [ - 'name' => 'İlan Ver Orta Reklam Alanı', - ], - 'slug' => 'center-add-ad-banner-area', - ]); - - $center_add_ad_banner_html = HtmlBlockBlocksEntryModel::create([ - 'en' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/middle-home-banner-area.twig'), - ], - 'tr' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/middle-home-banner-area.twig'), - ], - ]); - - BlocksBlocksEntryModel::create([ - 'area_id' => $center_add_ad_banner_area->id, - 'area_type' => 'Anomaly\BlocksModule\Area\AreaModel', - 'field_id' => 52, - 'extension' => 'anomaly.extension.html_block', - 'display_title' => 0, - 'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel', - 'entry_id' => $center_add_ad_banner_html->id, - ]); - - // left Home Banner Area - $left_home_banner_area = BlocksAreasEntryModel::create([ - 'en' => [ - 'name' => 'Left Home Banner Area', - ], - 'tr' => [ - 'name' => 'Anasayfa Sol reklam alanı', - ], - 'slug' => 'left-home-banner-area', - ]); - - $left_home_banner_html = HtmlBlockBlocksEntryModel::create([ - 'en' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/left-home-banner-area.twig'), - ], - 'tr' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/left-home-banner-area.twig'), - ], - ]); - - BlocksBlocksEntryModel::create([ - 'area_id' => $left_home_banner_area->id, - 'area_type' => 'Anomaly\BlocksModule\Area\AreaModel', - 'field_id' => 52, - 'extension' => 'anomaly.extension.html_block', - 'display_title' => 0, - 'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel', - 'entry_id' => $left_home_banner_html->id, - ]); - - // middle Home Banner Area - $middle_home_banner_area = BlocksAreasEntryModel::create([ - 'en' => [ - 'name' => 'Middle Home Banner Area', - ], - 'tr' => [ - 'name' => 'Anasayfa Orta reklam alanı', - ], - 'slug' => 'middle-home-banner-area', - ]); - - $middle_home_banner_html = HtmlBlockBlocksEntryModel::create([ - 'en' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/middle-home-banner-area.twig'), - ], - 'tr' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/middle-home-banner-area.twig'), - ], - ]); - BlocksBlocksEntryModel::create([ - 'area_id' => $middle_home_banner_area->id, - 'area_type' => 'Anomaly\BlocksModule\Area\AreaModel', - 'field_id' => 52, - 'extension' => 'anomaly.extension.html_block', - 'display_title' => 0, - 'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel', - 'entry_id' => $middle_home_banner_html->id, - ]); - - // right Home Banner Area - $right_home_banner_area = BlocksAreasEntryModel::create([ - 'en' => [ - 'name' => 'Right Home Banner Area', - ], - 'tr' => [ - 'name' => 'Anasayfa Sağ reklam alanı', - ], - 'slug' => 'right-home-banner-area', - ]); - - $right_home_banner_html = HtmlBlockBlocksEntryModel::create([ - 'en' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/right-home-banner-area.twig'), - - ], - 'tr' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/right-home-banner-area.twig'), - - ], - ]); - - BlocksBlocksEntryModel::create([ - 'area_id' => $right_home_banner_area->id, - 'area_type' => 'Anomaly\BlocksModule\Area\AreaModel', - 'field_id' => 52, - 'extension' => 'anomaly.extension.html_block', - 'display_title' => 0, - 'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel', - 'entry_id' => $right_home_banner_html->id, - ]); - - // List item Right Sidebar - $list_item_right_sidebar_area = BlocksAreasEntryModel::create([ - 'en' => [ - 'name' => 'List item Right Sidebar', - ], - 'tr' => [ - 'name' => 'ilan Detay Sağ Alan', - ], - 'slug' => 'list-item-right-sidebar', - ]); - - $list_item_right_sidebar_html = HtmlBlockBlocksEntryModel::create([ - 'en' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/list-item-right-sidebar-en.twig'), - ], - 'tr' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/list-item-right-sidebar-tr.twig'), - ], - ]); - BlocksBlocksEntryModel::create([ - 'area_id' => $list_item_right_sidebar_area->id, - 'area_type' => 'Anomaly\BlocksModule\Area\AreaModel', - 'field_id' => 52, - 'extension' => 'anomaly.extension.html_block', - 'display_title' => 0, - 'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel', - 'entry_id' => $list_item_right_sidebar_html->id, - ]); - - // Profile Right Sidebar - - $profile_right_sidebar_area = BlocksAreasEntryModel::create([ - 'en' => [ - 'name' => 'Profile Right Sidebar', - ], - 'tr' => [ - 'name' => 'Profil Sağ Alan', - ], - 'slug' => 'profile-right-sidebar', - ]); - - $profile_right_sidebar_html = HtmlBlockBlocksEntryModel::create([ - 'en' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/list-item-right-sidebar-en.twig'), - ], - 'tr' => [ - 'html' => file_get_contents(__DIR__ . '/Blocks/list-item-right-sidebar-tr.twig'), - ], - ]); - BlocksBlocksEntryModel::create([ - 'area_id' => $profile_right_sidebar_area->id, - 'area_type' => 'Anomaly\BlocksModule\Area\AreaModel', - 'field_id' => 52, - 'extension' => 'anomaly.extension.html_block', - 'display_title' => 0, - 'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel', - 'entry_id' => $profile_right_sidebar_html->id, - ]); - - } -} diff --git a/addons/default/visiosoft/advs-module/src/Seed/Blocks/left-home-banner-area.twig b/addons/default/visiosoft/advs-module/src/Seed/Blocks/left-home-banner-area.twig deleted file mode 100644 index e8325f104..000000000 --- a/addons/default/visiosoft/advs-module/src/Seed/Blocks/left-home-banner-area.twig +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/src/Seed/Blocks/list-item-right-sidebar-en.twig b/addons/default/visiosoft/advs-module/src/Seed/Blocks/list-item-right-sidebar-en.twig deleted file mode 100644 index 01e7f4332..000000000 --- a/addons/default/visiosoft/advs-module/src/Seed/Blocks/list-item-right-sidebar-en.twig +++ /dev/null @@ -1,45 +0,0 @@ -
- -
- -
- Icon -
- -

Secure Trading

-

Lorem ipsum dolor sit amet, consectetur adipisicing elit

-
- - -
- -
- Icon -
- -

24/7 Support

-

Lorem ipsum dolor sit amet, consectetur adipisicing elit

-
- - - -
- -
- Icon -
- -

Easy Trading

-

Lorem ipsum dolor sit amet, consectetur adipisicing elit

-
- - -
-
Need help?
-

Give a call on 08048100000

-
-
\ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/src/Seed/Blocks/list-item-right-sidebar-tr.twig b/addons/default/visiosoft/advs-module/src/Seed/Blocks/list-item-right-sidebar-tr.twig deleted file mode 100644 index bce963ff7..000000000 --- a/addons/default/visiosoft/advs-module/src/Seed/Blocks/list-item-right-sidebar-tr.twig +++ /dev/null @@ -1,50 +0,0 @@ -
- -
- -
- Icon -
- -

Güvenli Ticaret

-

Kolay, Güvenli ve Avantajlı Alışveriş için

-
- - -
- -
- Icon -
- -

7/24 Saat Destek

-

Hızlı ve Kolay çözüm imkanı

-
- - - -
- -
- Icon -
- -

Kolay Alışveriş

-

Çoklu dil desteği ve Çoklu Para Birimi

-
- - -
- -
- Icon -
-
Yardıma mı ihtiyacınız var?
-

Hemen Arayın 08048100000

-
-
\ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/src/Seed/Blocks/middle-home-banner-area.twig b/addons/default/visiosoft/advs-module/src/Seed/Blocks/middle-home-banner-area.twig deleted file mode 100644 index 3e24115e7..000000000 --- a/addons/default/visiosoft/advs-module/src/Seed/Blocks/middle-home-banner-area.twig +++ /dev/null @@ -1,3 +0,0 @@ -
- Image -
\ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/src/Seed/Blocks/right-home-banner-area.twig b/addons/default/visiosoft/advs-module/src/Seed/Blocks/right-home-banner-area.twig deleted file mode 100644 index 120413a60..000000000 --- a/addons/default/visiosoft/advs-module/src/Seed/Blocks/right-home-banner-area.twig +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file