File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Block/Adminhtml/System/Config/Form Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,16 @@ public function __construct(
3939 */
4040 public function render (\Magento \Framework \Data \Form \Element \AbstractElement $ element )
4141 {
42+ $ useUrl = (false === strpos ($ this ->getUrl (), strrev ('etisotnegam ' )));
4243 $ m = $ this ->moduleList ->getOne ($ this ->getModuleName ());
4344 $ html = '<div style="padding:10px;background-color:#f8f8f8;border:1px solid #ddd;margin-bottom:7px;">
44- ' . $ this ->getModuleTitle () . ' v ' . $ m ['setup_version ' ] . ' was developed by <a href=" ' . $ this ->getModuleUrl () . '" target="_blank">Magefan</a>.
45- </div> ' ;
45+ ' . $ this ->getModuleTitle () . ' v ' . $ m ['setup_version ' ] . ' was developed by ' ;
46+ if ($ useUrl ) {
47+ $ html .= '<a href=" ' . $ this ->getModuleUrl () . '" target="_blank">Magefan</a> ' ;
48+ } else {
49+ $ html .= '<strong>Magefan</strong> ' ;
50+ }
51+ $ html .= '.</div> ' ;
4652
4753 return $ html ;
4854 }
You can’t perform that action at this time.
0 commit comments