Changeset 1769820
- Timestamp:
- 11/17/2017 11:14:08 PM (8 years ago)
- Location:
- synq-video/trunk
- Files:
-
- 8 edited
-
README.md (modified) (1 diff)
-
assets/css/bootstrap.css (modified) (7 diffs)
-
assets/css/style.css (modified) (2 diffs)
-
assets/js/synq-video.js (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
synq-admin-menu.php (modified) (3 diffs)
-
synq-video.php (modified) (4 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
synq-video/trunk/README.md
r1767232 r1769820 65 65 Tags: video, html5, embed, responsive, player, synq, upload, play, mp4, mov, transcode, storage 66 66 Requires at least: 3.0.2 67 Tested up to: 4. 8.367 Tested up to: 4.9 68 68 Requires PHP: 5.4 69 Stable tag: 2.3. 069 Stable tag: 2.3.1 70 70 License: MIT 71 71 License URI: https://opensource.org/licenses/MIT 72 72 73 73 ## Changelog 74 75 ### 2.3.1 76 * Make videos harder to delete 77 * Fix issue with user filter 74 78 75 79 ### 2.3.0 -
synq-video/trunk/assets/css/bootstrap.css
r1660151 r1769820 6 6 /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ 7 7 html { 8 font-family: sans-serif; 8 font-family: -apple-system, BlinkMacSystemFont, 9 "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", 10 "Fira Sans", "Droid Sans", "Helvetica Neue", 11 sans-serif; 12 9 13 -webkit-text-size-adjust: 100%; 10 14 -ms-text-size-adjust: 100%; … … 106 110 pre, 107 111 samp { 108 font-family: monospace, monospace; 112 font-family: -apple-system, BlinkMacSystemFont, 113 "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", 114 "Fira Sans", "Droid Sans", "Helvetica Neue", 115 sans-serif; 116 109 117 font-size: 1em; 110 118 } … … 1083 1091 } 1084 1092 body { 1085 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 1093 font-family: -apple-system, BlinkMacSystemFont, 1094 "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", 1095 "Fira Sans", "Droid Sans", "Helvetica Neue", 1096 sans-serif; 1097 1086 1098 font-size: 14px; 1087 1099 line-height: 1.42857143; … … 1532 1544 pre, 1533 1545 samp { 1534 font-family: Menlo, Monaco, Consolas, "Courier New", monospace; 1546 font-family: -apple-system, BlinkMacSystemFont, 1547 "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", 1548 "Fira Sans", "Droid Sans", "Helvetica Neue", 1549 sans-serif; 1535 1550 } 1536 1551 code { … … 5991 6006 z-index: 1070; 5992 6007 display: block; 5993 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 6008 6009 font-family: -apple-system, BlinkMacSystemFont, 6010 "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", 6011 "Fira Sans", "Droid Sans", "Helvetica Neue", 6012 sans-serif; 6013 5994 6014 font-size: 12px; 5995 6015 font-style: normal; … … 6110 6130 max-width: 276px; 6111 6131 padding: 1px; 6112 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 6132 6133 font-family: -apple-system, BlinkMacSystemFont, 6134 "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", 6135 "Fira Sans", "Droid Sans", "Helvetica Neue", 6136 sans-serif; 6137 6113 6138 font-size: 14px; 6114 6139 font-style: normal; … … 6379 6404 width: 20px; 6380 6405 height: 20px; 6381 font-family: serif; 6406 6407 font-family: -apple-system, BlinkMacSystemFont, 6408 "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", 6409 "Fira Sans", "Droid Sans", "Helvetica Neue", 6410 sans-serif; 6411 6382 6412 line-height: 1; 6383 6413 } -
synq-video/trunk/assets/css/style.css
r1767232 r1769820 58 58 .synq-header { 59 59 margin: 0; 60 padding: 10px 3%; 60 padding: 5%; 61 padding-right: 2%; 61 62 62 63 width: 100%; 63 }64 65 .synq-header h3 {66 color: rgb(114, 121, 129);67 padding: 10px;68 69 font-size: 1.4em;70 }71 72 .synq-header p {73 color: rgb(114, 121, 129);74 padding-left: 10px;75 64 } 76 65 … … 253 242 .synq-restriction-row { border-bottom: 1px solid lightgrey; } 254 243 .synq-restriction-row:hover { background-color: rgb(179, 218, 189); } 255 .synq-domain-text { padding: 1vw;} 244 .synq-domain-text { padding: 1vw; } 245 246 .synq-code { 247 display: inline-block; 248 border: 1px solid grey; 249 border-radius: 3px; 250 padding: 2px 5px; 251 252 background-color: white; 253 color: rgb(103, 188, 168); 254 } 255 256 .noDelete { 257 background-color: lightgrey !important; 258 border-color: lightgrey !important; 259 color: rgb(249, 249, 249) !important; 260 261 cursor: inherit; 262 } -
synq-video/trunk/assets/js/synq-video.js
r1767232 r1769820 3 3 $(document).ready(function() 4 4 { 5 $('#insert-synq-media').click(function() {5 $('#insert-synq-media').click(function() { 6 6 var modal = wp.media.editor.open( null, { 7 7 frame: 'post', … … 11 11 modal.setState("iframe:synq_media_tab") 12 12 }); 13 window.addEventListener('message', function(event){ 13 14 window.addEventListener('message', function(event) { 14 15 try{ 15 16 eventObj = JSON.parse(event.data); … … 25 26 } 26 27 }, false); 28 29 function toggleDelete() { 30 var selectedCount = $('.selectItem:checked').length; 31 var totalCount = $('.selectItem').length; 32 33 if( selectedCount > 0 ) 34 $('#synq-video-delete').removeClass('noDelete'); 35 else 36 $('#synq-video-delete').addClass('noDelete'); 37 } 27 38 28 39 afterUploadsLoaded = function(){ … … 44 55 $('#selectAll').click(function(e) { 45 56 $(e.target).closest('table').find('.selectItem').prop('checked', e.target.checked); 46 47 if( $('.selectItem:checked').length > 0 ) 48 $('#synq-video-delete').show(); 49 else 50 $('#synq-video-delete').hide(); 57 toggleDelete(); 51 58 }); 52 59 … … 55 62 56 63 $('#selectAll').prop('checked', $('.selectItem:checked').length == $('.selectItem').length); 57 58 if( $('.selectItem:checked').length > 0 ) 59 $('#synq-video-delete').show(); 60 else 61 $('#synq-video-delete').hide(); 64 toggleDelete(); 62 65 }); 63 64 // $('#synq-video-delete').click(function(e) {65 // var rows = $('.selectItem:checked').closest('.synq-video-row');66 // var count = 0;67 68 // for(let i = 0; i < rows.length; i++) {69 // var http = new XMLHttpRequest();70 // http.onreadystatechange = function() {71 // if(http.readyState == 4 && http.status == 200) {72 // count += 1;73 // }74 // }75 76 // var params = "api_key=" + <?= get_option('synq_api_key') ?> + "&video_id=" + row[i].getAttribute("data-video-id");77 // http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');78 79 // http.open("POST", "https://api.synq.fm/v1/video/delete", true);80 // http.send(params);81 // }82 83 // setTimeout(function() {84 // location.reload();85 // }, 1000);86 // });87 66 88 67 $('#userFilter').change(function() { -
synq-video/trunk/readme.txt
r1767232 r1769820 4 4 Tags: video, html5, embed, responsive, player, synq, upload, play, mp4, mov, transcode, storage 5 5 Requires at least: 3.0.2 6 Tested up to: 4. 8.36 Tested up to: 4.9 7 7 Requires PHP: 5.4 8 Stable tag: 2.3. 08 Stable tag: 2.3.1 9 9 License: MIT 10 10 License URI: https://opensource.org/licenses/MIT … … 83 83 84 84 == Changelog == 85 = 2.3.1 = 86 * Make videos harder to delete 87 * Fix issue with user filter 85 88 = 2.3.0 = 86 89 * Add in Domain Restrictions functionality -
synq-video/trunk/synq-admin-menu.php
r1767232 r1769820 94 94 <ul id="synq-nav" class="nav nav-tabs nav-justified synq-nav"> 95 95 <li><a data-toggle="tab" href="#apikey"><?php _e('API Key','synq-video')?></a></li> 96 <li><a data-toggle="tab" href="#restrictions"><?php _e('Domain Restrictions','synq-video')?></a></li>96 <li><a data-toggle="tab" href="#restrictions"><?php _e('Domain Whitelisting','synq-video')?></a></li> 97 97 <li><a data-toggle="tab" href="#customization"><?php _e('Player Customization','synq-video')?></a></li> 98 98 <li><a data-toggle="tab" href="#ads"><?php _e('Ad Insertion','synq-video') ?></a></li> … … 104 104 <ul class="nav nav-tabs nav-justified"> 105 105 <li class="active"><a data-toggle="tab" href="#apikey"><?php _e('API Key','synq-video')?></a></li> 106 <li class="disabled"><a href="#apikey"><?php _e('Domain Restrictions','synq-video')?></a></li>106 <li class="disabled"><a href="#apikey"><?php _e('Domain Whitelisting','synq-video')?></a></li> 107 107 <li class="disabled"><a href="#apikey"><?php _e('Player Customization','synq-video')?></a></li> 108 108 <li class="disabled"><a href="#apikey"><?php _e('Ad Insertion','synq-video') ?></a></li> … … 162 162 <div class="tab-cont"> 163 163 <div class="heading-block"> 164 <h3><?php _e('Domain Restrictions','synq-video')?></h3>164 <h3><?php _e('Domain Whitelisting','synq-video')?></h3> 165 165 <h4><?php _e('Here you can control where your videos can be embedded.','synq-video') ?></h4> 166 <h6><?php _e('Please allow up to 5 minutes for any changes to take place.', 'synq-video') ?></h6> 166 <ul style="list-style: circle; padding-left: 30px;"> 167 <li>If you do not have any Domains listed here, then your videos will be playable from any location</li> 168 <li>If you would like to whitelist multiple domains, then click the <div class="synq-code">+</div> icon to add a new domain to the list</li> 169 <li>If you would like to whitelist a single domain, then you would provide the domain such as <div class="synq-code">player.synq.fm</div> or <div class="synq-code">www.google.com</div></li> 170 <li>If you would like to whitelist a domain and all subdomains, then you would use <div class="synq-code">*</div> such as <div class="synq-code">*.synq.fm</div></li> 171 </ul> 172 <p> 173 Please allow up to 5 minutes for changes to take place. 174 </p> 167 175 </div> 168 176 <div> -
synq-video/trunk/synq-video.php
r1767232 r1769820 7 7 * Plugin Name: SYNQ Video 8 8 * Description: SYNQ Video, the best way to add video uploading and embedding to your WordPress site! 9 * Version: 2.3. 09 * Version: 2.3.1 10 10 * Author: SYNQ 11 11 * Contributors: synqfm … … 121 121 <div class="synq-header"> 122 122 <div style="width: 74%; display: inline-block;"> 123 <h3>< b>Uploaded Videos</b></h3>124 < p>Watch, embed or delete uploaded videos</p>123 <h3><?php _e('Uploaded Videos','synq-video')?></h3> 124 <h4><?php _e('Watch, embed or delete uploaded videos','synq-video') ?></h4> 125 125 </div> 126 126 <div style="width: 24%; display: inline-block; text-align: right;"> 127 <div id="synq-video-delete" class="btn custom-btn " style="display: none;" onClick="deleteVideos()">Delete</div>127 <div id="synq-video-delete" class="btn custom-btn noDelete" onClick="confirmDelete()">Delete</div> 128 128 </div> 129 129 </div> 130 130 <div id="snackbar">Copied to clipboard!</div> 131 131 <script type="text/javascript"> 132 function confirmDelete() { 133 if( $('#synq-video-delete').hasClass('noDelete') ) 134 return false; 135 136 var runDelete = confirm("Are you sure you want to delete " + $('.selectItem:checked').length + " videos?"); 137 138 if(runDelete) 139 deleteVideos(); 140 } 141 132 142 function deleteVideos() { 133 143 var rows = $('.selectItem:checked').closest('.synq-video-row'); … … 173 183 <option value="all">All Users</option> 174 184 <?php 175 for ($i = 0; $i < count($userList); $i++) {185 foreach($userList as $username) { 176 186 ?> 177 <option><?= $user List[$i]?></option>187 <option><?= $username ?></option> 178 188 <?php 179 189 } … … 425 435 </script> 426 436 <style type="text/css"> 427 .clip-btn {display: none;}428 437 .synq-check-box {display: none;} 438 #synq-video-delete { display: none; } 429 439 </style> 430 440 <?php -
synq-video/trunk/uninstall.php
r1767232 r1769820 40 40 delete_option("synq_secondary_color"); 41 41 delete_option("synq_vast_tag"); 42 delete_option("synq_domain_restrictions");
Note: See TracChangeset
for help on using the changeset viewer.