Commit f25b9b14 by Arpit Jain

worked on feed section

parent 887b6b5b
......@@ -146,6 +146,8 @@ class HomepageController extends AdminController
if($show == 'on'){
$homepage->show_feed = '1';
}else{
$homepage->show_feed = '0';
}
$homepage->meta_title = $meta_title;
......
......@@ -30,5 +30,9 @@ class AppServiceProvider extends ServiceProvider
view()->composer('layouts.footer', function ($view) {
$view->with('homepage', \App\Homepage::homepage());
});
view()->composer('frontend.searchs.detail', function ($view) {
$view->with('homepage', \App\Homepage::homepage());
});
}
}
......@@ -52,6 +52,8 @@
<?php
if($data->show_feed == 1){
$checked = "checked";
}else{
$checked = "";
} ?>
<input <?php echo $checked; ?> type="checkbox" style="width: 25px;height: 25px;" name="show">
<span><b>Checked check box if you want to show feeds in detail page.</b></span>
......
......@@ -105,7 +105,7 @@
</section>
@endif
<?php if($homepage->show_feed == 1){ ?>
<section class="container promotion-wrapper">
<div class="row">
<div class="col-12">
......@@ -124,7 +124,7 @@
</div>
</div>
</section>
<?php } ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment