Skip to content

Commit

Permalink
Page template sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
extrem7 committed Jul 24, 2020
1 parent 555bb91 commit cd303c0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
5 changes: 3 additions & 2 deletions Modules/Frontend/Providers/FrontendServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use App\Repositories\Interfaces\CountryRepositoryInterface;
use App\Services\SocialService;
use Illuminate\Support\ServiceProvider;
use Route2Class;
use View;

class FrontendServiceProvider extends ServiceProvider
Expand Down Expand Up @@ -68,7 +69,7 @@ protected function sharedData()
protected function viewComposer()
{
View::composer('frontend::layouts.master', function ($view) {
$bodyClass = \Route2Class::generateClassString();
$bodyClass = Route2Class::generateClassString();
$view->with('bodyClass', $bodyClass);
});
View::composer('frontend::errors.404', function ($view) {
Expand All @@ -85,7 +86,7 @@ protected function viewComposer()
'sidebarChannel' => $channelRepository->getSidebar()
]);
});
View::composer('frontend::pages.red-de-medios', function ($view) {
View::composer(['frontend::pages.quienes-somos', 'frontend::pages.red-de-medios'], function ($view) {
$channelRepository = app(ChannelRepositoryInterface::class);
share([
'sidebarChannels' => $channelRepository->getSidebar(2)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="col-xl-3 col-lg-4 indent-sm">
<social></social>
<rss-item v-bind="sidebarChannels[0]" class="mt-4"></rss-item>
<div class="ads-single mt-4">
@include('frontend::articles.includes.banner-bottom')
</div>
<rss-item v-bind="sidebarChannels[1]" class="mt-4"></rss-item>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@
<div class="description dynamic-content">{!!$page->body!!}</div>
</article>
</div>
<div class="col-xl-3 col-lg-4 indent-sm">
<social></social>
<rss-item v-bind="singleRss" class="mt-4"></rss-item>
@include('frontend::articles.includes.ads-single')
<rss-item v-bind="singleRss" class="mt-4"></rss-item>
</div>
@include('frontend::includes.page-sidebar')
</div>
</main>
@endsection
10 changes: 1 addition & 9 deletions Modules/Frontend/Resources/views/pages/red-de-medios.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,7 @@
</div>
</div>
</div>
<div class="col-xl-3 col-lg-4 indent-sm">
<social></social>
<rss-item v-bind="sidebarChannels[0]" class="mt-4"></rss-item>
<div class="ads-single mt-4">
@include('frontend::articles.includes.banner-bottom')
</div>
<rss-item v-bind="sidebarChannels[1]" class="mt-4"></rss-item>
</div>
@include('frontend::includes.page-sidebar')
</div>
</main>
@endsection

0 comments on commit cd303c0

Please sign in to comment.