mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 10:54:34 -04:00
Custom js and css in client portal (#3638)
This commit is contained in:
parent
7454dfbb2f
commit
272109f699
@ -226,6 +226,11 @@ class CompanySettings extends BaseSettings
|
|||||||
public $all_pages_footer = false;
|
public $all_pages_footer = false;
|
||||||
public $pdf_variables = '';
|
public $pdf_variables = '';
|
||||||
|
|
||||||
|
public $portal_custom_head = '';
|
||||||
|
public $portal_custom_css = '';
|
||||||
|
public $portal_custom_footer = '';
|
||||||
|
public $portal_custom_js = '';
|
||||||
|
|
||||||
public static $casts = [
|
public static $casts = [
|
||||||
'portal_design_id' => 'string',
|
'portal_design_id' => 'string',
|
||||||
'late_fee_endless_percent' => 'float',
|
'late_fee_endless_percent' => 'float',
|
||||||
@ -385,6 +390,10 @@ class CompanySettings extends BaseSettings
|
|||||||
'design' => 'string',
|
'design' => 'string',
|
||||||
'website' => 'string',
|
'website' => 'string',
|
||||||
'pdf_variables' => 'object',
|
'pdf_variables' => 'object',
|
||||||
|
'portal_custom_head' => 'string',
|
||||||
|
'portal_custom_css' => 'string',
|
||||||
|
'portal_custom_footer' => 'string',
|
||||||
|
'portal_custom_js' => 'string',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,9 +56,14 @@
|
|||||||
|
|
||||||
<link rel="canonical" href="{{ config('ninja.site_url') }}/{{ request()->path() }}"/>
|
<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') --}}
|
{{-- Feel free to push anything to header using @push('header') --}}
|
||||||
@stack('head')
|
@stack('head')
|
||||||
|
|
||||||
|
{!! $client->getSetting('portal_custom_head') !!}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="antialiased">
|
<body class="antialiased">
|
||||||
@ -70,6 +75,12 @@
|
|||||||
<footer>
|
<footer>
|
||||||
@yield('footer')
|
@yield('footer')
|
||||||
@stack('footer')
|
@stack('footer')
|
||||||
|
|
||||||
|
{!! $client->getSetting('portal_custom_footer') !!}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
{!! $client->getSetting('portal_custom_js') !!}
|
||||||
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user