|
@@ 530-540 (lines=11) @@
|
| 527 |
|
$ul->appendChild(new XMLElement('li', preg_replace('/\/{2,}/i', '/', '/' . $page['path'] . '/' . $page['handle']))); |
| 528 |
|
} |
| 529 |
|
|
| 530 |
|
if (isset($fields['filter']['navigation']['parent'])) { |
| 531 |
|
$li = new XMLElement('li'); |
| 532 |
|
$li->setAttribute('class', 'unique'); |
| 533 |
|
$li->setAttribute('data-type', 'parent'); |
| 534 |
|
$li->appendChild(new XMLElement('header', '<h4>' . __('Parent Page') . '</h4>')); |
| 535 |
|
$label = Widget::Label(__('Value')); |
| 536 |
|
$label->appendChild(Widget::Input('fields[filter][navigation][parent]', General::sanitize($fields['filter']['navigation']['parent']))); |
| 537 |
|
$li->appendChild($label); |
| 538 |
|
$li->appendChild($ul); |
| 539 |
|
$ol->appendChild($li); |
| 540 |
|
} |
| 541 |
|
|
| 542 |
|
$li = new XMLElement('li'); |
| 543 |
|
$li->setAttribute('class', 'unique template'); |
|
@@ 562-572 (lines=11) @@
|
| 559 |
|
} |
| 560 |
|
} |
| 561 |
|
|
| 562 |
|
if (isset($fields['filter']['navigation']['type'])) { |
| 563 |
|
$li = new XMLElement('li'); |
| 564 |
|
$li->setAttribute('class', 'unique'); |
| 565 |
|
$li->setAttribute('data-type', 'type'); |
| 566 |
|
$li->appendChild(new XMLElement('header', '<h4>' . __('Page Type') . '</h4>')); |
| 567 |
|
$label = Widget::Label(__('Value')); |
| 568 |
|
$label->appendChild(Widget::Input('fields[filter][navigation][type]', General::sanitize($fields['filter']['navigation']['type']))); |
| 569 |
|
$li->appendChild($label); |
| 570 |
|
$li->appendChild($ul); |
| 571 |
|
$ol->appendChild($li); |
| 572 |
|
} |
| 573 |
|
|
| 574 |
|
$li = new XMLElement('li'); |
| 575 |
|
$li->setAttribute('class', 'unique template'); |