Commit 9d1c3fe1 by Bagus Pambudi

tambah google search console

parent 50e0be02
...@@ -158,5 +158,15 @@ class SettingsTableSeeder extends Seeder ...@@ -158,5 +158,15 @@ class SettingsTableSeeder extends Seeder
'userid_created' => 'Aan Choesni Herlingga', 'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga', 'userid_updated' => 'Aan Choesni Herlingga',
]); ]);
// ID GOOGLE SEARCH CONSOLE
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'ID GOOGLE SEARCH CONSOLE',
'name_setting' => 'id_gsc',
'value_setting' => '',
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
} }
} }
...@@ -62,3 +62,24 @@ ...@@ -62,3 +62,24 @@
@endif @endif
@endif @endif
@endforeach @endforeach
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-search search-btn"></i> <div class="arrow-up"></div></a>
<ul class="dropdown-menu" style="text-transform: capitalize;">
<form action="#">
<div class="input-group input-large col-sm-12">
<script>
(function() {
var cx = '{{$setting['id_gsc']}}';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
</form>
</ul>
</li>
\ No newline at end of file
...@@ -62,3 +62,24 @@ ...@@ -62,3 +62,24 @@
@endif @endif
@endif @endif
@endforeach @endforeach
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-search search-btn"></i> <div class="arrow-up"></div></a>
<ul class="dropdown-menu" style="text-transform: capitalize;">
<form action="#">
<div class="input-group input-large col-sm-12">
<script>
(function() {
var cx = '{{$setting['id_gsc']}}';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
</form>
</ul>
</li>
\ No newline at end of file
...@@ -62,3 +62,24 @@ ...@@ -62,3 +62,24 @@
@endif @endif
@endif @endif
@endforeach @endforeach
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-search search-btn"></i> <div class="arrow-up"></div></a>
<ul class="dropdown-menu" style="text-transform: capitalize;">
<form action="#">
<div class="input-group input-large col-sm-12">
<script>
(function() {
var cx = '{{$setting['id_gsc']}}';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
</form>
</ul>
</li>
\ No newline at end of file
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<div class="input-group input-large col-sm-12"> <div class="input-group input-large col-sm-12">
<script> <script>
(function() { (function() {
var cx = '015636097340515973415:j4b24ginvqk'; var cx = '{{$setting['id_gsc']}}';
var gcse = document.createElement('script'); var gcse = document.createElement('script');
gcse.type = 'text/javascript'; gcse.type = 'text/javascript';
gcse.async = true; gcse.async = true;
......
...@@ -62,3 +62,24 @@ ...@@ -62,3 +62,24 @@
@endif @endif
@endif @endif
@endforeach @endforeach
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-search search-btn"></i> <div class="arrow-up"></div></a>
<ul class="dropdown-menu" style="text-transform: capitalize;">
<form action="#">
<div class="input-group input-large col-sm-12">
<script>
(function() {
var cx = '{{$setting['id_gsc']}}';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
</form>
</ul>
</li>
\ No newline at end of file
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