Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PieceMaker
#6
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
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 Smile)
Cheers
Reply


Messages In This Thread
PieceMaker - by eru321 - 2012-02-11, 05:46:11
PieceMaker - by Connie - 2012-02-11, 05:48:12
PieceMaker - by eru321 - 2012-02-11, 06:58:18
PieceMaker - by eru321 - 2012-02-11, 07:29:01
PieceMaker - by Connie - 2012-02-11, 17:13:17
PieceMaker - by eru321 - 2012-02-11, 17:52:07



Users browsing this thread: 1 Guest(s)