2012-02-11, 17:52:07
The target is to create a plugin. The user will select photos, transitions and in which page put the slideshow. To start, i would see if the slideshow work fine, so i put it directly into the default template.
Another question, withou opening an another post.
Which Hook i've to use to insert
in the head tag of the page?
I've tried to create a function "script_head" and return its value in the header with this line of code:
but it write anything in my page....
maybe it's better if i open another post )
Cheers
Another question, withou opening an another post.
Which Hook i've to use to insert
Code:
<script type="text/javascript" src="<?php get_theme_url(); ?>/scripts/swfobject/swfobject.js"></script>
<script>
var flashvars = {};
flashvars.cssSource = "<?php get_theme_url(); ?>/css/piecemaker.css";
flashvars.xmlSource = "<?php get_theme_url(); ?>/piecemaker.xml";
var params = {};
params.play = "true";
params.menu = "false";
params.scale = "showall";
params.wmode = "transparent";
params.allowfullscreen = "true";
params.allowscriptaccess = "always";
params.allownetworking = "all";
swfobject.embedSWF('<?php get_theme_url(); ?>/piecemaker.swf', 'piecemaker', '960', '500', '10', null, flashvars,
params, null);
</script>
in the head tag of the page?
I've tried to create a function "script_head" and return its value in the header with this line of code:
Code:
add_filter('theme-header','script_head');
but it write anything in my page....
maybe it's better if i open another post )
Cheers