Skip to content

Commit

Permalink
Improved SEO stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
artus9033 committed Jun 8, 2019
1 parent bc74d4b commit 912367e
Show file tree
Hide file tree
Showing 10 changed files with 148 additions and 247 deletions.
12 changes: 6 additions & 6 deletions app/Extensions/Berylium/ExtensionKernel.php
Expand Up @@ -331,29 +331,29 @@ public function returnItem($item, $url, $children_dropdown_caret, $class, $type)
}
if ($type == "mobile") {
$item_onclick = "onclick=\"window.location.href = '$href'\"";
$out = "<a $item_onclick class='$class' href='$href'>" . $item->title . "</a>$children_dropdown_caret";
$out = "<a title='$item->title' $item_onclick class='$class' href='$href'>" . $item->title . "</a>$children_dropdown_caret";
} else {
$out = "<a class='$class' href='$href'>" . $item->title . $children_dropdown_caret . "</a>";
$out = "<a title='$item->title' class='$class' href='$href'>" . $item->title . $children_dropdown_caret . "</a>";
}
break;

case BeryliumItemType::Link:
$href = $item->data;
if ($type == "mobile") {
$item_onclick = "onclick=\"window.location.href = '$href'\"";
$out = "<a $item_onclick class='$class' href='$href'>" . $item->title . "</a>$children_dropdown_caret";
$out = "<a title='$item->title' $item_onclick class='$class' href='$href'>" . $item->title . "</a>$children_dropdown_caret";
} else {
$out = "<a class='$class' href='$href'>" . $item->title . $children_dropdown_caret . "</a>";
$out = "<a title='$item->title' class='$class' href='$href'>" . $item->title . $children_dropdown_caret . "</a>";
}
break;

