Plugin Directory

Changeset 1769820


Ignore:
Timestamp:
11/17/2017 11:14:08 PM (8 years ago)
Author:
synqfm
Message:

Fixing issues with styling and wording

Location:
synq-video/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • synq-video/trunk/README.md

    r1767232 r1769820  
    6565Tags: video, html5, embed, responsive, player, synq, upload, play, mp4, mov, transcode, storage
    6666Requires at least: 3.0.2
    67 Tested up to: 4.8.3
     67Tested up to: 4.9
    6868Requires PHP: 5.4
    69 Stable tag: 2.3.0
     69Stable tag: 2.3.1
    7070License: MIT
    7171License URI: https://opensource.org/licenses/MIT
    7272
    7373## Changelog
     74
     75### 2.3.1
     76* Make videos harder to delete
     77* Fix issue with user filter
    7478
    7579### 2.3.0
  • synq-video/trunk/assets/css/bootstrap.css

    r1660151 r1769820  
    66/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
    77html {
    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
    913  -webkit-text-size-adjust: 100%;
    1014      -ms-text-size-adjust: 100%;
     
    106110pre,
    107111samp {
    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
    109117  font-size: 1em;
    110118}
     
    10831091}
    10841092body {
    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   
    10861098  font-size: 14px;
    10871099  line-height: 1.42857143;
     
    15321544pre,
    15331545samp {
    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;
    15351550}
    15361551code {
     
    59916006  z-index: 1070;
    59926007  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
    59946014  font-size: 12px;
    59956015  font-style: normal;
     
    61106130  max-width: 276px;
    61116131  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
    61136138  font-size: 14px;
    61146139  font-style: normal;
     
    63796404  width: 20px;
    63806405  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
    63826412  line-height: 1;
    63836413}
  • synq-video/trunk/assets/css/style.css

    r1767232 r1769820  
    5858.synq-header {
    5959  margin: 0;
    60   padding: 10px 3%;
     60  padding: 5%;
     61  padding-right: 2%;
    6162
    6263  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;
    7564}
    7665
     
    253242.synq-restriction-row                                       { border-bottom: 1px solid lightgrey;   }
    254243.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  
    33$(document).ready(function()
    44{
    5   $('#insert-synq-media').click(function(){
     5  $('#insert-synq-media').click(function() {
    66    var modal = wp.media.editor.open( null, {
    77      frame: 'post',
     
    1111    modal.setState("iframe:synq_media_tab")
    1212  });
    13   window.addEventListener('message', function(event){
     13
     14  window.addEventListener('message', function(event) {
    1415    try{
    1516      eventObj = JSON.parse(event.data);
     
    2526    }
    2627  }, 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  }
    2738
    2839  afterUploadsLoaded = function(){
     
    4455    $('#selectAll').click(function(e) {
    4556      $(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();
    5158    });
    5259
     
    5562
    5663      $('#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();
    6265    });
    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     // });
    8766
    8867    $('#userFilter').change(function() {
  • synq-video/trunk/readme.txt

    r1767232 r1769820  
    44Tags: video, html5, embed, responsive, player, synq, upload, play, mp4, mov, transcode, storage
    55Requires at least: 3.0.2
    6 Tested up to: 4.8.3
     6Tested up to: 4.9
    77Requires PHP: 5.4
    8 Stable tag: 2.3.0
     8Stable tag: 2.3.1
    99License: MIT
    1010License URI: https://opensource.org/licenses/MIT
     
    8383
    8484== Changelog ==
     85= 2.3.1 =
     86* Make videos harder to delete
     87* Fix issue with user filter
    8588= 2.3.0 =
    8689* Add in Domain Restrictions functionality
  • synq-video/trunk/synq-admin-menu.php

    r1767232 r1769820  
    9494      <ul id="synq-nav" class="nav nav-tabs nav-justified synq-nav">
    9595        <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>
    9797        <li><a data-toggle="tab" href="#customization"><?php _e('Player Customization','synq-video')?></a></li>
    9898        <li><a data-toggle="tab" href="#ads"><?php _e('Ad Insertion','synq-video') ?></a></li>
     
    104104      <ul class="nav nav-tabs nav-justified">
    105105        <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>
    107107        <li class="disabled"><a href="#apikey"><?php _e('Player Customization','synq-video')?></a></li>
    108108        <li class="disabled"><a href="#apikey"><?php _e('Ad Insertion','synq-video') ?></a></li>
     
    162162      <div class="tab-cont">
    163163        <div class="heading-block">
    164           <h3><?php _e('Domain Restrictions','synq-video')?></h3>
     164          <h3><?php _e('Domain Whitelisting','synq-video')?></h3>
    165165          <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>
    167175        </div>
    168176        <div>
  • synq-video/trunk/synq-video.php

    r1767232 r1769820  
    77 * Plugin Name: SYNQ Video
    88 * Description: SYNQ Video, the best way to add video uploading and embedding to your WordPress site!
    9  * Version: 2.3.0
     9 * Version: 2.3.1
    1010 * Author: SYNQ
    1111 * Contributors: synqfm
     
    121121    <div class="synq-header">
    122122      <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>
    125125      </div>
    126126      <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>
    128128      </div>
    129129    </div>
    130130    <div id="snackbar">Copied to clipboard!</div>
    131131    <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
    132142      function deleteVideos() {
    133143        var rows = $('.selectItem:checked').closest('.synq-video-row');
     
    173183            <option value="all">All Users</option>
    174184            <?php
    175               for($i = 0; $i < count($userList); $i++) {
     185              foreach($userList as $username) {
    176186                ?>
    177                 <option><?= $userList[$i] ?></option>
     187                <option><?= $username ?></option>
    178188            <?php
    179189              }
     
    425435  </script>
    426436  <style type="text/css">
    427     .clip-btn {display: none;}
    428437    .synq-check-box {display: none;}
     438    #synq-video-delete { display: none; }
    429439  </style>
    430440  <?php
  • synq-video/trunk/uninstall.php

    r1767232 r1769820  
    4040delete_option("synq_secondary_color");
    4141delete_option("synq_vast_tag");
     42delete_option("synq_domain_restrictions");
Note: See TracChangeset for help on using the changeset viewer.