1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Custom js and css in client portal (#3638)

This commit is contained in:
Benjamin Beganović 2020-04-17 12:15:26 +02:00 committed by GitHub
parent 7454dfbb2f
commit 272109f699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -226,6 +226,11 @@ class CompanySettings extends BaseSettings
public $all_pages_footer = false;
public $pdf_variables = '';
public $portal_custom_head = '';
public $portal_custom_css = '';
public $portal_custom_footer = '';
public $portal_custom_js = '';
public static $casts = [
'portal_design_id' => 'string',
'late_fee_endless_percent' => 'float',
@ -385,6 +390,10 @@ class CompanySettings extends BaseSettings
'design' => 'string',
'website' => 'string',
'pdf_variables' => 'object',
'portal_custom_head' => 'string',
'portal_custom_css' => 'string',
'portal_custom_footer' => 'string',
'portal_custom_js' => 'string',
];
/**

View File

@ -56,9 +56,14 @@
<link rel="canonical" href="{{ config('ninja.site_url') }}/{{ request()->path() }}"/>
<style>
{!! $client->getSetting('portal_custom_css') !!}
</style>
{{-- Feel free to push anything to header using @push('header') --}}
@stack('head')
{!! $client->getSetting('portal_custom_head') !!}
</head>
<body class="antialiased">
@ -70,6 +75,12 @@
<footer>
@yield('footer')
@stack('footer')
{!! $client->getSetting('portal_custom_footer') !!}
</footer>
<script>
{!! $client->getSetting('portal_custom_js') !!}
</script>
</html>