MediaWiki:Common.css

From Longview ISD Technology Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '- β†’CSS placed here will be applied to all skins: <!-- No [view source] tab for users who can not edit --> <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> <st…')
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
 +
<!-- No [view source] tab for anonymous users -->
 +
<?php global $wgUser; if( $wgUser->isAnon() ) { ?>
 +
      <style type="text/css">
 +
        #ca-viewsource { display: none !important; }
 +
      </style>
 +
    <?php } ?>
 +
<!-- No [view source] tab for users who can not edit -->
<!-- No [view source] tab for users who can not edit -->
<?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?>
<?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?>

Revision as of 16:24, 30 November 2012

/* CSS placed here will be applied to all skins */
<!-- No [view source] tab for anonymous users -->
<?php global $wgUser; if( $wgUser->isAnon() ) { ?>
      <style type="text/css">
        #ca-viewsource { display: none !important; }
      </style> 
    <?php } ?>
 
<!-- No [view source] tab for users who can not edit -->
<?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?>
      <style type="text/css">
        #ca-viewsource { display: none !important; }
      </style> 
    <?php } ?>
Personal tools