Plugin Directory

Changeset 366442


Ignore:
Timestamp:
03/29/2011 05:43:46 PM (15 years ago)
Author:
dbaker
Message:

some options were missing from flash player and cleaned up css

Location:
wiredrive-player/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wiredrive-player/trunk/css/wiredrive-player.css

    r366432 r366442  
    3434}
    3535
    36 /*Set this to the same width as the next/prev butons above, but add 2 the total. Eg. If you've set the .wd-nav-prev to 30px above, then set padding to 32px.*/
    3736ul.wd-thumb-list {
    3837    padding-left: 32px;
    39     padding-right: 16px; /* This should be half of padding-left */
     38    padding-right: 22px;
    4039}
    4140
  • wiredrive-player/trunk/templates/admin_footer.php

    r366432 r366442  
    99            <p><input type="text" id="wdp-dialog-feed" style="width:98%" /></p>
    1010            <div class="wdp-dimensions-options">
    11             <p><strong>Set dimensions for your player:</strong></p>
    12             <p>Leave blank to use the default dimensions; select <strong>Wiredrive Player</strong> from the <strong>Settings menu</strong> in WordPress to set default dimensions.</p>
    13             <p><input type="text" id="wdp-dialog-width" class="wdp-dialog-dim" style="width:50px" /> &#215;
    14                <input type="text" id="wdp-dialog-height" class="wdp-dialog-dim" style="width:50px" /> pixels</p>
    15             <p>[width] &#215; [height]</p>
     11                <p><strong>Set dimensions for your player:</strong></p>
     12                <p>Leave blank to use the default dimensions; select <strong>Wiredrive Player</strong> from the <strong>Settings menu</strong> in WordPress to set default dimensions.</p>
     13                <p><input type="text" id="wdp-dialog-width" class="wdp-dialog-dim" style="width:50px" /> &#215;
     14                   <input type="text" id="wdp-dialog-height" class="wdp-dialog-dim" style="width:50px" /> pixels</p>
     15                <p>[width] &#215; [height]</p>
    1616            </div>
    1717            <div class="wdp-display-options">
    1818                <p><strong>Choose a player display:</strong></p>
    19                     <input type="radio" id="wdp-theme-player" name="wdp-theme" value="inline-player" checked/><label for="wdp-theme-player"> Standard Inline</label><br />
    20                     <input type="radio" id="wdp-theme-grid" name="wdp-theme" value="grid" /><label for="wdp-theme-grid"> Overlay gallery; tiles thumbnails at 180px wide or tall</label><br />
    21                     <input type="radio" id="wdp-theme-grid-box" name="wdp-theme" value="grid box-thumbs" /><label for="wdp-theme-grid-box"> Gallery with letterbox, pillarbox</label><br />               
     19                    <input type="radio" id="wdp-theme-player" name="wdp-theme" value="inline-player" checked/><label for="wdp-theme-player"> Standard Inline<br /></label>
     20                    <input type="radio" id="wdp-theme-grid" name="wdp-theme" value="grid" /><label for="wdp-theme-grid"> Overlay gallery; tiles thumbnails at 180px wide or tall<br /></label>
     21                    <input type="radio" id="wdp-theme-grid-box" name="wdp-theme" value="grid box-thumbs" /><label for="wdp-theme-grid-box"> Gallery with letterbox, pillarbox<br /></label>               
    2222                </p>
    2323            </div>
    2424            <div class="wdp-thumbnail-options">
    2525                <p><strong>Thumbnail Options:</strong></p>
    26                 <p><input type="checkbox" id="wdp-hide-thumbs"/><label for="wdp-hide-thumbs"> Expandable thumbnail tray</label><br />
    27                    <input type="checkbox" id="wdp-disable-thumbs"/><label for="wdp-disable-thumbs"> Disable thumbnails and credits</label><br />
     26                <p><input type="checkbox" id="wdp-hide-thumbs"/><label for="wdp-hide-thumbs"> Expandable thumbnail tray<br /></label>
     27                   <input type="checkbox" id="wdp-disable-thumbs"/><label for="wdp-disable-thumbs"> Disable thumbnails and credits<br /></label>
    2828                   <input type="checkbox" id="wdp-auto-slideshow"/><label for="wdp-auto-slideshow"> Slideshow mode (image feeds only)</label></p>
    2929            </div>               
  • wiredrive-player/trunk/templates/flash.php

    r366432 r366442  
     1<?
     2$options = $this->get('options');
     3?>
    14<script>
    25var flashvars = {};
  • wiredrive-player/trunk/wiredrive.php

    r366432 r366442  
    120120    {
    121121
    122         /*
    123          * Get the height and width from the URL
    124          */
    125         $options = get_option('wdp_options');
     122        /*
     123         * Get the settings for the plugin
     124         */
     125        $wiredriveSettings = new Wiredrive_Plugin_Settings();
     126        $options =  $wiredriveSettings->getOptions();
     127
     128        /*
     129         * Get the height and width from the shortcode
     130         */
    126131        extract(shortcode_atts(array(
    127132                    'height'            => $options['wdp_height'] . 'px',
     
    240245       
    241246        /*
    242          * Once we have IE9 playing H.264 .MOV files, this should work.
    243            if(strpos($_SERVER['HTTP_USER_AGENT'], "MSIE 9.0")) {
     247         * @TODO:  Once we have IE9 playing H.264 .MOV files, this should work.
     248           if(strpos($_SERVER['HTTP_USER_AGENT'], "MSIE 9.0")) {
    244249               return false;       
    245            }
     250          }
    246251        */
    247252       
     
    495500
    496501        $this->template->setTpl('player_finish.php')
    497         ->render();
     502                ->render();
    498503    }
    499504
     
    504509    {
    505510
     511        /*
     512         * Get the settings for the plugin
     513         */
     514        $wiredriveSettings = new Wiredrive_Plugin_Settings();
     515           
    506516        /*
    507517         * Get the first item from the item list
     
    511521
    512522        $this->template->setTpl('flash.php')
    513         ->set('link', $first['link'])
    514         ->set('thumbnail', $first['thumbnail_lg'])
    515         ->set('attributeId', $this->getAttributeId())
    516         ->set('pluginUrl', $this->getPluginUrl())
    517         ->set('width', $first['width'])
    518         ->set('height', $first['height'])
    519         ->render();
     523                ->set('link', $first['link'])
     524                ->set('thumbnail', $first['thumbnail_lg'])
     525                ->set('attributeId', $this->getAttributeId())
     526                ->set('pluginUrl', $this->getPluginUrl())
     527                ->set('width', $first['width'])
     528                ->set('height', $first['height'])
     529                ->set('options', $wiredriveSettings->getOptions())
     530                ->render();
    520531
    521532
     
    535546
    536547        $this->template->setTpl('html5.php')
    537         ->set('link', $first['link'])
    538         ->set('thumbnail', $first['thumbnail_lg'])
    539         ->set('attributeId', $this->getAttributeId())
    540         ->set('pluginUrl', $this->getPluginUrl())
    541         ->set('width', $width)
    542         ->set('height', $height)
    543         ->render();
     548                ->set('link', $first['link'])
     549                ->set('thumbnail', $first['thumbnail_lg'])
     550                ->set('attributeId', $this->getAttributeId())
     551                ->set('pluginUrl', $this->getPluginUrl())
     552                ->set('width', $width)
     553                ->set('height', $height)
     554                ->render();
    544555
    545556    }
     
    558569
    559570        $this->template->setTpl('image.php')
    560         ->set('link', $first['link'])
    561         ->set('thumbnail', $first['thumbnail_lg'])
    562         ->set('attributeId', $this->getAttributeId())
    563         ->set('pluginUrl', $this->getPluginUrl())
    564         ->set('width', $first['width'])
    565         ->set('height', $first['height'])
    566         ->render();
     571                ->set('link', $first['link'])
     572                ->set('thumbnail', $first['thumbnail_lg'])
     573                ->set('attributeId', $this->getAttributeId())
     574                ->set('pluginUrl', $this->getPluginUrl())
     575                ->set('width', $first['width'])
     576                ->set('height', $first['height'])
     577                ->render();
    567578
    568579    }
     
    574585    {
    575586        $this->template->setTpl('thumb_loop.php');
    576         $this->template->set('items', $this->getItems())
    577         ->render();
     587        $this->template->set('items', $this->getItems())
     588                ->render();
    578589
    579590    }
     
    586597
    587598        $this->template->setTpl('error.php')
    588         ->set('message', $message)
    589         ->render();
     599                ->set('message', $message)
     600                ->render();
    590601
    591602    }
     
    598609    {
    599610   
    600        $wiredriveSettings = new Wiredrive_Plugin_Settings();
     611        /*
     612         * Get the settings for the plugin
     613         */
     614        $wiredriveSettings = new Wiredrive_Plugin_Settings();
    601615           
    602616        $this->template->setTpl('head.php')
    603             ->set('options', $wiredriveSettings->getOptions())
    604             ->render();
     617                ->set('options', $wiredriveSettings->getOptions())
     618                ->render();
    605619         
    606620        return $this->template->getOutput();
Note: See TracChangeset for help on using the changeset viewer.