¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -3,11 +3,12 @@
use Mexitek\PHPColors\Color;
use Modules\Menu\MegaMenu\Menu;
if (! function_exists('resolve_theme_color')) {
if (!function_exists('resolve_theme_color')) {
/**
* Resolve color code by the given theme name.
*
* @param string $name
*
* @return string
*/
function resolve_theme_color($color)
@@ -31,7 +32,7 @@ if (! function_exists('resolve_theme_color')) {
}
}
if (! function_exists('storefront_theme_color')) {
if (!function_exists('storefront_theme_color')) {
function storefront_theme_color()
{
if (setting('storefront_theme_color') === 'custom_color') {
@@ -42,7 +43,7 @@ if (! function_exists('storefront_theme_color')) {
}
}
if (! function_exists('mail_theme_color')) {
if (!function_exists('mail_theme_color')) {
function mail_theme_color()
{
if (setting('storefront_mail_theme_color') === 'custom_color') {
@@ -53,14 +54,14 @@ if (! function_exists('mail_theme_color')) {
}
}
if (! function_exists('color2rgba')) {
if (!function_exists('color2rgba')) {
function color2rgba(Color $color, $opacity)
{
return sprintf('rgba(%s, %s)', implode(', ', $color->getRgb()), $opacity);
}
}
if (! function_exists('mega_menu_classes')) {
if (!function_exists('mega_menu_classes')) {
function mega_menu_classes(Menu $menu, $type = 'category_menu')
{
$classes = [];
@@ -71,7 +72,7 @@ if (! function_exists('mega_menu_classes')) {
if ($menu->isFluid()) {
array_push($classes, 'fluid-menu');
} elseif ($menu->hasSubMenus()) {
} else if ($menu->hasSubMenus()) {
array_push($classes, 'dropdown', 'multi-level');
}
@@ -79,7 +80,7 @@ if (! function_exists('mega_menu_classes')) {
}
}
if (! function_exists('products_view_mode')) {
if (!function_exists('products_view_mode')) {
/**
* Get the products view mode.
*
@@ -91,11 +92,12 @@ if (! function_exists('products_view_mode')) {
}
}
if (! function_exists('order_status_badge_class')) {
if (!function_exists('order_status_badge_class')) {
/**
* Get the products view mode.
*
* @param string $status
*
* @return string
*/
function order_status_badge_class($status)
@@ -112,11 +114,12 @@ if (! function_exists('order_status_badge_class')) {
}
}
if (! function_exists('social_links')) {
if (!function_exists('social_links')) {
/**
* Get the social links.
*
* @param string $status
*
* @return string
*/
function social_links()