|
|
@ -7,10 +7,14 @@ use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
|
|
|
|
class ThemeController extends Controller
|
|
|
|
class ThemeController extends Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
public function cssVariables()
|
|
|
|
public function cssVariables()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$response = 'main{';
|
|
|
|
$response = 'main{';
|
|
|
|
|
|
|
|
if (langIsRTL(app()->getLocale())) {
|
|
|
|
|
|
|
|
$response .= 'font-feature-settings: "ss01";';
|
|
|
|
|
|
|
|
}
|
|
|
|
foreach (Setting::where('section', 'Theme')->whereNotNull('data')
|
|
|
|
foreach (Setting::where('section', 'Theme')->whereNotNull('data')
|
|
|
|
->get(['value', 'data']) as $color) {
|
|
|
|
->get(['value', 'data']) as $color) {
|
|
|
|
$data = json_decode($color->data);
|
|
|
|
$data = json_decode($color->data);
|
|
|
@ -21,9 +25,6 @@ class ThemeController extends Controller
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$response .= ';';
|
|
|
|
$response .= ';';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (langIsRTL(app()->getLocale())) {
|
|
|
|
|
|
|
|
$response .= 'font-feature-settings: "ss01";';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$response .= '}';
|
|
|
|
$response .= '}';
|
|
|
|
|
|
|
|
|
|
|
|