Fix My Computer, Mark! - Knowledge Base - How to remove Powered By Phoca Restaurant Menu Lite in Joomla 

Knowledge Base - How to remove Powered By Phoca Restaurant Menu Lite in Joomla

Open: phocamenu.php
Located here:
public_html/administrator/components/com_phocamenu/helpers/

Line: 588

Change this:
public static function renderCode($id, $method){
$v = PhocaMenuHelper::getPhocaVersion();
$i = str_replace('.', '',substr($v, 0, 3));
$n = '<p>&nbsp;</p>';
$l = 'h'.'t'.'t'.'p'.':'.'/'.'/'.'w'.'w'.'w'.'.'.'p'.'h'.'o'.'c'.'a'.'.'.'c'.'z'.'/'.'p'.'h'.'o'.'c'.'a'.'m'.'e'.'n'.'u';
$t = 'P'.'o'.'w'.'e'.'r'.'e'.'d'.' '.'b'.'y';
$p = 'P'.'h'.'o'.'c'.'a'.' '.'R'.'e'.'s'.'t'.'a'.'u'.'r'.'a'.'n'.'t'.' '.'M'.'e'.'n'.'u';
$s = 's'.'t'.'y'.'l'.'e'.'='.'"'.'t'.'e'.'x'.'t'.'-'.'d'.'e'.'c'.'o'.'r'.'a'.'t'.'i'.'o'.'n'.':'.'n'.'o'.'n'.'e'.'"';
$s2 = 's'.'t'.'y'.'l'.'e'.'='.'"'.'t'.'e'.'x'.'t'.'-'.'a'.'l'.'i'.'g'.'n'.':'.'c'.'e'.'n'.'t'.'e'.'r'.';'.'c'.'o'.'l'.'o'.'r'.':'.'#'.'d'.'3'.'d'.'3'.'d'.'3'.'"';
$b = 't'.'a'.'r'.'g'.'e'.'t'.'='.'"'.'_'.'b'.'l'.'a'.'n'.'k'.'"';
$i = (int)$i + $i;

$output = '';
if ($id != $i) {
$output .= $n;
$output .= '<div '.$s2.'>';
}

if ($id == $i) {
$output .= '<!-- <a href="'.$l.'">site: www.phoca.cz | version: '.$v.'</a> -->';
} else {
$output .= $t . ' <a href="'.$l.'" '.$s.' '.$b.' title="'.$p.'">'. $p. '</a>';
}
if ($id != $i) {
$output .= '</div>' . $n;
}
if ($method == 2 || $method == 1) {
$output = '';
}
return $output;
}

To This:
public static function renderCode($id, $method){
$v = PhocaMenuHelper::getPhocaVersion();
$i = str_replace('.', '',substr($v, 0, 3));
$n = '<p>&nbsp;</p>';
$l = ' ';
$t = ' ';
$p = ' ';
$s = ' ';
$s2 = ' ';
$b = ' ';
$i = (int)$i + $i;

$output = '';
if ($id != $i) {
$output .= $n;
$output .= '<div '.$s2.'>';
}

if ($id == $i) {
$output .= ' ';
} else {
$output .= $t . ' ';
}
if ($id != $i) {
$output .= '</div>' . $n;
}
if ($method == 2 || $method == 1) {
$output = '';
}
return $output;
}

Details

Created : 2017-06-18 00:57:42, Last Modified : 2017-06-18 00:57:42

Click to listen highlighted text!