Plugin Directory

Changeset 819854


Ignore:
Timestamp:
12/12/2013 03:11:31 PM (12 years ago)
Author:
Max GJP
Message:

minor fix to the new function

Location:
media-vault/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • media-vault/trunk/_mediavault.php

    r816228 r819854  
    77Text Domain: media-vault
    88Domain Path: /languages
    9 Version: 0.8.6
     9Version: 0.8.7
    1010Author: Max GJ Panas
    1111Author URI: http://maxpanas.com
     
    3030
    3131// define current plugin version constant
    32 define( 'MGJP_MV_VERSION', '0.8.5' );
     32define( 'MGJP_MV_VERSION', '0.8.7' );
    3333
    3434
     
    104104    add_action( 'load-upload.php', 'mgjp_mv_media_library_options_include' );
    105105
     106    add_filter( 'admin_body_class', 'mgjp_add_mp6_admin_body_class' );
     107
    106108    add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'mgjp_mv_settings_link' );
    107109
     
    396398    add_shortcode( 'mv_dl_links', 'mgjp_mv_download_links_list_shortcode_handler' );
    397399
    398 }
    399 
    400 
    401 /**
    402  * Add Media Vault settings link on plugins manager page
    403  *
    404  * @since 0.8
    405  *
    406  * @param $links array Array of links associated with plugin
    407  * @return array Array of links associated with plugin plus settings link
    408  */
    409 function mgjp_mv_settings_link( $links ) {
    410 
    411   $settings_link = '<a href="options-media.php#mgjp_mv_settings_section">'
    412     . esc_html__( 'Settings', 'media-vault' )
    413     . '</a>';
    414 
    415   array_push( $links, $settings_link );
    416 
    417   return $links;
    418400}
    419401
     
    613595  include( plugin_dir_path( __FILE__ ) . 'mv-options-media-library.php' );
    614596
     597}
     598
     599
     600/**
     601 * Add Media Vault flag to enable
     602 * Media Vault mp6 styles for WP 3.8+
     603 *
     604 * @since 0.8.7
     605 *
     606 * @param $classes string admin body classes
     607 * @return string admin body classes
     608 */
     609if ( ! function_exists( 'mgjp_add_mp6_admin_body_class' ) ) {
     610  function mgjp_add_mp6_admin_body_class( $classes ) {
     611
     612    global $wp_version;
     613
     614    if ( version_compare( '3.7.5', $wp_version, '>' ) )
     615      return $classes;
     616
     617    return $classes . ' mgjp_mp6 ';
     618  }
     619}
     620
     621
     622/**
     623 * Add Media Vault settings link on plugins manager page
     624 *
     625 * @since 0.8
     626 *
     627 * @param $links array Array of links associated with plugin
     628 * @return array Array of links associated with plugin plus settings link
     629 */
     630function mgjp_mv_settings_link( $links ) {
     631
     632  $settings_link = '<a href="options-media.php#mgjp_mv_settings_section">'
     633    . esc_html__( 'Settings', 'media-vault' )
     634    . '</a>';
     635
     636  array_push( $links, $settings_link );
     637
     638  return $links;
    615639}
    616640
  • media-vault/trunk/css/mv-attachment-edit.css

    r814399 r819854  
    1 .js .js-visuallyhidden,.visuallyhidden,#mgjp_mv_protection_toggle{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}#mgjp_mv_protection_metabox .inside{position:static}#mgjp_mv_protection_metabox p.mgjp-mv-permission-select{margin:0 0 3.5em!important;max-height:0;opacity:0;overflow:hidden;-webkit-transition:.5s opacity,0.5s .1s max-height;transition:.5s opacity,0.5s .1s max-height}.mgjp-mv-protection-toggle{position:absolute;left:0;right:0;bottom:0;padding:1em 15px}.mgjp-mv-protection-toggle .mgjp-on{width:100%;text-align:center}.mgjp-mv-protection-toggle .mgjp-off{display:none;color:#f00}.mgjp-mv-protection-toggle .mgjp-on:after,.mgjp-mv-protection-toggle .mgjp-off:after{content:attr(data-mgjp-content);speak:none}#mgjp_mv_protection_toggle:checked ~ p.mgjp-mv-permission-select{margin-bottom:4.2em!important;max-height:100px;opacity:1;-webkit-transition:.3s .1s opacity,0.5s max-height ease-out;transition:.3s .1s opacity,0.5s max-height ease-out}#mgjp_mv_protection_toggle:checked+.mgjp-mv-protection-toggle{border-top:1px solid #dfdfdf;-webkit-box-shadow:inset 0 1px #fff;box-shadow:inset 0 1px #fff}#mgjp_mv_protection_toggle:checked+.mgjp-mv-protection-toggle .mgjp-on{display:none}#mgjp_mv_protection_toggle:checked+.mgjp-mv-protection-toggle .mgjp-off{display:initial}.mp6 #mgjp_mv_protection_metabox p.mgjp-mv-permission-select{margin-bottom:2.7em!important}.mp6 .mgjp-mv-protection-toggle .mgjp-off{color:#a00;border-bottom:0}.mp6 .mgjp-mv-protection-toggle .mgjp-off:hover,.mp6 .mgjp-mv-protection-toggle .mgjp-off:focus,.mp6 .mgjp-mv-protection-toggle .mgjp-off:active{color:#f00}.mp6 #mgjp_mv_protection_toggle:checked ~ p.mgjp-mv-permission-select{margin-bottom:2.4em!important}.mp6 #mgjp_mv_protection_toggle:checked+.mgjp-mv-protection-toggle{border-top:0;-webkit-box-shadow:none;box-shadow:none}
     1.js .js-visuallyhidden,.visuallyhidden,#mgjp_mv_protection_toggle{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}#mgjp_mv_protection_metabox .inside{position:static}#mgjp_mv_protection_metabox p.mgjp-mv-permission-select{margin:0 0 3.5em!important;max-height:0;opacity:0;overflow:hidden;-webkit-transition:.5s opacity,0.5s .1s max-height;transition:.5s opacity,0.5s .1s max-height}.mgjp-mv-protection-toggle{position:absolute;left:0;right:0;bottom:0;padding:1em 15px}.mgjp-mv-protection-toggle .mgjp-on{width:100%;text-align:center}.mgjp-mv-protection-toggle .mgjp-off{display:none;color:#f00}.mgjp-mv-protection-toggle .mgjp-on:after,.mgjp-mv-protection-toggle .mgjp-off:after{content:attr(data-mgjp-content);speak:none}#mgjp_mv_protection_toggle:checked ~ p.mgjp-mv-permission-select{margin-bottom:4.2em!important;max-height:100px;opacity:1;-webkit-transition:.3s .1s opacity,0.5s max-height ease-out;transition:.3s .1s opacity,0.5s max-height ease-out}#mgjp_mv_protection_toggle:checked+.mgjp-mv-protection-toggle{border-top:1px solid #dfdfdf;-webkit-box-shadow:inset 0 1px #fff;box-shadow:inset 0 1px #fff}#mgjp_mv_protection_toggle:checked+.mgjp-mv-protection-toggle .mgjp-on{display:none}#mgjp_mv_protection_toggle:checked+.mgjp-mv-protection-toggle .mgjp-off{display:initial}.mp6 #mgjp_mv_protection_metabox p.mgjp-mv-permission-select,.mgjp_mp6 #mgjp_mv_protection_metabox p.mgjp-mv-permission-select{margin-bottom:2.7em!important}.mp6 .mgjp-mv-protection-toggle .mgjp-off,.mgjp_mp6 .mgjp-mv-protection-toggle .mgjp-off{color:#a00;border-bottom:0}.mp6 .mgjp-mv-protection-toggle .mgjp-off:hover,.mp6 .mgjp-mv-protection-toggle .mgjp-off:focus,.mp6 .mgjp-mv-protection-toggle .mgjp-off:active,.mgjp_mp6 .mgjp-mv-protection-toggle .mgjp-off:hover,.mgjp_mp6 .mgjp-mv-protection-toggle .mgjp-off:focus,.mgjp_mp6 .mgjp-mv-protection-toggle .mgjp-off:active{color:#f00}.mp6 #mgjp_mv_protection_toggle:checked ~ p.mgjp-mv-permission-select,.mgjp_mp6 #mgjp_mv_protection_toggle:checked ~ p.mgjp-mv-permission-select{margin-bottom:2.4em!important}.mp6 #mgjp_mv_protection_toggle:checked+.mgjp-mv-protection-toggle,.mgjp_mp6 #mgjp_mv_protection_toggle:checked+.mgjp-mv-protection-toggle{border-top:0;-webkit-box-shadow:none;box-shadow:none}
  • media-vault/trunk/css/mv-media-new.css

    r814399 r819854  
    1 .js .js-visuallyhidden,.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}#plupload-upload-ui{position:relative}#plupload-upload-ui .mgjp-mv-tag{display:none;position:absolute;top:25px;left:50%;margin-left:-102px;border:1px solid #b4b4b4;border-radius:5px;padding:8px 15px;color:#333;background:#e6e6e6;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(7%,#e6e6e6),color-stop(77%,#d8d8d8));background-image:-webkit-linear-gradient(top,#e6e6e6 7%,#d8d8d8 77%);background-image:-webkit-gradient(linear,top left,bottom left,from(#e6e6e6),to(#d8d8d8));background-image:-webkit-linear-gradient(top,#e6e6e6 7%,#d8d8d8 77%);background-image:linear-gradient(top,#e6e6e6 7%,#d8d8d8 77%)}#plupload-upload-ui .mgjp-mv-tag .mgjp-mv-tag-icon{float:left;background:center no-repeat url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAhxJREFUeNqkU89rE0EYfTOZbDdmk5qo1EZ6qKDYXgRl9SLGUiNI/wQPxYsgFPQkXvXgXaQXD4qCIF4UPAiCtaGiSFTQgwpRA1pjY4yx2cRN9kfGb2pWm1gx4MCDmbf7vXnz5hsmpcT/DHb7NO8iQpxB17CbAWlaDnXoEm2TbTp46re7NxS9imTIFEbq2NjE0UPFpS8RxaU2b7Rf3b88JivFi7TMdQnYzh8SmV37pqce3btbffn88S3FjO/ce9DcPz21cONcoVeAa4IhgGVDYUQyfeh9/tmiJnBCQc0Vp76pf0SIIdyBWB/t7KsCYQyFUttoLNc4pNsy6ACVGqCF3ZZt1bllSyOVZIgRT1H9DHH+TCgQOO562P7kjT+8LcXrFUsmRAjep69ydNMg+9BuI/KtIWvjI9yK6uwFCVzoDXFrZubqyQPfbTjNJhyb0LJRreQxoMFcpwMKEUNg/vqV82veQi6bheAcQgg6Dofve6hWbYTIpB6mYg2IxsJ/v0YznYbb42BAqysHWO3g7cNVAnTuIAPZrwOqkUGIYrH0q7P8zEx/DubK0mWBg7M3JY7sWZlr/ToofJRhJXCNWkoUyhKXHjAc3oEN5uQkfMeFRw48cuCRg3jcg0aFuv4bSxUk7rwGissSSiip2n1iFKeG40iQzXJykDWSCXAjithCTm7p9BkC258byM+9wyxNi4pTDya21sP6x1DxWz8EGACn4vFm357hkgAAAABJRU5ErkJggg==");-webkit-background-size:cover;background-size:cover;margin-right:5px;width:14px;height:14px}.mp6 #plupload-upload-ui .mgjp-mv-tag{margin-left:-108px;border:0;border-radius:0;padding:10px 20px 10px 15px;color:#eee;background:#333}.mp6 #plupload-upload-ui .mgjp-mv-tag .mgjp-mv-tag-icon{background:0;height:auto;width:auto}.mp6 #plupload-upload-ui .mgjp-mv-tag .mgjp-mv-tag-icon:before{content:'\f160';font:normal 18px/1 'dashicons'!important;speak:none;color:#999;height:20px;width:20px;vertical-align:top;-webkit-font-smoothing:antialiased}#plupload-upload-ui.mgjp-mv-checked #drag-drop-area{-webkit-transition:border .1s;-webkit-transition-delay:1.75s;transition:border .1s 1.75s;border-color:#21759b}#plupload-upload-ui.mgjp-mv-checked .mgjp-mv-tag{display:block;-webkit-animation:appear-and-land 2s;animation:appear-and-land 2s}#plupload-upload-ui.mgjp-mv-unchecked #drag-drop-area{-webkit-transition:border .7s;transition:border .7s}#plupload-upload-ui.mgjp-mv-unchecked .mgjp-mv-tag{display:block;opacity:0;-webkit-transition:opacity .7s;transition:opacity .7s}@-webkit-keyframes appear-and-land{from{opacity:0;-webkit-transform:translateY(70px) scale(1.1);-ms-transform:translateY(70px) scale(1.1);transform:translateY(70px) scale(1.1);-webkit-box-shadow:0 15px 10px -10px rgba(0,0,0,0.3);box-shadow:0 15px 10px -10px rgba(0,0,0,0.3)}50%{opacity:1;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1);-webkit-box-shadow:0 15px 10px -10px rgba(0,0,0,0.3);box-shadow:0 15px 10px -10px rgba(0,0,0,0.3)}85%{-webkit-transform:translateY(-10px) scale(1.3);-ms-transform:translateY(-10px) scale(1.3);transform:translateY(-10px) scale(1.3);-webkit-box-shadow:0 27px 15px -18px rgba(0,0,0,0.5);box-shadow:0 27px 15px -18px rgba(0,0,0,0.5)}87%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-box-shadow:0 0 0 0 #000;box-shadow:0 0 0 0 #000}to{-webkit-box-shadow:0 0 90px rgba(0,0,0,0);box-shadow:0 0 90px rgba(0,0,0,0)}}@keyframes appear-and-land{from{opacity:0;-webkit-transform:translateY(70px) scale(1.1);-ms-transform:translateY(70px) scale(1.1);transform:translateY(70px) scale(1.1);-webkit-box-shadow:0 15px 10px -10px rgba(0,0,0,0.3);box-shadow:0 15px 10px -10px rgba(0,0,0,0.3)}50%{opacity:1;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1);-webkit-box-shadow:0 15px 10px -10px rgba(0,0,0,0.3);box-shadow:0 15px 10px -10px rgba(0,0,0,0.3)}85%{-webkit-transform:translateY(-10px) scale(1.3);-ms-transform:translateY(-10px) scale(1.3);transform:translateY(-10px) scale(1.3);-webkit-box-shadow:0 27px 15px -18px rgba(0,0,0,0.5);box-shadow:0 27px 15px -18px rgba(0,0,0,0.5)}87%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-box-shadow:0 0 0 0 #000;box-shadow:0 0 0 0 #000}to{-webkit-box-shadow:0 0 90px rgba(0,0,0,0);box-shadow:0 0 90px rgba(0,0,0,0)}}
     1.js .js-visuallyhidden,.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}#plupload-upload-ui{position:relative}#plupload-upload-ui .mgjp-mv-tag{display:none;position:absolute;top:25px;left:50%;margin-left:-102px;border:1px solid #b4b4b4;border-radius:5px;padding:8px 15px;color:#333;background:#e6e6e6;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(7%,#e6e6e6),color-stop(77%,#d8d8d8));background-image:-webkit-linear-gradient(top,#e6e6e6 7%,#d8d8d8 77%);background-image:-webkit-gradient(linear,top left,bottom left,from(#e6e6e6),to(#d8d8d8));background-image:-webkit-linear-gradient(top,#e6e6e6 7%,#d8d8d8 77%);background-image:linear-gradient(top,#e6e6e6 7%,#d8d8d8 77%)}#plupload-upload-ui .mgjp-mv-tag .mgjp-mv-tag-icon{float:left;background:center no-repeat url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAhxJREFUeNqkU89rE0EYfTOZbDdmk5qo1EZ6qKDYXgRl9SLGUiNI/wQPxYsgFPQkXvXgXaQXD4qCIF4UPAiCtaGiSFTQgwpRA1pjY4yx2cRN9kfGb2pWm1gx4MCDmbf7vXnz5hsmpcT/DHb7NO8iQpxB17CbAWlaDnXoEm2TbTp46re7NxS9imTIFEbq2NjE0UPFpS8RxaU2b7Rf3b88JivFi7TMdQnYzh8SmV37pqce3btbffn88S3FjO/ce9DcPz21cONcoVeAa4IhgGVDYUQyfeh9/tmiJnBCQc0Vp76pf0SIIdyBWB/t7KsCYQyFUttoLNc4pNsy6ACVGqCF3ZZt1bllSyOVZIgRT1H9DHH+TCgQOO562P7kjT+8LcXrFUsmRAjep69ydNMg+9BuI/KtIWvjI9yK6uwFCVzoDXFrZubqyQPfbTjNJhyb0LJRreQxoMFcpwMKEUNg/vqV82veQi6bheAcQgg6Dofve6hWbYTIpB6mYg2IxsJ/v0YznYbb42BAqysHWO3g7cNVAnTuIAPZrwOqkUGIYrH0q7P8zEx/DubK0mWBg7M3JY7sWZlr/ToofJRhJXCNWkoUyhKXHjAc3oEN5uQkfMeFRw48cuCRg3jcg0aFuv4bSxUk7rwGissSSiip2n1iFKeG40iQzXJykDWSCXAjithCTm7p9BkC258byM+9wyxNi4pTDya21sP6x1DxWz8EGACn4vFm357hkgAAAABJRU5ErkJggg==");-webkit-background-size:cover;background-size:cover;margin-right:5px;width:14px;height:14px}.mp6 #plupload-upload-ui .mgjp-mv-tag,.mgjp_mp6 #plupload-upload-ui .mgjp-mv-tag{margin-left:-108px;border:0;border-radius:0;padding:10px 20px 10px 15px;color:#eee;background:#333}.mp6 #plupload-upload-ui .mgjp-mv-tag .mgjp-mv-tag-icon,.mgjp_mp6 #plupload-upload-ui .mgjp-mv-tag .mgjp-mv-tag-icon{background:0;height:auto;width:auto}.mp6 #plupload-upload-ui .mgjp-mv-tag .mgjp-mv-tag-icon:before,.mgjp_mp6 #plupload-upload-ui .mgjp-mv-tag .mgjp-mv-tag-icon:before{content:'\f160';font:normal 18px/1 'dashicons'!important;speak:none;color:#999;height:20px;width:20px;vertical-align:top;-webkit-font-smoothing:antialiased}#plupload-upload-ui.mgjp-mv-checked #drag-drop-area{-webkit-transition:border .1s;-webkit-transition-delay:1.75s;transition:border .1s 1.75s;border-color:#21759b}#plupload-upload-ui.mgjp-mv-checked .mgjp-mv-tag{display:block;-webkit-animation:appear-and-land 2s;animation:appear-and-land 2s}#plupload-upload-ui.mgjp-mv-unchecked #drag-drop-area{-webkit-transition:border .7s;transition:border .7s}#plupload-upload-ui.mgjp-mv-unchecked .mgjp-mv-tag{display:block;opacity:0;-webkit-transition:opacity .7s;transition:opacity .7s}@-webkit-keyframes appear-and-land{from{opacity:0;-webkit-transform:translateY(70px) scale(1.1);-ms-transform:translateY(70px) scale(1.1);transform:translateY(70px) scale(1.1);-webkit-box-shadow:0 15px 10px -10px rgba(0,0,0,0.3);box-shadow:0 15px 10px -10px rgba(0,0,0,0.3)}50%{opacity:1;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1);-webkit-box-shadow:0 15px 10px -10px rgba(0,0,0,0.3);box-shadow:0 15px 10px -10px rgba(0,0,0,0.3)}85%{-webkit-transform:translateY(-10px) scale(1.3);-ms-transform:translateY(-10px) scale(1.3);transform:translateY(-10px) scale(1.3);-webkit-box-shadow:0 27px 15px -18px rgba(0,0,0,0.5);box-shadow:0 27px 15px -18px rgba(0,0,0,0.5)}87%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-box-shadow:0 0 0 0 #000;box-shadow:0 0 0 0 #000}to{-webkit-box-shadow:0 0 90px rgba(0,0,0,0);box-shadow:0 0 90px rgba(0,0,0,0)}}@keyframes appear-and-land{from{opacity:0;-webkit-transform:translateY(70px) scale(1.1);-ms-transform:translateY(70px) scale(1.1);transform:translateY(70px) scale(1.1);-webkit-box-shadow:0 15px 10px -10px rgba(0,0,0,0.3);box-shadow:0 15px 10px -10px rgba(0,0,0,0.3)}50%{opacity:1;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1);-webkit-box-shadow:0 15px 10px -10px rgba(0,0,0,0.3);box-shadow:0 15px 10px -10px rgba(0,0,0,0.3)}85%{-webkit-transform:translateY(-10px) scale(1.3);-ms-transform:translateY(-10px) scale(1.3);transform:translateY(-10px) scale(1.3);-webkit-box-shadow:0 27px 15px -18px rgba(0,0,0,0.5);box-shadow:0 27px 15px -18px rgba(0,0,0,0.5)}87%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-box-shadow:0 0 0 0 #000;box-shadow:0 0 0 0 #000}to{-webkit-box-shadow:0 0 90px rgba(0,0,0,0);box-shadow:0 0 90px rgba(0,0,0,0)}}
  • media-vault/trunk/readme.txt

    r816231 r819854  
    3838
    3939
    40 *Note:* Plugin comes with styles ready for WordPress [mp6](http://wordpress.org/plugins/mp6)!
     40*Note:* Plugin comes with styles ready for WordPress 3.8+!
    4141
    4242*Note:*  **Now supports WordPress MultiSite!**
     
    8484== Changelog ==
    8585
     86= 0.8.7 =
     87added a body class to the WP admin to let Media Vault know to use the new 3.8+ styles
     88
    8689= 0.8.6 =
    8790fixed code that required php 5.4 and above, to be compatible with older versions of php
     
    124127== Upgrade Notice ==
    125128
     129= 0.8.7 =
     130added a body class to the WP admin to let Media Vault know to use the new 3.8+ styles
     131
    126132= 0.8.6 =
    127133fixed code that required php 5.4 and above, to be compatible with older versions of php
Note: See TracChangeset for help on using the changeset viewer.