@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | -$conf['number'] = 20; |
|
2 | +$conf['number'] = 20; |
@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | -$meta['number'] = array('numeric'); |
|
2 | +$meta['number'] = array('numeric'); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $match = substr($match, 12, -2); |
64 | 64 | |
65 | 65 | $includeNS = ''; |
66 | - if(strstr($match, "#")) { |
|
66 | + if (strstr($match, "#")) { |
|
67 | 67 | $includeNS = substr(strstr($match, "#", false), 1); |
68 | 68 | $match = strstr($match, "#", true); |
69 | 69 | } |
@@ -83,38 +83,38 @@ discard block |
||
83 | 83 | |
84 | 84 | $id = $ID; |
85 | 85 | // If it's a sidebar, get the original id. |
86 | - if($INFO != null) { |
|
86 | + if ($INFO != null) { |
|
87 | 87 | $id = $INFO['id']; |
88 | 88 | } |
89 | 89 | $match = $data[0]; |
90 | 90 | $match = ($match == '.') ? $id : $match; |
91 | - if(strstr($match, ".:")) { |
|
91 | + if (strstr($match, ".:")) { |
|
92 | 92 | resolve_pageid(getNS($id), $match, $exists); |
93 | 93 | } |
94 | 94 | |
95 | - if($mode == 'xhtml') { |
|
95 | + if ($mode == 'xhtml') { |
|
96 | 96 | $renderer->info['cache'] = false; |
97 | 97 | |
98 | 98 | $backlinks = ft_backlinks($match); |
99 | 99 | |
100 | 100 | dbglog($backlinks, "backlinks: all backlinks to: $match"); |
101 | 101 | |
102 | - $renderer->doc .= '<div id="plugin__backlinks">' . "\n"; |
|
102 | + $renderer->doc .= '<div id="plugin__backlinks">'."\n"; |
|
103 | 103 | |
104 | 104 | $filterNS = $data[1]; |
105 | - if(!empty($backlinks) && !empty($filterNS)) { |
|
106 | - if(stripos($filterNS, "!", 0) === 0) { |
|
105 | + if (!empty($backlinks) && !empty($filterNS)) { |
|
106 | + if (stripos($filterNS, "!", 0) === 0) { |
|
107 | 107 | $filterNS = substr($filterNS, 1); |
108 | 108 | dbglog($filterNS, "backlinks: exluding all of namespace: $filterNS"); |
109 | 109 | $backlinks = array_filter( |
110 | - $backlinks, function ($ns) use ($filterNS) { |
|
110 | + $backlinks, function($ns) use ($filterNS) { |
|
111 | 111 | return stripos($ns, $filterNS, 0) !== 0; |
112 | 112 | } |
113 | 113 | ); |
114 | 114 | } else { |
115 | 115 | dbglog($filterNS, "backlinks: including namespace: $filterNS only"); |
116 | 116 | $backlinks = array_filter( |
117 | - $backlinks, function ($ns) use ($filterNS) { |
|
117 | + $backlinks, function($ns) use ($filterNS) { |
|
118 | 118 | return stripos($ns, $filterNS, 0) === 0; |
119 | 119 | } |
120 | 120 | ); |
@@ -123,31 +123,31 @@ discard block |
||
123 | 123 | |
124 | 124 | dbglog($backlinks, "backlinks: all backlinks to be rendered"); |
125 | 125 | |
126 | - if(!empty($backlinks)) { |
|
126 | + if (!empty($backlinks)) { |
|
127 | 127 | |
128 | 128 | $renderer->doc .= '<ul class="idx">'; |
129 | -$i=0; $more=false; |
|
130 | - foreach($backlinks as $backlink) { |
|
131 | - if(++$i > $this->getConf('number')) {$more=true;break;} |
|
129 | +$i = 0; $more = false; |
|
130 | + foreach ($backlinks as $backlink) { |
|
131 | + if (++$i > $this->getConf('number')) {$more = true; break; } |
|
132 | 132 | $name = p_get_metadata($backlink, 'title'); |
133 | - if(empty($name)) { |
|
133 | + if (empty($name)) { |
|
134 | 134 | $name = $backlink; |
135 | 135 | } |
136 | 136 | $renderer->doc .= '<li><div class="li">'; |
137 | - $renderer->doc .= html_wikilink(':' . $backlink, $name); |
|
138 | - $renderer->doc .= '</div></li>' . "\n"; |
|
137 | + $renderer->doc .= html_wikilink(':'.$backlink, $name); |
|
138 | + $renderer->doc .= '</div></li>'."\n"; |
|
139 | 139 | } |
140 | 140 | |
141 | - $renderer->doc .= '</ul>' . "\n"; |
|
141 | + $renderer->doc .= '</ul>'."\n"; |
|
142 | 142 | if ($more) { |
143 | - $renderer->doc .= tpl_actionlink('backlink', '','',count($backlinks)-$i.$this->getLang('more'), true); |
|
143 | + $renderer->doc .= tpl_actionlink('backlink', '', '', count($backlinks) - $i.$this->getLang('more'), true); |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | } else { |
147 | - $renderer->doc .= "<strong>Plugin Backlinks: " . $lang['nothingfound'] . "</strong>" . "\n"; |
|
147 | + $renderer->doc .= "<strong>Plugin Backlinks: ".$lang['nothingfound']."</strong>"."\n"; |
|
148 | 148 | } |
149 | 149 | |
150 | - $renderer->doc .= '</div>' . "\n"; |
|
150 | + $renderer->doc .= '</div>'."\n"; |
|
151 | 151 | |
152 | 152 | return true; |
153 | 153 | } |
@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | - $lang['more'] = '개 더 보기...'; |
|
3 | 2 | \ No newline at end of file |
3 | + $lang['more'] = '개 더 보기...'; |
|
4 | 4 | \ No newline at end of file |
@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | - $lang['more'] = 'more...'; |
|
3 | 2 | \ No newline at end of file |
3 | + $lang['more'] = 'more...'; |
|
4 | 4 | \ No newline at end of file |