Skip to content

Instantly share code, notes, and snippets.

@dimkalinux
Created July 20, 2011 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimkalinux/1094560 to your computer and use it in GitHub Desktop.
Save dimkalinux/1094560 to your computer and use it in GitHub Desktop.
Include inline CSS for disabled Javascript in PunBB 1.4 extensions
<?php
// This CSS code is executed only when Javascript disabled in browser
// Usefull for hidding elements that depends on Javascript
$forum_loader->add_css('.fancy-addthis-post { display: none; }', array('type' => 'inline', 'noscript' => true));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment