xili sIFR3 active

Description

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)

the files and folders in plugin and in theme’s folder

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.

Screenshots

  • an example of wp-content/themes folder
  • the admin settings UI

Installation

  1. Upload the folder named xili-sifr3-active to the /wp-content/plugins/ directory,
  2. Upload a specific config in your current theme.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress,
  4. Go to the dashboard tools tab – xili-sIFR3-active – and adapt default values if necessary. (in future)

FAQ

Why the admin UI is today empty ?

Because it is reserved for future options (and open for other developers !).

When sIFR3 is activated, I see both standard H2 just after flash text : why ?

the ’sifr.css’ file is not in right places (theme subfolder or plugins subfolder) so cannot be found. Verify by comparing html source and content of folder.

Contributors & Developers

“xili sIFR3 active” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.9.6

  • maintenance release – test 3.5.1

0.9.5

  • maintenance release

0.9.4

  • fixes for issues with child theme

0.9.2

  • third release 090210,
  • fix when ‘wpurl’ is not ‘siteurl’

0.9.1

  • second release with minor fix and more docs.

0.9.0

  • first public release 090204.

© 2013-05-25 MS dev.xiligroup.com