Plugin Directory

Changeset 398434


Ignore:
Timestamp:
06/17/2011 04:38:12 PM (15 years ago)
Author:
CJ_Jackson
Message:

Updated to 0.1.8

Location:
html5avmanager
Files:
79 added
3 edited

Legend:

Unmodified
Added
Removed
  • html5avmanager/trunk/api.php

    r397419 r398434  
    110110        list($firstPage, $lastPage) = html5av_audio_video_table::pager();
    111111        $currentPage = self::$param['page'];
     112       
     113        if($lastPage <= 1) {
     114            echo '';
     115            return;
     116        }
    112117
    113118        $pages = array();
     
    143148        $page = (int) self::$param['page'];
    144149        $tempVideoAudios = html5av_audio_video_table::getPage($page);
     150       
     151        if(!count($tempVideoAudios)) {
     152            include 'view/admin/no-av.php';
     153            return;
     154        }
     155       
    145156        $AVs = array();
    146157        foreach ($tempVideoAudios as $videoAudio) {
  • html5avmanager/trunk/html5avmanager.php

    r397939 r398434  
    55  Plugin URI: http://cj-jackson.com/
    66  Description: A video manager with a Modal-View-Controller and video uploader.
    7   Version: 0.1.7
     7  Version: 0.1.8
    88  Author: Christopher John Jackson
    99  Author URI: http://cj-jackson.com/
     
    1111 */
    1212
     13/**
     14 * Copyright (c) 2011 Christopher John Jackson
     15 *
     16 * Permission is hereby granted, free of charge, to any person obtaining a copy of
     17 * this software and associated documentation files (the "Software"), to deal in
     18 * the Software without restriction, including without limitation the rights to
     19 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
     20 * of the Software, and to permit persons to whom the Software is furnished to do
     21 * so, subject to the following conditions:
     22 *
     23 * The above copyright notice and this permission notice shall be included in all
     24 * copies or substantial portions of the Software.
     25 *
     26 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     27 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     28 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     29 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     30 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     31 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
     32 * SOFTWARE.
     33 */
    1334require_once 'lib/time.php';
    1435require_once 'lib/dbal.php';
     
    208229
    209230    static public function scripts() {
    210         wp_deregister_script('jquery');
    211         wp_deregister_script('jquery-ui-core');
    212         wp_deregister_script('jquery-ui-tabs');
    213         wp_deregister_script('jquery-ui-sortable');
    214         wp_deregister_script('jquery-ui-draggable');
    215         wp_deregister_script('jquery-ui-dropable');
    216         wp_deregister_script('jquery-ui-selectable');
    217         wp_deregister_script('jquery-ui-resizable');
    218         wp_deregister_script('jquery-ui-dialog');
    219         wp_register_script('jquery', self::getUrl() . '/lib/jquery.js', null, '1.6.x');
    220         wp_register_script('jquery-ui-core',
    221                 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js',
    222                 null, '1.8.x');
    223         wp_register_script('jquery-ui-tabs', self::getUrl() . '/lib/blank.js');
    224         wp_register_script('jquery-ui-sortable', self::getUrl() . '/lib/blank.js');
    225         wp_register_script('jquery-ui-draggable', self::getUrl() . '/lib/blank.js');
    226         wp_register_script('jquery-ui-dropable', self::getUrl() . '/lib/blank.js');
    227         wp_register_script('jquery-ui-selectable', self::getUrl() . '/lib/blank.js');
    228         wp_register_script('jquery-ui-resizable', self::getUrl() . '/lib/blank.js');
    229         wp_register_script('jquery-ui-dialog', self::getUrl() . '/lib/blank.js');
     231        if (!is_admin()) {
     232            wp_deregister_script('jquery');
     233            wp_deregister_script('jquery-ui-core');
     234            wp_deregister_script('jquery-ui-tabs');
     235            wp_deregister_script('jquery-ui-sortable');
     236            wp_deregister_script('jquery-ui-draggable');
     237            wp_deregister_script('jquery-ui-dropable');
     238            wp_deregister_script('jquery-ui-selectable');
     239            wp_deregister_script('jquery-ui-resizable');
     240            wp_deregister_script('jquery-ui-dialog');
     241            wp_register_script('jquery', self::getUrl() . '/lib/jquery.js', null, '1.6.x');
     242            wp_register_script('jquery-ui-core', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js', null, '1.8.x');
     243            wp_register_script('jquery-ui-tabs', self::getUrl() . '/lib/blank.js');
     244            wp_register_script('jquery-ui-sortable', self::getUrl() . '/lib/blank.js');
     245            wp_register_script('jquery-ui-draggable', self::getUrl() . '/lib/blank.js');
     246            wp_register_script('jquery-ui-dropable', self::getUrl() . '/lib/blank.js');
     247            wp_register_script('jquery-ui-selectable', self::getUrl() . '/lib/blank.js');
     248            wp_register_script('jquery-ui-resizable', self::getUrl() . '/lib/blank.js');
     249            wp_register_script('jquery-ui-dialog', self::getUrl() . '/lib/blank.js');
     250        }
    230251        if (is_admin()) {
    231252            wp_enqueue_script('jquery');
     
    514535    static public function determineVideo($file) {
    515536        $type = self::getVideoType();
    516        
     537
    517538        $ext = strtolower(end(explode('.', $file)));
    518539
     
    530551    static public function determineAudio($file) {
    531552        $type = self::getAudioType();
    532        
     553
    533554        $ext = strtolower(end(explode('.', $file)));
    534555
  • html5avmanager/trunk/readme.txt

    r397939 r398434  
    55Requires at least: 2.7
    66Tested up to: 3.2
    7 Stable tag: 0.1.7
     7Stable tag: 0.1.8
    88
    99A HTML5 Audio and Video manager that take full advantage of
     
    6262== Changelog ==
    6363
     64= 0.1.8 =
     65* Fixed quirk with audio & video manager.
     66* Fixed glitch with with switching from Visual to HTML in post editor.
     67
    6468= 0.1.7 =
    6569* No longer uses 'preg_match' to determine video or audio, uses
Note: See TracChangeset for help on using the changeset viewer.