-
-
Save goodwoor/2875704b73d4b360f1f1daf03a66d58e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/design/themes/responsive/templates/addons/vendor_communication/views/vendor_communication/components/company_subject.tpl b/design/themes/responsive/templates/addons/vendor_communication/views/vendor_communication/components/company_subject.tpl | |
index 99481c6f7a..b6cd489a86 100644 | |
--- a/design/themes/responsive/templates/addons/vendor_communication/views/vendor_communication/components/company_subject.tpl | |
+++ b/design/themes/responsive/templates/addons/vendor_communication/views/vendor_communication/components/company_subject.tpl | |
@@ -2,6 +2,12 @@ | |
$company array Company data | |
*} | |
-<a href="{"companies.products?company_id=`$company.logos.theme.company_id`"|fn_url}" title="{$company.company}"> | |
- {$company.company|truncate:60:"...":true} | |
-</a> | |
+{if fn_allowed_for("MULTIVENDOR")} | |
+ <a href="{"companies.products?company_id=`$company.logos.theme.company_id`"|fn_url}" title="{$company.company}"> | |
+ {$company.company|truncate:60:"...":true} | |
+ </a> | |
+{elseif fn_allowed_for("ULTIMATE")} | |
+ <span> | |
+ {$company.company|truncate:60:"...":true} | |
+ </span> | |
+{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/design/themes/responsive/templates/addons/vendor_communication/views/vendor_communication/components/subject_image.tpl b/design/themes/responsive/templates/addons/vendor_communication/views/vendor_communication/components/subject_image.tpl | |
index d048773a1a..2d282d89fb 100644 | |
--- a/design/themes/responsive/templates/addons/vendor_communication/views/vendor_communication/components/subject_image.tpl | |
+++ b/design/themes/responsive/templates/addons/vendor_communication/views/vendor_communication/components/subject_image.tpl | |
@@ -9,7 +9,7 @@ | |
{include file="addons/vendor_communication/views/vendor_communication/components/product_subject_image.tpl" | |
product=$object | |
} | |
-{elseif $object_type === $smarty.const.VC_OBJECT_TYPE_COMPANY} | |
+{elseif $object_type === $smarty.const.VC_OBJECT_TYPE_COMPANY && fn_allowed_for("MULTIVENDOR")} | |
{include file="addons/vendor_communication/views/vendor_communication/components/company_subject_image.tpl" | |
company=$object | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment