|
@@ 635-645 (lines=11) @@
|
| 632 |
|
preg_replace('/\/{2,}/i', '/', '/' . $page['path'] . '/' . $page['handle']))); |
| 633 |
|
} |
| 634 |
|
|
| 635 |
|
if (isset($fields['filter']['navigation']['parent'])) { |
| 636 |
|
$li = new XMLElement('li'); |
| 637 |
|
$li->setAttribute('class', 'unique'); |
| 638 |
|
$li->setAttribute('data-type', 'parent'); |
| 639 |
|
$li->appendChild(new XMLElement('header', '<h4>' . __('Parent Page') . '</h4>')); |
| 640 |
|
$label = Widget::Label(__('Value')); |
| 641 |
|
$label->appendChild(Widget::Input('fields[filter][navigation][parent]', |
| 642 |
|
General::sanitize($fields['filter']['navigation']['parent']))); |
| 643 |
|
$li->appendChild($label); |
| 644 |
|
$li->appendChild($ul); |
| 645 |
|
$ol->appendChild($li); |
| 646 |
|
} |
| 647 |
|
|
| 648 |
|
$li = new XMLElement('li'); |
|
@@ 668-678 (lines=11) @@
|
| 665 |
|
} |
| 666 |
|
} |
| 667 |
|
|
| 668 |
|
if (isset($fields['filter']['navigation']['type'])) { |
| 669 |
|
$li = new XMLElement('li'); |
| 670 |
|
$li->setAttribute('class', 'unique'); |
| 671 |
|
$li->setAttribute('data-type', 'type'); |
| 672 |
|
$li->appendChild(new XMLElement('header', '<h4>' . __('Page Type') . '</h4>')); |
| 673 |
|
$label = Widget::Label(__('Value')); |
| 674 |
|
$label->appendChild(Widget::Input('fields[filter][navigation][type]', |
| 675 |
|
General::sanitize($fields['filter']['navigation']['type']))); |
| 676 |
|
$li->appendChild($label); |
| 677 |
|
$li->appendChild($ul); |
| 678 |
|
$ol->appendChild($li); |
| 679 |
|
} |
| 680 |
|
|
| 681 |
|
$li = new XMLElement('li'); |