Merge branch 'fix/wizard_breadcrum' into 'develop'
Breadcrum fix do not rollback... See merge request artica/pandorafms!2366 Former-commit-id: 473f668f6a6a9be11e551aecbb21317004785314
This commit is contained in:
commit
b31051f9a1
|
@ -196,7 +196,7 @@ class Wizard
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function prepareBreadcrum(array $urls, bool $add=false, bool $separator_beginning=false)
|
||||
public function prepareBreadcrum(array $urls, bool $add=false)
|
||||
{
|
||||
$bc = [];
|
||||
$i = 0;
|
||||
|
@ -213,18 +213,9 @@ class Wizard
|
|||
}
|
||||
|
||||
$bc[$i] = '';
|
||||
|
||||
if ($separator_beginning === true) {
|
||||
$bc[$i] .= '<span class="breadcrumb_link"> / </span>';
|
||||
}
|
||||
|
||||
$bc[$i] .= '<span><a class="breadcrumb_link '.$class.'" href="'.$url['link'].'">';
|
||||
$bc[$i] .= $url['label'];
|
||||
$bc[$i] .= '</a>';
|
||||
if ($count < $array_size) {
|
||||
$bc[$i] .= '<span class="breadcrumb_link"> / </span>';
|
||||
}
|
||||
|
||||
$bc[$i] .= '<span><a class="breadcrumb_link '.$class.'" href="'.$url['link'].'">';
|
||||
$bc[$i] .= $url['label'];
|
||||
$bc[$i] .= '</a>';
|
||||
$bc[$i] .= '</span>';
|
||||
|
||||
$i++;
|
||||
|
@ -275,7 +266,7 @@ class Wizard
|
|||
*/
|
||||
public function printBreadcrum()
|
||||
{
|
||||
return implode('', $this->breadcrum);
|
||||
return implode('<span class="breadcrumb_link"> / </span>', $this->breadcrum);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue