Source of file Sifr.php
Size: 1,679 Bytes - Last Modified: 2021-12-23T10:46:30+00:00
/var/www/docs.ssmods.com/process/src/code/Sifr.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | <?php /* Scalable Inman Flash Replacement (sIFR) is an open source JavaScript and Macromedia Flash based technology initially developed by Shaun Inman and improved by Mike Davidson and Mark Wubben that enables the replacement of text elements on HTML web pages with Flash equivalents. Mike Davidsons website @see http://www.mikeindustries.com/sifr sIFR Wiki and help forum @see http://wiki.novemberborn.net/sifr */ class Sifr extends Object { protected static $is_disabled = false; protected static $js_custom_file_location = "mysite/javascript/sifr-config.js"; public static function disable() { self::$is_disabled = true; Requirements::block("sifr/css/sifr.css"); Requirements::block("sifr-themed"); Requirements::block("sifr/javascript/sifr.js"); Requirements::block("sifr/javascript/sifr-debug.js"); Requirements::block(self::$js_custom_file_location); } public static function set_js_custom_file_location($folderAndFile) { self::$js_custom_file_location = $folderAndFile; } public static function load_sifr() { if (!self::$is_disabled) { Requirements::css("sifr/css/sifr.css", 'screen, projection'); Requirements::themedCSS("sifr-themed", 'screen, projection'); Requirements::javascript("sifr/javascript/sifr.js"); Requirements::javascript("sifr/javascript/sifr-debug.js"); Requirements::javascript(self::$js_custom_file_location); } } public function is_disabled() { $state = self::$is_disabled; return ($state) ? true : false; } } |