as said in previous post I managed to get sIFR (same as GT MOD but with other advantages, like cut/paste the content) working. Master Frold asked me to post it here, and as I can't refuse him nothing
You'll have to look at sIFR page to know what it does: http://www.mikeindustries.com/sifr/
Here's how I did:
1) I created in include/inc_module/mod_sifr
in mod_sifr I put:
sifr-addons.js
sIFR-print.css
sIFR-screen.css
sifr.js
(those 4 files are from sIFR package)
and:
the_font.swf (in my case: sweden.swf, follow instructions of sIFR to understand howto, it's easy, just create a swf file with your font actually)
2) Created a code snippet I called siFR.php that i put in
/phpwcms_code_snippets/siFR.php
Code: Select all
<link rel="stylesheet" href="include/inc_module/mod_sifr/sIFR-print.css" type="text/css" media="print" />
<link rel="stylesheet" href="include/inc_module/mod_sifr/sIFR-screen.css" type="text/css" media="screen" />
<script src="include/inc_module/mod_sifr/sifr-addons.js" type="text/javascript"></script>
<script src="include/inc_module/mod_sifr/sifr.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
/* Replacement calls. Please see documentation for more information. */
if(typeof sIFR == "function"){
var tmplz = named({sFlashSrc : "include/inc_module/mod_sifr/sweden.swf", sColor : "#000", sFlashVars: "textalign=left"});
sIFR.replaceElement("h1", tmplz);
sIFR.replaceElement("h2", tmplz);
sIFR.replaceElement("h3", tmplz);
sIFR.replaceElement("h4", tmplz);
sIFR.replaceElement("h5", tmplz);
};
//]]>
</script>3) Then I just put in header of TEMPLATE the following:
{PHP:phpwcms_code_snippets/siFR.php}
Voilà. Enjoy.
Soon I'll publish a live demo of it.
Cheers
