WordPress.org

Support

Support » How-To and Troubleshooting » Global variable tempalte based variable

Global variable tempalte based variable

  • Hi,

    I have self hosted video player and I frequently change theme.

    I post my video on the post editor using this code.

    <script type="text/javascript">// <![CDATA[
    player("container").setup({
    	flashplayer: "player.swf",
    	file: "video.flv",
    	autostart: "true",
    	repeat: "always",
    	stretching: "exactfit",
    	height: 350,
    	width: 555
    });
    // ]]></script>

    My problem is that the video size is not always fit to the themes. What I want to do now is to declare a global constant variable that I can use to replace the height and the width value of the above code. This way I can just edit the global variable to suit my current theme.

    Where can I declare a global constant variable that I can use in post editor (html).

    If there is other way to accomplish this, please comment.

    your help is highly appreciated.

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Global variable tempalte based variable’ is closed to new replies.
Skip to toolbar