Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -48,6 +48,12 @@ |
49 | 49 | |
50 | 50 | $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 'addMobileFooter' ); |
51 | 51 | |
| 52 | +/** |
| 53 | + * Make the classes stripped from page content configurable. Each item will |
| 54 | + * be stripped from the page. See $itemsToRemove for more info |
| 55 | + */ |
| 56 | +$wgMFRemovableClasses = array(); |
| 57 | + |
52 | 58 | class ExtMobileFrontend { |
53 | 59 | const VERSION = '0.5.32'; |
54 | 60 | |
— | — | @@ -536,9 +542,12 @@ |
537 | 543 | } |
538 | 544 | |
539 | 545 | private function parseItemsToRemove() { |
| 546 | + global $wgMFRemovableClasses; |
540 | 547 | $itemToRemoveRecords = array(); |
541 | 548 | |
542 | | - foreach ( $this->itemsToRemove as $itemToRemove ) { |
| 549 | + foreach ( array_merge( $this->itemsToRemove, $wgMFRemovableClasses ) |
| 550 | + as $itemToRemove ) |
| 551 | + { |
543 | 552 | $type = ''; |
544 | 553 | $rawName = ''; |
545 | 554 | CssDetection::detectIdCssOrTag( $itemToRemove, $type, $rawName ); |