removed gcs page

This commit is contained in:
Pachira 2016-12-21 17:27:51 +01:00
parent 180a059047
commit 13a9029abd
5 changed files with 3 additions and 35 deletions

View file

@ -82,13 +82,4 @@ class MetaController extends Controller
// Return the compiled page
return Template::render('meta/index');
}
/**
* Search page.
* @return string
*/
public function search(): string
{
return view('meta/search');
}
}

View file

@ -33,7 +33,7 @@
button to try another link.
</li>
<li>
Click <img src="/images/404-search.gif"><a href="{{ route('main.search') }}">Search</a>
Click <img src="/images/404-search.gif"><a href="#">Search</a>
to look for information on the Internet.
</li>
</ul>

View file

@ -38,7 +38,7 @@
<a class="header__menu-item fa fa-newspaper-o" href="{{ route('news.index') }}" title="News"></a>
<a class="header__menu-item fa fa-commenting" href="#" title="Chat"></a>
<a class="header__menu-item fa fa-list" href="{{ route('forums.index') }}" title="Forums"></a>
<a class="header__menu-item fa fa-search" href="{{ route('main.search') }}" title="Search"></a>
{#<a class="header__menu-item fa fa-search" href="#" title="Search"></a>#}
{% if user.isActive %}
<a class="header__menu-item fa fa-users" href="{{ route('members.index') }}" title="Members"></a>
<a class="header__menu-item fa fa-heart" href="{{ route('premium.index') }}" title="Support us"></a>
@ -94,7 +94,7 @@
<li class="footer__item footer__item--head">General</li>
<li class="footer__item"><a class="footer__link" href="{{ route('main.index') }}">Home</a></li>
<li class="footer__item"><a class="footer__link" href="{{ route('news.index') }}">News</a></li>
<li class="footer__item"><a class="footer__link" href="{{ route('main.search') }}">Search</a></li>
{#<li class="footer__item"><a class="footer__link" href="#">Search</a></li>#}
<li class="footer__item"><a class="footer__link" href="https://sakura.flash.moe">Changelog</a></li>
<li class="footer__item"><a class="footer__link" href="{{ route('premium.index') }}">Support us</a></li>
</ul>

View file

@ -1,22 +0,0 @@
{% extends 'master.twig' %}
{% set title = 'Search' %}
{% block content %}
<div class="content" style="background: #fff;">
<div class="content__header">Search</div>
<script>
(function() {
var cx = '013363332951923767879:krqdp_wt-eg';
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:searchbox></gcse:searchbox>
<gcse:searchresults></gcse:searchresults>
</div>
{% endblock %}

View file

@ -20,7 +20,6 @@ Router::filter('maintenance', function () {
Router::group(['before' => 'maintenance'], function () {
// Meta pages
Router::get('/', 'MetaController@index', 'main.index');
Router::get('/search', 'MetaController@search', 'main.search');
// Link compatibility layer, prolly remove this in like a year
Router::get('/r/{id}', function ($id) {