Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /trunk/skins/Cavendish.php [r481] .. [r482] Maximize Restore

  Switch to unified view

a/trunk/skins/Cavendish.php b/trunk/skins/Cavendish.php
...
...
101
     * outputs a formatted page.
101
     * outputs a formatted page.
102
     *
102
     *
103
     * @access private
103
     * @access private
104
     */
104
     */
105
    function execute() {
105
    function execute() {
106
      global $wgRequest, $cavendishGGplusone, $wgLang;
106
      global $wgRequest, $cavendishGGplusone, $cavendishTwitter, $cavendishFacebook, $wgLang;
107
        $styleversion = '1.5.0';
107
        $styleversion = '1.5.0';
108
        $this->skin = $skin = $this->data['skin'];
108
        $this->skin = $skin = $this->data['skin'];
109
        $action = $wgRequest->getText( 'action' );
109
        $action = $wgRequest->getText( 'action' );
110
        if ( $action == "") {
110
        if ( $action == "") {
111
            $action = "view";
111
            $action = "view";
...
...
113
        // Suppress warnings to prevent notices about missing indexes in $this->data
113
        // Suppress warnings to prevent notices about missing indexes in $this->data
114
        wfSuppressWarnings();
114
        wfSuppressWarnings();
115
        $this->html( 'headelement' );
115
        $this->html( 'headelement' );
116
?>
116
?>
117
<div id="internal"></div>
117
<div id="internal"></div>
118
<!-- Skin-Version: <?php echo $styleversion ?> on MW: <?php echo $verint ?>-->
118
<!-- Skin-Version: <?php echo $styleversion ?> //Please leave this for bugtracking purpose//-->
119
<div id="globalWrapper" class="<?php echo $action ?>">
119
<div id="globalWrapper" class="<?php echo $action ?>">
120
    <div id="p-personal" class="portlet">
120
    <div id="p-personal" class="portlet">
121
        <h5><?php $this->msg('personaltools') ?></h5>
121
        <h5><?php $this->msg('personaltools') ?></h5>
122
        <div class="pBody">
122
        <div class="pBody">
123
            <ul <?php $this->html('userlangattributes') ?>>
123
            <ul <?php $this->html('userlangattributes') ?>>
...
...
162
                    else {
162
                    else {
163
                        echo $skin->tooltip( "ca-$key" );
163
                        echo $skin->tooltip( "ca-$key" );
164
                    }
164
                    }
165
                    echo '>'.htmlspecialchars($tab['text']).'</a></li>';
165
                    echo '>'.htmlspecialchars($tab['text']).'</a></li>';
166
                }
166
                }
167
              if ($cavendishGGplusone) {              
167
                              
168
                ?>
168
                ?>
169
              <li id="ca-pluspone">
170
                  <div id="share-plusone" class="share-wrapper">
171
                      <g:plusone size="small"></g:plusone>
172
                  </div>
173
              </li>
174
              <?php }
175
              if ($cavendishTwitter) { ?>
176
              
177
              <li id="ca-twitter">
178
              <div id="share-twitter" class="share-wrapper">
179
              <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="WeCoWi" data-lang="de">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
180
              </div>
181
              </li>
182
              
183
              <?php }
184
              if ($cavendishFacebook) { ?>
185
              <li id="ca-facebook"><div id="share-facebook" class="share-wrapper">
186
              <div id="fb-root"></div>
187
                  <script>(function(d, s, id) {
188
                    var js, fjs = d.getElementsByTagName(s)[0];
189
                    if (d.getElementById(id)) {return;}
190
                    js = d.createElement(s); js.id = id;
191
                    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
192
                    fjs.parentNode.insertBefore(js, fjs);
193
                  }(document, 'script', 'facebook-jssdk'));</script>
194
                  <fb:like send="false" layout="button_count" width="60" show_faces="true"></fb:like>
195
              </div></li>
196
              <?php } ?>
197
            </ul></div>
169
            </ul></div>
198
            <?php $this->searchBox(); ?>
170
            <?php $this->searchBox(); ?>
199
    </div>
171
    </div>
200
    <div id="mBody">
172
    <div id="mBody">
201
        <div id="side">
173
        <div id="side">
...
...
205
        if ( !isset( $sidebar['SEARCH'] ) ) $sidebar['SEARCH'] = true;
177
        if ( !isset( $sidebar['SEARCH'] ) ) $sidebar['SEARCH'] = true;
206
        if ( !isset( $sidebar['TOOLBOX'] ) ) $sidebar['TOOLBOX'] = true;
178
        if ( !isset( $sidebar['TOOLBOX'] ) ) $sidebar['TOOLBOX'] = true;
207
        if ( !isset( $sidebar['LANGUAGES'] ) ) $sidebar['LANGUAGES'] = true;
179
        if ( !isset( $sidebar['LANGUAGES'] ) ) $sidebar['LANGUAGES'] = true;
208
        foreach ($sidebar as $boxName => $cont) {
180
        foreach ($sidebar as $boxName => $cont) {
209
            if ( $boxName == 'SEARCH' ) {
181
            if ( $boxName == 'SEARCH' ) {
210
          /*  $this->searchBox(); */
182
//               $this->searchBox(); 
211
            } elseif ( $boxName == 'TOOLBOX' ) {
183
            } elseif ( $boxName == 'TOOLBOX' ) {
212
                $this->toolbox();
184
                $this->toolbox();
213
            } elseif ( $boxName == 'LANGUAGES' ) {
185
            } elseif ( $boxName == 'LANGUAGES' ) {
214
                $this->languageBox();
186
                $this->languageBox();
215
            } else {
187
            } else {
216
                $this->customBox( $boxName, $cont );
188
                $this->customBox( $boxName, $cont );
217
            }
189
            }
218
        }
190
        }
191
      if ($cavendishTwitter || $cavendishGGplusone || $cavendishFacebook) {
192
      ?>
193
194
<div id="p-social" class="portlet">
195
  <h5>Social Networks</h5>
196
  <div class="pBody">
197
      <ul>
198
          <?php if ($cavendishTwitter) { ?>
199
          <!-- Twitter -->
200
          <li id="twitter"><span class="social">
201
          <a href="https://twitter.com/share" class="twitter-share-button" data-via="WeCoWi" data-lang="de">Twittern</a>
202
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></div>
203
          </span>
204
          </li>
205
          <?php }
206
          if ($cavendishGGplusone) { ?>
207
          <!-- Google -->
208
          <li id="google"><span class="social">
209
          <g:plusone size="small"></g:plusone></span>
210
          </li>
211
          <?php }
212
          if ($cavendishFacebook) { ?>
213
          <!-- Facebook -->
214
          <li id="facebook"><span class="social">
215
          <script>(function(d, s, id) {
216
                    var js, fjs = d.getElementsByTagName(s)[0];
217
                    if (d.getElementById(id)) {return;}
218
                    js = d.createElement(s); js.id = id;
219
                    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
220
                    fjs.parentNode.insertBefore(js, fjs);
221
                  }(document, 'script', 'facebook-jssdk'));</script>
222
                  <fb:like send="false" layout="button_count" width="60" show_faces="true"></fb:like></span>
223
          </li>
224
          <?php } ?>
225
      </ul>
226
  </div>
227
  <?php } ?>
219
?></div>
228
</div>
229
</div>
220
        </div><!-- end of SIDE div -->
230
        </div><!-- end of SIDE div -->
221
        <div id="column-content">
231
        <div id="column-content">
222
            <div id="content">
232
            <div id="content">
223
                <a id="top"></a>
233
                <a id="top"></a>
224
                <?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?>
234
                <?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?>
...
...
239
        </div>
249
        </div>
240
    </div><!-- end of MBODY div -->
250
    </div><!-- end of MBODY div -->
241
    <div class="visualClear"></div>
251
    <div class="visualClear"></div>
242
    <div id="footer">
252
    <div id="footer">
243
        <table>
253
        <table>
254
          <!--<tr><td colspan="3"><a href="#internal">Up</a></td></tr>-->
244
            <tr>
255
            <tr>
245
                <td rowspan="2" class="f-iconsection">
256
                <td rowspan="2" class="f-iconsection">
246
        <?php if($this->data['copyrightico']) { ?><div id="f-copyrightico"><?php $this->html('copyrightico') ?></div><?php } ?>
257
        <?php if($this->data['copyrightico']) { ?><div id="f-copyrightico"><?php $this->html('copyrightico') ?></div><?php } ?>
247
                </td>
258
                </td>
248
                <td align="center">
259
                <td align="center">
...
...
279
                    ?></div>
290
                    ?></div>
280
                </td>
291
                </td>
281
            </tr>
292
            </tr>
282
            <tr>
293
            <tr>
283
                <td><div id="skin-info">
294
                <td><div id="skin-info">
284
                    Mozilla Cavendish Theme based on Cavendish style by Gabriel Wicke modified by <a href="http://www.dasch-tour.de" target="_blank">DaSch</a> for the <a href="http://www.wecowi.de/">Web Community Wiki</a> &ndash; Skin-Version: <?php echo $styleversion ?>
295
                    Mozilla Cavendish Theme based on Cavendish style by Gabriel Wicke modified by <a href="http://www.dasch-tour.de" target="_blank">DaSch</a> for the <a href="http://www.wecowi.de/">Web Community Wiki</a><br/>
296
                  <a href="http://sourceforge.net/projects/wecowi/">Sourceforge Projectpage</a> &ndash; <a href="https://sourceforge.net/tracker/?group_id=256816&atid=3135768">Report Bug</a> &ndash; Skin-Version: <?php echo $styleversion ?>
285
                </div></td>
297
                </div></td>
286
            </tr>
298
            </tr>
287
        </table>
299
        </table>
288
    </div><!-- end of the FOOTER div -->
300
    </div><!-- end of the FOOTER div -->
289
</div><!-- end of the CONTAINER div -->
301
</div><!-- end of the CONTAINER div -->