@@ -121,45 +121,45 @@ function themeAsset($path){
121
121
<!-- Theme details: -->
122
122
<meta name =" designer" href =" {{ url (' ' ) . " /theme/@" . $littlelink_name } }" content =" {{ url (' ' ) . " /theme/@" . $littlelink_name } }" >
123
123
124
- <style > {!! file_get_contents ( base_path ( " themes/$info -> theme /share.button.css" )) ! !} </ style >
124
+ <link rel = " stylesheet " href = " themes/{{ $info -> theme } } /share.button.css" >
125
125
@if (theme (' use_default_buttons' ) == " true" )
126
- <style > {!! file_get_contents ( base_path ( " littlelink/css/brands.css" )) ! !} </ style >
126
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/brands.css' ) } } " >
127
127
@else
128
- <style > {!! file_get_contents ( base_path ( " themes/$info -> theme /brands.css" )) ! !} </ style >
128
+ <link rel = " stylesheet " href = " themes/{{ $info -> theme } } /brands.css" >
129
129
@endif
130
- <style > {!! file_get_contents ( base_path ( " themes/$info -> theme /skeleton-auto.css" )) ! !} </ style >
131
- @if (file_exists (base_path (' themes/$info->theme/animations.css' )) )
132
- <style > {!! file_get_contents ( base_path ( " themes/' . $info -> theme . '/animations.css" )) ! !} </ style >
130
+ <link rel = " stylesheet " href = " themes/{{ $info -> theme } } /skeleton-auto.css" >
131
+ @if (file_exists (base_path (' themes/' . $info -> theme . ' /animations.css' )) )
132
+ <link rel = " stylesheet " href = " <?php echo asset ( ' themes/' . $info -> theme . ' /animations.css' ) ? > " >
133
133
@else
134
134
<link rel =" stylesheet" href =" {{ asset (' littlelink/css/animations.css' ) } }" >
135
135
@endif
136
136
137
137
@else
138
138
<?php // override dark/light mode if override cookie is set
139
139
$color_scheme_override = isset ($_COOKIE [" color_scheme_override" ]) ? $_COOKIE [" color_scheme_override" ] : false ; ? >
140
- <style > {!! file_get_contents ( base_path ( " littlelink/css/share.button.css" )) ! !} </ style >
141
- <style > {!! file_get_contents ( base_path ( " littlelink/css/animations.css" )) ! !} </ style >
142
- <style > {!! file_get_contents ( base_path ( " littlelink/css/brands.css" )) ! !} </ style >
140
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/share.button.css' ) } } " >
141
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/animations.css' ) } } " >
142
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/brands.css' ) } } " >
143
143
@if ($customBackgroundExists == true and $customBackgroundBrightness == ' dark' )
144
- <style > {!! file_get_contents ( base_path ( " littlelink/css/skeleton-dark.css" )) ! !} </ style >
144
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/skeleton-dark.css' ) } } " >
145
145
<style >.social-icon {color :#fff ;} </style >
146
146
@elseif ($customBackgroundExists == true and $customBackgroundBrightness == ' light' )
147
- <style > {!! file_get_contents ( base_path ( " littlelink/css/skeleton-light.css" )) ! !} </ style >
147
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/skeleton-light.css' ) } } " >
148
148
<style >.social-icon {color :#222 ;} </style >
149
149
@elseif ($color_scheme_override == ' dark' )
150
- <style > {!! file_get_contents ( base_path ( " littlelink/css/skeleton-dark.css" )) ! !} </ style >
150
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/skeleton-dark.css' ) } } " >
151
151
<style >.social-icon {color :#fff ;} </style >
152
152
@elseif ($color_scheme_override == ' light' )
153
- <style > {!! file_get_contents ( base_path ( " littlelink/css/skeleton-light.css" )) ! !} </ style >
153
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/skeleton-light.css' ) } } " >
154
154
<style >.social-icon {color :#222 ;} </style >
155
155
@elseif (config (' advanced-config.theme' ) == ' dark' )
156
- <style > {!! file_get_contents ( base_path ( " littlelink/css/skeleton-dark.css" )) ! !} </ style >
156
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/skeleton-dark.css' ) } } " >
157
157
<style >.social-icon {color :#fff ;} </style >
158
158
@elseif (config (' advanced-config.theme' ) == ' light' )
159
- <style > {!! file_get_contents ( base_path ( " littlelink/css/skeleton-light.css" )) ! !} </ style >
159
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/skeleton-light.css' ) } } " >
160
160
<style >.social-icon {color :#222 ;} </style >
161
161
@else
162
- <style > {!! file_get_contents ( base_path ( " littlelink/css/skeleton-auto.css" )) ! !} </ style >
162
+ <link rel = " stylesheet " href = " {{ asset ( ' littlelink/css/skeleton-auto.css' ) } } " >
163
163
@endif
164
164
@endif
165
165
<style >.container {word-break : break-word ;} </style >
0 commit comments