case BeryliumItemType::Placeholder:
$href = "";
if ($type == "mobile") {
$item_onclick = "onclick=\"window.location.href = '$href'\"";
$out = "<a $item_onclick class='$class' href='$href'>" . $item->title . "</a>$children_dropdown_caret";
$out = "<a title='$item->title' $item_onclick class='$class' href='$href'>" . $item->title . "</a>$children_dropdown_caret";
} else {
$out = "<a class='$class'>" . $item->title . $children_dropdown_caret . "</a>";
$out = "<a title='$item->title' class='$class'>" . $item->title . $children_dropdown_caret . "</a>";
}
break;
}
Expand Down
12 changes: 6 additions & 6 deletions app/Extensions/Berylium/Views/index.blade.php
Expand Up @@ -72,14 +72,14 @@
@if($synthesiscmsShowLoginRegisterButtons)
<ul style="width: 100%;" class="collapsible collapsible-accordion">
<li class="{{ $synthesiscmsMainColor }}-text col s12 waves-effect waves-{{ $synthesiscmsMainColor }} {{ $synthesiscmsMainColorClass }}">
<a class="{{ $synthesiscmsMainColor }}-text collapsible-header" href="{{ route('register') }}"><i
<a title="{!! trans('synthesiscms/menu.register') !!}" class="{{ $synthesiscmsMainColor }}-text collapsible-header" href="{{ route('register') }}"><i
class="material-icons {{ $synthesiscmsMainColor }}-text left">create</i>{!! trans('synthesiscms/menu.register') !!}
</a>
</li>
</ul>
<ul style="width: 100%;" class="collapsible collapsible-accordion">
<li class="{{ $synthesiscmsMainColor }}-text col s12 waves-effect waves-{{ $synthesiscmsMainColor }} {{ $synthesiscmsMainColorClass }}">
<a class="{{ $synthesiscmsMainColor }}-text collapsible-header" href="{{ route('login') }}"><i
<a title="{!! trans('synthesiscms/menu.login') !!}" class="{{ $synthesiscmsMainColor }}-text collapsible-header" href="{{ route('login') }}"><i
class="material-icons {{ $synthesiscmsMainColor }}-text left">fingerprint</i>{!! trans('synthesiscms/menu.login') !!}
</a>
</li>
Expand All @@ -97,15 +97,15 @@ class="material-icons {{ $synthesiscmsMainColor }}-text left">fingerprint</i>{!!
<ul>
<li>
@if(Auth::user()->is_admin)
<a class="{{ $synthesiscmsMainColor }}-text waves-effect waves-{{ $synthesiscmsMainColor }} {{ $synthesiscmsMainColorClass }}"
<a title="{!! trans('synthesiscms/menu.admin') !!}" class="{{ $synthesiscmsMainColor }}-text waves-effect waves-{{ $synthesiscmsMainColor }} {{ $synthesiscmsMainColorClass }}"
href="{{ route('admin') }}">
<i class="material-icons {{ $synthesiscmsMainColor }}-text left">build</i>{!! trans('synthesiscms/menu.admin') !!}
</a>
@endif
<a class="{{ $synthesiscmsMainColor }}-text" href="{{ route('profile') }}">
<a title="{!! trans('synthesiscms/menu.profile') !!}" class="{{ $synthesiscmsMainColor }}-text" href="{{ route('profile') }}">
<i class="material-icons {{ $synthesiscmsMainColor }}-text left">perm_identity</i>{!! trans('synthesiscms/menu.profile') !!}
</a>
<a class="{{ $synthesiscmsMainColor }}-text" href="{{ route('logout') }}"
<a title="{!! trans('synthesiscms/menu.logout') !!}" class="{{ $synthesiscmsMainColor }}-text" href="{{ route('logout') }}"
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
<i class="material-icons {{ $synthesiscmsMainColor }}-text left">power_settings_new</i>{!! trans('synthesiscms/menu.logout') !!}
</a>
Expand All @@ -125,7 +125,7 @@ class="material-icons {{ $synthesiscmsMainColor }}-text left">fingerprint</i>{!!
{!! $synthesiscmsPositionManager->getStandard(App\SynthesisCMS\API\Positions\SynthesisPositions::InsideMenu, Request::url()) !!}
<ul style="width: 100%;" class="collapsible collapsible-accordion">
<li class="no-padding">
<a class="collapsible-header {{ $synthesiscmsMainColor }}-text {{ $synthesiscmsMainColorClass }}">
<a title="{!! trans('Berylium::berylium.language') !!}" class="collapsible-header {{ $synthesiscmsMainColor }}-text {{ $synthesiscmsMainColorClass }}">
<i class="material-icons left {{ $synthesiscmsMainColor }}-text {{ $synthesiscmsMainColorClass }}">public</i>
{{ trans('Berylium::berylium.language') }}
<i class="material-icons right {{ $synthesiscmsMainColor }}-text {{ $synthesiscmsMainColorClass }}">arrow_drop_down</i>
Expand Down
2 changes: 1 addition & 1 deletion app/Extensions/Ferrum/Views/index.blade.php
Expand Up @@ -14,7 +14,7 @@ class="breadcrumb">{{ \App\Toolbox::string_truncate($page->page_title, 25) }}</a
@section('mod_main')
@if($extension_instance->showHeader)
<div class="col s10 offset-s1 card-panel white-text {{ $synthesiscmsMainColor }} {{ $synthesiscmsMainColorClass }} z-depth-2 hoverable center row">
<h3 class="col s12">{{ $page->page_title }}</h3>
<h1 class="col s12">{{ $page->page_title }}</h1>
<div class="col s12 row white divider" style="height: 2px;"></div>
<h5 class="col s12">{!! $page->page_header !!}</h5>
</div>
Expand Down
10 changes: 5 additions & 5 deletions app/Extensions/Hydrogen/Views/article.blade.php
Expand Up @@ -5,15 +5,15 @@
@endsection

@section('mod_breadcrumbs')
<a href="{{ url($base_slug) }}" class="breadcrumb">{{ \App\Toolbox::string_truncate($page->page_title, 25) }}</a>
<a class="breadcrumb">{{ \App\Toolbox::string_truncate($article->title, 25) }}</a>
<a title="{!! $page->page_title !!}" href="{{ url($base_slug) }}" class="breadcrumb">{{ \App\Toolbox::string_truncate($page->page_title, 25) }}</a>
<a title="{!! $article->title !!}" class="breadcrumb">{{ \App\Toolbox::string_truncate($article->title, 25) }}</a>
@endsection

@section('mod_main')
<article>
<article title="{!! $article->title !!}">
<div id="options" class="modal bottom-sheet">
<div class="modal-content center col s12">
<h4 class="col s12">{{ trans('Hydrogen::hydrogen.options_modal_header') }}</h4>
<h3 class="col s12">{{ trans('Hydrogen::hydrogen.options_modal_header') }}</h3>
<div class="col s12">
<div class="col s12">
<i onclick="window.print()"
Expand Down Expand Up @@ -44,7 +44,7 @@ class="copylink material-icons card-panel z-depth-2 hoverable medium waves-effec

@if($extension_instance->showHeader)
<div class="col s10 offset-s1 card-panel white-text {{ $synthesiscmsMainColor }} {{ $synthesiscmsMainColorClass }} z-depth-2 hoverable center row">
<h3 class="col s12">{{ $page->page_title }}</h3>
<h1 style="font-size: 2.92rem" class="col s12">{{ $page->page_title }}</h1>
<div class="col s12 row white divider" style="height: 2px;"></div>
<h5 class="col s12">{!! $page->page_header !!}</h5>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/Extensions/Hydrogen/Views/index.blade.php
Expand Up @@ -54,7 +54,7 @@
@include('partials/error', ['error' => trans("Hydrogen::messages.err_no_articles")]);
@else
<div class="col s10 offset-s1 card-panel white-text {{ $synthesiscmsMainColor }} {{ $synthesiscmsMainColorClass }} z-depth-2 hoverable center row">
<h3 class="col s12">{{ $page->page_title }}</h3>
<h1 style="font-size: 2.92rem" class="col s12">{{ $page->page_title }}</h1>
<div class="col s12 row white divider" style="height: 2px;"></div>
<h5 class="col s12">{!! $page->page_header !!}</h5>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/Extensions/Kryptonite/ExtensionKernel.php
Expand Up @@ -43,7 +43,7 @@ public function getRoutesAndSubroutes()

public function getExtensionName()
{
return trans('Kryptonite::Kryptonite.name');
return trans('Kryptonite::kryptonite.name');
}

public function editGet($page)
Expand Down
96 changes: 0 additions & 96 deletions app/Extensions/Kryptonite/Views/index.blade.php

This file was deleted.

4 changes: 2 additions & 2 deletions app/Extensions/Lithium/Views/index.blade.php
Expand Up @@ -5,7 +5,7 @@
@endsection

@section('mod_main')
<article>
<article title="{!! $page->page_title !!}">
<div id="options" class="modal bottom-sheet">
<div class="modal-content center col s12">
<h4 class="col s12">{{ trans('Hydrogen::hydrogen.options_modal_header') }}</h4>
Expand Down Expand Up @@ -39,7 +39,7 @@ class="copylink material-icons card-panel z-depth-2 hoverable medium waves-effec

@if($extension_instance->showHeader)
<div class="col s10 offset-s1 card-panel white-text {{ $synthesiscmsMainColor }} {{ $synthesiscmsMainColorClass }} z-depth-2 hoverable center row">
<h3 class="col s12">{{ $page->page_title }}</h3>
<h1 class="col s12">{{ $page->page_title }}</h1>
<div class="col s12 row white divider" style="height: 2px;"></div>
<h5 class="col s12">{!! $page->page_header !!}</h5>
</div>
Expand Down
1 change: 1 addition & 0 deletions app/Providers/ExtensionsServiceProvider.php
Expand Up @@ -58,6 +58,7 @@ public function boot()
if (is_dir($extensionsDirectoryPath . $extension . '/Views')) {
$this->loadViewsFrom($extensionsDirectoryPath . $extension . '/Views', $extension);
}

// Load translation files, then callable by trans("extensionName::path.to.file.and.value.from.extension.lang")
if (is_dir($extensionsDirectoryPath . $extension . '/Lang')) {
$this->loadTranslationsFrom($extensionsDirectoryPath . $extension . '/Lang', $extension);
Expand Down

0 comments on commit 912367e

Please sign in to comment.