]> _ Git - pmi.git/commitdiff
WIP #3332 @1.5
authorStephen Cameron <stephen@cubedesigners.com>
Tue, 14 Jan 2020 14:20:20 +0000 (15:20 +0100)
committerStephen Cameron <stephen@cubedesigners.com>
Tue, 14 Jan 2020 14:20:20 +0000 (15:20 +0100)
config/markdown.php
resources/views/pages/cart.blade.php
resources/views/pages/home.blade.php
resources/views/pages/text.blade.php
resources/views/partials/intro.blade.php

index dc809bf482a4947f15afbe2180ce870d56f44da7..aa94f1eaa0d8352891a779fc3ccb8453ed9b5117 100644 (file)
@@ -163,6 +163,6 @@ return [
     'max_nesting_level' => INF,
 
     'heading_offset' => 1,
-    'hading_max' => 6
+    'heading_max' => 6
 
 ];
index c438b471673aeeb10fe63e6634fd86be0a774513..03a650aef0f6f6ccd6fec31a9517953a7445ef4e 100644 (file)
@@ -3,7 +3,7 @@
 @section('content')
 
     <content class="pb-3v">
-        <text-block :title="$page->page_heading" />
+        <text-block :title="$page->page_heading" title-tag="h1" />
 
         <div v-if="cartItemCount > 0">
 
index b399a47523eeec52adb803bb552a44b451aed7c2..494668628ffceadeeaba099ca829968decfbe7ca 100644 (file)
@@ -26,7 +26,7 @@
                             <div class="mobile-bg"
                                  style="background-image: url({{$page->getImageURLByCollection($slide['image'])}})"></div>
 
-                            <text-block :title="$slide['title']" title-class="h1 text-inherit">
+                            <text-block :title="$slide['title']" title-tag="h1" title-class="h1 text-inherit">
                                 <p>
                                     {!! nl2br($slide['text']) !!}
                                 </p>
@@ -56,7 +56,7 @@
     </section>
 
     {{-- Intro text --}}
-    @intro(['padding' => 'pt-5v pb-4v'])
+    @intro(['title_tag' => 'h2', 'padding' => 'pt-5v pb-4v'])
 
     {{-- Our products --}}
     <full-width class="bg-grey-100">
     </full-width>
 
     {{-- Services & Support --}}
-    @intro(['name' => 'services_support', 'class' => 'bg-grey-100'])
+    @intro(['name' => 'services_support', 'title_tag' => 'h2', 'class' => 'bg-grey-100'])
 
     @if(config('features.news') && count($news) > 0)
         {{-- News --}}
index 3abde2b5e3e8455b0ff79b42fc13a1e1adcc57fd..2ae7ff51adf7f1e8046469136b5e6e170ccb2e9f 100644 (file)
@@ -2,11 +2,10 @@
 
 @section('content')
 
-
     <full-width padding="pb-4v">
         <content>
             @markdown($page->get('content'))
         </content>
-
     </full-width>
+
 @endsection
index 0a7578069fce5ee68e6e0ddb8fae0c6afb1c6e4f..04d8074582976768856e8f01552f86c5121a2021 100644 (file)
@@ -5,6 +5,7 @@
     $name = $name ?? 'intro';
 
     $title = \Illuminate\Support\Str::ucfirst($page->get("$name.title", $page->get("name")));
+    $title_tag = $title_tag ?? 'h1';
     $image = $page->getImageURL("$name.image",'',asset('storage/uploads/images/products-intro.jpg'));
     $class = $class ?? '';
     $padding = $padding ?? null; // Pass null so it doesn't override default padding
@@ -22,7 +23,7 @@
             </column>
 
             <column>
-                <text-block class="pt-2v" title-class="h1 overlap-left" :title="$title">
+                <text-block class="pt-2v" title-class="h1 overlap-left" :title="$title" :title-tag="$title_tag">
                     <p>@markdown($page->get("$name.text"))</p>
 
                     @if ($button)