• YouTube has released a new theme for their player. It is called “Cosmic Panda” and has a dark/black style. Please include it in the plugin.

    I’ve listed the necessary changes below (smartyoutube.class.php):

    Below line 93, add:
    $this->options['cosmic_panda'] = isset($_POST['disp_cosmic_panda']) ? 'off' : 'on';

    Below line 134, add:
    $disp_cosmic_panda = $this->options['cosmic_panda'] == 'on' ? checked="checked"' : '';

    At the end of line 353, add:

    <br/><br/>
    <b>Addition:</b><br/>
    <input type="checkbox" id="disp_cosmic_panda" name="disp_cosmic_panda" $disp_cosmic_panda /><label for="disp_cosmic_panda"> Use YouTube's new, black <em>"Cosmic Panda"</em> theme for the player (instead of the standard theme)</label>

    Below line 455, add:
    $disp_cosmic_panda = $this->options['cosmic_panda'] == 'on' ? &theme=dark' : '';

    Line 510 change to:
    $video_url = htmlspecialchars("$root_url/embed/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en&autoplay=$autoplay&loop=$loop{$disp_info}$disp_ann$disp_cosmic_panda&showsearch=$disp_search&rel=$disp_rel", ENT_QUOTES) . $high . $time;

    Line 512 change to:
    $video_url = htmlspecialchars("$root_url/v/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en&autoplay=$autoplay&loop=$loop{$disp_info}$disp_ann$disp_cosmic_panda&showsearch=$disp_search&rel=$disp_rel", ENT_QUOTES) . $high . $time;

    Line 517 change to:
    $video_url = htmlspecialchars("$root_url/p/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en&autoplay=$autoplay{$disp_info}$disp_ann$disp_cosmic_panda&showsearch=$disp_search&rel=$disp_rel", ENT_QUOTES) . $high . $time;

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Request: YouTube's new Cosmic Panda theme (dark)’ is closed to new replies.