Changeset 4459
- Timestamp:
- 01/06/12 13:48:02 (5 months ago)
- Location:
- plugins/apostrophePlugin/branches/1.5
- Files:
-
- 5 modified
-
modules/aAudioSlot/templates/_defaultPlayer.php (modified) (1 diff)
-
modules/aAudioSlot/templates/_litePlayer.php (modified) (1 diff)
-
web/css/a-area-slots.less (modified) (2 diffs)
-
web/images/a-audio-volume.png (modified) (previous)
-
web/js/a.js (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostrophePlugin/branches/1.5/modules/aAudioSlot/templates/_defaultPlayer.php
r4048 r4459 30 30 <a href="#" class="a-audio-pause a-audio-button" id="a-audio-pause-<?php echo $uniqueID ?>" onclick="return false;">Pause</a> 31 31 </div> 32 <div class="a-audio-slider-wrapper " style="width:<?php echo $width-140 ?>px;">32 <div class="a-audio-slider-wrapper playback"> 33 33 <div class="a-audio-loader"></div> 34 <div class="a-audio-playback a-audio-slider" id="a-audio-playback-<?php echo $uniqueID ?>" style="width:<?php echo $width-140 ?>px;">34 <div class="a-audio-playback a-audio-slider" id="a-audio-playback-<?php echo $uniqueID ?>"> 35 35 <a href="#" class="a-audio-slider-handle ui-slider-handle">Playback</a> 36 36 </div> 37 37 <div class="a-audio-time"></div> 38 38 </div> 39 <div class="a-audio-slider-wrapper ">39 <div class="a-audio-slider-wrapper volume"> 40 40 <div class="a-audio-volume a-audio-slider" id="a-audio-volume-<?php echo $uniqueID ?>"> 41 41 <a href="#" class="a-audio-slider-handle ui-slider-handle">Volume</a> -
plugins/apostrophePlugin/branches/1.5/modules/aAudioSlot/templates/_litePlayer.php
r4048 r4459 19 19 <a href="#" class="a-audio-pause a-audio-button" id="a-audio-pause-<?php echo $uniqueID ?>" onclick="return false;">Pause</a> 20 20 </div> 21 <div class="a-audio-slider-wrapper playhead" style="width:<?php echo $width-140 ?>px;<?php // echo ($width < 200) ? 'display:none;' : '' ?>">21 <div class="a-audio-slider-wrapper playhead"> 22 22 <div class="a-audio-loader"></div> 23 <div class="a-audio-playback a-audio-slider" id="a-audio-playback-<?php echo $uniqueID ?>" style="width:<?php echo $width-140 ?>px;">23 <div class="a-audio-playback a-audio-slider" id="a-audio-playback-<?php echo $uniqueID ?>"> 24 24 <a href="#" class="a-audio-slider-handle ui-slider-handle">Playback</a> 25 25 </div> -
plugins/apostrophePlugin/branches/1.5/web/css/a-area-slots.less
r4446 r4459 665 665 // ------------------------------------- 666 666 667 .a-ui.a-audio-player-container { position: relative; overflow: hidden; clear:both; } 668 669 .a-ui .a-audio-meta { float: left; width: 100%; clear: both; margin: 0 0 10px 0; } 670 671 .a-ui .a-audio-player-interface 672 { 673 overflow: hidden; 674 position: relative; 675 width: auto; 676 background-color: #888; 677 padding: 10px; 678 -moz-border-radius: 4px; 679 -webkit-border-radius: 4px; 680 border-radius: 4px; 681 margin: 10px 0; 682 } 683 684 685 .a-ui.a-audio-player-container .a-audio-player-interface.a-loading * { visibility: hidden; } 686 687 .a-ui.a-audio-player-container .a-audio-player-interface.a-loading .a-audio-loading { visibility: visible; display: block; padding: 0 0 0 20px; background: url({@a-asset-path}/apostrophePlugin/images/a-icon-loader-2.gif) 0 50% no-repeat; line-height: 20px; height: 20px;} 688 .a-ui.a-audio-player-container .a-audio-player-interface .a-audio-loading { display: none; position: absolute; top: 50%; margin-top: -10px; left: 10px; color: #fff;} 689 690 .a-ui.a-audio-player-container .a-audio-controls .a-audio-button 691 { 692 float: left; 693 width: 30px; 694 height: 20px; 695 background-color: #fff; 696 -moz-border-radius: 2px; 697 -webkit-border-radius: 2px; 698 border-radius: 2px; 699 text-indent: -9999px; 700 cursor: pointer; 701 } 702 703 .a-ui.a-audio-player-container .a-audio-button:hover { background-color: #ddd; } 704 705 .a-ui.a-audio-player-container .a-audio-play { background: #fff url({@a-asset-path}/apostrophePlugin/images/a-icon-alt-play.png) no-repeat 6px 0; } 706 707 .a-ui.a-audio-player-container .a-audio-pause { background: #fff url({@a-asset-path}/apostrophePlugin/images/a-icon-alt-pause.png) no-repeat 6px 0; display: none; } 708 709 .a-ui.a-audio-player-container .a-audio-controls { float: left; clear: none; } 667 .a-ui.a-audio-player-container 668 { 669 position: relative; 670 overflow: hidden; 671 clear:both; 672 673 .a-audio-meta 674 { 675 float: left; 676 width: 100%; 677 clear: both; 678 margin: 0 0 10px 0; 679 } 680 681 .a-audio-player-interface 682 { 683 overflow: hidden; 684 position: relative; 685 width: auto; 686 background-color: #888; 687 padding: 10px; 688 -moz-border-radius: 4px; 689 -webkit-border-radius: 4px; 690 border-radius: 4px; 691 margin: 10px 0; 692 &.a-loading 693 { 694 * 695 { 696 visibility: hidden; 697 } 698 .a-audio-loading 699 { 700 visibility: visible; display: block; padding: 0 0 0 20px; background: url({@a-asset-path}/apostrophePlugin/images/a-icon-loader-2.gif) 0 50% no-repeat; line-height: 20px; height: 20px; 701 } 702 } 703 } // .a-audio-player-interface 704 705 .a-audio-loading { display: none; position: absolute; top: 50%; margin-top: -10px; left: 10px; color: #fff;} 706 707 .a-audio-controls 708 { 709 float: left; 710 clear: none; 711 712 .a-audio-button 713 { 714 float: left; 715 width: 30px; 716 height: 20px; 717 background-color: #fff; 718 text-indent: -9999px; 719 cursor: pointer; 720 @a-border-radius(2px); 721 &:hover, 722 &:focus 723 { 724 @a-opacity(0.65); 725 } 726 } 727 728 .a-audio-play { background: #fff url({@a-asset-path}/apostrophePlugin/images/a-icon-alt-play.png) no-repeat 6px 0; } 729 .a-audio-pause { background: #fff url({@a-asset-path}/apostrophePlugin/images/a-icon-alt-pause.png) no-repeat 6px 0; display: none; } 730 731 } // .a-audio-controls 732 733 } // .a-ui.a-audio-player-container 734 710 735 711 736 .a-ui.a-audio-player-container .a-audio-volume { float: right; background: #888; width: 72px; } … … 758 783 .a-ui .a-audio-slider-wrapper 759 784 { 760 float: left; 761 padding: 1px; 762 border: 1px solid #fff; 763 margin: 0 0 0 5px; 764 -moz-border-radius: 2px; 765 -webkit-border-radius: 2px; 766 border-radius: 2px; 767 position: relative; 768 height: 16px; 785 float: left; 786 padding: 1px; 787 border: 1px solid #fff; 788 margin: 0 0 0 5px; 789 -moz-border-radius: 2px; 790 -webkit-border-radius: 2px; 791 border-radius: 2px; 792 position: relative; 793 height: 16px; 794 &.playback 795 { 796 float: none; 797 margin: 0 80px 0 34px; 798 } 799 &.volume 800 { 801 float: right; 802 margin-top: -20px; 803 } 769 804 } 770 805 -
plugins/apostrophePlugin/branches/1.5/web/js/a.js
r4454 r4459 1139 1139 mediaSlotEnhancements -- Logged-in editing enhancements for media slots. Makes the placeholder a clickable button redundant functionality for the 'Choose' button 1140 1140 */ 1141 this.mediaSlotEnhancements = function() 1141 this.mediaSlotEnhancements = function() 1142 1142 { 1143 1143 apostrophe.log('apostorphe.mediaSlotEnhancements'); … … 1204 1204 $singleton = $slot.closest('.a-area.singleton'), 1205 1205 $slotContent = $(options['slot-content']); 1206 1206 1207 1207 // apostrophe.log('apostrophe.slotEnableForm -- form : ' + options['slot-form']); 1208 1208 $slotForm.submit(function() { … … 1234 1234 $saveButton = $(options['save']); 1235 1235 1236 // Note: The selectors are rigid here because slots can be nested inside of other slots. 1236 // Note: The selectors are rigid here because slots can be nested inside of other slots. 1237 1237 // We have to use .children() -- .find() won't work here. 1238 1238 … … 2217 2217 { 2218 2218 apostrophe.log('apostrophe.smartCSS'); 2219 2219 2220 2220 var aBody = $('body'), 2221 2221 target = 'body'; 2222 2222 2223 2223 if (options && options['target']) 2224 2224 { … … 2227 2227 2228 2228 // Enhancements that we only need to execute these enhancements when we are logged in 2229 if (aBody.hasClass('logged-in')) 2229 if (aBody.hasClass('logged-in')) 2230 2230 { 2231 2231 apostrophe.mediaSlotEnhancements(); … … 2250 2250 // Utility for finding malformed buttons in old code 2251 2251 // Most likely has no affect anymore 2252 2252 2253 2253 var aBtns = $(target).find('.a-btn,.a-submit,.a-cancel'); 2254 2254 aBtns.each(function() { … … 2329 2329 var aAudioPlayer = aAudioContainer.find('.a-audio-player'); 2330 2330 var aAudioInterface = aAudioContainer.find('.a-audio-player-interface'); 2331 2332 // It's unfortunate, but the jquery ui playback works a lot better if it has a pixel value applied to the parent container. 2333 // We don't need this for the player to look right, it just helps the playback feel better. 2334 aAudioContainer.unbind('setSize.audioPlayer').bind('setSize.audioPlayer', function(){ 2335 var loader = aAudioContainer.find('.a-audio-loader'), 2336 playback = aAudioContainer.find('.a-audio-playback'), 2337 newWidth = loader.parent().width(); 2338 loader.css({ 2339 width : newWidth 2340 }); 2341 playback.css({ 2342 width : newWidth 2343 }); 2344 }); 2345 2346 aAudioContainer.trigger('setSize.audioPlayer'); 2347 2348 $(window).unbind('resize.audioPlayer').bind('resize.audioPlayer', function(){ 2349 aAudioContainer.trigger('setSize.audioPlayer'); 2350 }); 2351 2331 2352 aAudioPlayer.jPlayer({ 2332 2353 ready: function () … … 2395 2416 else 2396 2417 { 2397 throw "Cannot find DOM Element forAudio Player.";2418 throw "Cannot find Audio Player."; 2398 2419 } 2399 2420 }; … … 2753 2774 { 2754 2775 apostrophe.log('apostrophe.enhanceAdmin'); 2755 2776 2756 2777 // Sortable Label Buttons 2757 2778 var sortLabel = $("a.a-sort-label").parent().parent(); 2758 if (sortLabel.length) 2779 if (sortLabel.length) 2759 2780 { 2760 2781 sortLabel.unbind('click.sortLabel').bind('click.sortLabel', function() { … … 2769 2790 }); 2770 2791 return false; 2771 }); 2792 }); 2772 2793 }; 2773 2794 2774 2795 // Batch Checkbox Toggle 2775 2796 $('#a-admin-list-batch-checkbox-toggle').unbind('click.batchToggle').bind('click.batchToggle', function(){ … … 2780 2801 }); 2781 2802 }; 2782 2803 2783 2804 2784 2805 // Private methods callable only from the above (no this.foo = bar) … … 2978 2999 */ 2979 3000 function aCall(callback) { 2980 if (typeof(callback) === 'function') 3001 if (typeof(callback) === 'function') 2981 3002 { 2982 3003 callback(); … … 2985 3006 2986 3007 /** 2987 aLog -- Utility for 3008 aLog -- Utility for 2988 3009 */ 2989 3010 function aLog(output) {

