Changeset 366442
- Timestamp:
- 03/29/2011 05:43:46 PM (15 years ago)
- Location:
- wiredrive-player/trunk
- Files:
-
- 4 edited
-
css/wiredrive-player.css (modified) (1 diff)
-
templates/admin_footer.php (modified) (1 diff)
-
templates/flash.php (modified) (1 diff)
-
wiredrive.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wiredrive-player/trunk/css/wiredrive-player.css
r366432 r366442 34 34 } 35 35 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.*/37 36 ul.wd-thumb-list { 38 37 padding-left: 32px; 39 padding-right: 16px; /* This should be half of padding-left */38 padding-right: 22px; 40 39 } 41 40 -
wiredrive-player/trunk/templates/admin_footer.php
r366432 r366442 9 9 <p><input type="text" id="wdp-dialog-feed" style="width:98%" /></p> 10 10 <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" /> ×14 <input type="text" id="wdp-dialog-height" class="wdp-dialog-dim" style="width:50px" /> pixels</p>15 <p>[width] × [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" /> × 14 <input type="text" id="wdp-dialog-height" class="wdp-dialog-dim" style="width:50px" /> pixels</p> 15 <p>[width] × [height]</p> 16 16 </div> 17 17 <div class="wdp-display-options"> 18 18 <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> 22 22 </p> 23 23 </div> 24 24 <div class="wdp-thumbnail-options"> 25 25 <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> 28 28 <input type="checkbox" id="wdp-auto-slideshow"/><label for="wdp-auto-slideshow"> Slideshow mode (image feeds only)</label></p> 29 29 </div> -
wiredrive-player/trunk/templates/flash.php
r366432 r366442 1 <? 2 $options = $this->get('options'); 3 ?> 1 4 <script> 2 5 var flashvars = {}; -
wiredrive-player/trunk/wiredrive.php
r366432 r366442 120 120 { 121 121 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 */ 126 131 extract(shortcode_atts(array( 127 132 'height' => $options['wdp_height'] . 'px', … … 240 245 241 246 /* 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")) { 244 249 return false; 245 }250 } 246 251 */ 247 252 … … 495 500 496 501 $this->template->setTpl('player_finish.php') 497 ->render();502 ->render(); 498 503 } 499 504 … … 504 509 { 505 510 511 /* 512 * Get the settings for the plugin 513 */ 514 $wiredriveSettings = new Wiredrive_Plugin_Settings(); 515 506 516 /* 507 517 * Get the first item from the item list … … 511 521 512 522 $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(); 520 531 521 532 … … 535 546 536 547 $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(); 544 555 545 556 } … … 558 569 559 570 $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(); 567 578 568 579 } … … 574 585 { 575 586 $this->template->setTpl('thumb_loop.php'); 576 $this->template->set('items', $this->getItems())577 ->render();587 $this->template->set('items', $this->getItems()) 588 ->render(); 578 589 579 590 } … … 586 597 587 598 $this->template->setTpl('error.php') 588 ->set('message', $message)589 ->render();599 ->set('message', $message) 600 ->render(); 590 601 591 602 } … … 598 609 { 599 610 600 $wiredriveSettings = new Wiredrive_Plugin_Settings(); 611 /* 612 * Get the settings for the plugin 613 */ 614 $wiredriveSettings = new Wiredrive_Plugin_Settings(); 601 615 602 616 $this->template->setTpl('head.php') 603 ->set('options', $wiredriveSettings->getOptions())604 ->render();617 ->set('options', $wiredriveSettings->getOptions()) 618 ->render(); 605 619 606 620 return $this->template->getOutput();
Note: See TracChangeset
for help on using the changeset viewer.