@@ -121,45 +121,45 @@ function themeAsset($path){
121121 <!-- Theme details: -->
122122 <meta name =" designer" href =" {{ url (' ' ) . " /theme/@" . $littlelink_name } }" content =" {{ url (' ' ) . " /theme/@" . $littlelink_name } }" >
123123
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" >
125125 @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' ) } } " >
127127 @else
128- <style > {!! file_get_contents ( base_path ( " themes/$info -> theme /brands.css" )) ! !} </ style >
128+ <link rel = " stylesheet " href = " themes/{{ $info -> theme } } /brands.css" >
129129 @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' ) ? > " >
133133@else
134134 <link rel =" stylesheet" href =" {{ asset (' littlelink/css/animations.css' ) } }" >
135135@endif
136136
137137@else
138138 <?php // override dark/light mode if override cookie is set
139139 $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' ) } } " >
143143 @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' ) } } " >
145145 <style >.social-icon {color :#fff ;} </style >
146146 @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' ) } } " >
148148 <style >.social-icon {color :#222 ;} </style >
149149 @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' ) } } " >
151151 <style >.social-icon {color :#fff ;} </style >
152152 @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' ) } } " >
154154 <style >.social-icon {color :#222 ;} </style >
155155 @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' ) } } " >
157157 <style >.social-icon {color :#fff ;} </style >
158158 @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' ) } } " >
160160 <style >.social-icon {color :#222 ;} </style >
161161 @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' ) } } " >
163163 @endif
164164@endif
165165<style >.container {word-break : break-word ;} </style >
0 commit comments