diff --git a/content/includes/css.blade.php b/content/includes/css.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/content/includes/footer.blade.php b/content/includes/footer.blade.php new file mode 100644 index 0000000..3f33346 --- /dev/null +++ b/content/includes/footer.blade.php @@ -0,0 +1,23 @@ + diff --git a/content/includes/integrations.blade.php b/content/includes/integrations.blade.php new file mode 100644 index 0000000..9449fbd --- /dev/null +++ b/content/includes/integrations.blade.php @@ -0,0 +1,84 @@ +@if(App::environment('production')) + @if (!empty(config('settings.facebook'))) + + + @endif + + + @if (!empty(config('settings.hotjar'))) + + @endif + + + + @if (!empty(config('settings.analytics'))) + + + @endif + @if (!empty(config('settings.intercom')) && !empty(config('settings.intercom_key'))) + @if(Auth::check()) + @php ($hash_hmac = hash_hmac('sha256', Auth::user()->id, config('settings.intercom_key'))) + + @elseif(isset($invitedUser) && $invitedUser->invite != null) + @php ($hash_hmac = hash_hmac('sha256', $invitedUser->id, config('settings.intercom_key'))) + + @else + + @endif + + @endif +@endif \ No newline at end of file diff --git a/content/includes/meta.blade.php b/content/includes/meta.blade.php new file mode 100644 index 0000000..7e3d815 --- /dev/null +++ b/content/includes/meta.blade.php @@ -0,0 +1,131 @@ + + + + + + + + + + + + +@if (\Route::currentRouteName() == 'content' and isset($list)) + {{removeHtmlTags(showListTitle($list, $filters))}} + + + + + + + + @if ($list->image) + + @else + + @endif + + + + + +@elseif (\Route::currentRouteName() == 'author.get' and isset($author)) + Offene Jobangebote bei {{ $author->name }} + + + + + + + +@elseif (Route::currentRouteName() == 'content' and isset($content)) + {{ $content->title }} + + @isset($content->data_fields['stellenbeschreibung']) + + + @endisset + + + + + + + @if ($content->image) + + @else + + @endif + @if(App::environment('production')) + data_fields['beschaftigungsart'])){ + if ($content->data_fields['beschaftigungsart'] == 'Praktikum') { + $employmentType = "INTERN"; + } + if ($content->data_fields['beschaftigungsart'] == 'Vollzeit') { + $employmentType = "FULL_TIME"; + } + if ($content->data_fields['beschaftigungsart'] == 'Teilzeit') { + $employmentType = "PART_TIME"; + } + if ($content->data_fields['beschaftigungsart'] == 'Ausbildung') { + $employmentType = "INTERN"; + } + } + function escapeJsonString($value) + { + $escapers = array("\\", "/", "\"", "\n", "\r", "\t", "\x08", "\x0c"); + $replacements = array("\\\\", "\\/", "\\\"", "\\n", "\\r", "\\t", "\\f", "\\b"); + $result = str_replace($escapers, $replacements, $value); + return $result; + } + ?> + @isset ($content->data_fields['arbeitsort']['postalCode']) + + @endisset + @endif +@else + @yield('meta_title', '') + + + + + + + + +@endif + +@if (!empty(config('settings.favicon_image'))) + + + +@endif \ No newline at end of file diff --git a/content/includes/scripts.blade.php b/content/includes/scripts.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/content/master.blade.php b/content/master.blade.php new file mode 100644 index 0000000..da35e97 --- /dev/null +++ b/content/master.blade.php @@ -0,0 +1,23 @@ + + + + @include('template.'.config('settings.template').'.content.includes.meta') + @include('template.'.config('settings.template').'.content.includes.css') + @include('template.'.config('settings.template').'.content.includes.integrations') + + @yield('head') + + + + + @yield('content') + + @include('template.'.config('settings.template').'.content.includes.footer') + + @include('template.'.config('settings.template').'.content.includes.scripts') + + @yield('scripts') + @yield('end_scripts') + + + \ No newline at end of file