@@ -108,24 +108,32 @@ public function render() {
108
108
*/
109
109
public function scripts () {
110
110
111
- $ scripts = '<link href="vendor/Notify/themify-icons.css" rel="stylesheet" type="text/css">
112
-
113
- <script type="text/javascript" src="vendor/Notify/jquery/jquery-3.2.1.min.js"></script> ' ;
111
+ $ scripts = '<link href=" ' . asset ('vendor/Notify/themify-icons.css ' ) .'" rel="stylesheet" type="text/css"> ' ;
112
+
113
+ if ($ this ->options ['include:Jquery ' ]):
114
+ $ scripts .= '<script type="text/javascript" src=" ' . asset ('vendor/Notify/jquery/jquery-3.2.1.min.js ' ) .'"></script>; ' ;
115
+ endif ;
114
116
115
117
if ($ this ->options ['lib ' ] === 'toastr ' ):
116
- $ scripts .= '<link href="vendor/Notify/toastr/toastr.min.css" rel="stylesheet" type="text/css">
117
- <script type="text/javascript" src="vendor/Notify/toastr/toastr.min.js"></script> ' ;
118
+ $ scripts .= '<link href=" ' . asset ('vendor/Notify/toastr/toastr.min.css ' ) .'" rel="stylesheet" type="text/css">
119
+ <script type="text/javascript" src=" ' . asset ('vendor/Notify/toastr/toastr.min.js ' ) .'"></script> ' ;
120
+
118
121
elseif ($ this ->options ['lib ' ] === 'pnotify ' ):
119
- $ scripts .= '<link href="vendor/Notify/animate.css" rel="stylesheet" type="text/css">
120
- <link href="vendor/Notify/pnotify/pnotify.custom.min.css" rel="stylesheet" type="text/css">
121
- <script type="text/javascript" src="vendor/Notify/pnotify/pnotify.custom.min.js"></script> ' ;
122
+
123
+ if ($ this ->options ['include:Animate ' ]):
124
+ $ scripts .= '<link href=" ' . asset ('vendor/Notify/animate.css ' ) .'" rel="stylesheet" type="text/css"> ' ;
125
+ endif ;
126
+
127
+ $ scripts .= '<link href=" ' . asset ('vendor/Notify/pnotify/pnotify.custom.min.css ' ) .'" rel="stylesheet" type="text/css">
128
+ <script type="text/javascript" src=" ' . asset ('vendor/Notify/pnotify/pnotify.custom.min.js ' ) .'"></script> ' ;
122
129
if ($ this ->config ['desktop ' ]['desktop ' ] === true ):
123
130
$ scripts .= 'PNotify.desktop.permission(); ' ;
124
131
endif ;
132
+
125
133
endif ;
126
134
127
135
if ($ this ->options ['style ' ] === 'custom ' ):
128
- $ scripts .= '<link href="vendor/Notify/style.css" rel="stylesheet" type="text/css"> ' ;
136
+ $ scripts .= '<link href=" ' . asset ( ' vendor/Notify/style.css ' ) . ' " rel="stylesheet" type="text/css"> ' ;
129
137
endif ;
130
138
131
139
return $ scripts ;
0 commit comments