>
Download This Plugin | |
Download Elegant Themes | |
Name | xili sIFR3 active |
Version | 0.9.6 |
Author | MS dev.xiligroup.com |
Rating | 0 |
Last updated | 2013-05-25 10:24:00 |
Downloads |
2639
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
xili sIFR3 active plugin added 1 bytes of resources to the Home page and 18 bytes of resources to the sample Post page.
xili sIFR3 active plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! xili sIFR3 active plugin ads no tables to your Wordpress blog database.xili-sIFR3-active activate the modules of sIFR3 in your current theme and detect the specific configurations for sIFR3 in your theme or child theme.
prerequisite This first version is for "themes" designer and developer with knowledges about sIFR3 :sIFR3 documentation and Site to generate .swf font files compatible with sIFR3.
The plugin provide a dynamic way to activate the sIFR3 .js and .css file in the selected pages by you through a function in the functions.php of your current theme. (see below)
sIFR3 need a series of file (.js and .css). With the font's swf files, two (sifr.css - sifr-config.js) must be adapted for your site and his look. The plugin search both files at first step in the current theme (in a "js" folder for .js and in a "sifr3" for .css). If not present, it search in "wp-js" folder in plugin folder. (here added not to disturb the original sIFR3 folder and sub-folders ; here tested with sifr3-r436). xili-sIFR3-active provide a way through a VAR to give folder place to java-scripts.
Example of function added in functions.php file of your theme: (in this case, adding sifr header files are only added in front-page... in the demo page, the selection is done through: in_category() and is_single()
function is_sifr3_intheme(){
if (is_front_page())
return true;
return false;
}
Examples of line added in sifr-config-js file to keep path values VAR:
in default plugin sub-folder wp-js:
var rockwell = {
src: pluginfolder + '/wp-js/rockwell.swf'
in your theme sub-folder js :
var rockwell = {
src: themefolder + '/js/rockwell.swf'
The best is to have a sifr-config specially attached for your specific theme.