diff --git a/blueprint.sh b/blueprint.sh index 418a169..e0ec004 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -433,16 +433,16 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then # insert "dashboard_wrapper" into wrapper.blade.php if [[ $dashboard_wrapper != "" ]]; then if [[ $DUPLICATE == "y" ]]; then - sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" resources/views/templates/base/core.blade.php; - sed -i "s~~~g" resources/views/templates/base/core.blade.php; - sed -i "s~~~g" resources/views/templates/base/core.blade.php; + sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" resources/views/templates/wrapper.blade.php; + sed -i "s~~~g" resources/views/templates/wrapper.blade.php; + sed -i "s~~~g" resources/views/templates/wrapper.blade.php; fi; touch .blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK; cat <(echo "") .blueprint/tmp/$n/$dashboard_wrapper > .blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK; cp .blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK .blueprint/tmp/$n/$dashboard_wrapper; rm .blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK; echo -e "\n" >> .blueprint/tmp/$n/$dashboard_wrapper; - sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$dashboard_wrapper" resources/views/templates/base/core.blade.php; + sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$dashboard_wrapper" resources/views/templates/wrapper.blade.php; fi; # insert "admin_wrapper" into admin.blade.php diff --git a/resources/views/templates/wrapper.blade.php b/resources/views/templates/wrapper.blade.php index 5d9b77c..cadfb28 100644 --- a/resources/views/templates/wrapper.blade.php +++ b/resources/views/templates/wrapper.blade.php @@ -44,6 +44,7 @@ @section('content') @yield('above-container') @yield('container') + @yield('below-container') @show @section('scripts')