Index: trunk/extensions/SemanticResultFormats/Gallery/SRF_Gallery.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | $ig->setParser( $wgParser ); |
33 | 33 | $ig->setCaption( $this->mIntro ); // set caption to IQ header |
34 | 34 | |
35 | | - if ( $this->m_params['galleryformat'] == 'carousel' ) { |
| 35 | + if ( $this->params['galleryformat'] == 'carousel' ) { |
36 | 36 | static $carouselNr = 0; |
37 | 37 | |
38 | 38 | // Set attributes for jcarousel |
— | — | @@ -45,11 +45,11 @@ |
46 | 46 | ); |
47 | 47 | |
48 | 48 | // Use perrow parameter to determine the scroll sequence. |
49 | | - if ( empty( $this->m_params['perrow'] ) ) { |
| 49 | + if ( empty( $this->params['perrow'] ) ) { |
50 | 50 | $attribs['scroll'] = 1; // default 1 |
51 | 51 | } else { |
52 | | - $attribs['scroll'] = $this->m_params['perrow']; |
53 | | - $attribs['visible'] = $this->m_params['perrow']; |
| 52 | + $attribs['scroll'] = $this->params['perrow']; |
| 53 | + $attribs['visible'] = $this->params['perrow']; |
54 | 54 | } |
55 | 55 | |
56 | 56 | $ig->setAttributes( $mAttribs ); |
— | — | @@ -59,16 +59,16 @@ |
60 | 60 | } |
61 | 61 | |
62 | 62 | // In case galleryformat = carousel, perrow should not be set |
63 | | - if ( $this->m_params['perrow'] !== '' && $this->m_params['galleryformat'] !== 'carousel' ) { |
64 | | - $ig->setPerRow( $this->m_params['perrow'] ); |
| 63 | + if ( $this->params['perrow'] !== '' && $this->params['galleryformat'] !== 'carousel' ) { |
| 64 | + $ig->setPerRow( $this->params['perrow'] ); |
65 | 65 | } |
66 | 66 | |
67 | | - if ( $this->m_params['widths'] !== '' ) { |
68 | | - $ig->setWidths( $this->m_params['widths'] ); |
| 67 | + if ( $this->params['widths'] !== '' ) { |
| 68 | + $ig->setWidths( $this->params['widths'] ); |
69 | 69 | } |
70 | 70 | |
71 | | - if ( $this->m_params['heights'] !== '' ) { |
72 | | - $ig->setHeights( $this->m_params['heights'] ); |
| 71 | + if ( $this->params['heights'] !== '' ) { |
| 72 | + $ig->setHeights( $this->params['heights'] ); |
73 | 73 | } |
74 | 74 | |
75 | 75 | $printReqLabels = array(); |
— | — | @@ -77,8 +77,8 @@ |
78 | 78 | $printReqLabels[] = $printReq->getLabel(); |
79 | 79 | } |
80 | 80 | |
81 | | - if ( $this->m_params['imageproperty'] !== '' && in_array( $this->m_params['imageproperty'], $printReqLabels ) ) { |
82 | | - $this->addImageProperties( $results, $ig, $this->m_params['imageproperty'], $this->m_params['captionproperty'] ); |
| 81 | + if ( $this->params['imageproperty'] !== '' && in_array( $this->params['imageproperty'], $printReqLabels ) ) { |
| 82 | + $this->addImageProperties( $results, $ig, $this->params['imageproperty'], $this->params['captionproperty'] ); |
83 | 83 | } |
84 | 84 | else { |
85 | 85 | $this->addImagePages( $results, $ig ); |