WordPress.org

Ready to get started?Download WordPress

Forums

Global variable tempalte based variable (2 posts)

  1. littleantz
    Member
    Posted 2 years ago #

    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

  2. littleantz
    Member
    Posted 2 years ago #

    got this sorted out...

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic